Class Organization

  • All Implemented Interfaces:
    Serializable

    public class Organization
    extends Hl7v2Based<XON>
    Represents an organization.

    This class contains members from the HL7v2.5 XON data type.

    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

      • Organization

        public Organization()
        Constructs the organization.
      • Organization

        public Organization​(XON xon)
        Constructs the organization.
        Parameters:
        xon - parsed HL7 v2 element.
      • Organization

        public Organization​(String organizationName)
        Constructs the organization.
        Parameters:
        organizationName - the name of the organization (XON.1).
      • Organization

        public Organization​(String organizationName,
                            String idNumber,
                            AssigningAuthority assigningAuthority)
        Constructs the organization.
        Parameters:
        organizationName - the name of the organization (XON.1).
        idNumber - the id of the organization (XON.10).
        assigningAuthority - the assigning authority (XON.6).
    • Method Detail

      • getAssigningAuthority

        public AssigningAuthority getAssigningAuthority()
        Returns:
        the assigning authority (XON.6).
      • setAssigningAuthority

        public void setAssigningAuthority​(AssigningAuthority assigningAuthority)
        Parameters:
        assigningAuthority - the assigning authority (XON.6).
      • getOrganizationName

        public String getOrganizationName()
        Returns:
        the name of the organization (XON.1).
      • setOrganizationName

        public void setOrganizationName​(String organizationName)
        Parameters:
        organizationName - the name of the organization (XON.1).
      • getIdNumber

        public String getIdNumber()
        Returns:
        the id of the organization (XON.10).
      • setIdNumber

        public void setIdNumber​(String idNumber)
        Parameters:
        idNumber - the id of the organization (XON.10).
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object