Package org.hl7.fhir.r5.model
Class NutritionProduct
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.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
A food or fluid product that is consumed by patients.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic enumstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for biological-sourceprotected List<CodeableConcept>Nutrition products can have different classifications - according to its nutritional properties, preparation methods, etc.protected CodeableConceptThe code assigned to the product, for example a manufacturer number or other terminology.static final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for identifierIngredients contained in this product.Conveys instance-level information about this product item.protected List<CodeableReference>Allergens that are known or suspected to be a part of this nutrition product.The organisation (manufacturer, representative or legal authorisation holder) that is responsible for the device.protected List<Annotation>Comments made about the product.The product's nutritional information expressed by the nutrients.Specifies descriptive properties of the nutrition product.static final StringSearch parameter: biological-sourcestatic final StringSearch parameter: identifierstatic final StringSearch parameter: statusThe current state of the product.static final ca.uhn.fhir.rest.gclient.TokenClientParamFluent Client search parameter constant for statusFields inherited from class org.hl7.fhir.r5.model.DomainResource
contained, extension, modifierExtension, SP_TEXT, text, TEXTFields inherited from class org.hl7.fhir.r5.model.Resource
id, implicitRules, language, metaFields inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
RES_ID, SP_RES_IDFields inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
INCLUDE_ALL, WILDCARD_ALL_SET -
Constructor Summary
ConstructorsConstructorDescriptionConstructorConstructor -
Method Summary
Modifier and TypeMethodDescriptionaddNote()copy()voidbooleanequalsDeep(Base other_) booleanequalsShallow(Base other_) fhirType()getCode()getNamedProperty(int _hash, String _name, boolean _checkValid) getNote()Base[]getProperty(int hash, String name, boolean checkValid) String[]getTypesForProperty(int hash, String name) booleanbooleanhasCode()booleanbooleanbooleanbooleanbooleanhasNote()booleanbooleanbooleanbooleanbooleanisEmpty()protected voidlistChildren(List<Property> children) makeProperty(int hash, String name) setCategory(List<CodeableConcept> theCategory) setCode(CodeableConcept value) setIngredient(List<NutritionProduct.NutritionProductIngredientComponent> theIngredient) setKnownAllergen(List<CodeableReference> theKnownAllergen) setManufacturer(List<Reference> theManufacturer) setNote(List<Annotation> theNote) setProductCharacteristic(List<NutritionProduct.NutritionProductProductCharacteristicComponent> theProductCharacteristic) setProperty(int hash, String name, Base value) setProperty(String name, Base value) protected NutritionProductMethods 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, setTextMethods 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, setMetaMethods inherited from class org.hl7.fhir.r5.model.BaseResource
getStructureFhirVersionEnum, isResource, setIdMethods inherited from class org.hl7.fhir.r5.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, setUserDataINNMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hl7.fhir.instance.model.api.IAnyResource
getId, getIdElement, getLanguageElement, getUserData, setId, setUserDataMethods inherited from interface org.hl7.fhir.instance.model.api.IBase
getFormatCommentsPost, getFormatCommentsPre, hasFormatCommentMethods inherited from interface org.hl7.fhir.instance.model.api.IBaseResource
getMeta, getStructureFhirVersionEnum, setId
-
Field Details
-
status
The current state of the product. -
category
Nutrition products can have different classifications - according to its nutritional properties, preparation methods, etc. -
code
The code assigned to the product, for example a manufacturer number or other terminology. -
manufacturer
The organisation (manufacturer, representative or legal authorisation holder) that is responsible for the device. -
nutrient
The product's nutritional information expressed by the nutrients. -
ingredient
Ingredients contained in this product. -
knownAllergen
Allergens that are known or suspected to be a part of this nutrition product. -
productCharacteristic
protected List<NutritionProduct.NutritionProductProductCharacteristicComponent> productCharacteristicSpecifies descriptive properties of the nutrition product. -
instance
Conveys instance-level information about this product item. One or several physical, countable instances or occurrences of the product. -
note
Comments made about the product. -
SP_BIOLOGICAL_SOURCE
Search parameter: biological-sourceDescription: The biological source for the nutrition product
Type: token
Path: NutritionProduct.instance.biologicalSource
- See Also:
-
BIOLOGICAL_SOURCE
Fluent Client search parameter constant for biological-sourceDescription: The biological source for the nutrition product
Type: token
Path: NutritionProduct.instance.biologicalSource
-
SP_IDENTIFIER
Search parameter: identifierDescription: The identifier for the physical instance, typically a serial number
Type: token
Path: NutritionProduct.instance.identifier
- See Also:
-
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
Search parameter: statusDescription: active | inactive | entered-in-error
Type: token
Path: NutritionProduct.status
- See Also:
-
STATUS
Fluent Client search parameter constant for statusDescription: active | inactive | entered-in-error
Type: token
Path: NutritionProduct.status
-
-
Constructor Details
-
NutritionProduct
public NutritionProduct()Constructor -
NutritionProduct
Constructor
-
-
Method Details
-
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
-
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
- Returns:
- The current state of the product.
-
setStatus
- Parameters:
value- The current state of the product.
-
getCategory
- Returns:
category(Nutrition products can have different classifications - according to its nutritional properties, preparation methods, etc.)
-
setCategory
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasCategory
-
addCategory
-
addCategory
-
getCategoryFirstRep
- Returns:
- The first repetition of repeating field
category, creating it if it does not already exist {3}
-
getCode
- Returns:
code(The code assigned to the product, for example a manufacturer number or other terminology.)
-
hasCode
-
setCode
- Parameters:
value-code(The code assigned to the product, for example a manufacturer number or other terminology.)
-
getManufacturer
- Returns:
manufacturer(The organisation (manufacturer, representative or legal authorisation holder) that is responsible for the device.)
-
setManufacturer
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasManufacturer
-
addManufacturer
-
addManufacturer
-
getManufacturerFirstRep
- Returns:
- The first repetition of repeating field
manufacturer, creating it if it does not already exist {3}
-
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
-
addNutrient
-
addNutrient
-
getNutrientFirstRep
- Returns:
- The first repetition of repeating field
nutrient, creating it if it does not already exist {3}
-
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
-
addIngredient
-
addIngredient
-
getIngredientFirstRep
- Returns:
- The first repetition of repeating field
ingredient, creating it if it does not already exist {3}
-
getKnownAllergen
- Returns:
knownAllergen(Allergens that are known or suspected to be a part of this nutrition product.)
-
setKnownAllergen
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasKnownAllergen
-
addKnownAllergen
-
addKnownAllergen
-
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
-
addProductCharacteristic
-
addProductCharacteristic
-
getProductCharacteristicFirstRep
public NutritionProduct.NutritionProductProductCharacteristicComponent getProductCharacteristicFirstRep()- Returns:
- The first repetition of repeating field
productCharacteristic, creating it if it does not already exist {3}
-
getInstance
- Returns:
instance(Conveys instance-level information about this product item. One or several physical, countable instances or occurrences of the product.)
-
hasInstance
-
setInstance
- Parameters:
value-instance(Conveys instance-level information about this product item. One or several physical, countable instances or occurrences of the product.)
-
getNote
- Returns:
note(Comments made about the product.)
-
setNote
- Returns:
- Returns a reference to
thisfor easy method chaining
-
hasNote
-
addNote
-
addNote
-
getNoteFirstRep
- Returns:
- The first repetition of repeating field
note, creating it if it does not already exist {3}
-
listChildren
- 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
- Overrides:
setPropertyin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
makeProperty
- 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
- Overrides:
addChildin classDomainResource- Throws:
org.hl7.fhir.exceptions.FHIRException
-
fhirType
- Specified by:
fhirTypein interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
fhirTypein classDomainResource
-
copy
- Specified by:
copyin classDomainResource
-
copyValues
-
typedCopy
-
equalsDeep
- Overrides:
equalsDeepin classDomainResource
-
equalsShallow
- Overrides:
equalsShallowin classDomainResource
-
isEmpty
- Specified by:
isEmptyin interfaceorg.hl7.fhir.instance.model.api.IBase- Overrides:
isEmptyin classDomainResource
-
getResourceType
- Specified by:
getResourceTypein classResource
-