
Class Substance
- All Implemented Interfaces:
- ca.uhn.fhir.model.api.IElement,- Serializable,- org.hl7.fhir.instance.model.api.IAnyResource,- org.hl7.fhir.instance.model.api.IBase,- org.hl7.fhir.instance.model.api.IBaseHasExtensions,- org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions,- org.hl7.fhir.instance.model.api.IBaseResource,- org.hl7.fhir.instance.model.api.IDomainResource
- See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic enumstatic classstatic classstatic class
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected List<CodeableConcept> A code that classifies the general type of substance.static final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for categoryprotected CodeableConceptA code (or set of codes) that identify this substance.static final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for codestatic final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for container-identifierprotected StringTypeA description of the substance - its appearance, handling requirements, and other usage notes.static final ca.uhn.fhir.rest.gclient.DateClientParamFluent Client search parameter constant for expiryprotected List<Identifier> Unique identifier for the substance.static final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for identifierstatic final ca.uhn.fhir.model.api.IncludeConstant for fluent queries to be used to add include statements.protected List<Substance.SubstanceIngredientComponent> A substance can be composed of other substances.protected List<Substance.SubstanceInstanceComponent> Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.static final ca.uhn.fhir.rest.gclient.QuantityClientParamFluent Client search parameter constant for quantitystatic final StringSearch parameter: categorystatic final StringSearch parameter: codestatic final StringSearch parameter: container-identifierstatic final StringSearch parameter: expirystatic final StringSearch parameter: identifierstatic final StringSearch parameter: quantitystatic final StringSearch parameter: statusstatic final StringSearch parameter: substance-referenceprotected Enumeration<Substance.FHIRSubstanceStatus> A code to indicate if the substance is actively used.static final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for statusstatic final ca.uhn.fhir.rest.gclient.ReferenceClientParamFluent Client search parameter constant for substance-referenceFields inherited from class org.hl7.fhir.dstu3.model.DomainResourcecontained, extension, modifierExtension, textFields inherited from class org.hl7.fhir.dstu3.model.Resourceid, implicitRules, language, metaFields inherited from interface org.hl7.fhir.instance.model.api.IAnyResourceRES_ID, RES_LAST_UPDATED, RES_PROFILE, RES_SECURITY, RES_TAG, SP_RES_ID, SP_RES_LAST_UPDATED, SP_RES_PROFILE, SP_RES_SECURITY, SP_RES_TAGFields inherited from interface org.hl7.fhir.instance.model.api.IBaseResourceINCLUDE_ALL, WILDCARD_ALL_SET
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncopy()booleanequalsDeep(Base other_) booleanequalsShallow(Base other_) fhirType()getCode()getNamedProperty(int _hash, String _name, boolean _checkValid) Base[]getProperty(int hash, String name, boolean checkValid) String[]getTypesForProperty(int hash, String name) booleanbooleanhasCode()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisEmpty()protected voidlistChildren(List<Property> children) makeProperty(int hash, String name) setCategory(List<CodeableConcept> theCategory) setCode(CodeableConcept value) setDescription(String value) setDescriptionElement(StringType value) setIdentifier(List<Identifier> theIdentifier) setIngredient(List<Substance.SubstanceIngredientComponent> theIngredient) setInstance(List<Substance.SubstanceInstanceComponent> theInstance) setProperty(int hash, String name, Base value) setProperty(String name, Base value) protected SubstanceMethods inherited from class org.hl7.fhir.dstu3.model.DomainResourceaddContained, addExtension, addExtension, addExtension, addModifierExtension, addModifierExtension, copyValues, getContained, getExtension, getExtensionByUrl, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasExtension, hasModifierExtension, hasText, setContained, setExtension, setModifierExtension, setTextMethods inherited from class org.hl7.fhir.dstu3.model.ResourcecopyValues, getId, getIdBase, getIdElement, getIdPart, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMetaMethods inherited from class org.hl7.fhir.dstu3.model.BaseResourcegetStructureFhirVersionEnum, isResource, setIdMethods inherited from class org.hl7.fhir.dstu3.model.BasecastToAddress, 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, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINNMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IAnyResourcegetId, getIdElement, getLanguageElement, getUserData, setId, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBasegetFormatCommentsPost, getFormatCommentsPre, hasFormatCommentMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseResourcegetMeta, getStructureFhirVersionEnum, isDeleted, setId
- 
Field Details- 
identifierUnique identifier for the substance.
- 
statusA code to indicate if the substance is actively used.
- 
categoryA code that classifies the general type of substance. This is used for searching, sorting and display purposes.
- 
codeA code (or set of codes) that identify this substance.
- 
descriptionA description of the substance - its appearance, handling requirements, and other usage notes.
- 
instanceSubstance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.
- 
ingredientA substance can be composed of other substances.
- 
SP_IDENTIFIERSearch parameter: identifierDescription: Unique identifier for the substance 
 Type: token
 Path: Substance.identifier
 - See Also:
 
