Class Substance
- java.lang.Object
-
- org.hl7.fhir.r4.model.Base
-
- org.hl7.fhir.r4.model.BaseResource
-
- org.hl7.fhir.r4.model.Resource
-
- org.hl7.fhir.r4.model.DomainResource
-
- org.hl7.fhir.r4.model.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
public class Substance extends DomainResource
A homogeneous material with a definite composition.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubstance.FHIRSubstanceStatusstatic classSubstance.FHIRSubstanceStatusEnumFactorystatic classSubstance.SubstanceIngredientComponentstatic classSubstance.SubstanceInstanceComponent
-
Field Summary
Fields Modifier and Type Field Description protected List<CodeableConcept>categoryA code that classifies the general type of substance.static ca.uhn.fhir.rest.gclient.TokenClientParamCATEGORYFluent Client search parameter constant for categoryprotected CodeableConceptcodeA code (or set of codes) that identify this substance.static ca.uhn.fhir.rest.gclient.TokenClientParamCODEFluent Client search parameter constant for codestatic ca.uhn.fhir.rest.gclient.TokenClientParamCONTAINER_IDENTIFIERFluent Client search parameter constant for container-identifierprotected StringTypedescriptionA description of the substance - its appearance, handling requirements, and other usage notes.static ca.uhn.fhir.rest.gclient.DateClientParamEXPIRYFluent Client search parameter constant for expiryprotected List<Identifier>identifierUnique identifier for the substance.static ca.uhn.fhir.rest.gclient.TokenClientParamIDENTIFIERFluent Client search parameter constant for identifierstatic ca.uhn.fhir.model.api.IncludeINCLUDE_SUBSTANCE_REFERENCEConstant for fluent queries to be used to add include statements.protected List<Substance.SubstanceIngredientComponent>ingredientA substance can be composed of other substances.protected List<Substance.SubstanceInstanceComponent>instanceSubstance 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.QuantityClientParamQUANTITYFluent Client search parameter constant for quantitystatic StringSP_CATEGORYSearch parameter: categorystatic StringSP_CODESearch parameter: codestatic StringSP_CONTAINER_IDENTIFIERSearch parameter: container-identifierstatic StringSP_EXPIRYSearch parameter: expirystatic StringSP_IDENTIFIERSearch parameter: identifierstatic StringSP_QUANTITYSearch parameter: quantitystatic StringSP_STATUSSearch parameter: statusstatic StringSP_SUBSTANCE_REFERENCESearch parameter: substance-referenceprotected Enumeration<Substance.FHIRSubstanceStatus>statusA code to indicate if the substance is actively used.static ca.uhn.fhir.rest.gclient.TokenClientParamSTATUSFluent Client search parameter constant for statusstatic ca.uhn.fhir.rest.gclient.ReferenceClientParamSUBSTANCE_REFERENCEFluent Client search parameter constant for substance-reference-
Fields inherited from class org.hl7.fhir.r4.model.DomainResource
contained, extension, modifierExtension, text
-
Fields inherited from class org.hl7.fhir.r4.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Substance()ConstructorSubstance(CodeableConcept code)Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.r4.model.DomainResource
addContained, addExtension, addExtension, addExtension, addModifierExtension, addModifierExtension, checkNoModifiers, copyValues, getContained, getExtension, getExtensionByUrl, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasExtension, hasModifierExtension, hasText, setContained, setExtension, setModifierExtension, setText
-
Methods inherited from class org.hl7.fhir.r4.model.Resource
copyValues, getId, getIdBase, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.r4.model.BaseResource
getStructureFhirVersionEnum, isResource, setId
-
Methods inherited from class org.hl7.fhir.r4.model.Base
castToAddress, 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, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
-
-
-
-
Field Detail
-
identifier
protected List<Identifier> identifier
Unique identifier for the substance.
-
status
protected Enumeration<Substance.FHIRSubstanceStatus> status
A code to indicate if the substance is actively used.
-
category
protected List<CodeableConcept> category
A code that classifies the general type of substance. This is used for searching, sorting and display purposes.
-
code
protected CodeableConcept code
A code (or set of codes) that identify this substance.
-
description
protected StringType description
A description of the substance - its appearance, handling requirements, and other usage notes.
-
instance
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.
-
ingredient
protected List<Substance.SubstanceIngredientComponent> ingredient
A substance can be composed of other substances.
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter: identifierDescription: Unique identifier for the substance
Type: token
Path: Substance.identifier
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Fluent Client search parameter constant for identifierDescription: Unique identifier for the substance
Type: token
Path: Substance.identifier
-
SP_CONTAINER_IDENTIFIER
public static final String SP_CONTAINER_IDENTIFIER
Search parameter: container-identifierDescription: Identifier of the package/container
Type: token
Path: Substance.instance.identifier
- See Also:
- Constant Field Values
-
CONTAINER_IDENTIFIER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTAINER_IDENTIFIER
Fluent Client search parameter constant for container-identifierDescription: Identifier of the package/container
Type: token
Path: Substance.instance.identifier
-
SP_CODE
public static final String SP_CODE
Search parameter: codeDescription: The code of the substance or ingredient
Type: token
Path: Substance.code, Substance.ingredient.substanceCodeableConcept
- See Also:
- Constant Field Values
-
CODE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CODE
Fluent Client search parameter constant for codeDescription: The code of the substance or ingredient
Type: token
Path: Substance.code, Substance.ingredient.substanceCodeableConcept
-
SP_QUANTITY
public static final String SP_QUANTITY
Search parameter: quantityDescription: Amount of substance in the package
Type: quantity
Path: Substance.instance.quantity
- See Also:
- Constant Field Values
-
QUANTITY
public static final ca.uhn.fhir.rest.gclient.QuantityClientParam QUANTITY
Fluent Client search parameter constant for quantityDescription: Amount of substance in the package
Type: quantity
Path: Substance.instance.quantity
-
SP_SUBSTANCE_REFERENCE
public static final String SP_SUBSTANCE_REFERENCE
Search parameter: substance-referenceDescription: A component of the substance
Type: reference
Path: Substance.ingredient.substanceReference
- See Also:
- Constant Field Values
-
SUBSTANCE_REFERENCE
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBSTANCE_REFERENCE
Fluent Client search parameter constant for substance-referenceDescription: A component of the substance
Type: reference
Path: Substance.ingredient.substanceReference
-
INCLUDE_SUBSTANCE_REFERENCE
public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBSTANCE_REFERENCE
Constant for fluent queries to be used to add include statements. Specifies the path value of "Substance:substance-reference".
-
SP_EXPIRY
public static final String SP_EXPIRY
Search parameter: expiryDescription: Expiry date of package or container of substance
Type: date
Path: Substance.instance.expiry
- See Also:
- Constant Field Values
-
EXPIRY
public static final ca.uhn.fhir.rest.gclient.DateClientParam EXPIRY
Fluent Client search parameter constant for expiryDescription: Expiry date of package or container of substance
Type: date
Path: Substance.instance.expiry
-
SP_CATEGORY
public static final String SP_CATEGORY
Search parameter: categoryDescription: The category of the substance
Type: token
Path: Substance.category
- See Also:
- Constant Field Values
-
CATEGORY
public static final ca.uhn.fhir.rest.gclient.TokenClientParam CATEGORY
Fluent Client search parameter constant for categoryDescription: The category of the substance
Type: token
Path: Substance.category
-
SP_STATUS
public static final String SP_STATUS
Search parameter: statusDescription: active | inactive | entered-in-error
Type: token
Path: Substance.status
- See Also:
- Constant Field Values
-
STATUS
public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
Fluent Client search parameter constant for statusDescription: active | inactive | entered-in-error
Type: token
Path: Substance.status
-
-
Constructor Detail
-
Substance
public Substance()
Constructor
-
Substance
public Substance(CodeableConcept code)
Constructor
-
-
Method Detail
-
getIdentifier
public List<Identifier> getIdentifier()
- Returns:
identifier(Unique identifier for the substance.)
-
setIdentifier
public Substance setIdentifier(List<Identifier> theIdentifier)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasIdentifier
public boolean hasIdentifier()
-
addIdentifier
public Identifier addIdentifier()
-
addIdentifier
public Substance addIdentifier(Identifier t)
-
getIdentifierFirstRep
public Identifier getIdentifierFirstRep()
- Returns:
- The first repetition of repeating field
identifier, creating it if it does not already exist
-
getStatusElement
public Enumeration<Substance.FHIRSubstanceStatus> 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
public boolean hasStatusElement()
-
hasStatus
public boolean hasStatus()
-
setStatusElement
public Substance setStatusElement(Enumeration<Substance.FHIRSubstanceStatus> value)
- 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
public Substance.FHIRSubstanceStatus getStatus()
- Returns:
- A code to indicate if the substance is actively used.
-
setStatus
public Substance setStatus(Substance.FHIRSubstanceStatus value)
- Parameters:
value- A code to indicate if the substance is actively used.
-
getCategory
public List<CodeableConcept> getCategory()
- Returns:
category(A code that classifies the general type of substance. This is used for searching, sorting and display purposes.)
-
setCategory
public Substance setCategory(List<CodeableConcept> theCategory)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasCategory
public boolean hasCategory()
-
addCategory
public CodeableConcept addCategory()
-
addCategory
public Substance addCategory(CodeableConcept t)
-
getCategoryFirstRep
public CodeableConcept getCategoryFirstRep()
- Returns:
- The first repetition of repeating field
category, creating it if it does not already exist
-
getCode
public CodeableConcept getCode()
- Returns:
code(A code (or set of codes) that identify this substance.)
-
hasCode
public boolean hasCode()
-
setCode
public Substance setCode(CodeableConcept value)
- Parameters:
value-code(A code (or set of codes) that identify this substance.)
-
getDescriptionElement
public StringType 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
public boolean hasDescriptionElement()
-
hasDescription
public boolean hasDescription()
-
setDescriptionElement
public Substance setDescriptionElement(StringType value)
- 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
public String getDescription()
- Returns:
- A description of the substance - its appearance, handling requirements, and other usage notes.
-
setDescription
public Substance setDescription(String value)
- Parameters:
value- A description of the substance - its appearance, handling requirements, and other usage notes.
-
getInstance
public List<Substance.SubstanceInstanceComponent> getInstance()
- Returns:
instance(Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance.)
-
setInstance
public Substance setInstance(List<Substance.SubstanceInstanceComponent> theInstance)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasInstance
public boolean hasInstance()
-
addInstance
public Substance.SubstanceInstanceComponent addInstance()
-
addInstance
public Substance addInstance(Substance.SubstanceInstanceComponent t)
-
getInstanceFirstRep
public Substance.SubstanceInstanceComponent getInstanceFirstRep()
- Returns:
- The first repetition of repeating field
instance, creating it if it does not already exist
-
getIngredient
public List<Substance.SubstanceIngredientComponent> getIngredient()
- Returns:
ingredient(A substance can be composed of other substances.)
-
setIngredient
public Substance setIngredient(List<Substance.SubstanceIngredientComponent> theIngredient)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasIngredient
public boolean hasIngredient()
-
addIngredient
public Substance.SubstanceIngredientComponent addIngredient()
-
addIngredient
public Substance addIngredient(Substance.SubstanceIngredientComponent t)
-
getIngredientFirstRep
public Substance.SubstanceIngredientComponent getIngredientFirstRep()
- Returns:
- The first repetition of repeating field
ingredient, creating it if it does not already exist
-
listChildren
protected void listChildren(List<Property> children)
- Overrides:
listChildrenin classDomainResource
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getNamedPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
makePropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getTypesForPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
public Substance copy()
- Specified by:
copyin classDomainResource
-
copyValues
public void copyValues(Substance dst)
-
equalsDeep
public boolean equalsDeep(Base other_)
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other_)
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-