Class Name

All Implemented Interfaces:
Serializable

public class Name extends NameBaseType
The class Name contains all fields for different name parts such as given or family. This class also provides mapping methods to other data types.
See Also:
  • Constructor Details

    • Name

      public Name()
      Instantiates a new instance. Default constructor.
    • Name

      public Name(NameBaseType baseType)
      Instantiates a new instance from the given base type.
      Parameters:
      baseType - the base type
    • Name

      public Name(EN hl7CdaR2Value)
      Instantiates a new instance from the given HL7 CDA R2 data type.
      Parameters:
      hl7CdaR2Value - the HL7 CDA R2 data type
    • Name

      public Name(ON hl7CdaR2Value)
      Instantiates a new instance from the given HL7 CDA R2 data type.
      Parameters:
      hl7CdaR2Value - the HL7 CDA R2 data type
    • Name

      public Name(PN hl7CdaR2Value)
      Instantiates a new instance from the given HL7 CDA R2 data type.
      Parameters:
      hl7CdaR2Value - the HL7 CDA R2 data type
    • Name

      public Name(org.openehealth.ipf.commons.ihe.xds.core.metadata.Name<?> ipfName)
      Instantiates a new instance from the given IPF name type.
      Parameters:
      ipfName - the ipf name
    • Name

      public Name(String name)
      Instantiates a new instance from the given name.
      Parameters:
      name - the name
  • Method Details

    • createHl7CdaR2En

      public static EN createHl7CdaR2En(NameBaseType baseType)
      Creates the HL7 CDA R2 data type from the given base type.
      Parameters:
      baseType - the base type
      Returns:
      the HL7 CDA R2 data typed value
    • createHl7CdaR2On

      public static ON createHl7CdaR2On(NameBaseType baseType)
      Creates the HL7 CDA R2 data type from the given base type.
      Parameters:
      baseType - the base type
      Returns:
      the HL7 CDA R2 data typed value
    • createHl7CdaR2Pn

      public static PN createHl7CdaR2Pn(NameBaseType baseType)
      Creates the HL7 CDA R2 data type from the given base type.
      Parameters:
      baseType - the base type
      Returns:
      the HL7 CDA R2 data typed value
    • createHl7CdaR2Tn

      public static TN createHl7CdaR2Tn(NameBaseType baseType)
      Creates the HL7 CDA R2 data type from the given base type.
      Parameters:
      baseType - the base type
      Returns:
      the HL7 CDA R2 data typed value
    • createNameBaseType

      public static NameBaseType createNameBaseType(EN hl7CdaR2Value)
      Creates the base type from the given HL7 CDA R2 value.
      Parameters:
      hl7CdaR2Value - the HL7 CDA R2 value
      Returns:
      the base type
    • getIpfXpnName

      public static org.openehealth.ipf.commons.ihe.xds.core.metadata.XpnName getIpfXpnName(PN hl7CdaR2Value)
    • getHl7CdaR2En

      public EN getHl7CdaR2En()
      Gets the HL7 CDA R2 data type from the current instance.
      Returns:
      the HL7 CDA R2 data type
    • getHl7CdaR2Pn

      public PN getHl7CdaR2Pn()
      Gets the HL7 CDA R2 data type from the current instance.
      Returns:
      the HL7 CDA R2 data type
    • getHl7CdaR2Tn

      public TN getHl7CdaR2Tn()
      Gets the HL7 CDA R2 data type from the current instance.
      Returns:
      the HL7 CDA R2 data type
    • set

      public void set(NameBaseType baseType)
      Sets the fields of the current instance by the given base type.
      Parameters:
      baseType - the base type
    • set

      public void set(EN hl7CdaR2Value)
      Sets the fields of the current instance by the given HL7 CDA R2 data type.
      Parameters:
      hl7CdaR2Value - the HL7 CDA R2 data typed value