java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based<CX>
org.openehealth.ipf.commons.ihe.xds.core.metadata.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:
  • Field Details

  • Constructor Details

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

    • 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).
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object