- 
IDENTIFIERFluent Client search parameter constant for identifierDescription: Unique identifier for the substance 
 Type: token
 Path: Substance.identifier
 
- 
SP_CONTAINER_IDENTIFIERSearch parameter: container-identifierDescription: Identifier of the package/container 
 Type: token
 Path: Substance.instance.identifier
 - See Also:
 
- 
CONTAINER_IDENTIFIERFluent Client search parameter constant for container-identifierDescription: Identifier of the package/container 
 Type: token
 Path: Substance.instance.identifier
 
- 
SP_CODESearch parameter: codeDescription: The code of the substance or ingredient 
 Type: token
 Path: Substance.code, Substance.ingredient.substanceCodeableConcept
 - See Also:
 
- 
CODEFluent Client search parameter constant for codeDescription: The code of the substance or ingredient 
 Type: token
 Path: Substance.code, Substance.ingredient.substanceCodeableConcept
 
- 
SP_QUANTITYSearch parameter: quantityDescription: Amount of substance in the package 
 Type: quantity
 Path: Substance.instance.quantity
 - See Also:
 
- 
QUANTITYFluent Client search parameter constant for quantityDescription: Amount of substance in the package 
 Type: quantity
 Path: Substance.instance.quantity
 
- 
SP_SUBSTANCE_REFERENCESearch parameter: substance-referenceDescription: A component of the substance 
 Type: reference
 Path: Substance.ingredient.substanceReference
 - See Also:
 
- 
SUBSTANCE_REFERENCEFluent Client search parameter constant for substance-referenceDescription: A component of the substance 
 Type: reference
 Path: Substance.ingredient.substanceReference
 
- 
INCLUDE_SUBSTANCE_REFERENCEConstant for fluent queries to be used to add include statements. Specifies the path value of "Substance:substance-reference".
- 
SP_EXPIRYSearch parameter: expiryDescription: Expiry date of package or container of substance 
 Type: date
 Path: Substance.instance.expiry
 - See Also:
 
- 
EXPIRYFluent Client search parameter constant for expiryDescription: Expiry date of package or container of substance 
 Type: date
 Path: Substance.instance.expiry
 
- 
SP_CATEGORYSearch parameter: categoryDescription: The category of the substance 
 Type: token
 Path: Substance.category
 - See Also:
 
- 
CATEGORYFluent Client search parameter constant for categoryDescription: The category of the substance 
 Type: token
 Path: Substance.category
 
- 
SP_STATUSSearch parameter: statusDescription: active | inactive | entered-in-error 
 Type: token
 Path: Substance.status
 - See Also:
 
- 
STATUSFluent Client search parameter constant for statusDescription: active | inactive | entered-in-error 
 Type: token
 Path: Substance.status
 
 
- 
- 
Constructor Details- 
Substancepublic Substance()Constructor
- 
SubstanceConstructor
 
- 
- 
Method Details- 
getIdentifier- Returns:
- identifier(Unique identifier for the substance.)
 
- 
setIdentifier- Returns:
- Returns a reference to thisfor easy method chaining
 
