use of org.hl7.fhir.r4.model.ExplanationOfBenefit.Use in project org.hl7.fhir.core by hapifhir.
the class FHIRPathEngine method evaluate.
/**
* evaluate a path and return the matching elements
*
* @param base - the object against which the path is being evaluated
* @param path - the FHIR Path statement to use
* @return
* @throws PathEngineException
* @throws FHIRLexerException
* @
* @
*/
public List<Base> evaluate(Object appContext, Resource resource, Base base, String path) throws PathEngineException, FHIRLexerException {
ExpressionNode exp = parse(path);
List<Base> list = new ArrayList<Base>();
if (base != null)
list.add(base);
log = new StringBuilder();
return execute(new ExecutionContext(appContext, resource, base, base), list, exp, true);
}
use of org.hl7.fhir.r4.model.ExplanationOfBenefit.Use in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeExpansionProfileDesignationIncludeDesignationComponent.
protected void composeExpansionProfileDesignationIncludeDesignationComponent(Complex parent, String parentType, String name, ExpansionProfile.DesignationIncludeDesignationComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "designation", name, element, index);
if (element.hasLanguageElement())
composeCode(t, "ExpansionProfile", "language", element.getLanguageElement(), -1);
if (element.hasUse())
composeCoding(t, "ExpansionProfile", "use", element.getUse(), -1);
}
use of org.hl7.fhir.r4.model.ExplanationOfBenefit.Use in project org.hl7.fhir.core by hapifhir.
the class RdfParser method composeModuleDefinitionModuleDefinitionParameterComponent.
protected void composeModuleDefinitionModuleDefinitionParameterComponent(Complex parent, String parentType, String name, ModuleDefinition.ModuleDefinitionParameterComponent element, int index) {
if (element == null)
return;
Complex t;
if (Utilities.noString(parentType))
t = parent;
else {
t = parent.predicate("fhir:" + parentType + '.' + name);
}
composeBackboneElement(t, "parameter", name, element, index);
if (element.hasNameElement())
composeCode(t, "ModuleDefinition", "name", element.getNameElement(), -1);
if (element.hasUseElement())
composeCode(t, "ModuleDefinition", "use", element.getUseElement(), -1);
if (element.hasDocumentationElement())
composeString(t, "ModuleDefinition", "documentation", element.getDocumentationElement(), -1);
if (element.hasTypeElement())
composeCode(t, "ModuleDefinition", "type", element.getTypeElement(), -1);
if (element.hasProfile())
composeReference(t, "ModuleDefinition", "profile", element.getProfile(), -1);
}
use of org.hl7.fhir.r4.model.ExplanationOfBenefit.Use in project org.hl7.fhir.core by hapifhir.
the class FHIRPathEngine method evaluate.
/**
* evaluate a path and return the matching elements
*
* @param base - the object against which the path is being evaluated
* @param path - the FHIR Path statement to use
* @return
* @throws FHIRException
* @
*/
public List<Base> evaluate(Object appContext, Resource resource, Base base, String path) throws FHIRException {
ExpressionNode exp = parse(path);
List<Base> list = new ArrayList<Base>();
if (base != null)
list.add(base);
log = new StringBuilder();
return execute(new ExecutionContext(appContext, resource, base), list, exp, true);
}
use of org.hl7.fhir.r4.model.ExplanationOfBenefit.Use in project org.hl7.fhir.core by hapifhir.
the class FHIRPathEngine method evaluate.
/**
* evaluate a path and return the matching elements
*
* @param base - the object against which the path is being evaluated
* @param path - the FHIR Path statement to use
* @return
* @throws FHIRException
* @
*/
public List<Base> evaluate(Base base, String path) throws FHIRException {
ExpressionNode exp = parse(path);
List<Base> list = new ArrayList<Base>();
if (base != null)
list.add(base);
log = new StringBuilder();
return execute(new ExecutionContext(null, null, base), list, exp, true);
}
Aggregations