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
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:
-
Constructor Summary
ConstructorDescriptionConstructorCodeableConceptDt
(String theSystem, String theCode) Constructor which creates a CodeableConceptDt with one coding repetition, containing the given system and code -
Method Summary
Modifier and TypeMethodDescriptionAdds and returns a new value for coding ()Adds a given new value for coding ()<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) Gets the value(s) for coding ().Gets the first repetition for coding (), creating it if it does not already exist.getText()
Gets the value(s) for text ().ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for text ().boolean
isEmpty()
Sets the value(s) for coding ()setText
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for text ()Sets the value for text ()Methods inherited from class ca.uhn.fhir.model.api.BaseIdentifiableElement
getElementSpecificId, getId, setElementSpecificId, setId, setId
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, isBaseEmpty, setUserData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
-
Constructor Details
-
CodeableConceptDt
public CodeableConceptDt()Constructor -
CodeableConceptDt
Constructor which creates a CodeableConceptDt with one coding repetition, containing the given system and code
-
-
Method Details
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.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 interfaceca.uhn.fhir.model.api.ICompositeElement
-
getCoding
Gets the value(s) for coding (). creating it if it does not exist. Will not returnnull
.Definition: A reference to a code defined by a terminology system
-
setCoding
Sets the value(s) for coding ()Definition: A reference to a code defined by a terminology system
-
addCoding
Adds and returns a new value for coding ()Definition: A reference to a code defined by a terminology system
-
addCoding
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 benull
)
-
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
Gets the value(s) for text (). creating it if it does not exist. Will not returnnull
.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
Gets the value(s) for text (). creating it if it does not exist. This method may returnnull
.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
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
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
-