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 class
FHIRPathUtil.UnorderedCollection
-
Field Summary
Fields Modifier and Type Field Description static java.math.BigDecimal
DECIMAL_FALSE
static java.math.BigDecimal
DECIMAL_TRUE
static java.lang.Integer
INTEGER_FALSE
static java.lang.Integer
INTEGER_TRUE
static java.util.Set<java.lang.String>
STRING_FALSE_VALUES
static java.util.Set<java.lang.String>
STRING_TRUE_VALUES
static 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 ClassInfo
buildClassInfo(FHIRPathType type)
static ClassInfoElement
buildClassInfoElement(ModelSupport.ElementInfo elementInfo)
static SimpleTypeInfo
buildSimpleTypeInfo(FHIRPathType type)
static TupleTypeInfo
buildTupleTypeInfo(java.lang.Class<?> modelClass)
static TupleTypeInfoElement
buildTupleTypeInfoElement(ModelSupport.ElementInfo elementInfo)
static FHIRPathParser.ExpressionContext
compile(java.lang.String expr)
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 Functionsstatic boolean
convertsToDate(java.util.Collection<FHIRPathNode> nodes)
static boolean
convertsToDateTime(java.util.Collection<FHIRPathNode> nodes)
static boolean
convertsToTime(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 boolean
evaluatesToBoolean(java.util.Collection<FHIRPathNode> nodes)
static boolean
evaluatesToTrue(java.util.Collection<FHIRPathNode> nodes)
Indicates whether the input collection evaluates to a boolean value per: Singleton Evaluation of Collectionsstatic java.lang.Boolean
getBoolean(java.util.Collection<FHIRPathNode> nodes)
static FHIRPathBooleanValue
getBooleanValue(java.util.Collection<FHIRPathNode> nodes)
static java.time.temporal.ChronoUnit
getChronoUnit(java.lang.String unit)
static java.time.temporal.TemporalAccessor
getDate(java.util.Collection<FHIRPathNode> nodes)
static java.time.temporal.TemporalAccessor
getDateTime(java.util.Collection<FHIRPathNode> nodes)
static FHIRPathDateTimeValue
getDateTimeValue(java.util.Collection<FHIRPathNode> nodes)
static FHIRPathDateValue
getDateValue(java.util.Collection<FHIRPathNode> nodes)
static java.math.BigDecimal
getDecimal(java.util.Collection<FHIRPathNode> nodes)
static FHIRPathDecimalValue
getDecimalValue(java.util.Collection<FHIRPathNode> nodes)
static String
getDisplay(FHIRPathTree tree, FHIRPathElementNode elementNode)
Get the String-typed sibling of the given element node with name "display".static FHIRPathElementNode
getElementNode(java.util.Collection<FHIRPathNode> nodes)
static java.lang.Integer
getInteger(java.util.Collection<FHIRPathNode> nodes)
static FHIRPathIntegerValue
getIntegerValue(java.util.Collection<FHIRPathNode> nodes)
static FHIRPathNumberValue
getNumberValue(java.util.Collection<FHIRPathNode> nodes)
static java.time.temporal.ChronoField
getPrecision(java.time.temporal.TemporalAccessor temporalAccessor)
static java.time.temporal.ChronoField
getPrecision(java.time.temporal.TemporalAccessor temporalAccessor, java.lang.String text)
static FHIRPathQuantityNode
getQuantityNode(java.util.Collection<FHIRPathNode> nodes)
static FHIRPathQuantityValue
getQuantityValue(java.util.Collection<FHIRPathNode> nodes)
static FHIRPathResourceNode
getResourceNode(java.util.Collection<FHIRPathNode> nodes)
static FHIRPathResourceNode
getResourceNode(FHIRPathTree tree, FHIRPathNode node)
Get the resource node to use as a value for the %resource external constant.static FHIRPathResourceNode
getRootResourceNode(FHIRPathTree tree, FHIRPathNode node)
Get the resource node to use as a value for the %rootResource external constant.static FHIRPathNode
getSingleton(java.util.Collection<FHIRPathNode> nodes)
static <T extends FHIRPathNode>
TgetSingleton(java.util.Collection<FHIRPathNode> nodes, java.lang.Class<T> nodeType)
static java.lang.String
getString(java.util.Collection<FHIRPathNode> nodes)
static FHIRPathStringValue
getStringValue(java.util.Collection<FHIRPathNode> nodes)
static Uri
getSystem(FHIRPathTree tree, FHIRPathElementNode elementNode)
Get the URI-typed sibling of the given element node with name "system".static FHIRPathSystemValue
getSystemValue(java.util.Collection<FHIRPathNode> nodes)
static FHIRPathSystemValue
getSystemValue(FHIRPathNode node)
static java.time.temporal.Temporal
getTemporal(java.time.temporal.TemporalAccessor temporalAccessor)
static java.time.temporal.TemporalAccessor
getTemporalAccessor(java.time.temporal.Temporal temporal, java.lang.Class<?> targetType)
static java.time.temporal.TemporalAmount
getTemporalAmount(FHIRPathQuantityValue quantityValue)
static FHIRPathTemporalValue
getTemporalValue(java.util.Collection<FHIRPathNode> nodes)
static FHIRPathTemporalValue
getTemporalValue(FHIRPathNode node)
static java.time.temporal.TemporalAccessor
getTime(java.util.Collection<FHIRPathNode> nodes)
static FHIRPathTimeValue
getTimeValue(java.util.Collection<FHIRPathNode> nodes)
static String
getVersion(FHIRPathTree tree, FHIRPathElementNode elementNode)
Get the String-typed sibling of the given element node with name "version".static boolean
hasBooleanValue(java.util.Collection<FHIRPathNode> nodes)
static boolean
hasDateTimeValue(java.util.Collection<FHIRPathNode> nodes)
static boolean
hasDateValue(java.util.Collection<FHIRPathNode> nodes)
static boolean
hasDecimalValue(java.util.Collection<FHIRPathNode> nodes)
static boolean
hasIntegerValue(java.util.Collection<FHIRPathNode> nodes)
static boolean
hasNumberValue(java.util.Collection<FHIRPathNode> nodes)
static boolean
hasQuantityValue(java.util.Collection<FHIRPathNode> nodes)
static boolean
hasStringValue(java.util.Collection<FHIRPathNode> nodes)
static boolean
hasSystemValue(java.util.Collection<FHIRPathNode> nodes)
static boolean
hasSystemValue(FHIRPathNode node)
static boolean
hasTemporalValue(java.util.Collection<FHIRPathNode> nodes)
static boolean
hasTemporalValue(FHIRPathNode node)
static boolean
hasTimeValue(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 boolean
isBooleanValue(java.util.Collection<FHIRPathNode> nodes)
static boolean
isCodedElement(Element element)
static boolean
isCodedElementNode(java.util.Collection<FHIRPathNode> nodes)
static boolean
isCodedElementNode(FHIRPathElementNode elementNode)
static boolean
isDecimalValue(java.util.Collection<FHIRPathNode> nodes)
static boolean
isElementNode(java.util.Collection<FHIRPathNode> nodes)
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 collectionstatic boolean
isIntegerValue(java.util.Collection<FHIRPathNode> nodes)
static boolean
isOrdered(java.util.Collection<FHIRPathNode> nodes)
static boolean
isQuantityNode(java.util.Collection<FHIRPathNode> nodes)
static boolean
isResourceNode(java.util.Collection<FHIRPathNode> nodes)
static boolean
isSingleton(java.util.Collection<FHIRPathNode> nodes)
static <T extends FHIRPathNode>
booleanisSingleton(java.util.Collection<FHIRPathNode> nodes, java.lang.Class<T> nodeType)
static boolean
isStringElementNode(java.util.Collection<FHIRPathNode> nodes)
static boolean
isStringElementNode(FHIRPathElementNode elementNode)
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#typesstatic boolean
isStringValue(java.util.Collection<FHIRPathNode> nodes)
static boolean
isSystemValue(java.util.Collection<FHIRPathNode> nodes)
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 collectionstatic boolean
isTypeCompatible(FHIRPathSystemValue leftValue, FHIRPathSystemValue rightValue)
static boolean
isUnordered(java.util.Collection<FHIRPathNode> nodes)
static boolean
isUriElementNode(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 boolean
toBoolean(java.util.Collection<FHIRPathNode> nodes)
static FHIRPathDateValue
toDate(java.util.Collection<FHIRPathNode> nodes)
static FHIRPathDateTimeValue
toDateTime(java.util.Collection<FHIRPathNode> nodes)
static FHIRPathTimeValue
toTime(java.util.Collection<FHIRPathNode> nodes)
static java.lang.String
unescape(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:
FHIRPathException
FHIRPatchException
java.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:
FHIRPathException
FHIRPatchException
java.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:
FHIRPathException
FHIRPatchException
java.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:
FHIRPathException
FHIRPatchException
java.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:
FHIRPathException
FHIRPatchException
java.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
-
-