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 DomainResourceA 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 classNutritionProduct.Builderstatic classNutritionProduct.IngredientIngredients contained in this product.static classNutritionProduct.InstanceConveys instance-level information about this product item.static classNutritionProduct.NutrientThe product's nutritional information expressed by the nutrients.static classNutritionProduct.ProductCharacteristicSpecifies 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 voidaccept(java.lang.String elementName, int elementIndex, Visitor visitor)Accept a Visitor and invoke the appropriate visit methods.static NutritionProduct.Builderbuilder()booleanequals(java.lang.Object obj)java.util.List<CodeableConcept>getCategory()Nutrition products can have different classifications - according to its nutritional properties, preparation methods, etc.CodeableConceptgetCode()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.InstancegetInstance()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.NutritionProductStatusgetStatus()The current state of the product.booleanhasChildren()inthashCode()NutritionProduct.BuildertoBuilder()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
NutritionProductStatusthat 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
CodeableConceptthat 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
CodeableConceptthat 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
Referencethat 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.Nutrientthat 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.Ingredientthat 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
CodeableReferencethat 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.ProductCharacteristicthat 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.Instancethat may be null.
-
getNote
public java.util.List<Annotation> getNote()
Comments made about the product.- Returns:
- An unmodifiable list containing immutable objects of type
Annotationthat may be empty.
-
hasChildren
public boolean hasChildren()
- Overrides:
hasChildrenin classDomainResource
-
accept
public void accept(java.lang.String elementName, int elementIndex, Visitor visitor)Description copied from interface:VisitableAccept 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:
acceptin interfaceVisitable- Specified by:
acceptin 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toBuilder
public NutritionProduct.Builder toBuilder()
Description copied from class:ResourceCreate a new Builder from the contents of this Resource- Specified by:
toBuilderin classDomainResource
-
builder
public static NutritionProduct.Builder builder()
-
-