Class ReferenceId

  • All Implemented Interfaces:
    Serializable

    public class ReferenceId
    extends Hl7v2Based<CX>
    Represents a reference ID.

    This class is derived from an HL7v2 CX data type ("CXi" in IHE ITI TF-3).

    All members of this class are allowed to be null. When transforming to HL7 this indicates that the values are empty. Trailing empty values are removed from the HL7 string.

    Author:
    Jens Riemschneider, Dmytro Rud
    See Also:
    Serialized Form
    • Constructor Detail

      • ReferenceId

        public ReferenceId()
        Constructs a reference ID.
      • ReferenceId

        public ReferenceId​(CX cx)
        Constructs a reference ID.
      • ReferenceId

        public ReferenceId​(String id,
                           CXiAssigningAuthority assigningAuthority,
                           String idTypeCode)
        Constructs a reference ID.
        Parameters:
        id - the value of the id (CX.1).
        assigningAuthority - the assigning authority (CX.4).
        idTypeCode - the ID type code (CX.5).
    • Method Detail

      • getId

        public String getId()
        Returns:
        the value of the id (CX.1).
      • setId

        public void setId​(String id)
        Parameters:
        id - the value of the id (CX.1).
      • getAssigningAuthority

        public CXiAssigningAuthority getAssigningAuthority()
        Returns:
        the assigning authority (CX.4).
      • setAssigningAuthority

        public void setAssigningAuthority​(CXiAssigningAuthority assigningAuthority)
        Parameters:
        assigningAuthority - the assigning authority (CX.4).
      • getIdTypeCode

        public String getIdTypeCode()
        Returns:
        ID type code (CX.5).
      • setIdTypeCode

        public void setIdTypeCode​(String idTypeCode)
        Parameters:
        idTypeCode - ID type code (CX.5).
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object