Class CodeableConceptDt

  • All Implemented Interfaces:
    ca.uhn.fhir.model.api.ICompositeDatatype, ca.uhn.fhir.model.api.ICompositeElement, ca.uhn.fhir.model.api.IDatatype, ca.uhn.fhir.model.api.IElement, ca.uhn.fhir.model.api.IIdentifiableElement, ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions, Serializable, org.hl7.fhir.instance.model.api.IBase, org.hl7.fhir.instance.model.api.IBaseDatatype, org.hl7.fhir.instance.model.api.ICompositeType
    Direct Known Subclasses:
    BoundCodeableConceptDt

    public class CodeableConceptDt
    extends ca.uhn.fhir.model.api.BaseIdentifiableElement
    implements ca.uhn.fhir.model.api.ICompositeDatatype
    HAPI/FHIR CodeableConceptDt Datatype ()

    Definition: A concept that may be defined by a formal reference to a terminology or ontology or may be provided by text

    Requirements: This is a common pattern in healthcare - a concept that may be defined by one or more codes from formal definitions including LOINC and SNOMED CT, and/or defined by the provision of text that captures a human sense of the concept

    See Also:
    Serialized Form
    • Constructor Detail

      • CodeableConceptDt

        public CodeableConceptDt​(String theSystem,
                                 String theCode)
        Constructor which creates a CodeableConceptDt with one coding repetition, containing the given system and code
    • Method Detail

      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface org.hl7.fhir.instance.model.api.IBase
      • getAllPopulatedChildElementsOfType

        public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType​(Class<T> theType)
        Specified by:
        getAllPopulatedChildElementsOfType in interface ca.uhn.fhir.model.api.ICompositeElement
      • getCoding

        public List<CodingDtgetCoding()
        Gets the value(s) for coding (). creating it if it does not exist. Will not return null.

        Definition: A reference to a code defined by a terminology system

      • addCoding

        public CodingDt addCoding()
        Adds and returns a new value for coding ()

        Definition: A reference to a code defined by a terminology system

      • addCoding

        public CodeableConceptDt addCoding​(CodingDt theValue)
        Adds a given new value for coding ()

        Definition: A reference to a code defined by a terminology system

        Parameters:
        theValue - The coding to add (must not be null)
      • getCodingFirstRep

        public CodingDt getCodingFirstRep()
        Gets the first repetition for coding (), creating it if it does not already exist.

        Definition: A reference to a code defined by a terminology system

      • getTextElement

        public ca.uhn.fhir.model.primitive.StringDt getTextElement()
        Gets the value(s) for text (). creating it if it does not exist. Will not return null.

        Definition: 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

      • getText

        public String getText()
        Gets the value(s) for text (). creating it if it does not exist. This method may return null.

        Definition: 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 CodeableConceptDt setText​(ca.uhn.fhir.model.primitive.StringDt theValue)
        Sets the value(s) for text ()

        Definition: 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 CodeableConceptDt setText​(String theString)
        Sets the value for text ()

        Definition: 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