Package com.ibm.fhir.path.function
Class FHIRPathAbstractTermFunction
- java.lang.Object
-
- com.ibm.fhir.path.function.FHIRPathAbstractFunction
-
- com.ibm.fhir.path.function.FHIRPathAbstractTermFunction
-
- All Implemented Interfaces:
FHIRPathFunction
- Direct Known Subclasses:
ExpandFunction,LookupFunction,SubsumedByFunction,SubsumesFunction,TranslateFunction,ValidateCSFunction,ValidateVSFunction
public abstract class FHIRPathAbstractTermFunction extends FHIRPathAbstractFunction
-
-
Field Summary
Fields Modifier and Type Field Description protected FHIRTermServiceservice
-
Constructor Summary
Constructors Constructor Description FHIRPathAbstractTermFunction()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.util.Collection<FHIRPathNode>apply(FHIRPathEvaluator.EvaluationContext evaluationContext, java.util.Collection<FHIRPathNode> context, java.util.List<java.util.Collection<FHIRPathNode>> arguments)protected java.util.Map<java.lang.String,java.util.function.Function<java.lang.String,Element>>buildElementFactoryMap()protected ElementgetCodedElement(FHIRPathTree tree, FHIRPathElementNode codedElementNode)protected CodinggetCoding(FHIRPathTree tree, FHIRPathElementNode codedElementNode)abstract intgetMaxArity()abstract intgetMinArity()abstract java.lang.StringgetName()protected ParametersgetParameters(java.util.List<java.util.Collection<FHIRPathNode>> arguments)protected <T extends Resource>
TgetResource(java.util.List<java.util.Collection<FHIRPathNode>> arguments, java.lang.Class<T> resourceType)protected booleanisCodedElementNode(java.util.Collection<FHIRPathNode> nodes)protected booleanisCodedElementNode(java.util.Collection<FHIRPathNode> nodes, java.lang.Class<?>... codedElementTypes)protected booleanisTermServiceNode(java.util.Collection<FHIRPathNode> nodes)-
Methods inherited from class com.ibm.fhir.path.function.FHIRPathAbstractFunction
cacheFunctionResult, equals, generateIssue, getCachedFunctionResult, hasCachedFunctionResult, hashCode
-
-
-
-
Field Detail
-
service
protected final FHIRTermService service
-
-
Method Detail
-
getName
public abstract java.lang.String getName()
- Specified by:
getNamein interfaceFHIRPathFunction- Specified by:
getNamein classFHIRPathAbstractFunction
-
getMinArity
public abstract int getMinArity()
- Specified by:
getMinArityin interfaceFHIRPathFunction- Specified by:
getMinArityin classFHIRPathAbstractFunction
-
getMaxArity
public abstract int getMaxArity()
- Specified by:
getMaxArityin interfaceFHIRPathFunction- Specified by:
getMaxArityin classFHIRPathAbstractFunction
-
apply
public abstract java.util.Collection<FHIRPathNode> apply(FHIRPathEvaluator.EvaluationContext evaluationContext, java.util.Collection<FHIRPathNode> context, java.util.List<java.util.Collection<FHIRPathNode>> arguments)
- Specified by:
applyin interfaceFHIRPathFunction- Overrides:
applyin classFHIRPathAbstractFunction
-
buildElementFactoryMap
protected java.util.Map<java.lang.String,java.util.function.Function<java.lang.String,Element>> buildElementFactoryMap()
-
isCodedElementNode
protected boolean isCodedElementNode(java.util.Collection<FHIRPathNode> nodes)
-
isCodedElementNode
protected boolean isCodedElementNode(java.util.Collection<FHIRPathNode> nodes, java.lang.Class<?>... codedElementTypes)
-
isTermServiceNode
protected boolean isTermServiceNode(java.util.Collection<FHIRPathNode> nodes)
-
getCodedElement
protected Element getCodedElement(FHIRPathTree tree, FHIRPathElementNode codedElementNode)
-
getCoding
protected Coding getCoding(FHIRPathTree tree, FHIRPathElementNode codedElementNode)
-
getParameters
protected Parameters getParameters(java.util.List<java.util.Collection<FHIRPathNode>> arguments)
-
getResource
protected <T extends Resource> T getResource(java.util.List<java.util.Collection<FHIRPathNode>> arguments, java.lang.Class<T> resourceType)
-
-