Class FHIRPathUtil
- java.lang.Object
-
- org.linuxforhealth.fhir.path.util.FHIRPathUtil
-
public final class FHIRPathUtil extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFHIRPathUtil.UnorderedCollection
-
Field Summary
Fields Modifier and Type Field Description static java.math.BigDecimalDECIMAL_FALSEstatic java.math.BigDecimalDECIMAL_TRUEstatic java.lang.IntegerINTEGER_FALSEstatic java.lang.IntegerINTEGER_TRUEstatic java.util.Set<java.lang.String>STRING_FALSE_VALUESstatic java.util.Set<java.lang.String>STRING_TRUE_VALUESstatic java.util.Map<java.lang.String,java.lang.String>UNESCAPED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Visitable>
Tadd(T elementOrResource, java.lang.String fhirPath, java.lang.String elementName, Visitable value)The content will be appended to the element identified in the path, using the name specified.static ClassInfobuildClassInfo(FHIRPathType type)static ClassInfoElementbuildClassInfoElement(ModelSupport.ElementInfo elementInfo)static SimpleTypeInfobuildSimpleTypeInfo(FHIRPathType type)static TupleTypeInfobuildTupleTypeInfo(java.lang.Class<?> modelClass)static TupleTypeInfoElementbuildTupleTypeInfoElement(ModelSupport.ElementInfo elementInfo)static FHIRPathParser.ExpressionContextcompile(java.lang.String expr)static booleanconvertsToBoolean(java.util.Collection<FHIRPathNode> nodes)Indicates whether the input collection can be implicitly or explicitly converted to a boolean value per: Boolean Conversion Functionsstatic booleanconvertsToDate(java.util.Collection<FHIRPathNode> nodes)static booleanconvertsToDateTime(java.util.Collection<FHIRPathNode> nodes)static booleanconvertsToTime(java.util.Collection<FHIRPathNode> nodes)static <T extends Visitable>
Tdelete(T elementOrResource, java.lang.String fhirPath)Only a single element can be deletedstatic java.util.Collection<FHIRPathNode>empty()static booleanevaluatesToBoolean(java.util.Collection<FHIRPathNode> nodes)static booleanevaluatesToTrue(java.util.Collection<FHIRPathNode> nodes)Indicates whether the input collection evaluates to a boolean value per: Singleton Evaluation of Collectionsstatic java.lang.BooleangetBoolean(java.util.Collection<FHIRPathNode> nodes)static FHIRPathBooleanValuegetBooleanValue(java.util.Collection<FHIRPathNode> nodes)static java.time.temporal.ChronoUnitgetChronoUnit(java.lang.String unit)static java.time.temporal.TemporalAccessorgetDate(java.util.Collection<FHIRPathNode> nodes)static java.time.temporal.TemporalAccessorgetDateTime(java.util.Collection<FHIRPathNode> nodes)static FHIRPathDateTimeValuegetDateTimeValue(java.util.Collection<FHIRPathNode> nodes)static FHIRPathDateValuegetDateValue(java.util.Collection<FHIRPathNode> nodes)static java.math.BigDecimalgetDecimal(java.util.Collection<FHIRPathNode> nodes)static FHIRPathDecimalValuegetDecimalValue(java.util.Collection<FHIRPathNode> nodes)static StringgetDisplay(FHIRPathTree tree, FHIRPathElementNode elementNode)Get the String-typed sibling of the given element node with name "display".static FHIRPathElementNodegetElementNode(java.util.Collection<FHIRPathNode> nodes)static java.lang.IntegergetInteger(java.util.Collection<FHIRPathNode> nodes)static FHIRPathIntegerValuegetIntegerValue(java.util.Collection<FHIRPathNode> nodes)static FHIRPathNumberValuegetNumberValue(java.util.Collection<FHIRPathNode> nodes)static java.time.temporal.ChronoFieldgetPrecision(java.time.temporal.TemporalAccessor temporalAccessor)static java.time.temporal.ChronoFieldgetPrecision(java.time.temporal.TemporalAccessor temporalAccessor, java.lang.String text)static FHIRPathQuantityNodegetQuantityNode(java.util.Collection<FHIRPathNode> nodes)static FHIRPathQuantityValuegetQuantityValue(java.util.Collection<FHIRPathNode> nodes)static FHIRPathResourceNodegetResourceNode(java.util.Collection<FHIRPathNode> nodes)static FHIRPathResourceNodegetResourceNode(FHIRPathTree tree, FHIRPathNode node)Get the resource node to use as a value for the %resource external constant.static FHIRPathResourceNodegetRootResourceNode(FHIRPathTree tree, FHIRPathNode node)Get the resource node to use as a value for the %rootResource external constant.static FHIRPathNodegetSingleton(java.util.Collection<FHIRPathNode> nodes)static <T extends FHIRPathNode>
TgetSingleton(java.util.Collection<FHIRPathNode> nodes, java.lang.Class<T> nodeType)static java.lang.StringgetString(java.util.Collection<FHIRPathNode> nodes)static FHIRPathStringValuegetStringValue(java.util.Collection<FHIRPathNode> nodes)static UrigetSystem(FHIRPathTree tree, FHIRPathElementNode elementNode)Get the URI-typed sibling of the given element node with name "system".static FHIRPathSystemValuegetSystemValue(java.util.Collection<FHIRPathNode> nodes)static FHIRPathSystemValuegetSystemValue(FHIRPathNode node)static java.time.temporal.TemporalgetTemporal(java.time.temporal.TemporalAccessor temporalAccessor)static java.time.temporal.TemporalAccessorgetTemporalAccessor(java.time.temporal.Temporal temporal, java.lang.Class<?> targetType)static java.time.temporal.TemporalAmountgetTemporalAmount(FHIRPathQuantityValue quantityValue)static FHIRPathTemporalValuegetTemporalValue(java.util.Collection<FHIRPathNode> nodes)static FHIRPathTemporalValuegetTemporalValue(FHIRPathNode node)static java.time.temporal.TemporalAccessorgetTime(java.util.Collection<FHIRPathNode> nodes)static FHIRPathTimeValuegetTimeValue(java.util.Collection<FHIRPathNode> nodes)static StringgetVersion(FHIRPathTree tree, FHIRPathElementNode elementNode)Get the String-typed sibling of the given element node with name "version".static booleanhasBooleanValue(java.util.Collection<FHIRPathNode> nodes)static booleanhasDateTimeValue(java.util.Collection<FHIRPathNode> nodes)static booleanhasDateValue(java.util.Collection<FHIRPathNode> nodes)static booleanhasDecimalValue(java.util.Collection<FHIRPathNode> nodes)static booleanhasIntegerValue(java.util.Collection<FHIRPathNode> nodes)static booleanhasNumberValue(java.util.Collection<FHIRPathNode> nodes)static booleanhasQuantityValue(java.util.Collection<FHIRPathNode> nodes)static booleanhasStringValue(java.util.Collection<FHIRPathNode> nodes)static booleanhasSystemValue(java.util.Collection<FHIRPathNode> nodes)static booleanhasSystemValue(FHIRPathNode node)static booleanhasTemporalValue(java.util.Collection<FHIRPathNode> nodes)static booleanhasTemporalValue(FHIRPathNode node)static booleanhasTimeValue(java.util.Collection<FHIRPathNode> nodes)static <T extends Visitable>
Tinsert(T elementOrResource, java.lang.String fhirPath, int index, Visitable value)The content will be inserted into the nominated list at the index specified (0 based).static booleanisBooleanValue(java.util.Collection<FHIRPathNode> nodes)static booleanisCodedElement(Element element)static booleanisCodedElementNode(java.util.Collection<FHIRPathNode> nodes)static booleanisCodedElementNode(FHIRPathElementNode elementNode)static booleanisDecimalValue(java.util.Collection<FHIRPathNode> nodes)static booleanisElementNode(java.util.Collection<FHIRPathNode> nodes)static booleanisFalse(java.util.Collection<FHIRPathNode> nodes)Indicates whetherconvertsToBoolean(java.util.Collection<org.linuxforhealth.fhir.path.FHIRPathNode>)returns a false value for the input collectionstatic booleanisIntegerValue(java.util.Collection<FHIRPathNode> nodes)static booleanisOrdered(java.util.Collection<FHIRPathNode> nodes)static booleanisQuantityNode(java.util.Collection<FHIRPathNode> nodes)static booleanisResourceNode(java.util.Collection<FHIRPathNode> nodes)static booleanisSingleton(java.util.Collection<FHIRPathNode> nodes)static <T extends FHIRPathNode>
booleanisSingleton(java.util.Collection<FHIRPathNode> nodes, java.lang.Class<T> nodeType)static booleanisStringElementNode(java.util.Collection<FHIRPathNode> nodes)static booleanisStringElementNode(FHIRPathElementNode elementNode)static booleanisStringSubType(FHIRPathNode node)returns true if the node is a String or if FHIR element can be automatically converted to System.String https://www.hl7.org/fhir/fhirpath.html#typesstatic booleanisStringValue(java.util.Collection<FHIRPathNode> nodes)static booleanisSystemValue(java.util.Collection<FHIRPathNode> nodes)static booleanisTrue(java.util.Collection<FHIRPathNode> nodes)Indicates whetherconvertsToBoolean(java.util.Collection<org.linuxforhealth.fhir.path.FHIRPathNode>)returns a true value for the input collectionstatic booleanisTypeCompatible(FHIRPathSystemValue leftValue, FHIRPathSystemValue rightValue)static booleanisUnordered(java.util.Collection<FHIRPathNode> nodes)static booleanisUriElementNode(java.util.Collection<FHIRPathNode> nodes)static <T extends Visitable>
Tmove(T elementOrResource, java.lang.String fhirPath, int source, int target)Move an element within a single liststatic <T extends Visitable>
Treplace(T elementOrResource, java.lang.String fhirPath, Visitable value)static java.util.Collection<FHIRPathNode>singleton(FHIRPathNode node)static booleantoBoolean(java.util.Collection<FHIRPathNode> nodes)static FHIRPathDateValuetoDate(java.util.Collection<FHIRPathNode> nodes)static FHIRPathDateTimeValuetoDateTime(java.util.Collection<FHIRPathNode> nodes)static FHIRPathTimeValuetoTime(java.util.Collection<FHIRPathNode> nodes)static java.lang.Stringunescape(java.lang.String s)static java.util.Collection<FHIRPathNode>unordered(java.util.Collection<FHIRPathNode> nodes)
-
-
-
Field Detail
-
STRING_TRUE_VALUES
public static final java.util.Set<java.lang.String> STRING_TRUE_VALUES
-
STRING_FALSE_VALUES
public static final java.util.Set<java.lang.String> STRING_FALSE_VALUES
-
INTEGER_TRUE
public static final java.lang.Integer INTEGER_TRUE
-
INTEGER_FALSE
public static final java.lang.Integer INTEGER_FALSE
-
DECIMAL_TRUE
public static final java.math.BigDecimal DECIMAL_TRUE
-
DECIMAL_FALSE
public static final java.math.BigDecimal DECIMAL_FALSE
-
UNESCAPED
public static final java.util.Map<java.lang.String,java.lang.String> UNESCAPED
-
-
Method Detail
-
compile
public static FHIRPathParser.ExpressionContext compile(java.lang.String expr)
-
isTypeCompatible
public static boolean isTypeCompatible(FHIRPathSystemValue leftValue, FHIRPathSystemValue rightValue)
-
isResourceNode
public static boolean isResourceNode(java.util.Collection<FHIRPathNode> nodes)
-
getResourceNode
public static FHIRPathResourceNode getResourceNode(java.util.Collection<FHIRPathNode> nodes)
-
isElementNode
public static boolean isElementNode(java.util.Collection<FHIRPathNode> nodes)
-
getElementNode
public static FHIRPathElementNode getElementNode(java.util.Collection<FHIRPathNode> nodes)
-
isCodedElementNode
public static boolean isCodedElementNode(java.util.Collection<FHIRPathNode> nodes)
-
isCodedElementNode
public static boolean isCodedElementNode(FHIRPathElementNode elementNode)
-
isCodedElement
public static boolean isCodedElement(Element element)
-
isStringElementNode
public static boolean isStringElementNode(java.util.Collection<FHIRPathNode> nodes)
-
isStringElementNode
public static boolean isStringElementNode(FHIRPathElementNode elementNode)
-
isUriElementNode
public static boolean isUriElementNode(java.util.Collection<FHIRPathNode> nodes)
-
isQuantityNode
public static boolean isQuantityNode(java.util.Collection<FHIRPathNode> nodes)
-
getQuantityNode
public static FHIRPathQuantityNode getQuantityNode(java.util.Collection<FHIRPathNode> nodes)
-
getDecimal
public static java.math.BigDecimal getDecimal(java.util.Collection<FHIRPathNode> nodes)
-
getInteger
public static java.lang.Integer getInteger(java.util.Collection<FHIRPathNode> nodes)
-
getString
public static java.lang.String getString(java.util.Collection<FHIRPathNode> nodes)
-
getBoolean
public static java.lang.Boolean getBoolean(java.util.Collection<FHIRPathNode> nodes)
-
getDate
public static java.time.temporal.TemporalAccessor getDate(java.util.Collection<FHIRPathNode> nodes)
-
getDateTime
public static java.time.temporal.TemporalAccessor getDateTime(java.util.Collection<FHIRPathNode> nodes)
-
getTime
public static java.time.temporal.TemporalAccessor getTime(java.util.Collection<FHIRPathNode> nodes)
-
hasSystemValue
public static boolean hasSystemValue(java.util.Collection<FHIRPathNode> nodes)
-
getSystemValue
public static FHIRPathSystemValue getSystemValue(java.util.Collection<FHIRPathNode> nodes)
-
hasSystemValue
public static boolean hasSystemValue(FHIRPathNode node)
-
getSystemValue
public static FHIRPathSystemValue getSystemValue(FHIRPathNode node)
-
getStringValue
public static FHIRPathStringValue getStringValue(java.util.Collection<FHIRPathNode> nodes)
-
getQuantityValue
public static FHIRPathQuantityValue getQuantityValue(java.util.Collection<FHIRPathNode> nodes)
-
getIntegerValue
public static FHIRPathIntegerValue getIntegerValue(java.util.Collection<FHIRPathNode> nodes)
-
getDecimalValue
public static FHIRPathDecimalValue getDecimalValue(java.util.Collection<FHIRPathNode> nodes)
-
getNumberValue
public static FHIRPathNumberValue getNumberValue(java.util.Collection<FHIRPathNode> nodes)
-
getTemporalValue
public static FHIRPathTemporalValue getTemporalValue(java.util.Collection<FHIRPathNode> nodes)
-
getBooleanValue
public static FHIRPathBooleanValue getBooleanValue(java.util.Collection<FHIRPathNode> nodes)
-
hasBooleanValue
public static boolean hasBooleanValue(java.util.Collection<FHIRPathNode> nodes)
-
hasNumberValue
public static boolean hasNumberValue(java.util.Collection<FHIRPathNode> nodes)
-
hasDecimalValue
public static boolean hasDecimalValue(java.util.Collection<FHIRPathNode> nodes)
-
hasIntegerValue
public static boolean hasIntegerValue(java.util.Collection<FHIRPathNode> nodes)
-
hasTemporalValue
public static boolean hasTemporalValue(java.util.Collection<FHIRPathNode> nodes)
-
hasDateValue
public static boolean hasDateValue(java.util.Collection<FHIRPathNode> nodes)
-
getDateValue
public static FHIRPathDateValue getDateValue(java.util.Collection<FHIRPathNode> nodes)
-
hasDateTimeValue
public static boolean hasDateTimeValue(java.util.Collection<FHIRPathNode> nodes)
-
getDateTimeValue
public static FHIRPathDateTimeValue getDateTimeValue(java.util.Collection<FHIRPathNode> nodes)
-
hasTimeValue
public static boolean hasTimeValue(java.util.Collection<FHIRPathNode> nodes)
-
getTimeValue
public static FHIRPathTimeValue getTimeValue(java.util.Collection<FHIRPathNode> nodes)
-
hasStringValue
public static boolean hasStringValue(java.util.Collection<FHIRPathNode> nodes)
-
hasQuantityValue
public static boolean hasQuantityValue(java.util.Collection<FHIRPathNode> nodes)
-
evaluatesToBoolean
public static boolean evaluatesToBoolean(java.util.Collection<FHIRPathNode> nodes)
-
evaluatesToTrue
public static boolean evaluatesToTrue(java.util.Collection<FHIRPathNode> nodes)
Indicates whether the input collection evaluates to a boolean value per: Singleton Evaluation of Collections- Parameters:
nodes- the input collection- Returns:
- true if the input collection evaluates to a boolean value, false otherwise
-
isTrue
public static boolean isTrue(java.util.Collection<FHIRPathNode> nodes)
Indicates whetherconvertsToBoolean(java.util.Collection<org.linuxforhealth.fhir.path.FHIRPathNode>)returns a true value for the input collection- Parameters:
nodes- the input collection- Returns:
- true iff
convertsToBoolean(java.util.Collection<org.linuxforhealth.fhir.path.FHIRPathNode>)returns a true value for the input collection, false otherwise
-
isFalse
public static boolean isFalse(java.util.Collection<FHIRPathNode> nodes)
Indicates whetherconvertsToBoolean(java.util.Collection<org.linuxforhealth.fhir.path.FHIRPathNode>)returns a false value for the input collection- Parameters:
nodes- the input collection- Returns:
- true iff
convertsToBoolean(java.util.Collection<org.linuxforhealth.fhir.path.FHIRPathNode>)returns a false value for the input collection, false otherwise
-
convertsToBoolean
public static boolean convertsToBoolean(java.util.Collection<FHIRPathNode> nodes)
Indicates whether the input collection can be implicitly or explicitly converted to a boolean value per: Boolean Conversion Functions- Parameters:
nodes- the input collection- Returns:
- true if the input collection can be explicitly or implicitly converted to a boolean value, false otherwise
-
toBoolean
public static boolean toBoolean(java.util.Collection<FHIRPathNode> nodes)
-
convertsToDate
public static boolean convertsToDate(java.util.Collection<FHIRPathNode> nodes)
-
toDate
public static FHIRPathDateValue toDate(java.util.Collection<FHIRPathNode> nodes)
-
convertsToDateTime
public static boolean convertsToDateTime(java.util.Collection<FHIRPathNode> nodes)
-
toDateTime
public static FHIRPathDateTimeValue toDateTime(java.util.Collection<FHIRPathNode> nodes)
-
convertsToTime
public static boolean convertsToTime(java.util.Collection<FHIRPathNode> nodes)
-
toTime
public static FHIRPathTimeValue toTime(java.util.Collection<FHIRPathNode> nodes)
-
isSingleton
public static boolean isSingleton(java.util.Collection<FHIRPathNode> nodes)
-
isSingleton
public static <T extends FHIRPathNode> boolean isSingleton(java.util.Collection<FHIRPathNode> nodes, java.lang.Class<T> nodeType)
-
isSystemValue
public static boolean isSystemValue(java.util.Collection<FHIRPathNode> nodes)
-
isStringValue
public static boolean isStringValue(java.util.Collection<FHIRPathNode> nodes)
-
isBooleanValue
public static boolean isBooleanValue(java.util.Collection<FHIRPathNode> nodes)
-
isIntegerValue
public static boolean isIntegerValue(java.util.Collection<FHIRPathNode> nodes)
-
isDecimalValue
public static boolean isDecimalValue(java.util.Collection<FHIRPathNode> nodes)
-
getSingleton
public static FHIRPathNode getSingleton(java.util.Collection<FHIRPathNode> nodes)
- Throws:
java.lang.IllegalArgumentException- if the passed collection is not a singleton
-
getSingleton
public static <T extends FHIRPathNode> T getSingleton(java.util.Collection<FHIRPathNode> nodes, java.lang.Class<T> nodeType)
-
singleton
public static java.util.Collection<FHIRPathNode> singleton(FHIRPathNode node)
-
empty
public static java.util.Collection<FHIRPathNode> empty()
-
getTemporalAccessor
public static java.time.temporal.TemporalAccessor getTemporalAccessor(java.time.temporal.Temporal temporal, java.lang.Class<?> targetType)
-
getTemporal
public static java.time.temporal.Temporal getTemporal(java.time.temporal.TemporalAccessor temporalAccessor)
-
getTemporalAmount
public static java.time.temporal.TemporalAmount getTemporalAmount(FHIRPathQuantityValue quantityValue)
-
getChronoUnit
public static java.time.temporal.ChronoUnit getChronoUnit(java.lang.String unit)
-
buildSimpleTypeInfo
public static SimpleTypeInfo buildSimpleTypeInfo(FHIRPathType type)
-
buildTupleTypeInfo
public static TupleTypeInfo buildTupleTypeInfo(java.lang.Class<?> modelClass)
-
buildTupleTypeInfoElement
public static TupleTypeInfoElement buildTupleTypeInfoElement(ModelSupport.ElementInfo elementInfo)
-
buildClassInfo
public static ClassInfo buildClassInfo(FHIRPathType type)
-
buildClassInfoElement
public static ClassInfoElement buildClassInfoElement(ModelSupport.ElementInfo elementInfo)
-
unordered
public static java.util.Collection<FHIRPathNode> unordered(java.util.Collection<FHIRPathNode> nodes)
-
isOrdered
public static boolean isOrdered(java.util.Collection<FHIRPathNode> nodes)
-
isUnordered
public static boolean isUnordered(java.util.Collection<FHIRPathNode> nodes)
-
getPrecision
public static java.time.temporal.ChronoField getPrecision(java.time.temporal.TemporalAccessor temporalAccessor)
-
getPrecision
public static java.time.temporal.ChronoField getPrecision(java.time.temporal.TemporalAccessor temporalAccessor, java.lang.String text)
-
hasTemporalValue
public static boolean hasTemporalValue(FHIRPathNode node)
-
getTemporalValue
public static FHIRPathTemporalValue getTemporalValue(FHIRPathNode node)
-
unescape
public static java.lang.String unescape(java.lang.String s)
-
add
public static <T extends Visitable> T add(T elementOrResource, java.lang.String fhirPath, java.lang.String elementName, Visitable value) throws FHIRPathException, FHIRPatchException
The content will be appended to the element identified in the path, using the name specified. Add can used for non-repeating elements as long as they do not already exist.- Throws:
FHIRPathExceptionFHIRPatchExceptionjava.lang.NullPointerException- if any of the passed arguments are null
-
delete
public static <T extends Visitable> T delete(T elementOrResource, java.lang.String fhirPath) throws FHIRPathException, FHIRPatchException
Only a single element can be deleted- Throws:
FHIRPathExceptionFHIRPatchExceptionjava.lang.NullPointerException- if any of the passed arguments are null
-
replace
public static <T extends Visitable> T replace(T elementOrResource, java.lang.String fhirPath, Visitable value) throws FHIRPathException, FHIRPatchException
- Parameters:
elementOrResource-fhirPath-value-- Throws:
FHIRPathExceptionFHIRPatchExceptionjava.lang.NullPointerException- if any of the passed arguments are null
-
insert
public static <T extends Visitable> T insert(T elementOrResource, java.lang.String fhirPath, int index, Visitable value) throws FHIRPathException, FHIRPatchException
The content will be inserted into the nominated list at the index specified (0 based). The index is mandatory and must be equal or less than the number of elements in the list. Note: add is easier than insert at the end of the list.- Throws:
FHIRPathExceptionFHIRPatchExceptionjava.lang.NullPointerException- if any of the passed arguments are null
-
move
public static <T extends Visitable> T move(T elementOrResource, java.lang.String fhirPath, int source, int target) throws FHIRPathException, FHIRPatchException
Move an element within a single list- Throws:
FHIRPathExceptionFHIRPatchExceptionjava.lang.NullPointerException- if any of the passed arguments are null
-
getResourceNode
public static FHIRPathResourceNode getResourceNode(FHIRPathTree tree, FHIRPathNode node)
Get the resource node to use as a value for the %resource external constant.- Parameters:
tree- the FHIRPath treenode- the context node- Returns:
- the resource node, or null if not exists
-
getRootResourceNode
public static FHIRPathResourceNode getRootResourceNode(FHIRPathTree tree, FHIRPathNode node)
Get the resource node to use as a value for the %rootResource external constant.- Parameters:
tree- the FHIRPath treenode- the context node- Returns:
- the rootResource node, or null if not exists
-
getSystem
public static 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
-
getVersion
public static String getVersion(FHIRPathTree tree, FHIRPathElementNode elementNode)
Get the String-typed sibling of the given element node with name "version".- Parameters:
tree- the treeelementNode- the element node- Returns:
- the String-typed sibling of the given element node with name "version", or null if no such sibling exists
-
getDisplay
public static String getDisplay(FHIRPathTree tree, FHIRPathElementNode elementNode)
Get the String-typed sibling of the given element node with name "display".- Parameters:
tree- the treeelementNode- the element node- Returns:
- the String-typed sibling of the given element node with name "display", or null if no such sibling exists
-
isStringSubType
public static boolean isStringSubType(FHIRPathNode node)
returns true if the node is a String or if FHIR element can be automatically converted to System.String https://www.hl7.org/fhir/fhirpath.html#types- Parameters:
node-- Returns:
- boolean
-
-