public static class Substance.Instance extends BaseIdentifiableElement implements IResourceBlock
Definition: Substance may be used to describe a kind of substance, or a specific package/container of the substance: an instance
| Constructor and Description |
|---|
Substance.Instance() |
| Modifier and Type | Method and Description |
|---|---|
<T extends IElement> |
getAllPopulatedChildElementsOfType(Class<T> theType)
Returns a list containing all child elements matching a given type
|
DateTimeDt |
getExpiry()
Gets the value(s) for expiry (When no longer valid to use).
|
IdentifierDt |
getIdentifier()
Gets the value(s) for identifier (Identifier of the package/container).
|
QuantityDt |
getQuantity()
Gets the value(s) for quantity (Amount of substance in the package).
|
boolean |
isEmpty() |
Substance.Instance |
setExpiry(Date theDate,
TemporalPrecisionEnum thePrecision)
Sets the value for expiry (When no longer valid to use)
|
Substance.Instance |
setExpiry(DateTimeDt theValue)
Sets the value(s) for expiry (When no longer valid to use)
|
Substance.Instance |
setExpiryWithSecondsPrecision(Date theDate)
Sets the value for expiry (When no longer valid to use)
|
Substance.Instance |
setIdentifier(IdentifierDt theValue)
Sets the value(s) for identifier (Identifier of the package/container)
|
Substance.Instance |
setIdentifier(IdentifierUseEnum theUse,
String theSystem,
String theValue,
String theLabel)
Sets the value for identifier (Identifier of the package/container)
|
Substance.Instance |
setIdentifier(String theSystem,
String theValue)
Sets the value for identifier (Identifier of the package/container)
|
Substance.Instance |
setQuantity(double theValue)
Sets the value for quantity (Amount of substance in the package)
|
Substance.Instance |
setQuantity(long theValue)
Sets the value for quantity (Amount of substance in the package)
|
Substance.Instance |
setQuantity(QuantityCompararatorEnum theComparator,
double theValue,
String theUnits)
Sets the value for quantity (Amount of substance in the package)
|
Substance.Instance |
setQuantity(QuantityCompararatorEnum theComparator,
double theValue,
String theSystem,
String theUnits)
Sets the value for quantity (Amount of substance in the package)
|
Substance.Instance |
setQuantity(QuantityCompararatorEnum theComparator,
long theValue,
String theUnits)
Sets the value for quantity (Amount of substance in the package)
|
Substance.Instance |
setQuantity(QuantityCompararatorEnum theComparator,
long theValue,
String theSystem,
String theUnits)
Sets the value for quantity (Amount of substance in the package)
|
Substance.Instance |
setQuantity(QuantityDt theValue)
Sets the value(s) for quantity (Amount of substance in the package)
|
getElementSpecificId, getId, setElementSpecificId, setId, setIdaddUndeclaredExtension, addUndeclaredExtension, addUndeclaredExtension, getAllUndeclaredExtensions, getUndeclaredExtensions, getUndeclaredExtensionsByUrl, getUndeclaredModifierExtensions, isBaseEmptyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetElementSpecificId, getId, setElementSpecificId, setId, setIdpublic <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 IdentifierDt getIdentifier()
null.
Definition: Identifier associated with the package/container (usually a label affixed directly)
public Substance.Instance setIdentifier(IdentifierDt theValue)
Definition: Identifier associated with the package/container (usually a label affixed directly)
public Substance.Instance setIdentifier(IdentifierUseEnum theUse, String theSystem, String theValue, String theLabel)
Definition: Identifier associated with the package/container (usually a label affixed directly)
public Substance.Instance setIdentifier(String theSystem, String theValue)
Definition: Identifier associated with the package/container (usually a label affixed directly)
public DateTimeDt getExpiry()
null.
Definition: When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.
public Substance.Instance setExpiry(DateTimeDt theValue)
Definition: When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.
public Substance.Instance setExpiryWithSecondsPrecision(Date theDate)
Definition: When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.
public Substance.Instance setExpiry(Date theDate, TemporalPrecisionEnum thePrecision)
Definition: When the substance is no longer valid to use. For some substances, a single arbitrary date is used for expiry.
public QuantityDt getQuantity()
null.
Definition: The amount of the substance
public Substance.Instance setQuantity(QuantityDt theValue)
Definition: The amount of the substance
public Substance.Instance setQuantity(QuantityCompararatorEnum theComparator, double theValue, String theUnits)
Definition: The amount of the substance
public Substance.Instance setQuantity(QuantityCompararatorEnum theComparator, long theValue, String theUnits)
Definition: The amount of the substance
public Substance.Instance setQuantity(QuantityCompararatorEnum theComparator, double theValue, String theSystem, String theUnits)
Definition: The amount of the substance
public Substance.Instance setQuantity(QuantityCompararatorEnum theComparator, long theValue, String theSystem, String theUnits)
Definition: The amount of the substance
public Substance.Instance setQuantity(double theValue)
Definition: The amount of the substance
public Substance.Instance setQuantity(long theValue)
Definition: The amount of the substance
Copyright © 2014 University Health Network. All rights reserved.