Package com.ibm.fhir.search.util
Class ReferenceValue
- java.lang.Object
-
- com.ibm.fhir.search.util.ReferenceValue
-
public class ReferenceValue extends java.lang.Object
A reference extracted from a FHIR resource, with processing applied to identify the reference type and target resource type
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReferenceValue.ReferenceType
-
Constructor Summary
Constructors Constructor Description ReferenceValue(java.lang.String targetResourceType, java.lang.String value, ReferenceValue.ReferenceType type, java.lang.Integer version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getTargetResourceType()
ReferenceValue.ReferenceType
getType()
java.lang.String
getValue()
java.lang.Integer
getVersion()
-
-
-
Constructor Detail
-
ReferenceValue
public ReferenceValue(java.lang.String targetResourceType, java.lang.String value, ReferenceValue.ReferenceType type, java.lang.Integer version)
- Parameters:
targetResourceType
- The resource type of the resource being referenced; can be nullvalue
- The value of the reference; the expected format of the value will vary based on the reference typetype
- The ReferenceType of the reference (LITERAL_RELATIVE | LITERAL_ABSOLUTE | LOGICAL | DISPLAY_ONLY | INVALID)version
- The version of the target resource as specified in the reference, or null if the reference is not versioned
-
-
Method Detail
-
getTargetResourceType
public java.lang.String getTargetResourceType()
- Returns:
- the type of the resource this reference points to; can be null
-
getValue
public java.lang.String getValue()
- Returns:
- the value of the reference; the expected format of the value will vary based on the reference type
-
getType
public ReferenceValue.ReferenceType getType()
- Returns:
- the type of the reference itself
-
getVersion
public java.lang.Integer getVersion()
- Returns:
- the version of the target resource as specified in the reference, or null if the reference is not versioned
-
-