Class CodeableConceptDt
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.api.BaseIdentifiableElement
-
- ca.uhn.fhir.model.dstu2.composite.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 Summary
Constructors Constructor Description CodeableConceptDt()ConstructorCodeableConceptDt(String theSystem, String theCode)Constructor which creates a CodeableConceptDt with one coding repetition, containing the given system and code
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CodingDtaddCoding()Adds and returns a new value for coding ()CodeableConceptDtaddCoding(CodingDt theValue)Adds a given new value for coding ()<T extends ca.uhn.fhir.model.api.IElement>
List<T>getAllPopulatedChildElementsOfType(Class<T> theType)List<CodingDt>getCoding()Gets the value(s) for coding ().CodingDtgetCodingFirstRep()Gets the first repetition for coding (), creating it if it does not already exist.StringgetText()Gets the value(s) for text ().ca.uhn.fhir.model.primitive.StringDtgetTextElement()Gets the value(s) for text ().booleanisEmpty()CodeableConceptDtsetCoding(List<CodingDt> theValue)Sets the value(s) for coding ()CodeableConceptDtsetText(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for text ()CodeableConceptDtsetText(String theString)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
-
-
-
-
Constructor Detail
-
CodeableConceptDt
public CodeableConceptDt()
Constructor
-
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:
isEmptyin 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:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getCoding
public List<CodingDt> 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
public CodeableConceptDt setCoding(List<CodingDt> theValue)
Sets the value(s) for coding ()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 benull)
-
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 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
public String 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
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
-
-