Class 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
    • 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 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 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
      • 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