Class DosageBuilder.Impl

    • Constructor Detail

      • Impl

        public Impl()
        Required fields for Dosage
    • Method Detail

      • withId

        public DosageBuilder.Impl withId​(@NonNull
                                         @NonNull java.lang.String id)
        Parameters:
        id - - Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
      • withText

        public DosageBuilder.Impl withText​(@NonNull
                                           @NonNull java.lang.String text)
        Parameters:
        text - - Free text dosage instructions e.g. SIG.
      • withSite

        public DosageBuilder.Impl withSite​(@NonNull
                                           @NonNull com.babylonhealth.lit.core.model.CodeableConcept site)
        Parameters:
        site - - Body site to administer to.
      • withRoute

        public DosageBuilder.Impl withRoute​(@NonNull
                                            @NonNull com.babylonhealth.lit.core.model.CodeableConcept route)
        Parameters:
        route - - How drug should enter body.
      • withTiming

        public DosageBuilder.Impl withTiming​(@NonNull
                                             @NonNull com.babylonhealth.lit.core.model.Timing timing)
        Parameters:
        timing - - When medication should be administered.
      • withMethod

        public DosageBuilder.Impl withMethod​(@NonNull
                                             @NonNull com.babylonhealth.lit.core.model.CodeableConcept method)
        Parameters:
        method - - Technique for administering medication.
      • withSequence

        public DosageBuilder.Impl withSequence​(@NonNull
                                               @NonNull java.lang.Integer sequence)
        Parameters:
        sequence - - Indicates the order in which the dosage instructions should be applied or interpreted.
      • withExtension

        public DosageBuilder.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 element. 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 DosageBuilder.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 element. 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.
      • withAsNeeded

        public DosageBuilder.Impl withAsNeeded​(@NonNull
                                               @NonNull Unions.ChoiceBooleanOrCodeableConcept asNeeded)
        Parameters:
        asNeeded - - Indicates whether the Medication is only taken when needed within a specific dosing schedule (Boolean option), or it indicates the precondition for taking the Medication (CodeableConcept). Field is a 'choice' field. Type should be one of Boolean, CodeableConcept. To pass the value in, wrap with one of the DosageBuilder.asNeeded static methods
      • withMaxDosePerPeriod

        public DosageBuilder.Impl withMaxDosePerPeriod​(@NonNull
                                                       @NonNull com.babylonhealth.lit.core.model.Ratio maxDosePerPeriod)
        Parameters:
        maxDosePerPeriod - - Upper limit on medication per unit of time.
      • withModifierExtension

        public DosageBuilder.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 element and that modifies the understanding of the element in which it is contained 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 can 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 DosageBuilder.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 element and that modifies the understanding of the element in which it is contained 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 can 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).

      • withPatientInstruction

        public DosageBuilder.Impl withPatientInstruction​(@NonNull
                                                         @NonNull java.lang.String patientInstruction)
        Parameters:
        patientInstruction - - Instructions in terms that are understood by the patient or consumer.
      • withMaxDosePerLifetime

        public DosageBuilder.Impl withMaxDosePerLifetime​(@NonNull
                                                         @NonNull com.babylonhealth.lit.core.model.Quantity maxDosePerLifetime)
        Parameters:
        maxDosePerLifetime - - Upper limit on medication per lifetime of the patient.
      • withAdditionalInstruction

        public DosageBuilder.Impl withAdditionalInstruction​(@NonNull
                                                            @NonNull com.babylonhealth.lit.core.model.CodeableConcept... additionalInstruction)
        Parameters:
        additionalInstruction - - Supplemental instructions to the patient on how to take the medication (e.g. "with meals" or"take half to one hour before food") or warnings for the patient about the medication (e.g. "may cause drowsiness" or "avoid exposure of skin to direct sunlight or sunlamps").
      • withAdditionalInstruction

        public DosageBuilder.Impl withAdditionalInstruction​(@NonNull
                                                            @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> additionalInstruction)
        Parameters:
        additionalInstruction - - Supplemental instructions to the patient on how to take the medication (e.g. "with meals" or"take half to one hour before food") or warnings for the patient about the medication (e.g. "may cause drowsiness" or "avoid exposure of skin to direct sunlight or sunlamps").
      • withDoseAndRate

        public DosageBuilder.Impl withDoseAndRate​(@NonNull
                                                  @NonNull com.babylonhealth.lit.core.model.Dosage.DoseAndRate... doseAndRate)
        Parameters:
        doseAndRate - - The amount of medication administered.
      • withDoseAndRate

        public DosageBuilder.Impl withDoseAndRate​(@NonNull
                                                  @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Dosage.DoseAndRate> doseAndRate)
        Parameters:
        doseAndRate - - The amount of medication administered.
      • withMaxDosePerAdministration

        public DosageBuilder.Impl withMaxDosePerAdministration​(@NonNull
                                                               @NonNull com.babylonhealth.lit.core.model.Quantity maxDosePerAdministration)
        Parameters:
        maxDosePerAdministration - - Upper limit on medication per administration.