Package org.hl7.fhir.r4b.model
Class NutritionProduct
- java.lang.Object
-
- org.hl7.fhir.r4b.model.Base
-
- org.hl7.fhir.r4b.model.BaseResource
-
- org.hl7.fhir.r4b.model.Resource
-
- org.hl7.fhir.r4b.model.DomainResource
-
- org.hl7.fhir.r4b.model.NutritionProduct
-
- 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 NutritionProduct extends DomainResource
A food or fluid product that is consumed by patients.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNutritionProduct.NutritionProductIngredientComponentstatic classNutritionProduct.NutritionProductInstanceComponentstatic classNutritionProduct.NutritionProductNutrientComponentstatic classNutritionProduct.NutritionProductProductCharacteristicComponentstatic classNutritionProduct.NutritionProductStatusstatic classNutritionProduct.NutritionProductStatusEnumFactory
-
Field Summary
Fields Modifier and Type Field Description protected List<CodeableConcept>categoryNutrition products can have different classifications - according to its nutritional properties, preparation methods, etc.protected CodeableConceptcodeThe code assigned to the product, for example a manufacturer number or other terminology.static ca.uhn.fhir.rest.gclient.TokenClientParamIDENTIFIERFluent Client search parameter constant for identifierprotected List<NutritionProduct.NutritionProductIngredientComponent>ingredientIngredients contained in this product.protected NutritionProduct.NutritionProductInstanceComponentinstanceConveys instance-level information about this product item.protected List<CodeableReference>knownAllergenAllergens that are known or suspected to be a part of this nutrition product.protected List<Reference>manufacturerThe organisation (manufacturer, representative or legal authorisation holder) that is responsible for the device.protected List<Annotation>noteComments made about the product.protected List<NutritionProduct.NutritionProductNutrientComponent>nutrientThe product's nutritional information expressed by the nutrients.protected List<NutritionProduct.NutritionProductProductCharacteristicComponent>productCharacteristicSpecifies descriptive properties of the nutrition product.static StringSP_IDENTIFIERSearch parameter: identifierstatic StringSP_STATUSSearch parameter: statusprotected Enumeration<NutritionProduct.NutritionProductStatus>statusThe current state of the product.static ca.uhn.fhir.rest.gclient.TokenClientParamSTATUSFluent Client search parameter constant for status-
Fields inherited from class org.hl7.fhir.r4b.model.DomainResource
contained, extension, modifierExtension, SP_TEXT, text, TEXT
-
Fields inherited from class org.hl7.fhir.r4b.model.Resource
id, implicitRules, language, meta
-
-
Constructor Summary
Constructors Constructor Description NutritionProduct()ConstructorNutritionProduct(NutritionProduct.NutritionProductStatus status)Constructor
-
Method Summary
-
Methods inherited from class org.hl7.fhir.r4b.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.r4b.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.r4b.model.BaseResource
getStructureFhirVersionEnum, isResource, setId
-
Methods inherited from class org.hl7.fhir.r4b.model.Base
children, clearUserData, compareDeep, compareDeep, compareDeep, compareDeep, compareValues, compareValues, copyUserData, copyValues, dateTimeValue, equals, getChildByName, getFormatCommentsPost, getFormatCommentsPre, getNamedProperty, getUserData, getUserInt, getUserString, getXhtml, 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
-
status
protected Enumeration<NutritionProduct.NutritionProductStatus> status
The current state of the product.
-
category
protected List<CodeableConcept> category
Nutrition products can have different classifications - according to its nutritional properties, preparation methods, etc.
-
code
protected CodeableConcept code
The code assigned to the product, for example a manufacturer number or other terminology.
-
manufacturer
protected List<Reference> manufacturer
The organisation (manufacturer, representative or legal authorisation holder) that is responsible for the device.
-
nutrient
protected List<NutritionProduct.NutritionProductNutrientComponent> nutrient
The product's nutritional information expressed by the nutrients.
-
ingredient
protected List<NutritionProduct.NutritionProductIngredientComponent> ingredient
Ingredients contained in this product.
-
knownAllergen
protected List<CodeableReference> knownAllergen
Allergens that are known or suspected to be a part of this nutrition product.
-
productCharacteristic
protected List<NutritionProduct.NutritionProductProductCharacteristicComponent> productCharacteristic
Specifies descriptive properties of the nutrition product.
-
instance
protected NutritionProduct.NutritionProductInstanceComponent instance
Conveys instance-level information about this product item. One or several physical, countable instances or occurrences of the product.
-
note
protected List<Annotation> note
Comments made about the product.
-
SP_IDENTIFIER
public static final String SP_IDENTIFIER
Search parameter: identifierDescription: The identifier for the physical instance, typically a serial number
Type: token
Path: NutritionProduct.instance.identifier
- See Also:
- Constant Field Values
-
IDENTIFIER
public static final ca.uhn.fhir.rest.gclient.TokenClientParam IDENTIFIER
Fluent Client search parameter constant for identifierDescription: The identifier for the physical instance, typically a serial number
Type: token
Path: NutritionProduct.instance.identifier
-
SP_STATUS
public static final String SP_STATUS
Search parameter: statusDescription: active | inactive | entered-in-error
Type: token
Path: NutritionProduct.status
- See Also:
- Constant Field Values
-
STATUS
public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS
Fluent Client search parameter constant for statusDescription: active | inactive | entered-in-error
Type: token
Path: NutritionProduct.status
-
-
Constructor Detail
-
NutritionProduct
public NutritionProduct()
Constructor
-
NutritionProduct
public NutritionProduct(NutritionProduct.NutritionProductStatus status)
Constructor
-
-
Method Detail
-
getStatusElement
public Enumeration<NutritionProduct.NutritionProductStatus> getStatusElement()
- Returns:
status(The current state of the product.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
hasStatusElement
public boolean hasStatusElement()
-
hasStatus
public boolean hasStatus()
-
setStatusElement
public NutritionProduct setStatusElement(Enumeration<NutritionProduct.NutritionProductStatus> value)
- Parameters:
value-status(The current state of the product.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
-
getStatus
public NutritionProduct.NutritionProductStatus getStatus()
- Returns:
- The current state of the product.
-
setStatus
public NutritionProduct setStatus(NutritionProduct.NutritionProductStatus value)
- Parameters:
value- The current state of the product.
-
getCategory
public List<CodeableConcept> getCategory()
- Returns:
category(Nutrition products can have different classifications - according to its nutritional properties, preparation methods, etc.)
-
setCategory
public NutritionProduct setCategory(List<CodeableConcept> theCategory)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasCategory
public boolean hasCategory()
-
addCategory
public CodeableConcept addCategory()
-
addCategory
public NutritionProduct addCategory(CodeableConcept t)
-
getCategoryFirstRep
public CodeableConcept getCategoryFirstRep()
- Returns:
- The first repetition of repeating field
category, creating it if it does not already exist {3}
-
getCode
public CodeableConcept getCode()
- Returns:
code(The code assigned to the product, for example a manufacturer number or other terminology.)
-
hasCode
public boolean hasCode()
-
setCode
public NutritionProduct setCode(CodeableConcept value)
- Parameters:
value-code(The code assigned to the product, for example a manufacturer number or other terminology.)
-
getManufacturer
public List<Reference> getManufacturer()
- Returns:
manufacturer(The organisation (manufacturer, representative or legal authorisation holder) that is responsible for the device.)
-
setManufacturer
public NutritionProduct setManufacturer(List<Reference> theManufacturer)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasManufacturer
public boolean hasManufacturer()
-
addManufacturer
public Reference addManufacturer()
-
addManufacturer
public NutritionProduct addManufacturer(Reference t)
-
getManufacturerFirstRep
public Reference getManufacturerFirstRep()
- Returns:
- The first repetition of repeating field
manufacturer, creating it if it does not already exist {3}
-
getNutrient
public List<NutritionProduct.NutritionProductNutrientComponent> getNutrient()
- Returns:
nutrient(The product's nutritional information expressed by the nutrients.)
-
setNutrient
public NutritionProduct setNutrient(List<NutritionProduct.NutritionProductNutrientComponent> theNutrient)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasNutrient
public boolean hasNutrient()
-
addNutrient
public NutritionProduct.NutritionProductNutrientComponent addNutrient()
-
addNutrient
public NutritionProduct addNutrient(NutritionProduct.NutritionProductNutrientComponent t)
-
getNutrientFirstRep
public NutritionProduct.NutritionProductNutrientComponent getNutrientFirstRep()
- Returns:
- The first repetition of repeating field
nutrient, creating it if it does not already exist {3}
-
getIngredient
public List<NutritionProduct.NutritionProductIngredientComponent> getIngredient()
- Returns:
ingredient(Ingredients contained in this product.)
-
setIngredient
public NutritionProduct setIngredient(List<NutritionProduct.NutritionProductIngredientComponent> theIngredient)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasIngredient
public boolean hasIngredient()
-
addIngredient
public NutritionProduct.NutritionProductIngredientComponent addIngredient()
-
addIngredient
public NutritionProduct addIngredient(NutritionProduct.NutritionProductIngredientComponent t)
-
getIngredientFirstRep
public NutritionProduct.NutritionProductIngredientComponent getIngredientFirstRep()
- Returns:
- The first repetition of repeating field
ingredient, creating it if it does not already exist {3}
-
getKnownAllergen
public List<CodeableReference> getKnownAllergen()
- Returns:
knownAllergen(Allergens that are known or suspected to be a part of this nutrition product.)
-
setKnownAllergen
public NutritionProduct setKnownAllergen(List<CodeableReference> theKnownAllergen)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasKnownAllergen
public boolean hasKnownAllergen()
-
addKnownAllergen
public CodeableReference addKnownAllergen()
-
addKnownAllergen
public NutritionProduct addKnownAllergen(CodeableReference t)
-
getKnownAllergenFirstRep
public CodeableReference getKnownAllergenFirstRep()
- Returns:
- The first repetition of repeating field
knownAllergen, creating it if it does not already exist {3}
-
getProductCharacteristic
public List<NutritionProduct.NutritionProductProductCharacteristicComponent> getProductCharacteristic()
- Returns:
productCharacteristic(Specifies descriptive properties of the nutrition product.)
-
setProductCharacteristic
public NutritionProduct setProductCharacteristic(List<NutritionProduct.NutritionProductProductCharacteristicComponent> theProductCharacteristic)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasProductCharacteristic
public boolean hasProductCharacteristic()
-
addProductCharacteristic
public NutritionProduct.NutritionProductProductCharacteristicComponent addProductCharacteristic()
-
addProductCharacteristic
public NutritionProduct addProductCharacteristic(NutritionProduct.NutritionProductProductCharacteristicComponent t)
-
getProductCharacteristicFirstRep
public NutritionProduct.NutritionProductProductCharacteristicComponent getProductCharacteristicFirstRep()
- Returns:
- The first repetition of repeating field
productCharacteristic, creating it if it does not already exist {3}
-
getInstance
public NutritionProduct.NutritionProductInstanceComponent getInstance()
- Returns:
instance(Conveys instance-level information about this product item. One or several physical, countable instances or occurrences of the product.)
-
hasInstance
public boolean hasInstance()
-
setInstance
public NutritionProduct setInstance(NutritionProduct.NutritionProductInstanceComponent value)
- Parameters:
value-instance(Conveys instance-level information about this product item. One or several physical, countable instances or occurrences of the product.)
-
getNote
public List<Annotation> getNote()
- Returns:
note(Comments made about the product.)
-
setNote
public NutritionProduct setNote(List<Annotation> theNote)
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasNote
public boolean hasNote()
-
addNote
public Annotation addNote()
-
addNote
public NutritionProduct addNote(Annotation t)
-
getNoteFirstRep
public Annotation getNoteFirstRep()
- Returns:
- The first repetition of repeating field
note, creating it if it does not already exist {3}
-
listChildren
protected void listChildren(List<Property> children)
- Overrides:
listChildrenin classDomainResource
-
getNamedProperty
public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getNamedPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getProperty
public Base[] getProperty(int hash, String name, boolean checkValid) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(int hash, String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
setProperty
public Base setProperty(String name, Base value) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
public Base makeProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
makePropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
getTypesForProperty
public String[] getTypesForProperty(int hash, String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
getTypesForPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
addChild
public Base addChild(String name) throws org.hl7.fhir.exceptions.FHIRException
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
public String fhirType()
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
public NutritionProduct copy()
- Specified by:
copyin classDomainResource
-
copyValues
public void copyValues(NutritionProduct dst)
-
typedCopy
protected NutritionProduct typedCopy()
-
equalsDeep
public boolean equalsDeep(Base other_)
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
public boolean equalsShallow(Base other_)
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
public ResourceType getResourceType()
- Specified by:
getResourceTypein classResource
-
-