Class AssigningAuthority

  • All Implemented Interfaces:
    Serializable
    Direct Known Subclasses:
    CXiAssigningAuthority

    public class AssigningAuthority
    extends Hl7v2Based<org.openehealth.ipf.commons.ihe.xds.core.metadata.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:
    Serialized Form
    • Constructor Detail

      • AssigningAuthority

        public AssigningAuthority()
      • AssigningAuthority

        public AssigningAuthority​(org.openehealth.ipf.commons.ihe.xds.core.metadata.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 Detail

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

        public int hashCode()
        Overrides:
        hashCode in class Object