Class CodeType

All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement, Externalizable, Serializable, Comparable<CodeType>, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseDatatype, org.hl7.fhir.instance.model.api.IBaseElement, org.hl7.fhir.instance.model.api.IBaseHasExtensions, org.hl7.fhir.instance.model.api.IPrimitiveType<String>

public class CodeType extends StringType implements Comparable<CodeType>
Primitive type "code" in FHIR, when not bound to an enumerated list of codes
See Also:
Serialized Form
  • Constructor Details

  • Method Details

    • compareTo

      public int compareTo(CodeType theCode)
      Specified by:
      compareTo in interface Comparable<CodeType>
    • parse

      protected String parse(String theValue)
      Description copied from class: PrimitiveType
      Subclasses must override to convert an encoded representation of this datatype into a "coerced" one
      Overrides:
      parse in class StringType
      Parameters:
      theValue - Will not be null
      Returns:
      May return null if the value does not correspond to anything
    • encode

      protected String encode(String theValue)
      Description copied from class: PrimitiveType
      Subclasses must override to convert a "coerced" value into an encoded one.
      Overrides:
      encode in class StringType
      Parameters:
      theValue - Will not be null
      Returns:
      May return null if the value does not correspond to anything
    • copy

      public CodeType copy()
      Overrides:
      copy in class StringType
    • fhirType

      public String fhirType()
      Specified by:
      fhirType in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      fhirType in class StringType