Class FHIRPathAbstractTermFunction
- java.lang.Object
-
- org.linuxforhealth.fhir.path.function.FHIRPathAbstractFunction
-
- org.linuxforhealth.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 FHIRTermService
service
-
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 Element
getCodedElement(FHIRPathTree tree, FHIRPathElementNode codedElementNode)
protected Coding
getCoding(FHIRPathTree tree, FHIRPathElementNode codedElementNode)
abstract int
getMaxArity()
abstract int
getMinArity()
abstract java.lang.String
getName()
protected Parameters
getParameters(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 boolean
isCodedElementNode(java.util.Collection<FHIRPathNode> nodes)
protected boolean
isCodedElementNode(java.util.Collection<FHIRPathNode> nodes, java.lang.Class<?>... codedElementTypes)
protected boolean
isTermServiceNode(java.util.Collection<FHIRPathNode> nodes)
-
Methods inherited from class org.linuxforhealth.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:
getName
in interfaceFHIRPathFunction
- Specified by:
getName
in classFHIRPathAbstractFunction
-
getMinArity
public abstract int getMinArity()
- Specified by:
getMinArity
in interfaceFHIRPathFunction
- Specified by:
getMinArity
in classFHIRPathAbstractFunction
-
getMaxArity
public abstract int getMaxArity()
- Specified by:
getMaxArity
in interfaceFHIRPathFunction
- Specified by:
getMaxArity
in 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:
apply
in interfaceFHIRPathFunction
- Overrides:
apply
in 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)
-
-