Package com.ibm.fhir.path.function
Class MemberOfFunction
- java.lang.Object
-
- com.ibm.fhir.path.function.FHIRPathAbstractFunction
-
- com.ibm.fhir.path.function.MemberOfFunction
-
- All Implemented Interfaces:
FHIRPathFunction
public class MemberOfFunction extends FHIRPathAbstractFunction
Implementation of the 'memberOf' FHIRPath function per: http://hl7.org/fhir/fhirpath.html#functionsThis implementation supports an optional second argument (binding strength). The binding strength is used to determine whether or not to add a warning to the evaluation context if the membership check fails.
In addition, if the optional argument is specified, this implementation will successfully validate a Code, Coding, Quantity, String, or Uri element in which the data-absent-reason extension is specified and no value or code+system is specified.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ALL_LANG_VALUE_SET_URL
static java.lang.String
UCUM_UNITS_VALUE_SET_URL
-
Constructor Summary
Constructors Constructor Description MemberOfFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<FHIRPathNode>
apply(FHIRPathEvaluator.EvaluationContext evaluationContext, java.util.Collection<FHIRPathNode> context, java.util.List<java.util.Collection<FHIRPathNode>> arguments)
int
getMaxArity()
int
getMinArity()
java.lang.String
getName()
-
Methods inherited from class com.ibm.fhir.path.function.FHIRPathAbstractFunction
cacheFunctionResult, equals, generateIssue, getCachedFunctionResult, hasCachedFunctionResult, hashCode
-
-
-
-
Field Detail
-
ALL_LANG_VALUE_SET_URL
public static final java.lang.String ALL_LANG_VALUE_SET_URL
- See Also:
- Constant Field Values
-
UCUM_UNITS_VALUE_SET_URL
public static final java.lang.String UCUM_UNITS_VALUE_SET_URL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceFHIRPathFunction
- Specified by:
getName
in classFHIRPathAbstractFunction
-
getMinArity
public int getMinArity()
- Specified by:
getMinArity
in interfaceFHIRPathFunction
- Specified by:
getMinArity
in classFHIRPathAbstractFunction
-
getMaxArity
public int getMaxArity()
- Specified by:
getMaxArity
in interfaceFHIRPathFunction
- Specified by:
getMaxArity
in classFHIRPathAbstractFunction
-
apply
public java.util.Collection<FHIRPathNode> apply(FHIRPathEvaluator.EvaluationContext evaluationContext, java.util.Collection<FHIRPathNode> context, java.util.List<java.util.Collection<FHIRPathNode>> arguments)
- Specified by:
apply
in interfaceFHIRPathFunction
- Overrides:
apply
in classFHIRPathAbstractFunction
-
-