Class NutritionOrderBuilder.Impl

    • Constructor Detail

      • Impl

        public Impl​(com.babylonhealth.lit.hl7.REQUEST_STATUS status,
                    com.babylonhealth.lit.hl7.REQUEST_INTENT intent,
                    com.babylonhealth.lit.core.model.Reference patient,
                    com.babylonhealth.lit.core.FHIRDateTime dateTime)
        Required fields for NutritionOrder
        Parameters:
        status - - The workflow status of the nutrition order/request.
        intent - - Indicates the level of authority/intentionality associated with the NutrionOrder and where the request fits into the workflow chain.
        patient - - The person (patient) who needs the nutrition order for an oral diet, nutritional supplement and/or enteral or formula feeding.
        dateTime - - The date and time that this nutrition order was requested.
    • Method Detail

      • withId

        public NutritionOrderBuilder.Impl withId​(@NonNull
                                                 @NonNull java.lang.String id)
        Parameters:
        id - - The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.
      • withMeta

        public NutritionOrderBuilder.Impl withMeta​(@NonNull
                                                   @NonNull com.babylonhealth.lit.core.model.Meta meta)
        Parameters:
        meta - - The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.
      • withMeta

        public NutritionOrderBuilder.Impl withMeta​(@NonNull
                                                   @NonNull com.babylonhealth.lit.core_java.builders.MetaBuilder meta)
      • withText

        public NutritionOrderBuilder.Impl withText​(@NonNull
                                                   @NonNull com.babylonhealth.lit.hl7.model.Narrative text)
        Parameters:
        text - - A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it "clinically safe" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.
      • withNote

        public NutritionOrderBuilder.Impl withNote​(@NonNull
                                                   @NonNull com.babylonhealth.lit.core.model.Annotation... note)
        Parameters:
        note - - Comments made about the {{title}} by the requester, performer, subject or other participants.
      • withNote

        public NutritionOrderBuilder.Impl withNote​(@NonNull
                                                   @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Annotation> note)
        Parameters:
        note - - Comments made about the {{title}} by the requester, performer, subject or other participants.
      • withNote

        public NutritionOrderBuilder.Impl withNote​(@NonNull
                                                   @NonNull com.babylonhealth.lit.core_java.builders.AnnotationBuilder... note)
      • withOrderer

        public NutritionOrderBuilder.Impl withOrderer​(@NonNull
                                                      @NonNull com.babylonhealth.lit.core.model.Reference orderer)
        Parameters:
        orderer - - The practitioner that holds legal responsibility for ordering the diet, nutritional supplement, or formula feedings.
      • withOrderer

        public NutritionOrderBuilder.Impl withOrderer​(@NonNull
                                                      @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder orderer)
      • withLanguage

        public NutritionOrderBuilder.Impl withLanguage​(@NonNull
                                                       @NonNull com.babylonhealth.lit.core.LANGUAGES language)
        Parameters:
        language - - The base language in which the resource is written.
      • withContained

        public NutritionOrderBuilder.Impl withContained​(@NonNull
                                                        @NonNull com.babylonhealth.lit.core.model.Resource... contained)
        Parameters:
        contained - - These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
      • withContained

        public NutritionOrderBuilder.Impl withContained​(@NonNull
                                                        @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Resource> contained)
        Parameters:
        contained - - These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.
      • withContained

        public NutritionOrderBuilder.Impl withContained​(@NonNull
                                                        @NonNull com.babylonhealth.lit.core_java.builders.ResourceBuilder... contained)
      • withExtension

        public NutritionOrderBuilder.Impl withExtension​(@NonNull
                                                        @NonNull com.babylonhealth.lit.core.model.Extension... extension)
        Parameters:
        extension - - May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
      • withExtension

        public NutritionOrderBuilder.Impl withExtension​(@NonNull
                                                        @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)
        Parameters:
        extension - - May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
      • withExtension

        public NutritionOrderBuilder.Impl withExtension​(@NonNull
                                                        @NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... extension)
      • withEncounter

        public NutritionOrderBuilder.Impl withEncounter​(@NonNull
                                                        @NonNull com.babylonhealth.lit.core.model.Reference encounter)
        Parameters:
        encounter - - An encounter that provides additional information about the healthcare context in which this request is made.
      • withEncounter

        public NutritionOrderBuilder.Impl withEncounter​(@NonNull
                                                        @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder encounter)
      • withIdentifier

        public NutritionOrderBuilder.Impl withIdentifier​(@NonNull
                                                         @NonNull com.babylonhealth.lit.core.model.Identifier... identifier)
        Parameters:
        identifier - - Identifiers assigned to this order by the order sender or by the order receiver.
      • withIdentifier

        public NutritionOrderBuilder.Impl withIdentifier​(@NonNull
                                                         @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Identifier> identifier)
        Parameters:
        identifier - - Identifiers assigned to this order by the order sender or by the order receiver.
      • withIdentifier

        public NutritionOrderBuilder.Impl withIdentifier​(@NonNull
                                                         @NonNull com.babylonhealth.lit.core_java.builders.IdentifierBuilder... identifier)
      • withInstantiates

        public NutritionOrderBuilder.Impl withInstantiates​(@NonNull
                                                           @NonNull java.lang.String... instantiates)
        Parameters:
        instantiates - - The URL pointing to a protocol, guideline, orderset or other definition that is adhered to in whole or in part by this NutritionOrder.
      • withInstantiates

        public NutritionOrderBuilder.Impl withInstantiates​(@NonNull
                                                           @NonNull java.util.Collection<java.lang.String> instantiates)
        Parameters:
        instantiates - - The URL pointing to a protocol, guideline, orderset or other definition that is adhered to in whole or in part by this NutritionOrder.
      • withImplicitRules

        public NutritionOrderBuilder.Impl withImplicitRules​(@NonNull
                                                            @NonNull java.lang.String implicitRules)
        Parameters:
        implicitRules - - A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.
      • withInstantiatesUri

        public NutritionOrderBuilder.Impl withInstantiatesUri​(@NonNull
                                                              @NonNull java.lang.String... instantiatesUri)
        Parameters:
        instantiatesUri - - The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this NutritionOrder.
      • withInstantiatesUri

        public NutritionOrderBuilder.Impl withInstantiatesUri​(@NonNull
                                                              @NonNull java.util.Collection<java.lang.String> instantiatesUri)
        Parameters:
        instantiatesUri - - The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this NutritionOrder.
      • withModifierExtension

        public NutritionOrderBuilder.Impl withModifierExtension​(@NonNull
                                                                @NonNull com.babylonhealth.lit.core.model.Extension... modifierExtension)
        Parameters:
        modifierExtension - - May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

        Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).

      • withModifierExtension

        public NutritionOrderBuilder.Impl withModifierExtension​(@NonNull
                                                                @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> modifierExtension)
        Parameters:
        modifierExtension - - May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.

        Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).

      • withModifierExtension

        public NutritionOrderBuilder.Impl withModifierExtension​(@NonNull
                                                                @NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... modifierExtension)
      • withAllergyIntolerance

        public NutritionOrderBuilder.Impl withAllergyIntolerance​(@NonNull
                                                                 @NonNull com.babylonhealth.lit.core.model.Reference... allergyIntolerance)
        Parameters:
        allergyIntolerance - - A link to a record of allergies or intolerances which should be included in the nutrition order.
      • withAllergyIntolerance

        public NutritionOrderBuilder.Impl withAllergyIntolerance​(@NonNull
                                                                 @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> allergyIntolerance)
        Parameters:
        allergyIntolerance - - A link to a record of allergies or intolerances which should be included in the nutrition order.
      • withAllergyIntolerance

        public NutritionOrderBuilder.Impl withAllergyIntolerance​(@NonNull
                                                                 @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... allergyIntolerance)
      • withExcludeFoodModifier

        public NutritionOrderBuilder.Impl withExcludeFoodModifier​(@NonNull
                                                                  @NonNull com.babylonhealth.lit.core.model.CodeableConcept... excludeFoodModifier)
        Parameters:
        excludeFoodModifier - - This modifier is used to convey Order-specific modifier about the type of oral food or oral fluids that should not be given. These can be derived from patient allergies, intolerances, or preferences such as No Red Meat, No Soy or No Wheat or Gluten-Free. While it should not be necessary to repeat allergy or intolerance information captured in the referenced AllergyIntolerance resource in the excludeFoodModifier, this element may be used to convey additional specificity related to foods that should be eliminated from the patient’s diet for any reason. This modifier applies to the entire nutrition order inclusive of the oral diet, nutritional supplements and enteral formula feedings.
      • withExcludeFoodModifier

        public NutritionOrderBuilder.Impl withExcludeFoodModifier​(@NonNull
                                                                  @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> excludeFoodModifier)
        Parameters:
        excludeFoodModifier - - This modifier is used to convey Order-specific modifier about the type of oral food or oral fluids that should not be given. These can be derived from patient allergies, intolerances, or preferences such as No Red Meat, No Soy or No Wheat or Gluten-Free. While it should not be necessary to repeat allergy or intolerance information captured in the referenced AllergyIntolerance resource in the excludeFoodModifier, this element may be used to convey additional specificity related to foods that should be eliminated from the patient’s diet for any reason. This modifier applies to the entire nutrition order inclusive of the oral diet, nutritional supplements and enteral formula feedings.
      • withExcludeFoodModifier

        public NutritionOrderBuilder.Impl withExcludeFoodModifier​(@NonNull
                                                                  @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... excludeFoodModifier)
      • withInstantiatesCanonical

        public NutritionOrderBuilder.Impl withInstantiatesCanonical​(@NonNull
                                                                    @NonNull java.lang.String... instantiatesCanonical)
        Parameters:
        instantiatesCanonical - - The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this NutritionOrder.
      • withInstantiatesCanonical

        public NutritionOrderBuilder.Impl withInstantiatesCanonical​(@NonNull
                                                                    @NonNull java.util.Collection<java.lang.String> instantiatesCanonical)
        Parameters:
        instantiatesCanonical - - The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this NutritionOrder.
      • withFoodPreferenceModifier

        public NutritionOrderBuilder.Impl withFoodPreferenceModifier​(@NonNull
                                                                     @NonNull com.babylonhealth.lit.core.model.CodeableConcept... foodPreferenceModifier)
        Parameters:
        foodPreferenceModifier - - This modifier is used to convey order-specific modifiers about the type of food that should be given. These can be derived from patient allergies, intolerances, or preferences such as Halal, Vegan or Kosher. This modifier applies to the entire nutrition order inclusive of the oral diet, nutritional supplements and enteral formula feedings.
      • withFoodPreferenceModifier

        public NutritionOrderBuilder.Impl withFoodPreferenceModifier​(@NonNull
                                                                     @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> foodPreferenceModifier)
        Parameters:
        foodPreferenceModifier - - This modifier is used to convey order-specific modifiers about the type of food that should be given. These can be derived from patient allergies, intolerances, or preferences such as Halal, Vegan or Kosher. This modifier applies to the entire nutrition order inclusive of the oral diet, nutritional supplements and enteral formula feedings.
      • withFoodPreferenceModifier

        public NutritionOrderBuilder.Impl withFoodPreferenceModifier​(@NonNull
                                                                     @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... foodPreferenceModifier)
      • withSupplement

        public NutritionOrderBuilder.Impl withSupplement​(@NonNull
                                                         @NonNull com.babylonhealth.lit.hl7.model.NutritionOrder.Supplement... supplement)
        Parameters:
        supplement - - Oral nutritional products given in order to add further nutritional value to the patient's diet.
      • withSupplement

        public NutritionOrderBuilder.Impl withSupplement​(@NonNull
                                                         @NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.NutritionOrder.Supplement> supplement)
        Parameters:
        supplement - - Oral nutritional products given in order to add further nutritional value to the patient's diet.
      • withOralDiet

        public NutritionOrderBuilder.Impl withOralDiet​(@NonNull
                                                       com.babylonhealth.lit.hl7.model.NutritionOrder.OralDiet oralDiet)
        Parameters:
        oralDiet - - Diet given orally in contrast to enteral (tube) feeding.
      • withEnteralFormula

        public NutritionOrderBuilder.Impl withEnteralFormula​(@NonNull
                                                             com.babylonhealth.lit.hl7.model.NutritionOrder.EnteralFormula enteralFormula)
        Parameters:
        enteralFormula - - Feeding provided through the gastrointestinal tract via a tube, catheter, or stoma that delivers nutrition distal to the oral cavity.
      • build

        public com.babylonhealth.lit.hl7.model.NutritionOrder build()
        Specified by:
        build in interface DomainResourceBuilder
        Specified by:
        build in interface NutritionOrderBuilder
        Specified by:
        build in interface com.babylonhealth.lit.core_java.builders.ResourceBuilder