java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based<XCN>
org.openehealth.ipf.commons.ihe.xds.core.metadata.Person
All Implemented Interfaces:
Serializable

public class Person extends Hl7v2Based<XCN>
Represents an identifiable person.

This class contains members from the HL7v2 XCN data type. The XDS profile imposes some limitations on the XCN type. Most notably the XCN.9 component has the same restrictions as the CX.4 component (as described in Identifiable. All 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

    • Person

      public Person()
      Constructs a person.
    • Person

      public Person(XCN xcn)
      Constructs a person.
    • Person

      public Person(Identifiable id, Name name)
      Constructs a person.
      Parameters:
      id - the id of the person (XCN.1 and XCN.9).
      name - the name of the person (XCN.2.1, XCN.3, XCN.4, XCN.5, XCN.6, XCN.7).
  • Method Details

    • getId

      public Identifiable getId()
      Returns:
      the id of the person (XCN.1 and XCN.9).
    • setId

      public void setId(Identifiable id)
      Parameters:
      id - the id of the person (XCN.1 and XCN.9).
    • getName

      public Name getName()
      Returns:
      the name of the person (XCN.2.1, XCN.3, XCN.4, XCN.5, XCN.6, XCN.7).
    • setName

      public void setName(Name name)
      Parameters:
      name - the name of the person (XCN.2.1, XCN.3, XCN.4, XCN.5, XCN.6, XCN.7).
    • 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