public class Coding extends Type implements org.hl7.fhir.instance.model.api.IBaseCoding, org.hl7.fhir.instance.model.api.ICompositeType, ICoding
| Modifier and Type | Field and Description |
|---|---|
protected CodeType |
code
A symbol in syntax defined by the system.
|
protected StringType |
display
A representation of the meaning of the code in the system, following the rules of the system.
|
protected UriType |
system
The identification of the code system that defines the meaning of the symbol in the code.
|
protected BooleanType |
userSelected
Indicates that this coding was chosen by a user directly - e.g.
|
protected StringType |
version
The version of the code system which was used when choosing this code.
|
| Constructor and Description |
|---|
Coding()
Constructor
|
Coding(String theSystem,
String theCode,
String theDisplay)
Convenience constructor
|
addExtension, addExtension, addExtension, copyValues, getExtension, getExtensionByUrl, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, isDisallowExtensions, noExtensions, removeExtension, setDisallowExtensions, setExtension, setId, setIdBase, setIdElementcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCanonical, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExpression, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMarketingStatus, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPopulation, castToPositiveInt, castToProdCharacteristic, castToProductShelfLife, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToSubstanceAmount, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUrl, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected UriType system
protected StringType version
protected CodeType code
protected StringType display
protected BooleanType userSelected
public Coding()
public Coding(String theSystem, String theCode, String theDisplay)
theSystem - The code systemtheCode - The codetheDisplay - The human readable displaypublic UriType getSystemElement()
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 valuepublic boolean hasSystemElement()
public Coding setSystemElement(UriType value)
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 valuepublic Coding setSystem(String value)
setSystem in interface org.hl7.fhir.instance.model.api.IBaseCodingvalue - The identification of the code system that defines the meaning of the symbol in the code.public StringType getVersionElement()
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 valuepublic boolean hasVersionElement()
public boolean hasVersion()
hasVersion in interface ICodingpublic Coding setVersionElement(StringType value)
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 valuepublic String getVersion()
getVersion in interface ICodingpublic Coding setVersion(String value)
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.public CodeType getCodeElement()
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 valuepublic boolean hasCodeElement()
public Coding setCodeElement(CodeType value)
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 valuepublic Coding setCode(String value)
setCode in interface org.hl7.fhir.instance.model.api.IBaseCodingvalue - 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).public StringType getDisplayElement()
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 valuepublic boolean hasDisplayElement()
public boolean hasDisplay()
hasDisplay in interface ICodingpublic Coding setDisplayElement(StringType value)
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 valuepublic String getDisplay()
getDisplay in interface org.hl7.fhir.instance.model.api.IBaseCodinggetDisplay in interface ICodingpublic Coding setDisplay(String value)
setDisplay in interface org.hl7.fhir.instance.model.api.IBaseCodingvalue - A representation of the meaning of the code in the system, following the rules of the system.public BooleanType getUserSelectedElement()
userSelected (Indicates that this coding was chosen by a user directly - e.g. 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 valuepublic boolean hasUserSelectedElement()
public boolean hasUserSelected()
public Coding setUserSelectedElement(BooleanType value)
value - userSelected (Indicates that this coding was chosen by a user directly - e.g. 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 valuepublic boolean getUserSelected()
public Coding setUserSelected(boolean value)
value - Indicates that this coding was chosen by a user directly - e.g. off a pick list of available items (codes or displays).protected void listChildren(List<Property> children)
listChildren in class Elementpublic Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
getNamedProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
getProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
makeProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
getTypesForProperty in class Elementorg.hl7.fhir.exceptions.FHIRExceptionpublic void copyValues(Coding dst)
public boolean equalsDeep(Base other_)
equalsDeep in class Elementpublic boolean equalsShallow(Base other_)
equalsShallow in class Elementpublic boolean isEmpty()
public boolean supportsVersion()
supportsVersion in interface ICodingpublic boolean supportsDisplay()
supportsDisplay in interface ICodingCopyright © 2014–2021 Health Level 7. All rights reserved.