Class Identificator

All Implemented Interfaces:
Serializable

public class Identificator extends IdentificatorBaseType
The class Identificator contains all necessary fields for an id. This class also provides mapping methods to other data types.
See Also:
  • Constructor Details

    • Identificator

      public Identificator()
      Instantiates a new identificator. Default constructor.
    • Identificator

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

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

      public Identificator(String root)
      Instantiates a new instance from the given root.
      Parameters:
      root - the root
    • Identificator

      public Identificator(String root, String extension)
      Instantiates a new instance from the given root and extension.
      Parameters:
      root - the root
      extension - the extension
    • Identificator

      public Identificator(org.openehealth.ipf.commons.ihe.xds.core.metadata.Identifiable id)
  • Method Details

    • createHl7CdaR2Ii

      public static II createHl7CdaR2Ii(IdentificatorBaseType 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
    • createIdentificatorBaseType

      public static IdentificatorBaseType createIdentificatorBaseType(II hl7CdaR2Value)
      Creates the base type from the given HL7 CDA R2 value.
      Parameters:
      hl7CdaR2Value - the HL7 CDA R2 value
      Returns:
      the base type
    • getIdentificator

      public static Identificator getIdentificator(List<II> iiList, String root)
      Gets the identificator with the given root id from a list of ids.
      Parameters:
      iiList - ii list
      root - root
      Returns:
      the identificator
    • getIdentificatorList

      public static List<Identificator> getIdentificatorList(List<II> iiList)
      Gets a list of identificators from a list of ids.
      Parameters:
      iiList - ii list
      Returns:
      the list of identificator
    • getHl7CdaR2Ii

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

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

      public void set(II 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