Class 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)

    • Method Detail

      • 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.
      • 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.
      • 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.
      • 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 interface Visitable
        Specified by:
        accept in class AbstractVisitable
        Parameters:
        elementName - the name of the element in the context of this visit
        elementIndex - the index of the element in a list or -1 if it is not contained within a List
        visitor - the visitor to use
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object