java.lang.Object
org.openehealth.ipf.commons.ihe.xds.core.metadata.Hl7v2Based<ca.uhn.hl7v2.model.v25.datatype.CE>
org.openehealth.ipf.commons.ihe.xds.core.metadata.Code
All Implemented Interfaces:
Serializable

public class Code extends Hl7v2Based<ca.uhn.hl7v2.model.v25.datatype.CE>
Represents a code.

All members of this class are allowed to be null.

Author:
Jens Riemschneider, Dmytro Rud
See Also:
  • Constructor Details

    • Code

      public Code()
      Constructs a code.
    • Code

      public Code(ca.uhn.hl7v2.model.v25.datatype.CE ce)
      Constructs a code.
    • Code

      public Code(String code, LocalizedString displayName, String schemeName)
      Constructs a code.
      Parameters:
      code - the value of the code.
      displayName - the display name of the code.
      schemeName - the schema of the code.
  • Method Details

    • parse

      public static Code parse(String hl7String)
      Parses an HL7v2 string into a Code object.
      Parameters:
      hl7String - HL7v2 representation of a Code object.
      Returns:
      parsed Code object.
    • getCode

      public String getCode()
      Returns:
      the value of this code.
    • setCode

      public void setCode(String code)
      Parameters:
      code - the value of this code.
    • getDisplayName

      public LocalizedString getDisplayName()
      Returns:
      the display name of this code.
    • setDisplayName

      public void setDisplayName(LocalizedString displayName)
      Parameters:
      displayName - the display name of this code.
    • getSchemeName

      public String getSchemeName()
      Returns:
      the schema of this code.
    • setSchemeName

      public void setSchemeName(String schemeName)
      Parameters:
      schemeName - the schema of this code.
    • 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