
Package org.hl7.fhir.dstu2.model
Class Coding
java.lang.Object
org.hl7.fhir.dstu2.model.Base
org.hl7.fhir.dstu2.model.Element
org.hl7.fhir.dstu2.model.Type
org.hl7.fhir.dstu2.model.Coding
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement,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.IBaseElement,org.hl7.fhir.instance.model.api.IBaseHasExtensions,org.hl7.fhir.instance.model.api.ICompositeType
public class Coding
extends Type
implements org.hl7.fhir.instance.model.api.IBaseCoding, org.hl7.fhir.instance.model.api.ICompositeType
A reference to a code defined by a terminology system.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CodeTypeA symbol in syntax defined by the system.protected StringTypeA representation of the meaning of the code in the system, following the rules of the system.protected UriTypeThe identification of the code system that defines the meaning of the symbol in the code.protected BooleanTypeIndicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays).protected StringTypeThe version of the code system which was used when choosing this code. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()booleanequalsDeep(Base other) booleanequalsShallow(Base other) fhirType()getCode()booleanbooleanhasCode()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisEmpty()protected voidlistChildren(List<Property> childrenList) setCodeElement(CodeType value) setDisplay(String value) setDisplayElement(StringType value) voidsetProperty(String name, Base value) setSystemElement(UriType value) setUserSelected(boolean value) setVersion(String value) setVersionElement(StringType value) protected CodingMethods inherited from class org.hl7.fhir.dstu2.model.Element
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionsByUrl, getExtensionString, getId, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setId, setIdElementMethods inherited from class org.hl7.fhir.dstu2.model.Base
castToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactPoint, castToDate, castToDateTime, castToDecimal, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToUnsignedInt, castToUri, children, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasType, hasUserData, isMetadataBased, isPrimitive, listChildrenByName, primitiveValue, setUserData, setUserDataINNMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseElement
getUserData, setUserData
-
Field Details
-
system
The identification of the code system that defines the meaning of the symbol in the code. -
version
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. -
code
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). -
display
A representation of the meaning of the code in the system, following the rules of the system. -
userSelected
Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays).
-
-
Constructor Details
-
Coding
public Coding()
-
-
Method Details
-
getSystemElement
- Returns:
system(The identification of the code system that defines the meaning of the symbol in the code.). This is the underlying object with id, value and extensions. The accessor "getSystem" gives direct access to the value
-
hasSystemElement
-
hasSystem
-
setSystemElement
- Parameters:
value-system(The identification of the code system that defines the meaning of the symbol in the code.). This is the underlying object with id, value and extensions. The accessor "getSystem" gives direct access to the value
-
getSystem
- Specified by:
getSystemin interfaceorg.hl7.fhir.instance.model.api.IBaseCoding- Returns:
- The identification of the code system that defines the meaning of the symbol in the code.
-
setSystem
- Specified by:
setSystemin interfaceorg.hl7.fhir.instance.model.api.IBaseCoding- Parameters:
value- The identification of the code system that defines the meaning of the symbol in the code.
-
getVersionElement
- Returns:
version(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.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
-
hasVersionElement
-
hasVersion
-
setVersionElement
- Parameters:
value-version(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.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
-
getVersion
- Specified by:
getVersionin interfaceorg.hl7.fhir.instance.model.api.IBaseCoding- Returns:
- 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
- Specified by:
setVersionin interfaceorg.hl7.fhir.instance.model.api.IBaseCoding- Parameters:
value- 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.
-
getCodeElement
- Returns:
code(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).). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
-
hasCodeElement
-
hasCode
-
setCodeElement
- Parameters:
value-code(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).). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
-
getCode
- Specified by:
getCodein interfaceorg.hl7.fhir.instance.model.api.IBaseCoding- Returns:
- 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
- Specified by:
setCodein interfaceorg.hl7.fhir.instance.model.api.IBaseCoding- Parameters:
value- 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).
-
getDisplayElement
- Returns:
display(A representation of the meaning of the code in the system, following the rules of the system.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the value
-
hasDisplayElement
-
hasDisplay
-
setDisplayElement
- Parameters:
value-display(A representation of the meaning of the code in the system, following the rules of the system.). This is the underlying object with id, value and extensions. The accessor "getDisplay" gives direct access to the value
-
getDisplay
- Specified by:
getDisplayin interfaceorg.hl7.fhir.instance.model.api.IBaseCoding- Returns:
- A representation of the meaning of the code in the system, following the rules of the system.
-
setDisplay
- Specified by:
setDisplayin interfaceorg.hl7.fhir.instance.model.api.IBaseCoding- Parameters:
value- A representation of the meaning of the code in the system, following the rules of the system.
-
getUserSelectedElement
- Returns:
userSelected(Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays).). This is the underlying object with id, value and extensions. The accessor "getUserSelected" gives direct access to the value
-
hasUserSelectedElement
-
hasUserSelected
-
setUserSelectedElement
- Parameters:
value-userSelected(Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays).). This is the underlying object with id, value and extensions. The accessor "getUserSelected" gives direct access to the value
-
getUserSelected
- Specified by:
getUserSelectedin interfaceorg.hl7.fhir.instance.model.api.IBaseCoding- Returns:
- Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays).
-
setUserSelected
- Specified by:
setUserSelectedin interfaceorg.hl7.fhir.instance.model.api.IBaseCoding- Parameters:
value- Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays).
-
listChildren
- Overrides:
listChildrenin classElement
-
setProperty
- Overrides:
setPropertyin classElement- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
-
fhirType
-
copy
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeepin classElement
-
equalsShallow
- Overrides:
equalsShallowin classElement
-
isEmpty
-