io.github.linuxforhealth.hl7.resource.ResourceEvaluationResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hl7v2-fhir-converter Show documentation
Show all versions of hl7v2-fhir-converter Show documentation
FHIR converter is a Java based library that enables converting Hl7v2 messages to FHIR resources
package io.github.linuxforhealth.hl7.resource;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import io.github.linuxforhealth.api.ResourceValue;
public class ResourceEvaluationResult {
private List additionalResolveValues;
private Map resolveValues;
private PendingExpressionState pendingExpressions;
public ResourceEvaluationResult(Map resolveValues) {
this(resolveValues, new ArrayList<>(), null);
}
public ResourceEvaluationResult(Map resolveValues,
List additionalResolveValues) {
this(resolveValues, additionalResolveValues,
PendingExpressionState.emptyPendingExpressionState());
}
public ResourceEvaluationResult(Map resolveValues,
List additionalResolveValues, PendingExpressionState pendingExpressions) {
this.additionalResolveValues = new ArrayList<>();
this.additionalResolveValues.addAll(additionalResolveValues);
this.resolveValues = new HashMap<>();
this.resolveValues.putAll(resolveValues);
this.pendingExpressions = pendingExpressions;
}
public List getAdditionalResolveValues() {
return additionalResolveValues;
}
public Map getResolveValues() {
return resolveValues;
}
public PendingExpressionState getPendingExpressions() {
return pendingExpressions;
}
}