Class CodeableConcept

All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement, Serializable, 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.ICompositeType

public class CodeableConcept extends Type implements org.hl7.fhir.instance.model.api.ICompositeType
A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text.
See Also:
  • Field Details

    • coding

      protected List<Coding> coding
      A reference to a code defined by a terminology system.
    • text

      protected StringType text
      A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
  • Constructor Details

  • Method Details

    • getCoding

      public List<Coding> getCoding()
      Returns:
      coding (A reference to a code defined by a terminology system.)
    • hasCoding

      public boolean hasCoding()
    • addCoding

      public Coding addCoding()
      Returns:
      coding (A reference to a code defined by a terminology system.)
    • addCoding

    • getTextElement

      Returns:
      text (A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
    • hasTextElement

      public boolean hasTextElement()
    • hasText

      public boolean hasText()
    • setTextElement

      Parameters:
      value - text (A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.). This is the underlying object with id, value and extensions. The accessor "getText" gives direct access to the value
    • getText

      public String getText()
      Returns:
      A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
    • setText

      public CodeableConcept setText(String value)
      Parameters:
      value - A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.
    • listChildren

      protected void listChildren(List<Property> childrenList)
      Overrides:
      listChildren in class Element
    • setProperty

      public void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      setProperty in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • addChild

      public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
      Overrides:
      addChild in class Element
      Throws:
      org.hl7.fhir.exceptions.FHIRException
    • fhirType

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

      Overrides:
      copy in class Type
    • typedCopy

      Specified by:
      typedCopy in class Type
    • equalsDeep

      public boolean equalsDeep(Base other)
      Overrides:
      equalsDeep in class Element
    • equalsShallow

      public boolean equalsShallow(Base other)
      Overrides:
      equalsShallow in class Element
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      Overrides:
      isEmpty in class Element
    • hasCoding

      public boolean hasCoding(String system, String code)