- 
hasIdentifier
- 
addIdentifier
- 
addIdentifier
- 
getIdentifierFirstRep- Returns:
- The first repetition of repeating field identifier, creating it if it does not already exist
 
- 
getStatusElement- Returns:
- 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 value
 
- 
hasStatusElement
- 
hasStatus
- 
setStatusElement- Parameters:
- 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 value
 
- 
getStatus- Returns:
- A code to indicate if the substance is actively used.
 
- 
setStatus- Parameters:
- value- A code to indicate if the substance is actively used.
 
- 
getCategory- Returns:
- category(A code that classifies the general type of substance. This is used for searching, sorting and display purposes.)
 
- 
setCategory- Returns:
- Returns a reference to thisfor easy method chaining
 
- 
hasCategory
- 
addCategory
- 
addCategory
- 
getCategoryFirstRep- Returns:
- The first repetition of repeating field category, creating it if it does not already exist
 
- 
getCode- Returns:
- code(A code (or set of codes) that identify this substance.)
 
- 
hasCode
- 
setCode- Parameters:
- value-- code(A code (or set of codes) that identify this substance.)
 
- 
getDescriptionElement- Returns:
- 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 value
 
- 
hasDescriptionElement
- 
hasDescription
- 
setDescriptionElement- Parameters:
- 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 value
 
- 
getDescription- Returns:
- A description of the substance - its appearance, handling requirements, and other usage notes.
 
- 
setDescription- Parameters:
- value- A description of the substance - its appearance, handling requirements, and other usage notes.
 
- 
getInstance- Returns:
- instance(Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.)
 
- 
setInstance- Returns:
- Returns a reference to thisfor easy method chaining
 
- 
hasInstance
- 
addInstance
- 
addInstance
- 
getInstanceFirstRep- Returns:
- The first repetition of repeating field instance, creating it if it does not already exist
 
- 
getIngredient- Returns:
- ingredient(A substance can be composed of other substances.)
 
- 
setIngredient- Returns:
- Returns a reference to thisfor easy method chaining
 
- 
hasIngredient
- 
addIngredient
- 
addIngredient
- 
getIngredientFirstRep- Returns:
- The first repetition of repeating field ingredient, creating it if it does not already exist
 
- 
listChildren- Overrides:
- listChildrenin class- DomainResource
 
- 
getNamedPropertypublic Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
- getNamedPropertyin class- DomainResource
- Throws:
- org.hl7.fhir.exceptions.FHIRException
 
- 
getPropertypublic Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
- getPropertyin class- DomainResource
- Throws:
- org.hl7.fhir.exceptions.FHIRException
 
- 
setPropertypublic Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
- setPropertyin class- DomainResource
- Throws:
- org.hl7.fhir.exceptions.FHIRException
 
- 
setProperty- Overrides:
- setPropertyin class- DomainResource
- Throws:
- org.hl7.fhir.exceptions.FHIRException
 
- 
makeProperty- Overrides:
- makePropertyin class- DomainResource
- Throws:
- org.hl7.fhir.exceptions.FHIRException
 
- 
getTypesForPropertypublic String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException - Overrides:
- getTypesForPropertyin class- DomainResource
- Throws:
- org.hl7.fhir.exceptions.FHIRException
 
- 
addChild- Overrides:
- addChildin class- DomainResource
- Throws:
- org.hl7.fhir.exceptions.FHIRException
 
- 
fhirType- Specified by:
- fhirTypein interface- org.hl7.fhir.instance.model.api.IBase
- Overrides:
- fhirTypein class- DomainResource
 
- 
copy- Specified by:
- copyin class- DomainResource
 
- 
typedCopy
- 
equalsDeep- Overrides:
- equalsDeepin class- DomainResource
 
- 
equalsShallow- Overrides:
- equalsShallowin class- DomainResource
 
- 
isEmpty- Specified by:
- isEmptyin interface- org.hl7.fhir.instance.model.api.IBase
- Overrides:
- isEmptyin class- DomainResource
 
- 
getResourceType- Specified by:
- getResourceTypein class- Resource
 
 
-