Class NutritionProduct
- java.lang.Object
-
- org.linuxforhealth.fhir.model.visitor.AbstractVisitable
-
- org.linuxforhealth.fhir.model.resource.Resource
-
- org.linuxforhealth.fhir.model.resource.DomainResource
-
- org.linuxforhealth.fhir.model.resource.NutritionProduct
-
- All Implemented Interfaces:
Visitable
@Generated("org.linuxforhealth.fhir.tools.CodeGenerator") public class NutritionProduct extends DomainResource
A food or fluid product that is consumed by patients.Maturity level: FMM0 (Trial Use)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
NutritionProduct.Builder
static class
NutritionProduct.Ingredient
Ingredients contained in this product.static class
NutritionProduct.Instance
Conveys instance-level information about this product item.static class
NutritionProduct.Nutrient
The product's nutritional information expressed by the nutrients.static class
NutritionProduct.ProductCharacteristic
Specifies descriptive properties of the nutrition product.
-
Field Summary
-
Fields inherited from class org.linuxforhealth.fhir.model.resource.DomainResource
contained, extension, modifierExtension, text
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Accept a Visitor and invoke the appropriate visit methods.static NutritionProduct.Builder
builder()
boolean
equals(java.lang.Object obj)
java.util.List<CodeableConcept>
getCategory()
Nutrition products can have different classifications - according to its nutritional properties, preparation methods, etc.CodeableConcept
getCode()
The code assigned to the product, for example a manufacturer number or other terminology.java.util.List<NutritionProduct.Ingredient>
getIngredient()
Ingredients contained in this product.NutritionProduct.Instance
getInstance()
Conveys instance-level information about this product item.java.util.List<CodeableReference>
getKnownAllergen()
Allergens that are known or suspected to be a part of this nutrition product.java.util.List<Reference>
getManufacturer()
The organisation (manufacturer, representative or legal authorisation holder) that is responsible for the device.java.util.List<Annotation>
getNote()
Comments made about the product.java.util.List<NutritionProduct.Nutrient>
getNutrient()
The product's nutritional information expressed by the nutrients.java.util.List<NutritionProduct.ProductCharacteristic>
getProductCharacteristic()
Specifies descriptive properties of the nutrition product.NutritionProductStatus
getStatus()
The current state of the product.boolean
hasChildren()
int
hashCode()
NutritionProduct.Builder
toBuilder()
Create a new Builder from the contents of this Resource-
Methods inherited from class org.linuxforhealth.fhir.model.resource.DomainResource
getContained, getExtension, getModifierExtension, getText
-
Methods inherited from class org.linuxforhealth.fhir.model.resource.Resource
as, getId, getImplicitRules, getLanguage, getMeta, is
-
-
-
-
Method Detail
-
getStatus
public NutritionProductStatus getStatus()
The current state of the product.- Returns:
- An immutable object of type
NutritionProductStatus
that is non-null.
-
getCategory
public java.util.List<CodeableConcept> getCategory()
Nutrition products can have different classifications - according to its nutritional properties, preparation methods, etc.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableConcept
that may be empty.
-
getCode
public CodeableConcept getCode()
The code assigned to the product, for example a manufacturer number or other terminology.- Returns:
- An immutable object of type
CodeableConcept
that may be null.
-
getManufacturer
public java.util.List<Reference> getManufacturer()
The organisation (manufacturer, representative or legal authorisation holder) that is responsible for the device.- Returns:
- An unmodifiable list containing immutable objects of type
Reference
that may be empty.
-
getNutrient
public java.util.List<NutritionProduct.Nutrient> getNutrient()
The product's nutritional information expressed by the nutrients.- Returns:
- An unmodifiable list containing immutable objects of type
NutritionProduct.Nutrient
that may be empty.
-
getIngredient
public java.util.List<NutritionProduct.Ingredient> getIngredient()
Ingredients contained in this product.- Returns:
- An unmodifiable list containing immutable objects of type
NutritionProduct.Ingredient
that may be empty.
-
getKnownAllergen
public java.util.List<CodeableReference> getKnownAllergen()
Allergens that are known or suspected to be a part of this nutrition product.- Returns:
- An unmodifiable list containing immutable objects of type
CodeableReference
that may be empty.
-
getProductCharacteristic
public java.util.List<NutritionProduct.ProductCharacteristic> getProductCharacteristic()
Specifies descriptive properties of the nutrition product.- Returns:
- An unmodifiable list containing immutable objects of type
NutritionProduct.ProductCharacteristic
that may be empty.
-
getInstance
public NutritionProduct.Instance getInstance()
Conveys instance-level information about this product item. One or several physical, countable instances or occurrences of the product.- Returns:
- An immutable object of type
NutritionProduct.Instance
that may be null.
-
getNote
public java.util.List<Annotation> getNote()
Comments made about the product.- Returns:
- An unmodifiable list containing immutable objects of type
Annotation
that may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildren
in classDomainResource
-
accept
public void accept(java.lang.String elementName, int elementIndex, Visitor visitor)
Description copied from interface:Visitable
Accept a Visitor and invoke the appropriate visit methods. A typical implementation would look like this:if (visitor.preVisit(this)) { visitor.visitStart(elementName, elementIndex, this); if (visitor.visit(elementName, elementIndex, this)) { // visit children } visitor.visitEnd(elementName, elementIndex, this); visitor.postVisit(this); }
- Specified by:
accept
in interfaceVisitable
- Specified by:
accept
in classAbstractVisitable
- Parameters:
elementName
- the name of the element in the context of this visitelementIndex
- the index of the element in a list or -1 if it is not contained within a Listvisitor
- the visitor to use
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toBuilder
public NutritionProduct.Builder toBuilder()
Description copied from class:Resource
Create a new Builder from the contents of this Resource- Specified by:
toBuilder
in classDomainResource
-
builder
public static NutritionProduct.Builder builder()
-
-