Class Code

  • All Implemented Interfaces:
    Serializable

    public class Code
    extends Hl7v2Based<CE>
    Represents a code.

    All members of this class are allowed to be null.

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

      • Code

        public Code()
        Constructs a code.
      • Code

        public Code​(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 Detail

      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object