Class Ingredient
- java.lang.Object
-
- org.hl7.fhir.r5.model.Base
-
- org.hl7.fhir.r5.model.BaseResource
-
- org.hl7.fhir.r5.model.Resource
-
- org.hl7.fhir.r5.model.DomainResource
-
- org.hl7.fhir.r5.model.Ingredient
-
- All Implemented Interfaces:
ca.uhn.fhir.model.api.IElement
,Serializable
,org.hl7.fhir.instance.model.api.IAnyResource
,org.hl7.fhir.instance.model.api.IBase
,org.hl7.fhir.instance.model.api.IBaseHasExtensions
,org.hl7.fhir.instance.model.api.IBaseHasModifierExtensions
,org.hl7.fhir.instance.model.api.IBaseResource
,org.hl7.fhir.instance.model.api.IDomainResource
public class Ingredient extends DomainResource
An ingredient of a manufactured item or pharmaceutical product.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Ingredient.IngredientSpecifiedSubstanceComponent
static class
Ingredient.IngredientSpecifiedSubstanceStrengthComponent
static class
Ingredient.IngredientSpecifiedSubstanceStrengthReferenceStrengthComponent
static class
Ingredient.IngredientSubstanceComponent
-
Field Summary
Fields Modifier and Type Field Description protected BooleanType
allergenicIndicator
If the ingredient is a known or suspected allergen.protected MarkdownType
description
A general description of the ingredient, or any supporting text.protected List<CodeableConcept>
function
A classification of the ingredient identifying its precise purpose(s) in the drug product.protected Identifier
identifier
The identifier(s) of this Ingredient that are assigned by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate.static ca.uhn.fhir.rest.gclient.TokenClientParam
IDENTIFIER
Fluent Client search parameter constant for identifierprotected List<Reference>
manufacturer
The organization that manufactures this ingredient.protected CodeableConcept
role
Ingredient role within a drug product e.g.static String
SP_IDENTIFIER
Search parameter: identifierstatic String
SP_SPECIFIED_SUBSTANCE
Search parameter: specified-substancestatic String
SP_SUBSTANCE
Search parameter: substancestatic ca.uhn.fhir.rest.gclient.TokenClientParam
SPECIFIED_SUBSTANCE
Fluent Client search parameter constant for specified-substanceprotected List<Ingredient.IngredientSpecifiedSubstanceComponent>
specifiedSubstance
A specified substance that comprises this ingredient.protected Ingredient.IngredientSubstanceComponent
substance
The substance that comprises this ingredient.static ca.uhn.fhir.rest.gclient.TokenClientParam
SUBSTANCE
Fluent Client search parameter constant for substance-
Fields inherited from class org.hl7.fhir.r5.model.DomainResource
contained, extension, modifierExtension, SP_TEXT, text, TEXT
-
Fields inherited from class org.hl7.fhir.r5.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description Ingredient()
ConstructorIngredient(CodeableConcept role)
Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.r5.model.DomainResource
addContained, addExtension, addExtension, addExtension, addModifierExtension, addModifierExtension, checkNoModifiers, copyValues, getContained, getContained, getExtension, getExtensionByUrl, getExtensionsByUrl, getModifierExtension, getModifierExtensionsByUrl, getText, hasContained, hasExtension, hasExtension, hasModifierExtension, hasText, setContained, setExtension, setModifierExtension, setText
-
Methods inherited from class org.hl7.fhir.r5.model.Resource
copyValues, getId, getIdBase, getIdElement, getImplicitRules, getImplicitRulesElement, getLanguage, getLanguage, getLanguageElement, getMeta, hasId, hasIdElement, hasImplicitRules, hasImplicitRulesElement, hasLanguage, hasLanguageElement, hasMeta, setId, setIdBase, setIdElement, setImplicitRules, setImplicitRulesElement, setLanguage, setLanguageElement, setMeta
-
Methods inherited from class org.hl7.fhir.r5.model.BaseResource
getStructureFhirVersionEnum, isResource, setId
-
Methods inherited from class org.hl7.fhir.r5.model.Base
children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, hasFormatComment, hasPrimitiveValue, hasType, hasUserData, isBooleanPrimitive, isDateTime, isMetadataBased, isPrimitive, listChildrenByName, listChildrenByName, primitiveValue, setUserData, setUserDataINN
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserData
-
-
-
-
Field Detail
-
identifier
protected Identifier identifier
The identifier(s) of this Ingredient that are assigned by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate.
-
role
protected CodeableConcept role
Ingredient role within a drug product e.g. Active ingredient, Excipient.
-
function
protected List<CodeableConcept> function
A classification of the ingredient identifying its precise purpose(s) in the drug product. This extends the Ingredient.role to add more detail. Example: Antioxidant, Alkalizing Agent.
-
description
protected MarkdownType description
A general description of the ingredient, or any supporting text. May be used for an unstructured list of excipients.
-
allergenicIndicator
protected BooleanType allergenicIndicator
If the ingredient is a known or suspected allergen.
-
manufacturer
protected List<Reference> manufacturer
The organization that manufactures this ingredient.
-
specifiedSubstance
protected List<Ingredient.IngredientSpecifiedSubstanceComponent> specifiedSubstance
A specified substance that comprises this ingredient.
-
substance
protected Ingredient.IngredientSubstanceComponent substance
The substance that comprises this ingredient.
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter: identifierDescription: An identifier or code by which the ingredient can be referenced
Type: token
Path: Ingredient.identifier
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Fluent Client search parameter constant for identifierDescription: An identifier or code by which the ingredient can be referenced
Type: token
Path: Ingredient.identifier
-
SP_SPECIFIED_SUBSTANCE
public static final String SP_SPECIFIED_SUBSTANCE
Search parameter: specified-substanceDescription: Substance as a 'specified substance', implying extra substance related characteristics
Type: token
Path: (Ingredient.specifiedSubstance.code as CodeableConcept)
- See Also:
- Constant Field Values
-
SPECIFIED_SUBSTANCE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SPECIFIED_SUBSTANCE
Fluent Client search parameter constant for specified-substanceDescription: Substance as a 'specified substance', implying extra substance related characteristics
Type: token
Path: (Ingredient.specifiedSubstance.code as CodeableConcept)
-
SP_SUBSTANCE
public static final String SP_SUBSTANCE
Search parameter: substanceDescription: A code that represents the ingredient substance
Type: token
Path: (Ingredient.substance.code as CodeableConcept)
- See Also:
- Constant Field Values
-
SUBSTANCE
public static final ca.uhn.fhir.rest.gclient.TokenClientParam SUBSTANCE
Fluent Client search parameter constant for substanceDescription: A code that represents the ingredient substance
Type: token
Path: (Ingredient.substance.code as CodeableConcept)
-
-
Constructor Detail
-
Ingredient
public Ingredient()
Constructor
-
Ingredient
public Ingredient(CodeableConcept role)
Constructor
-
-
Method Detail
-
getIdentifier
public Identifier getIdentifier()
- Returns:
identifier
(The identifier(s) of this Ingredient that are assigned by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate.)
-
hasIdentifier
public boolean hasIdentifier()
-
setIdentifier
public Ingredient setIdentifier(Identifier value)
- Parameters:
value
-identifier
(The identifier(s) of this Ingredient that are assigned by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate.)
-
getRole
public CodeableConcept getRole()
- Returns:
role
(Ingredient role within a drug product e.g. Active ingredient, Excipient.)
-
hasRole
public boolean hasRole()
-
setRole
public Ingredient setRole(CodeableConcept value)
- Parameters:
value
-role
(Ingredient role within a drug product e.g. Active ingredient, Excipient.)
-
getFunction
public List<CodeableConcept> getFunction()
- Returns:
function
(A classification of the ingredient identifying its precise purpose(s) in the drug product. This extends the Ingredient.role to add more detail. Example: Antioxidant, Alkalizing Agent.)
-
setFunction
public Ingredient setFunction(List<CodeableConcept> theFunction)
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasFunction
public boolean hasFunction()
-
addFunction
public CodeableConcept addFunction()
-
addFunction
public Ingredient addFunction(CodeableConcept t)
-
getFunctionFirstRep
public CodeableConcept getFunctionFirstRep()
- Returns:
- The first repetition of repeating field
function
, creating it if it does not already exist {3}
-
getDescriptionElement
public MarkdownType getDescriptionElement()
- Returns:
description
(A general description of the ingredient, or any supporting text. May be used for an unstructured list of excipients.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
-
hasDescriptionElement
public boolean hasDescriptionElement()
-
hasDescription
public boolean hasDescription()
-
setDescriptionElement
public Ingredient setDescriptionElement(MarkdownType value)
- Parameters:
value
-description
(A general description of the ingredient, or any supporting text. May be used for an unstructured list of excipients.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
-
getDescription
public String getDescription()
- Returns:
- A general description of the ingredient, or any supporting text. May be used for an unstructured list of excipients.
-
setDescription
public Ingredient setDescription(String value)
- Parameters:
value
- A general description of the ingredient, or any supporting text. May be used for an unstructured list of excipients.
-
getAllergenicIndicatorElement
public BooleanType getAllergenicIndicatorElement()
- Returns:
allergenicIndicator
(If the ingredient is a known or suspected allergen.). This is the underlying object with id, value and extensions. The accessor "getAllergenicIndicator" gives direct access to the value
-
hasAllergenicIndicatorElement
public boolean hasAllergenicIndicatorElement()
-
hasAllergenicIndicator
public boolean hasAllergenicIndicator()
-
setAllergenicIndicatorElement
public Ingredient setAllergenicIndicatorElement(BooleanType value)
- Parameters:
value
-allergenicIndicator
(If the ingredient is a known or suspected allergen.). This is the underlying object with id, value and extensions. The accessor "getAllergenicIndicator" gives direct access to the value
-
getAllergenicIndicator
public boolean getAllergenicIndicator()
- Returns:
- If the ingredient is a known or suspected allergen.
-
setAllergenicIndicator
public Ingredient setAllergenicIndicator(boolean value)
- Parameters:
value
- If the ingredient is a known or suspected allergen.
-
getManufacturer
public List<Reference> getManufacturer()
- Returns:
manufacturer
(The organization that manufactures this ingredient.)
-
setManufacturer
public Ingredient setManufacturer(List<Reference> theManufacturer)
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasManufacturer
public boolean hasManufacturer()
-
addManufacturer
public Reference addManufacturer()
-
addManufacturer
public Ingredient addManufacturer(Reference t)
-
getManufacturerFirstRep
public Reference getManufacturerFirstRep()
- Returns:
- The first repetition of repeating field
manufacturer
, creating it if it does not already exist {3}
-
getSpecifiedSubstance
public List<Ingredient.IngredientSpecifiedSubstanceComponent> getSpecifiedSubstance()
- Returns:
specifiedSubstance
(A specified substance that comprises this ingredient.)
-
setSpecifiedSubstance
public Ingredient setSpecifiedSubstance(List<Ingredient.IngredientSpecifiedSubstanceComponent> theSpecifiedSubstance)
- Returns:
- Returns a reference to
this
for easy method chaining
-
hasSpecifiedSubstance
public boolean hasSpecifiedSubstance()
-
addSpecifiedSubstance
public Ingredient.IngredientSpecifiedSubstanceComponent addSpecifiedSubstance()
-
addSpecifiedSubstance
public Ingredient addSpecifiedSubstance(Ingredient.IngredientSpecifiedSubstanceComponent t)
-
getSpecifiedSubstanceFirstRep
public Ingredient.IngredientSpecifiedSubstanceComponent getSpecifiedSubstanceFirstRep()
- Returns:
- The first repetition of repeating field
specifiedSubstance
, creating it if it does not already exist {3}
-
getSubstance
public Ingredient.IngredientSubstanceComponent getSubstance()
- Returns:
substance
(The substance that comprises this ingredient.)
-
hasSubstance
public boolean hasSubstance()
-
setSubstance
public Ingredient setSubstance(Ingredient.IngredientSubstanceComponent value)
- Parameters:
value
-substance
(The substance that comprises this ingredient.)
-
listChildren
protected void listChildren(List<Property> children)
- Overrides:
listChildren
in classDomainResource
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getNamedProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
makeProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getTypesForProperty
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChild
in classDomainResource
- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirType
in interfaceorg.hl7.fhir.instance.model.api.IBase
- Overrides:
fhirType
in classDomainResource
-
copy
public Ingredient copy()
- Specified by:
copy
in classDomainResource
-
copyValues
public void copyValues(Ingredient dst)
-
typedCopy
protected Ingredient typedCopy()
-
equalsDeep
public boolean equalsDeep(Base other_)
- Overrides:
equalsDeep
in classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other_)
- Overrides:
equalsShallow
in classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceorg.hl7.fhir.instance.model.api.IBase
- Overrides:
isEmpty
in classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceType
in classResource
-
-