Class Substance
- java.lang.Object
-
- ca.uhn.fhir.model.api.BaseElement
-
- ca.uhn.fhir.model.dstu2.resource.BaseResource
-
- ca.uhn.fhir.model.dstu2.resource.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
public class Substance extends BaseResource implements ca.uhn.fhir.model.api.IResource
HAPI/FHIR Substance Resource (administrative.entity)Definition: A homogeneous material with a definite composition.
Requirements:
Profile Definition: http://hl7.org/fhir/profiles/Substance
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubstance.IngredientBlock class for child element: Substance.ingredient ()static classSubstance.InstanceBlock class for child element: Substance.instance (class)
-
Field Summary
Fields Modifier and Type Field Description static ca.uhn.fhir.rest.gclient.TokenClientParamCATEGORYFluent Client search parameter constant for categorystatic 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-identifierstatic ca.uhn.fhir.rest.gclient.DateClientParamEXPIRYFluent Client search parameter constant for expirystatic ca.uhn.fhir.rest.gclient.TokenClientParamIDENTIFIERFluent Client search parameter constant for identifierstatic ca.uhn.fhir.model.api.IncludeINCLUDE_SUBSTANCEConstant for fluent queries to be used to add include statements.static ca.uhn.fhir.rest.gclient.QuantityClientParamQUANTITYFluent Client search parameter constant for quantitystatic StringSP_CATEGORYSearch parameter constant for categorystatic StringSP_CODESearch parameter constant for codestatic StringSP_CONTAINER_IDENTIFIERSearch parameter constant for container-identifierstatic StringSP_EXPIRYSearch parameter constant for expirystatic StringSP_IDENTIFIERSearch parameter constant for identifierstatic StringSP_QUANTITYSearch parameter constant for quantitystatic StringSP_SUBSTANCESearch parameter constant for substancestatic ca.uhn.fhir.rest.gclient.ReferenceClientParamSUBSTANCEFluent Client search parameter constant for substance-
Fields inherited from class ca.uhn.fhir.model.dstu2.resource.BaseResource
RES_ID, SP_RES_ID, SP_RES_LANGUAGE
-
-
Constructor Summary
Constructors Constructor Description Substance()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.IdentifierDtaddIdentifier()Adds and returns a new value for identifier ()SubstanceaddIdentifier(IdentifierDt theValue)Adds a given new value for identifier ()Substance.IngredientaddIngredient()Adds and returns a new value for ingredient ()SubstanceaddIngredient(Substance.Ingredient theValue)Adds a given new value for ingredient ()Substance.InstanceaddInstance()Adds and returns a new value for instance (class)SubstanceaddInstance(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)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.CodeableConceptDtgetCode()Gets the value(s) for code (what).StringgetDescription()Gets the value(s) for description ().ca.uhn.fhir.model.primitive.StringDtgetDescriptionElement()Gets the value(s) for description ().List<IdentifierDt>getIdentifier()Gets the value(s) for identifier ().IdentifierDtgetIdentifierFirstRep()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.IngredientgetIngredientFirstRep()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.InstancegetInstanceFirstRep()Gets the first repetition for instance (class), creating it if it does not already exist.StringgetResourceName()ca.uhn.fhir.context.FhirVersionEnumgetStructureFhirVersionEnum()booleanisEmpty()SubstancesetCategory(SubstanceCategoryCodesEnum theValue)Sets the value(s), and clears any existing value(s) for category (class)SubstancesetCategory(List<BoundCodeableConceptDt<SubstanceCategoryCodesEnum>> theValue)Sets the value(s) for category (class)SubstancesetCode(CodeableConceptDt theValue)Sets the value(s) for code (what)SubstancesetDescription(ca.uhn.fhir.model.primitive.StringDt theValue)Sets the value(s) for description ()SubstancesetDescription(String theString)Sets the value for description ()SubstancesetIdentifier(List<IdentifierDt> theValue)Sets the value(s) for identifier ()SubstancesetIngredient(List<Substance.Ingredient> theValue)Sets the value(s) for ingredient ()SubstancesetInstance(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
-
-
-
-
Field Detail
-
SP_CODE
public static final String SP_CODE
Search parameter constant for codeDescription: The code of the substance
Type: token
Path: Substance.code
- 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
Type: token
Path: Substance.code
-
SP_CATEGORY
public static final String SP_CATEGORY
Search parameter constant for 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_CONTAINER_IDENTIFIER
public static final String SP_CONTAINER_IDENTIFIER
Search parameter constant for 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_EXPIRY
public static final String SP_EXPIRY
Search parameter constant for 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_QUANTITY
public static final String SP_QUANTITY
Search parameter constant for 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
public static final String SP_SUBSTANCE
Search parameter constant for substanceDescription: A component of the substance
Type: reference
Path: Substance.ingredient.substance
- See Also:
- Constant Field Values
-
SUBSTANCE
public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam SUBSTANCE
Fluent Client search parameter constant for substanceDescription: A component of the substance
Type: reference
Path: Substance.ingredient.substance
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter constant for 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
-
INCLUDE_SUBSTANCE
public static final ca.uhn.fhir.model.api.Include INCLUDE_SUBSTANCE
Constant for fluent queries to be used to add include statements. Specifies the path value of "Substance:substance".
-
-
Constructor Detail
-
Substance
public Substance()
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin 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:
getAllPopulatedChildElementsOfTypein interfaceca.uhn.fhir.model.api.ICompositeElement
-
getIdentifier
public List<IdentifierDt> getIdentifier()
Gets the value(s) for identifier (). creating it if it does not exist. Will not returnnull.Definition: Unique identifier for the substance
-
setIdentifier
public Substance setIdentifier(List<IdentifierDt> theValue)
Sets the value(s) for identifier ()Definition: Unique identifier for the substance
-
addIdentifier
public IdentifierDt addIdentifier()
Adds and returns a new value for identifier ()Definition: Unique identifier for the substance
-
addIdentifier
public Substance addIdentifier(IdentifierDt theValue)
Adds a given new value for identifier ()Definition: Unique identifier for the substance
- Parameters:
theValue- The identifier to add (must not benull)
-
getIdentifierFirstRep
public IdentifierDt getIdentifierFirstRep()
Gets the first repetition for identifier (), creating it if it does not already exist.Definition: Unique identifier for the substance
-
getCategory
public List<BoundCodeableConceptDt<SubstanceCategoryCodesEnum>> 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
public Substance setCategory(List<BoundCodeableConceptDt<SubstanceCategoryCodesEnum>> theValue)
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
public BoundCodeableConceptDt<SubstanceCategoryCodesEnum> 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
public BoundCodeableConceptDt<SubstanceCategoryCodesEnum> 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
public Substance setCategory(SubstanceCategoryCodesEnum theValue)
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
public CodeableConceptDt 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
public Substance setCode(CodeableConceptDt theValue)
Sets the value(s) for code (what)Definition: A code (or set of codes) that identify this substance
-
getDescriptionElement
public ca.uhn.fhir.model.primitive.StringDt 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
public String 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
public Substance setDescription(ca.uhn.fhir.model.primitive.StringDt theValue)
Sets the value(s) for description ()Definition: A description of the substance - its appearance, handling requirements, and other usage notes
-
setDescription
public Substance setDescription(String theString)
Sets the value for description ()Definition: A description of the substance - its appearance, handling requirements, and other usage notes
-
getInstance
public List<Substance.Instance> 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
public Substance setInstance(List<Substance.Instance> theValue)
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
public Substance.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
public Substance addInstance(Substance.Instance theValue)
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
public Substance.Instance 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
public List<Substance.Ingredient> 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
public Substance setIngredient(List<Substance.Ingredient> theValue)
Sets the value(s) for ingredient ()Definition: A substance can be composed of other substances
-
addIngredient
public Substance.Ingredient addIngredient()
Adds and returns a new value for ingredient ()Definition: A substance can be composed of other substances
-
addIngredient
public Substance addIngredient(Substance.Ingredient theValue)
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
public Substance.Ingredient 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
public String getResourceName()
- Specified by:
getResourceNamein interfaceca.uhn.fhir.model.api.IResource
-
getStructureFhirVersionEnum
public ca.uhn.fhir.context.FhirVersionEnum getStructureFhirVersionEnum()
- Specified by:
getStructureFhirVersionEnumin interfaceorg.hl7.fhir.instance.model.api.IBaseResource- Specified by:
getStructureFhirVersionEnumin interfaceca.uhn.fhir.model.api.IResource
-
-