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

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

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