Class 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
    • 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 null
        value - The value of the reference; the expected format of the value will vary based on the reference type
        type - 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
      • getVersion

        public Integer getVersion()
        Returns:
        the version of the target resource as specified in the reference, or null if the reference is not versioned