public class Substance extends BaseResource implements IResource
Definition: A homogeneous material with a definite composition.
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 ()
|
static class |
Substance.Instance
Block class for child element: Substance.instance (class)
|
| Modifier and Type | Field and Description |
|---|---|
static TokenClientParam |
CATEGORY
Fluent Client search parameter constant for category
|
static TokenClientParam |
CODE
Fluent Client search parameter constant for code
|
static TokenClientParam |
CONTAINER_IDENTIFIER
Fluent Client search parameter constant for container-identifier
|
static DateClientParam |
EXPIRY
Fluent Client search parameter constant for expiry
|
static TokenClientParam |
IDENTIFIER
Fluent Client search parameter constant for identifier
|
static Include |
INCLUDE_SUBSTANCE
Constant for fluent queries to be used to add include statements.
|
static QuantityClientParam |
QUANTITY
Fluent Client search parameter constant for quantity
|
static String |
SP_CATEGORY
Search parameter constant for category
|
static String |
SP_CODE
Search parameter constant for code
|
static String |
SP_CONTAINER_IDENTIFIER
Search parameter constant for container-identifier
|
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 ReferenceClientParam |
SUBSTANCE
Fluent Client search parameter constant for substance
|
RES_ID, SP_RES_ID, SP_RES_LANGUAGEINCLUDE_ALL, WILDCARD_ALL_SET| Constructor and Description |
|---|
Substance() |
| Modifier and Type | Method and Description |
|---|---|
BoundCodeableConceptDt<SubstanceCategoryCodesEnum> |
addCategory()
Add a value for category (class)
|
BoundCodeableConceptDt<SubstanceCategoryCodesEnum> |
addCategory(SubstanceCategoryCodesEnum theValue)
Add a value for category (class) using an enumerated type.
|
IdentifierDt |
addIdentifier()
Adds and returns a new value for identifier ()
|
Substance |
addIdentifier(IdentifierDt theValue)
Adds a given new value for identifier ()
|
Substance.Ingredient |
addIngredient()
Adds and returns a new value for ingredient ()
|
Substance |
addIngredient(Substance.Ingredient theValue)
Adds a given new value for ingredient ()
|
Substance.Instance |
addInstance()
Adds and returns a new value for instance (class)
|
Substance |
addInstance(Substance.Instance theValue)
Adds a given new value for instance (class)
|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType) |
List<BoundCodeableConceptDt<SubstanceCategoryCodesEnum>> |
getCategory()
Gets the value(s) for category (class).
|
BoundCodeableConceptDt<SubstanceCategoryCodesEnum> |
getCategoryFirstRep()
Gets the first repetition for category (class),
creating it if it does not already exist.
|
CodeableConceptDt |
getCode()
Gets the value(s) for code (what).
|
String |
getDescription()
Gets the value(s) for description ().
|
StringDt |
getDescriptionElement()
Gets the value(s) for description ().
|
List<IdentifierDt> |
getIdentifier()
Gets the value(s) for identifier ().
|
IdentifierDt |
getIdentifierFirstRep()
Gets the first repetition for identifier (),
creating it if it does not already exist.
|
List<Substance.Ingredient> |
getIngredient()
Gets the value(s) for ingredient ().
|
Substance.Ingredient |
getIngredientFirstRep()
Gets the first repetition for ingredient (),
creating it if it does not already exist.
|
List<Substance.Instance> |
getInstance()
Gets the value(s) for instance (class).
|
Substance.Instance |
getInstanceFirstRep()
Gets the first repetition for instance (class),
creating it if it does not already exist.
|
String |
getResourceName() |
FhirVersionEnum |
getStructureFhirVersionEnum() |
boolean |
isEmpty() |
Substance |
setCategory(List<BoundCodeableConceptDt<SubstanceCategoryCodesEnum>> theValue)
Sets the value(s) for category (class)
|
Substance |
setCategory(SubstanceCategoryCodesEnum theValue)
Sets the value(s), and clears any existing value(s) for category (class)
|
Substance |
setCode(CodeableConceptDt theValue)
Sets the value(s) for code (what)
|
Substance |
setDescription(String theString)
Sets the value for description ()
|
Substance |
setDescription(StringDt theValue)
Sets the value(s) for description ()
|
Substance |
setIdentifier(List<IdentifierDt> theValue)
Sets the value(s) for identifier ()
|
Substance |
setIngredient(List<Substance.Ingredient> theValue)
Sets the value(s) for ingredient ()
|
Substance |
setInstance(List<Substance.Instance> theValue)
Sets the value(s) for instance (class)
|
getContained, getId, getIdElement, getLanguage, getResourceMetadata, getText, isBaseEmpty, setContained, setId, 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, setResourceMetadatagetIdElement, setId, setIdpublic static final String SP_CODE
Description: The code of the substance
Type: token
Path: Substance.code
public static final TokenClientParam CODE
Description: The code of the substance
Type: token
Path: Substance.code
public static final String SP_CATEGORY
Description: The category of the substance
Type: token
Path: Substance.category
public static final TokenClientParam CATEGORY
Description: The category of the substance
Type: token
Path: Substance.category
public static final String SP_CONTAINER_IDENTIFIER
Description: Identifier of the package/container
Type: token
Path: Substance.instance.identifier
public static final TokenClientParam CONTAINER_IDENTIFIER
Description: Identifier of the package/container
Type: token
Path: Substance.instance.identifier
public static final String SP_EXPIRY
Description: Expiry date of package or container of substance
Type: date
Path: Substance.instance.expiry
public static final DateClientParam EXPIRY
Description: Expiry date of package or container of substance
Type: date
Path: Substance.instance.expiry
public static final String SP_QUANTITY
Description: Amount of substance in the package
Type: quantity
Path: Substance.instance.quantity
public static final QuantityClientParam QUANTITY
Description: Amount of substance in the package
Type: quantity
Path: Substance.instance.quantity
public static final String SP_SUBSTANCE
Description: A component of the substance
Type: reference
Path: Substance.ingredient.substance
public static final ReferenceClientParam SUBSTANCE
Description: A component of the substance
Type: reference
Path: Substance.ingredient.substance
public static final String SP_IDENTIFIER
Description: Unique identifier for the substance
Type: token
Path: Substance.identifier
public static final TokenClientParam IDENTIFIER
Description: Unique identifier for the substance
Type: token
Path: Substance.identifier
public static final Include INCLUDE_SUBSTANCE
public Substance()
public <T extends IElement> List<T> getAllPopulatedChildElementsOfType(Class<T> theType)
getAllPopulatedChildElementsOfType in interface ICompositeElementpublic List<IdentifierDt> getIdentifier()
null.
Definition: Unique identifier for the substance
public Substance setIdentifier(List<IdentifierDt> theValue)
Definition: Unique identifier for the substance
public IdentifierDt addIdentifier()
Definition: Unique identifier for the substance
public Substance addIdentifier(IdentifierDt theValue)
Definition: Unique identifier for the substance
theValue - The identifier to add (must not be null)public IdentifierDt getIdentifierFirstRep()
Definition: Unique identifier for the substance
public List<BoundCodeableConceptDt<SubstanceCategoryCodesEnum>> getCategory()
null.
Definition: A code that classifies the general type of substance. This is used for searching, sorting and display purposes.
public Substance setCategory(List<BoundCodeableConceptDt<SubstanceCategoryCodesEnum>> theValue)
Definition: A code that classifies the general type of substance. This is used for searching, sorting and display purposes.
public BoundCodeableConceptDt<SubstanceCategoryCodesEnum> addCategory(SubstanceCategoryCodesEnum theValue)
addCategory() method.
Definition: A code that classifies the general type of substance. This is used for searching, sorting and display purposes.
public BoundCodeableConceptDt<SubstanceCategoryCodesEnum> getCategoryFirstRep()
Definition: A code that classifies the general type of substance. This is used for searching, sorting and display purposes.
public BoundCodeableConceptDt<SubstanceCategoryCodesEnum> addCategory()
Definition: A code that classifies the general type of substance. This is used for searching, sorting and display purposes.
public Substance setCategory(SubstanceCategoryCodesEnum theValue)
Definition: A code that classifies the general type of substance. This is used for searching, sorting and display purposes.
public CodeableConceptDt getCode()
null.
Definition: A code (or set of codes) that identify this substance
public Substance setCode(CodeableConceptDt theValue)
Definition: A code (or set of codes) that identify this substance
public StringDt getDescriptionElement()
null.
Definition: A description of the substance - its appearance, handling requirements, and other usage notes
public String 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 List<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(List<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 Substance.Instance addInstance()
Definition: Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance
public Substance addInstance(Substance.Instance theValue)
Definition: Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance
theValue - The instance to add (must not be null)public Substance.Instance getInstanceFirstRep()
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 addIngredient(Substance.Ingredient theValue)
Definition: A substance can be composed of other substances
theValue - The ingredient to add (must not be null)public Substance.Ingredient getIngredientFirstRep()
Definition: A substance can be composed of other substances
public String getResourceName()
getResourceName in interface IResourcepublic FhirVersionEnum getStructureFhirVersionEnum()
getStructureFhirVersionEnum in interface IResourcegetStructureFhirVersionEnum in interface IBaseResourceCopyright © 2014–2016 University Health Network. All rights reserved.