use of io.github.linuxforhealth.api.EvaluationResult in project hl7v2-fhir-converter by LinuxForHealth.
the class ContextValueUtils method fetchValueFromVar.
private static EvaluationResult fetchValueFromVar(String varName, Map<String, EvaluationResult> contextValues, boolean isUseGroup) {
String[] tokens = StringUtils.split(varName, ":", 2);
ImmutablePair<String, String> fetch = ImmutablePair.of(tokens[0], tokens[1]);
String keyname = getKeyName(contextValues, VariableUtils.getVarName(fetch.left), isUseGroup);
EvaluationResult resource = contextValues.get(keyname);
return ExpressionUtility.extractComponent(fetch, resource);
}
Aggregations