Class Name<T extends Composite>

  • All Implemented Interfaces:
    Direct Known Subclasses:
    XcnName, XpnName

    public abstract class Name<T extends Composite>
    extends Hl7v2Based<T>
    This class represents a name.

    It is derived from the HL7v2 data types XPN and XCN. It only contains naming related fields of these data types.

    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.

    Jens Riemschneider, Dmytro Rud
    See Also:
    Serialized Form
    • Constructor Detail

      • Name

        public Name()
      • Name

        protected Name​(T hapiObject)
    • Method Detail

      • copyFrom

        protected void copyFrom​(Name name)
        Copy all name properties from the given name to this object.
        name -
      • getFamilyName

        public abstract String getFamilyName()
      • getGivenName

        public abstract String getGivenName()
      • getSecondAndFurtherGivenNames

        public abstract String getSecondAndFurtherGivenNames()
      • getSuffix

        public abstract String getSuffix()
      • getPrefix

        public abstract String getPrefix()
      • getDegree

        public abstract String getDegree()
      • setFamilyName

        public abstract void setFamilyName​(String value)
      • setGivenName

        public abstract void setGivenName​(String value)
      • setSecondAndFurtherGivenNames

        public abstract void setSecondAndFurtherGivenNames​(String value)
      • setSuffix

        public abstract void setSuffix​(String value)
      • setPrefix

        public abstract void setPrefix​(String value)
      • setDegree

        public abstract void setDegree​(String value)
      • hashCode

        public int hashCode()
        hashCode in class Object