public class Substance extends DomainResource
| Modifier and Type | Class and Description |
|---|---|
static class |
Substance.SubstanceIngredientComponent |
static class |
Substance.SubstanceInstanceComponent |
| Modifier and Type | Field and Description |
|---|---|
protected List<CodeableConcept> |
category
A code that classifies the general type of substance.
|
protected CodeableConcept |
code
A code (or set of codes) that identify this substance.
|
protected StringType |
description
A description of the substance - its appearance, handling requirements, and other usage notes.
|
protected List<Identifier> |
identifier
Unique identifier for the substance.
|
protected List<Substance.SubstanceIngredientComponent> |
ingredient
A substance can be composed of other substances.
|
protected List<Substance.SubstanceInstanceComponent> |
instance
Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.
|
static String |
SP_CATEGORY |
static String |
SP_CODE |
static String |
SP_CONTAINERIDENTIFIER |
static String |
SP_EXPIRY |
static String |
SP_IDENTIFIER |
static String |
SP_QUANTITY |
static String |
SP_SUBSTANCE |
contained, extension, modifierExtension, textid, implicitRules, language, meta| Constructor and Description |
|---|
Substance() |
Substance(CodeableConcept code) |
addContained, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getModifierExtension, getText, hasContained, hasExtension, hasModifierExtension, hasText, setTextcopyValues, getId, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, getStructureFhirVersionEnum, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMetasetIdcastToAddress, 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, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, getIdElement, getLanguageElement, getUserData, setId, setUserDataprotected List<Identifier> identifier
protected List<CodeableConcept> category
protected CodeableConcept code
protected StringType description
protected List<Substance.SubstanceInstanceComponent> instance
protected List<Substance.SubstanceIngredientComponent> ingredient
public static final String SP_IDENTIFIER
public static final String SP_CONTAINERIDENTIFIER
public static final String SP_CODE
public static final String SP_QUANTITY
public static final String SP_SUBSTANCE
public static final String SP_EXPIRY
public static final String SP_CATEGORY
public Substance()
public Substance(CodeableConcept code)
public List<Identifier> getIdentifier()
identifier (Unique identifier for the substance.)public boolean hasIdentifier()
public Identifier addIdentifier()
identifier (Unique identifier for the substance.)public Substance addIdentifier(Identifier t)
public List<CodeableConcept> getCategory()
category (A code that classifies the general type of substance. This is used for searching, sorting and display purposes.)public boolean hasCategory()
public CodeableConcept addCategory()
category (A code that classifies the general type of substance. This is used for searching, sorting and display purposes.)public Substance addCategory(CodeableConcept t)
public CodeableConcept getCode()
code (A code (or set of codes) that identify this substance.)public boolean hasCode()
public Substance setCode(CodeableConcept value)
value - code (A code (or set of codes) that identify this substance.)public StringType getDescriptionElement()
description (A description of the substance - its appearance, handling requirements, and other usage notes.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the valuepublic boolean hasDescriptionElement()
public boolean hasDescription()
public Substance setDescriptionElement(StringType value)
value - description (A description of the substance - its appearance, handling requirements, and other usage notes.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the valuepublic String getDescription()
public Substance setDescription(String value)
value - A description of the substance - its appearance, handling requirements, and other usage notes.public List<Substance.SubstanceInstanceComponent> getInstance()
instance (Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.)public boolean hasInstance()
public Substance.SubstanceInstanceComponent addInstance()
instance (Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.)public Substance addInstance(Substance.SubstanceInstanceComponent t)
public List<Substance.SubstanceIngredientComponent> getIngredient()
ingredient (A substance can be composed of other substances.)public boolean hasIngredient()
public Substance.SubstanceIngredientComponent addIngredient()
ingredient (A substance can be composed of other substances.)public Substance addIngredient(Substance.SubstanceIngredientComponent t)
protected void listChildren(List<Property> childrenList)
listChildren in class DomainResourcepublic void setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class DomainResourceorg.hl7.fhir.exceptions.FHIRExceptionpublic Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
addChild in class DomainResourceorg.hl7.fhir.exceptions.FHIRExceptionpublic String fhirType()
fhirType in class DomainResourcepublic Substance copy()
copy in class DomainResourcepublic boolean equalsDeep(Base other)
equalsDeep in class DomainResourcepublic boolean equalsShallow(Base other)
equalsShallow in class DomainResourcepublic boolean isEmpty()
isEmpty in interface org.hl7.fhir.instance.model.api.IBaseisEmpty in class DomainResourcepublic ResourceType getResourceType()
getResourceType in class ResourceCopyright © 2014–2018 University Health Network. All rights reserved.