Class Substance
- All Implemented Interfaces:
ca.uhn.fhir.model.api.ICompositeElement
,ca.uhn.fhir.model.api.IElement
,ca.uhn.fhir.model.api.IResource
,ca.uhn.fhir.model.api.ISupportsUndeclaredExtensions
,Serializable
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseResource
Definition: A homogeneous material with a definite composition.
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/Substance
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Block class for child element: Substance.ingredient ()static class
Block class for child element: Substance.instance (class) -
Field Summary
Modifier and TypeFieldDescriptionstatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for categorystatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for codestatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for container-identifierstatic final ca.uhn.fhir.rest.gclient.DateClientParam
Fluent Client search parameter constant for expirystatic final ca.uhn.fhir.rest.gclient.TokenClientParam
Fluent Client search parameter constant for identifierstatic final ca.uhn.fhir.model.api.Include
Constant for fluent queries to be used to add include statements.static final ca.uhn.fhir.rest.gclient.QuantityClientParam
Fluent Client search parameter constant for quantitystatic final String
Search parameter constant for categorystatic final String
Search parameter constant for codestatic final String
Search parameter constant for container-identifierstatic final String
Search parameter constant for expirystatic final String
Search parameter constant for identifierstatic final String
Search parameter constant for quantitystatic final String
Search parameter constant for substancestatic final ca.uhn.fhir.rest.gclient.ReferenceClientParam
Fluent Client search parameter constant for substanceFields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID
Fields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd a value for category (class)addCategory
(SubstanceCategoryCodesEnum theValue) Add a value for category (class) using an enumerated type.Adds and returns a new value for identifier ()addIdentifier
(IdentifierDt theValue) Adds a given new value for identifier ()Adds and returns a new value for ingredient ()addIngredient
(Substance.Ingredient theValue) Adds a given new value for ingredient ()Adds and returns a new value for instance (class)addInstance
(Substance.Instance theValue) Adds a given new value for instance (class)<T extends ca.uhn.fhir.model.api.IElement>
List<T> getAllPopulatedChildElementsOfType
(Class<T> theType) Gets the value(s) for category (class).Gets the first repetition for category (class), creating it if it does not already exist.getCode()
Gets the value(s) for code (what).Gets the value(s) for description ().ca.uhn.fhir.model.primitive.StringDt
Gets the value(s) for description ().Gets the value(s) for identifier ().Gets the first repetition for identifier (), creating it if it does not already exist.Gets the value(s) for ingredient ().Gets the first repetition for ingredient (), creating it if it does not already exist.Gets the value(s) for instance (class).Gets the first repetition for instance (class), creating it if it does not already exist.ca.uhn.fhir.context.FhirVersionEnum
boolean
isEmpty()
setCategory
(SubstanceCategoryCodesEnum theValue) Sets the value(s), and clears any existing value(s) for category (class)Sets the value(s) for category (class)setCode
(CodeableConceptDt theValue) Sets the value(s) for code (what)setDescription
(ca.uhn.fhir.model.primitive.StringDt theValue) Sets the value(s) for description ()setDescription
(String theString) Sets the value for description ()setIdentifier
(List<IdentifierDt> theValue) Sets the value(s) for identifier ()setIngredient
(List<Substance.Ingredient> theValue) Sets the value(s) for ingredient ()setInstance
(List<Substance.Instance> theValue) Sets the value(s) for instance (class)Methods inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
getContained, getId, getIdElement, getLanguage, getMeta, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setId, setLanguage, setResourceMetadata, setText, toString
Methods inherited from class ca.uhn.fhir.model.api.BaseElement
addUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getFormatCommentsPost, getFormatCommentsPre, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, getUserData, hasFormatComment, setUserData
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.hl7.fhir.instance.model.api.IBase
fhirType, getFormatCommentsPost, getFormatCommentsPre, getUserData, hasFormatComment, setUserData
Methods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getIdElement, isDeleted, setId, setId
Methods inherited from interface ca.uhn.fhir.model.api.IResource
getContained, getId, getLanguage, getMeta, getResourceMetadata, getText, setId, setLanguage, setResourceMetadata
-
Field Details
-
SP_CODE
Search parameter constant for codeDescription: The code of the substance
Type: token
Path: Substance.code
- See Also:
-
CODE
Fluent Client search parameter constant for codeDescription: The code of the substance
Type: token
Path: Substance.code
-
SP_CATEGORY
Search parameter constant for categoryDescription: The category of the substance
Type: token
Path: Substance.category
- See Also:
-
CATEGORY
Fluent Client search parameter constant for categoryDescription: The category of the substance
Type: token
Path: Substance.category
-
SP_CONTAINER_IDENTIFIER
Search parameter constant for container-identifierDescription: Identifier of the package/container
Type: token
Path: Substance.instance.identifier
- See Also:
-
CONTAINER_IDENTIFIER
Fluent Client search parameter constant for container-identifierDescription: Identifier of the package/container
Type: token
Path: Substance.instance.identifier
-
SP_EXPIRY
Search parameter constant for expiryDescription: Expiry date of package or container of substance
Type: date
Path: Substance.instance.expiry
- See Also:
-
EXPIRY
Fluent Client search parameter constant for expiryDescription: Expiry date of package or container of substance
Type: date
Path: Substance.instance.expiry
-
SP_QUANTITY
Search parameter constant for quantityDescription: Amount of substance in the package
Type: quantity
Path: Substance.instance.quantity
- See Also:
-
QUANTITY
Fluent Client search parameter constant for quantityDescription: Amount of substance in the package
Type: quantity
Path: Substance.instance.quantity
-
SP_SUBSTANCE
Search parameter constant for substanceDescription: A component of the substance
Type: reference
Path: Substance.ingredient.substance
- See Also:
-
SUBSTANCE
Fluent Client search parameter constant for substanceDescription: A component of the substance
Type: reference
Path: Substance.ingredient.substance
-
SP_IDENTIFIER
Search parameter constant for identifierDescription: Unique identifier for the substance
Type: token
Path: Substance.identifier
- See Also:
-
IDENTIFIER
Fluent Client search parameter constant for identifierDescription: Unique identifier for the substance
Type: token
Path: Substance.identifier
-
INCLUDE_SUBSTANCE
Constant for fluent queries to be used to add include statements. Specifies the path value of "Substance:substance".
-
-
Constructor Details
-
Substance
public Substance()
-
-
Method Details
-
isEmpty
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
-
getAllPopulatedChildElementsOfType
public <T extends ca.uhn.fhir.model.api.IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType) - Specified by:
getAllPopulatedChildElementsOfType
in interfaceca.uhn.fhir.model.api.ICompositeElement
-
getIdentifier
Gets the value(s) for identifier (). creating it if it does not exist. Will not returnnull
.Definition: Unique identifier for the substance
-
setIdentifier
Sets the value(s) for identifier ()Definition: Unique identifier for the substance
-
addIdentifier
Adds and returns a new value for identifier ()Definition: Unique identifier for the substance
-
addIdentifier
Adds a given new value for identifier ()Definition: Unique identifier for the substance
- Parameters:
theValue
- The identifier to add (must not benull
)
-
getIdentifierFirstRep
Gets the first repetition for identifier (), creating it if it does not already exist.Definition: Unique identifier for the substance
-
getCategory
Gets the value(s) for category (class). creating it if it does not exist. Will not returnnull
.Definition: A code that classifies the general type of substance. This is used for searching, sorting and display purposes.
-
setCategory
Sets the value(s) for category (class)Definition: A code that classifies the general type of substance. This is used for searching, sorting and display purposes.
-
addCategory
public BoundCodeableConceptDt<SubstanceCategoryCodesEnum> addCategory(SubstanceCategoryCodesEnum theValue) Add a value for category (class) using an enumerated type. This is intended as a convenience method for situations where the FHIR defined ValueSets are mandatory or contain the desirable codes. If you wish to use codes other than those which are built-in, you may also use theaddCategory()
method.Definition: A code that classifies the general type of substance. This is used for searching, sorting and display purposes.
-
getCategoryFirstRep
Gets the first repetition for category (class), creating it if it does not already exist.Definition: A code that classifies the general type of substance. This is used for searching, sorting and display purposes.
-
addCategory
Add a value for category (class)Definition: A code that classifies the general type of substance. This is used for searching, sorting and display purposes.
-
setCategory
Sets the value(s), and clears any existing value(s) for category (class)Definition: A code that classifies the general type of substance. This is used for searching, sorting and display purposes.
-
getCode
Gets the value(s) for code (what). creating it if it does not exist. Will not returnnull
.Definition: A code (or set of codes) that identify this substance
-
setCode
Sets the value(s) for code (what)Definition: A code (or set of codes) that identify this substance
-
getDescriptionElement
Gets the value(s) for description (). creating it if it does not exist. Will not returnnull
.Definition: A description of the substance - its appearance, handling requirements, and other usage notes
-
getDescription
Gets the value(s) for description (). creating it if it does not exist. This method may returnnull
.Definition: A description of the substance - its appearance, handling requirements, and other usage notes
-
setDescription
Sets the value(s) for description ()Definition: A description of the substance - its appearance, handling requirements, and other usage notes
-
setDescription
Sets the value for description ()Definition: A description of the substance - its appearance, handling requirements, and other usage notes
-
getInstance
Gets the value(s) for instance (class). creating it if it does not exist. Will not returnnull
.Definition: Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance
-
setInstance
Sets the value(s) for instance (class)Definition: Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance
-
addInstance
Adds and returns a new value for instance (class)Definition: Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance
-
addInstance
Adds a given new value for instance (class)Definition: Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance
- Parameters:
theValue
- The instance to add (must not benull
)
-
getInstanceFirstRep
Gets the first repetition for instance (class), creating it if it does not already exist.Definition: Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance
-
getIngredient
Gets the value(s) for ingredient (). creating it if it does not exist. Will not returnnull
.Definition: A substance can be composed of other substances
-
setIngredient
Sets the value(s) for ingredient ()Definition: A substance can be composed of other substances
-
addIngredient
Adds and returns a new value for ingredient ()Definition: A substance can be composed of other substances
-
addIngredient
Adds a given new value for ingredient ()Definition: A substance can be composed of other substances
- Parameters:
theValue
- The ingredient to add (must not benull
)
-
getIngredientFirstRep
Gets the first repetition for ingredient (), creating it if it does not already exist.Definition: A substance can be composed of other substances
-
getResourceName
- Specified by:
getResourceName
in interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
- Specified by:
getStructureFhirVersionEnum
in interfaceorg.hl7.fhir.instance.model.api.IBaseResource
- Specified by:
getStructureFhirVersionEnum
in interfaceca.uhn.fhir.model.api.IResource
-