public class UsageContext extends Type implements ICompositeType
| Modifier and Type | Field and Description |
|---|---|
protected Coding |
code
A code that identifies the type of context being specified by this usage context.
|
protected Type |
value
A value that defines the context specified in this context of use.
|
| Constructor and Description |
|---|
UsageContext()
Constructor
|
UsageContext(Coding code,
Type value)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Base |
addChild(String name) |
UsageContext |
copy() |
boolean |
equalsDeep(Base other) |
boolean |
equalsShallow(Base other) |
String |
fhirType() |
Coding |
getCode() |
Base[] |
getProperty(int hash,
String name,
boolean checkValid) |
String[] |
getTypesForProperty(int hash,
String name) |
Type |
getValue() |
CodeableConcept |
getValueCodeableConcept() |
Quantity |
getValueQuantity() |
Range |
getValueRange() |
boolean |
hasCode() |
boolean |
hasValue() |
boolean |
hasValueCodeableConcept() |
boolean |
hasValueQuantity() |
boolean |
hasValueRange() |
boolean |
isEmpty() |
protected void |
listChildren(List<Property> childrenList) |
Base |
makeProperty(int hash,
String name) |
UsageContext |
setCode(Coding value) |
Base |
setProperty(int hash,
String name,
Base value) |
Base |
setProperty(String name,
Base value) |
UsageContext |
setValue(Type value) |
protected UsageContext |
typedCopy() |
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 Coding code
public UsageContext()
public UsageContext(Coding code, Type value)
public Coding getCode()
code (A code that identifies the type of context being specified by this usage context.)public boolean hasCode()
public UsageContext setCode(Coding value)
value - code (A code that identifies the type of context being specified by this usage context.)public Type getValue()
value (A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.)public CodeableConcept getValueCodeableConcept() throws FHIRException
value (A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.)FHIRExceptionpublic boolean hasValueCodeableConcept()
public Quantity getValueQuantity() throws FHIRException
value (A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.)FHIRExceptionpublic boolean hasValueQuantity()
public Range getValueRange() throws FHIRException
value (A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.)FHIRExceptionpublic boolean hasValueRange()
public boolean hasValue()
public UsageContext setValue(Type value)
value - value (A value that defines the context specified in this context of use. The interpretation of the value is defined by the code.)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 UsageContext copy()
protected UsageContext typedCopy()
public boolean equalsDeep(Base other)
equalsDeep in class Elementpublic boolean equalsShallow(Base other)
equalsShallow in class ElementCopyright © 2014–2017 University Health Network. All rights reserved.