Package com.ibm.fhir.search.util
Class ReferenceValue
- java.lang.Object
 - 
- com.ibm.fhir.search.util.ReferenceValue
 
 
- 
public class ReferenceValue extends 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 classReferenceValue.ReferenceType 
- 
Constructor Summary
Constructors Constructor Description ReferenceValue(String targetResourceType, String value, ReferenceValue.ReferenceType type, Integer version) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetTargetResourceType()ReferenceValue.ReferenceTypegetType()StringgetValue()IntegergetVersion() 
 - 
 
- 
- 
Constructor Detail
- 
ReferenceValue
public ReferenceValue(String targetResourceType, String value, ReferenceValue.ReferenceType type, 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 String getTargetResourceType()
- Returns:
 - the type of the resource this reference points to; can be null
 
 
- 
getValue
public 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 Integer getVersion()
- Returns:
 - the version of the target resource as specified in the reference, or null if the reference is not versioned
 
 
 - 
 
 -