public class Substance extends DomainResource
| Modifier and Type | Class and Description |
|---|---|
static class |
Substance.FHIRSubstanceStatus |
static class |
Substance.FHIRSubstanceStatusEnumFactory |
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.
|
static ca.uhn.fhir.rest.gclient.TokenClientParam |
CATEGORY
Fluent Client search parameter constant for category
|
protected CodeableConcept |
code
A code (or set of codes) that identify this substance.
|
static ca.uhn.fhir.rest.gclient.TokenClientParam |
CODE
Fluent Client search parameter constant for code
|
static ca.uhn.fhir.rest.gclient.TokenClientParam |
CONTAINER_IDENTIFIER
Fluent Client search parameter constant for container-identifier
|
protected StringType |
description
A description of the substance - its appearance, handling requirements, and other usage notes.
|
static ca.uhn.fhir.rest.gclient.DateClientParam |
EXPIRY
Fluent Client search parameter constant for expiry
|
protected List<Identifier> |
identifier
Unique identifier for the substance.
|
static ca.uhn.fhir.rest.gclient.TokenClientParam |
IDENTIFIER
Fluent Client search parameter constant for identifier
|
static ca.uhn.fhir.model.api.Include |
INCLUDE_SUBSTANCE_REFERENCE
Constant for fluent queries to be used to add include statements.
|
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 ca.uhn.fhir.rest.gclient.QuantityClientParam |
QUANTITY
Fluent Client search parameter constant for quantity
|
static String |
SP_CATEGORY
Search parameter: category
|
static String |
SP_CODE
Search parameter: code
|
static String |
SP_CONTAINER_IDENTIFIER
Search parameter: container-identifier
|
static String |
SP_EXPIRY
Search parameter: expiry
|
static String |
SP_IDENTIFIER
Search parameter: identifier
|
static String |
SP_QUANTITY
Search parameter: quantity
|
static String |
SP_STATUS
Search parameter: status
|
static String |
SP_SUBSTANCE_REFERENCE
Search parameter: substance-reference
|
protected Enumeration<Substance.FHIRSubstanceStatus> |
status
A code to indicate if the substance is actively used.
|
static ca.uhn.fhir.rest.gclient.TokenClientParam |
STATUS
Fluent Client search parameter constant for status
|
static ca.uhn.fhir.rest.gclient.ReferenceClientParam |
SUBSTANCE_REFERENCE
Fluent Client search parameter constant for substance-reference
|
contained, extension, modifierExtension, textid, implicitRules, language, meta| Constructor and Description |
|---|
Substance()
Constructor
|
Substance(CodeableConcept code)
Constructor
|
addContained, addExtension, addExtension, addExtension, addModifierExtension, addModifierExtension, checkNoModifiers, copyValues, getContained, getExtension, getExtensionByUrl, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasExtension, hasModifierExtension, hasText, setContained, setExtension, setModifierExtension, setTextcopyValues, getId, getIdBase, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMetagetStructureFhirVersionEnum, isResource, setIdcastToAddress, 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, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetId, getIdElement, getLanguageElement, getUserData, setId, setUserDataprotected List<Identifier> identifier
protected Enumeration<Substance.FHIRSubstanceStatus> status
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
Description: Unique identifier for the substance
Type: token
Path: Substance.identifier
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Description: Unique identifier for the substance
Type: token
Path: Substance.identifier
public static final String SP_CONTAINER_IDENTIFIER
Description: Identifier of the package/container
Type: token
Path: Substance.instance.identifier
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTAINER_IDENTIFIER
Description: Identifier of the package/container
Type: token
Path: Substance.instance.identifier
public static final String SP_CODE
Description: The code of the substance or ingredient
Type: token
Path: Substance.code, Substance.ingredient.substanceCodeableConcept
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE
Description: The code of the substance or ingredient
Type: token
Path: Substance.code, Substance.ingredient.substanceCodeableConcept
public static final String SP_QUANTITY
Description: Amount of substance in the package
Type: quantity
Path: Substance.instance.quantity
public static final ca.uhn.fhir.rest.gclient.QuantityClientParam QUANTITY
Description: Amount of substance in the package
Type: quantity
Path: Substance.instance.quantity
public static final String SP_SUBSTANCE_REFERENCE
Description: A component of the substance
Type: reference
Path: Substance.ingredient.substanceReference
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBSTANCE_REFERENCE
Description: A component of the substance
Type: reference
Path: Substance.ingredient.substanceReference
public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBSTANCE_REFERENCE
public static final String SP_EXPIRY
Description: Expiry date of package or container of substance
Type: date
Path: Substance.instance.expiry
public static final ca.uhn.fhir.rest.gclient.DateClientParam EXPIRY
Description: Expiry date of package or container of substance
Type: date
Path: Substance.instance.expiry
public static final String SP_CATEGORY
Description: The category of the substance
Type: token
Path: Substance.category
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY
Description: The category of the substance
Type: token
Path: Substance.category
public static final String SP_STATUS
Description: active | inactive | entered-in-error
Type: token
Path: Substance.status
public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
Description: active | inactive | entered-in-error
Type: token
Path: Substance.status
public Substance()
public Substance(CodeableConcept code)
public List<Identifier> getIdentifier()
identifier (Unique identifier for the substance.)public Substance setIdentifier(List<Identifier> theIdentifier)
this for easy method chainingpublic boolean hasIdentifier()
public Identifier addIdentifier()
public Substance addIdentifier(Identifier t)
public Identifier getIdentifierFirstRep()
identifier, creating it if it does not already existpublic Enumeration<Substance.FHIRSubstanceStatus> getStatusElement()
status (A code to indicate if the substance is actively used.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the valuepublic boolean hasStatusElement()
public boolean hasStatus()
public Substance setStatusElement(Enumeration<Substance.FHIRSubstanceStatus> value)
value - status (A code to indicate if the substance is actively used.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the valuepublic Substance.FHIRSubstanceStatus getStatus()
public Substance setStatus(Substance.FHIRSubstanceStatus value)
value - A code to indicate if the substance is actively used.public List<CodeableConcept> getCategory()
category (A code that classifies the general type of substance. This is used for searching, sorting and display purposes.)public Substance setCategory(List<CodeableConcept> theCategory)
this for easy method chainingpublic boolean hasCategory()
public CodeableConcept addCategory()
public Substance addCategory(CodeableConcept t)
public CodeableConcept getCategoryFirstRep()
category, creating it if it does not already existpublic 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 Substance setInstance(List<Substance.SubstanceInstanceComponent> theInstance)
this for easy method chainingpublic boolean hasInstance()
public Substance.SubstanceInstanceComponent addInstance()
public Substance addInstance(Substance.SubstanceInstanceComponent t)
public Substance.SubstanceInstanceComponent getInstanceFirstRep()
instance, creating it if it does not already existpublic List<Substance.SubstanceIngredientComponent> getIngredient()
ingredient (A substance can be composed of other substances.)public Substance setIngredient(List<Substance.SubstanceIngredientComponent> theIngredient)
this for easy method chainingpublic boolean hasIngredient()
public Substance.SubstanceIngredientComponent addIngredient()
public Substance addIngredient(Substance.SubstanceIngredientComponent t)
public Substance.SubstanceIngredientComponent getIngredientFirstRep()
ingredient, creating it if it does not already existprotected void listChildren(List<Property> children)
listChildren in class DomainResourcepublic Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
getNamedProperty in class DomainResourceorg.hl7.fhir.exceptions.FHIRExceptionpublic Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
getProperty in class DomainResourceorg.hl7.fhir.exceptions.FHIRExceptionpublic Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class DomainResourceorg.hl7.fhir.exceptions.FHIRExceptionpublic Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
setProperty in class DomainResourceorg.hl7.fhir.exceptions.FHIRExceptionpublic Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
makeProperty in class DomainResourceorg.hl7.fhir.exceptions.FHIRExceptionpublic String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
getTypesForProperty 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 interface org.hl7.fhir.instance.model.api.IBasefhirType in class DomainResourcepublic Substance copy()
copy in class DomainResourcepublic void copyValues(Substance dst)
public 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–2021 Health Level 7. All rights reserved.