public class Coding extends Type implements IBaseCoding, ICompositeType
| 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 - i.e.
|
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, getExtensionFirstRep, getExtensionsByUrl, getExtensionString, getId, getIdBase, getIdElement, hasExtension, hasExtension, hasId, hasIdElement, setExtension, setId, setIdBase, setIdElementcastToAddress, castToAnnotation, castToAttachment, castToBase64Binary, castToBoolean, castToCode, castToCodeableConcept, castToCoding, castToContactDetail, castToContactPoint, castToContributor, castToDataRequirement, castToDate, castToDateTime, castToDecimal, castToDosage, castToDuration, castToElementDefinition, castToExtension, castToHumanName, castToId, castToIdentifier, castToInstant, castToInteger, castToMarkdown, castToMeta, castToMoney, castToNarrative, castToOid, castToParameterDefinition, castToPeriod, castToPositiveInt, castToQuantity, castToRange, castToRatio, castToReference, castToRelatedArtifact, castToResource, castToSampledData, castToSignature, castToSimpleQuantity, castToString, castToTime, castToTiming, castToTriggerDefinition, castToType, castToUnsignedInt, castToUri, castToUsageContext, castToXhtml, castToXhtmlString, children, clearUserData, compareDeep, compareDeep, compareDeep, compareValues, compareValues, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isMetadataBased, isPrimitive, isResource, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormatCommentsPost, getFormatCommentsPre, hasFormatCommentprotected 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 boolean hasSystem()
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 String getSystem()
getSystem in interface IBaseCodingpublic Coding setSystem(String value)
setSystem in interface 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()
public 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()
public 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 boolean hasCode()
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 String getCode()
getCode in interface IBaseCodingpublic Coding setCode(String value)
setCode in interface 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()
public 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 IBaseCodingpublic Coding setDisplay(String value)
setDisplay in interface 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 - 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 valuepublic boolean hasUserSelectedElement()
public boolean hasUserSelected()
public Coding setUserSelectedElement(BooleanType value)
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 valuepublic boolean getUserSelected()
public Coding setUserSelected(boolean value)
value - Indicates that this coding was chosen by a user directly - i.e. off a pick list of available items (codes or displays).protected void listChildren(List<Property> childrenList)
listChildren in class Elementpublic Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException
getProperty in class ElementFHIRExceptionpublic Base setProperty(int hash, String name, Base value) throws FHIRException
setProperty in class ElementFHIRExceptionpublic Base setProperty(String name, Base value) throws FHIRException
setProperty in class ElementFHIRExceptionpublic Base makeProperty(int hash, String name) throws FHIRException
makeProperty in class ElementFHIRExceptionpublic String[] getTypesForProperty(int hash, String name) throws FHIRException
getTypesForProperty in class ElementFHIRExceptionpublic Base addChild(String name) throws FHIRException
addChild in class ElementFHIRExceptionpublic boolean equalsDeep(Base other)
equalsDeep in class Elementpublic boolean equalsShallow(Base other)
equalsShallow in class ElementCopyright © 2014–2017 University Health Network. All rights reserved.