Class AssigningAuthority

java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based<Hl7v2Based.Holder<HD>>
org.openehealth.ipf.commons.ihe.xds.core.metadata.AssigningAuthority
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CXiAssigningAuthority

public class AssigningAuthority extends Hl7v2Based<Hl7v2Based.Holder<HD>>
Represents an authority that assigns IDs.

This class is based on the HL7 HD data type.

Note that most assigning authorities used in XSD only allow the definition of the universal ID. The ID type must be ISO and the namespace ID has to be empty. The constructor AssigningAuthority(String) can be used to create such authorities.

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

    • AssigningAuthority

      public AssigningAuthority()
    • AssigningAuthority

      public AssigningAuthority(Hl7v2Based.Holder<HD> hdHolder)
    • AssigningAuthority

      public AssigningAuthority(HD hd)
    • AssigningAuthority

      public AssigningAuthority(String universalId, String universalIdType)
      Constructs an assigning authority.
      Parameters:
      universalId - the universal ID (HD.2).
      universalIdType - the type of the universal ID (HD.3).
    • AssigningAuthority

      public AssigningAuthority(String universalId)
      Constructs an assigning authority that complies with the rules of the XDS profile.
      Parameters:
      universalId - the universal ID (HD.2).
    • AssigningAuthority

      public AssigningAuthority(Oid universalId)
      Constructs an assigning authority that complies with the rules of the XDS profile.
      Parameters:
      universalId - the universal ID (HD.2).
  • Method Details

    • getUniversalId

      public String getUniversalId()
      Returns:
      the universal ID (HD.2).
    • setUniversalId

      public void setUniversalId(String universalId)
      Parameters:
      universalId - the universal ID (HD.2).
    • getUniversalIdType

      public String getUniversalIdType()
      Returns:
      the universal type ID (HD.3).
    • setUniversalIdType

      public void setUniversalIdType(String universalIdType)
      Parameters:
      universalIdType - the universal type ID (HD.3).
    • 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