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 StringALL_LANG_VALUE_SET_URLstatic StringUCUM_UNITS_VALUE_SET_URL 
- 
Constructor Summary
Constructors Constructor Description MemberOfFunction() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<FHIRPathNode>apply(FHIRPathEvaluator.EvaluationContext evaluationContext, Collection<FHIRPathNode> context, List<Collection<FHIRPathNode>> arguments)intgetMaxArity()intgetMinArity()StringgetName()protected UrigetSystem(FHIRPathTree tree, FHIRPathElementNode elementNode)Get the URI-typed sibling of the given element node with name "system".- 
Methods inherited from class com.ibm.fhir.path.function.FHIRPathAbstractFunction
equals, generateIssue, hashCode 
 - 
 
 - 
 
- 
- 
Field Detail
- 
ALL_LANG_VALUE_SET_URL
public static final String ALL_LANG_VALUE_SET_URL
- See Also:
 - Constant Field Values
 
 
- 
UCUM_UNITS_VALUE_SET_URL
public static final String UCUM_UNITS_VALUE_SET_URL
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getName
public String getName()
- Specified by:
 getNamein interfaceFHIRPathFunction- Specified by:
 getNamein classFHIRPathAbstractFunction
 
- 
getMinArity
public int getMinArity()
- Specified by:
 getMinArityin interfaceFHIRPathFunction- Specified by:
 getMinArityin classFHIRPathAbstractFunction
 
- 
getMaxArity
public int getMaxArity()
- Specified by:
 getMaxArityin interfaceFHIRPathFunction- Specified by:
 getMaxArityin classFHIRPathAbstractFunction
 
- 
apply
public Collection<FHIRPathNode> apply(FHIRPathEvaluator.EvaluationContext evaluationContext, Collection<FHIRPathNode> context, List<Collection<FHIRPathNode>> arguments)
- Specified by:
 applyin interfaceFHIRPathFunction- Overrides:
 applyin classFHIRPathAbstractFunction
 
- 
getSystem
protected Uri getSystem(FHIRPathTree tree, FHIRPathElementNode elementNode)
Get the URI-typed sibling of the given element node with name "system".- Parameters:
 tree- the treeelementNode- the element node- Returns:
 - the URI-typed sibling of the given element node with name "system", or null if no such sibling exists
 
 
 - 
 
 -