public class Substance extends BaseResource implements IResource
Definition:
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/Substance
| Modifier and Type | Class and Description |
|---|---|
static class |
Substance.Ingredient
Block class for child element: Substance.ingredient (Composition information about the substance)
|
static class |
Substance.Instance
Block class for child element: Substance.instance (If this describes a specific package/container of the substance)
|
| Modifier and Type | Field and Description |
|---|---|
static DateClientParam |
EXPIRY
Fluent Client search parameter constant for expiry
|
static TokenClientParam |
IDENTIFIER
Fluent Client search parameter constant for identifier
|
static Include |
INCLUDE_INGREDIENT_SUBSTANCE
Constant for fluent queries to be used to add include statements.
|
static NumberClientParam |
QUANTITY
Fluent Client search parameter constant for quantity
|
static String |
SP_EXPIRY
Search parameter constant for expiry
|
static String |
SP_IDENTIFIER
Search parameter constant for identifier
|
static String |
SP_QUANTITY
Search parameter constant for quantity
|
static String |
SP_SUBSTANCE
Search parameter constant for substance
|
static String |
SP_TYPE
Search parameter constant for type
|
static ReferenceClientParam |
SUBSTANCE
Fluent Client search parameter constant for substance
|
static TokenClientParam |
TYPE
Fluent Client search parameter constant for type
|
SP_RES_ID, SP_RES_LANGUAGE| Constructor and Description |
|---|
Substance() |
| Modifier and Type | Method and Description |
|---|---|
Substance.Ingredient |
addIngredient()
Adds and returns a new value for ingredient (Composition information about the substance)
|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType)
Returns a list containing all child elements matching a given type
|
StringDt |
getDescription()
Gets the value(s) for description (Textual description of the substance, comments).
|
List<Substance.Ingredient> |
getIngredient()
Gets the value(s) for ingredient (Composition information about the substance).
|
Substance.Ingredient |
getIngredientFirstRep()
Gets the first repetition for ingredient (Composition information about the substance),
creating it if it does not already exist.
|
Substance.Instance |
getInstance()
Gets the value(s) for instance (If this describes a specific package/container of the substance).
|
BoundCodeableConceptDt<SubstanceTypeEnum> |
getType()
Gets the value(s) for type (What kind of substance this is).
|
boolean |
isEmpty() |
Substance |
setDescription(String theString)
Sets the value for description (Textual description of the substance, comments)
|
Substance |
setDescription(StringDt theValue)
Sets the value(s) for description (Textual description of the substance, comments)
|
Substance |
setIngredient(List<Substance.Ingredient> theValue)
Sets the value(s) for ingredient (Composition information about the substance)
|
Substance |
setInstance(Substance.Instance theValue)
Sets the value(s) for instance (If this describes a specific package/container of the substance)
|
Substance |
setType(BoundCodeableConceptDt<SubstanceTypeEnum> theValue)
Sets the value(s) for type (What kind of substance this is)
|
Substance |
setType(SubstanceTypeEnum theValue)
Sets the value(s) for type (What kind of substance this is)
|
getContained, getId, getLanguage, getResourceMetadata, getText, isBaseEmpty, setContained, setId, setId, setLanguage, setResourceMetadata, setText, toStringaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetContained, getId, getLanguage, getResourceMetadata, getText, setId, setLanguage, setResourceMetadatapublic static final String SP_TYPE
Description: The type of the substance
Type: token
Path: Substance.type
public static final TokenClientParam TYPE
Description: The type of the substance
Type: token
Path: Substance.type
public static final String SP_IDENTIFIER
Description:
Type: token
Path: Substance.instance.identifier
public static final TokenClientParam IDENTIFIER
Description:
Type: token
Path: Substance.instance.identifier
public static final String SP_EXPIRY
Description:
Type: date
Path: Substance.instance.expiry
public static final DateClientParam EXPIRY
Description:
Type: date
Path: Substance.instance.expiry
public static final String SP_QUANTITY
Description:
Type: number
Path: Substance.instance.quantity
public static final NumberClientParam QUANTITY
Description:
Type: number
Path: Substance.instance.quantity
public static final String SP_SUBSTANCE
Description:
Type: reference
Path: Substance.ingredient.substance
public static final ReferenceClientParam SUBSTANCE
Description:
Type: reference
Path: Substance.ingredient.substance
public static final Include INCLUDE_INGREDIENT_SUBSTANCE
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
ICompositeElementgetAllPopulatedChildElementsOfType in interface ICompositeElementtheType - The type to match. If set to null, all child elements will be returnedpublic BoundCodeableConceptDt<SubstanceTypeEnum> getType()
null.
Definition: A code (or set of codes) that identify this substance
public Substance setType(BoundCodeableConceptDt<SubstanceTypeEnum> theValue)
Definition: A code (or set of codes) that identify this substance
public Substance setType(SubstanceTypeEnum theValue)
Definition: A code (or set of codes) that identify this substance
public StringDt getDescription()
null.
Definition: A description of the substance - its appearance, handling requirements, and other usage notes
public Substance setDescription(StringDt theValue)
Definition: A description of the substance - its appearance, handling requirements, and other usage notes
public Substance setDescription(String theString)
Definition: A description of the substance - its appearance, handling requirements, and other usage notes
public Substance.Instance getInstance()
null.
Definition: Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance
public Substance setInstance(Substance.Instance theValue)
Definition: Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance
public List<Substance.Ingredient> getIngredient()
null.
Definition: A substance can be composed of other substances
public Substance setIngredient(List<Substance.Ingredient> theValue)
Definition: A substance can be composed of other substances
public Substance.Ingredient addIngredient()
Definition: A substance can be composed of other substances
public Substance.Ingredient getIngredientFirstRep()
Definition: A substance can be composed of other substances
Copyright © 2014 University Health Network. All rights reserved.