Class CodingDt
- 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.IQueryParameterType
,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseCoding
,org.hl7.fhir.instance.model.api.IBaseDatatype
,org.hl7.fhir.instance.model.api.ICompositeType
Definition: A reference to a code defined by a terminology system
Requirements: References to codes are very common in healthcare models
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) getCode()
Gets the value(s) for code ().ca.uhn.fhir.model.primitive.CodeDt
Gets the value(s) for code ().Gets the value(s) for display ().ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for display ().Gets the value(s) for system ().ca.uhn.fhir.model.primitive.UriDt
Gets the value(s) for system ().boolean
Gets the value(s) for userSelected ().ca.uhn.fhir.model.primitive.BooleanDt
Gets the value(s) for userSelected ().Gets the value(s) for version ().ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for version ().boolean
isEmpty()
setCode
(ca.uhn.fhir.model.primitive.CodeDt theValue) Sets the value(s) for code ()Sets the value for code ()setDisplay
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for display ()setDisplay
(String theString) Sets the value for display ()setSystem
(ca.uhn.fhir.model.primitive.UriDt theValue) Sets the value(s) for system ()Sets the value for system ()setUserSelected
(boolean theBoolean) Sets the value for userSelected ()setUserSelected
(ca.uhn.fhir.model.primitive.BooleanDt theValue) Sets the value(s) for userSelected ()setVersion
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for version ()setVersion
(String theString) Sets the value for version ()Methods inherited from class ca.uhn.fhir.model.base.composite.BaseCodingDt
getMissing, getQueryParameterQualifier, getValueAsQueryToken, matchesSystemAndCode, matchesToken, setMissing, setValueAsQueryToken
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
-
CodingDt
public CodingDt()Constructor -
CodingDt
Creates a new Coding with the given system and code -
CodingDt
Copy constructor: Creates a new Coding with the system and code copied out of the given coding
-
-
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
-
getSystemElement
Gets the value(s) for system (). creating it if it does not exist. Will not returnnull
.Definition: The identification of the code system that defines the meaning of the symbol in the code.
- Specified by:
getSystemElement
in classca.uhn.fhir.model.base.composite.BaseCodingDt
-
getSystem
Gets the value(s) for system (). creating it if it does not exist. This method may returnnull
.Definition: The identification of the code system that defines the meaning of the symbol in the code.
- Specified by:
getSystem
in interfaceorg.hl7.fhir.instance.model.api.IBaseCoding
-
setSystem
Sets the value(s) for system ()Definition: The identification of the code system that defines the meaning of the symbol in the code.
-
setSystem
Sets the value for system ()Definition: The identification of the code system that defines the meaning of the symbol in the code.
- Specified by:
setSystem
in interfaceorg.hl7.fhir.instance.model.api.IBaseCoding
- Specified by:
setSystem
in classca.uhn.fhir.model.base.composite.BaseCodingDt
-
getVersionElement
Gets the value(s) for version (). creating it if it does not exist. Will not returnnull
.Definition: The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged
- Specified by:
getVersionElement
in classca.uhn.fhir.model.base.composite.BaseCodingDt
-
getVersion
Gets the value(s) for version (). creating it if it does not exist. This method may returnnull
.Definition: The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged
- Specified by:
getVersion
in interfaceorg.hl7.fhir.instance.model.api.IBaseCoding
-
setVersion
Sets the value(s) for version ()Definition: The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged
-
setVersion
Sets the value for version ()Definition: The version of the code system which was used when choosing this code. Note that a well-maintained code system does not need the version reported, because the meaning of codes is consistent across versions. However this cannot consistently be assured. and when the meaning is not guaranteed to be consistent, the version SHOULD be exchanged
- Specified by:
setVersion
in interfaceorg.hl7.fhir.instance.model.api.IBaseCoding
-
getCodeElement
Gets the value(s) for code (). creating it if it does not exist. Will not returnnull
.Definition: A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)
- Specified by:
getCodeElement
in classca.uhn.fhir.model.base.composite.BaseCodingDt
-
getCode
Gets the value(s) for code (). creating it if it does not exist. This method may returnnull
.Definition: A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)
- Specified by:
getCode
in interfaceorg.hl7.fhir.instance.model.api.IBaseCoding
-
setCode
Sets the value(s) for code ()Definition: A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)
-
setCode
Sets the value for code ()Definition: A symbol in syntax defined by the system. The symbol may be a predefined code or an expression in a syntax defined by the coding system (e.g. post-coordination)
- Specified by:
setCode
in interfaceorg.hl7.fhir.instance.model.api.IBaseCoding
- Specified by:
setCode
in classca.uhn.fhir.model.base.composite.BaseCodingDt
-
getDisplayElement
Gets the value(s) for display (). creating it if it does not exist. Will not returnnull
.Definition: A representation of the meaning of the code in the system, following the rules of the system
- Specified by:
getDisplayElement
in classca.uhn.fhir.model.base.composite.BaseCodingDt
-
getDisplay
Gets the value(s) for display (). creating it if it does not exist. This method may returnnull
.Definition: A representation of the meaning of the code in the system, following the rules of the system
- Specified by:
getDisplay
in interfaceorg.hl7.fhir.instance.model.api.IBaseCoding
-
setDisplay
Sets the value(s) for display ()Definition: A representation of the meaning of the code in the system, following the rules of the system
-
setDisplay
Sets the value for display ()Definition: A representation of the meaning of the code in the system, following the rules of the system
- Specified by:
setDisplay
in interfaceorg.hl7.fhir.instance.model.api.IBaseCoding
- Specified by:
setDisplay
in classca.uhn.fhir.model.base.composite.BaseCodingDt
-
getUserSelectedElement
Gets the value(s) for userSelected (). creating it if it does not exist. Will not returnnull
.Definition: Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)
- Specified by:
getUserSelectedElement
in classca.uhn.fhir.model.base.composite.BaseCodingDt
-
getUserSelected
Gets the value(s) for userSelected (). creating it if it does not exist. This method may returnnull
.Definition: Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)
- Specified by:
getUserSelected
in interfaceorg.hl7.fhir.instance.model.api.IBaseCoding
-
setUserSelected
Sets the value(s) for userSelected ()Definition: Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)
-
setUserSelected
Sets the value for userSelected ()Definition: Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays)
- Specified by:
setUserSelected
in interfaceorg.hl7.fhir.instance.model.api.IBaseCoding
-