Class DosageBuilder.Impl
- java.lang.Object
-
- com.babylonhealth.lit.core_java.builders.DosageBuilder.Impl
-
- All Implemented Interfaces:
BackboneElementBuilder,DosageBuilder,ElementBuilder
- Enclosing interface:
- DosageBuilder
public static class DosageBuilder.Impl extends java.lang.Object implements DosageBuilder
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.babylonhealth.lit.core_java.builders.DosageBuilder
DosageBuilder.Impl
-
-
Constructor Summary
Constructors Constructor Description Impl()Required fields forDosage
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.babylonhealth.lit.core.model.Dosagebuild()DosageBuilder.ImplwithAdditionalInstruction(@NonNull CodeableConceptBuilder... additionalInstruction)DosageBuilder.ImplwithAdditionalInstruction(@NonNull com.babylonhealth.lit.core.model.CodeableConcept... additionalInstruction)DosageBuilder.ImplwithAdditionalInstruction(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> additionalInstruction)DosageBuilder.ImplwithAsNeeded(@NonNull Unions.ChoiceBooleanOrCodeableConcept asNeeded)DosageBuilder.ImplwithDoseAndRate(@NonNull Dosage_DoseAndRateBuilder... doseAndRate)DosageBuilder.ImplwithDoseAndRate(@NonNull com.babylonhealth.lit.core.model.Dosage.DoseAndRate... doseAndRate)DosageBuilder.ImplwithDoseAndRate(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Dosage.DoseAndRate> doseAndRate)DosageBuilder.ImplwithExtension(@NonNull ExtensionBuilder... extension)DosageBuilder.ImplwithExtension(@NonNull com.babylonhealth.lit.core.model.Extension... extension)DosageBuilder.ImplwithExtension(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> extension)DosageBuilder.ImplwithId(@NonNull java.lang.String id)DosageBuilder.ImplwithMaxDosePerAdministration(@NonNull QuantityBuilder maxDosePerAdministration)DosageBuilder.ImplwithMaxDosePerAdministration(@NonNull com.babylonhealth.lit.core.model.Quantity maxDosePerAdministration)DosageBuilder.ImplwithMaxDosePerLifetime(@NonNull QuantityBuilder maxDosePerLifetime)DosageBuilder.ImplwithMaxDosePerLifetime(@NonNull com.babylonhealth.lit.core.model.Quantity maxDosePerLifetime)DosageBuilder.ImplwithMaxDosePerPeriod(@NonNull RatioBuilder maxDosePerPeriod)DosageBuilder.ImplwithMaxDosePerPeriod(@NonNull com.babylonhealth.lit.core.model.Ratio maxDosePerPeriod)DosageBuilder.ImplwithMethod(@NonNull CodeableConceptBuilder method)DosageBuilder.ImplwithMethod(@NonNull com.babylonhealth.lit.core.model.CodeableConcept method)DosageBuilder.ImplwithModifierExtension(@NonNull ExtensionBuilder... modifierExtension)DosageBuilder.ImplwithModifierExtension(@NonNull com.babylonhealth.lit.core.model.Extension... modifierExtension)DosageBuilder.ImplwithModifierExtension(@NonNull java.util.Collection<com.babylonhealth.lit.core.model.Extension> modifierExtension)DosageBuilder.ImplwithPatientInstruction(@NonNull java.lang.String patientInstruction)DosageBuilder.ImplwithRoute(@NonNull CodeableConceptBuilder route)DosageBuilder.ImplwithRoute(@NonNull com.babylonhealth.lit.core.model.CodeableConcept route)DosageBuilder.ImplwithSequence(@NonNull java.lang.Integer sequence)DosageBuilder.ImplwithSite(@NonNull CodeableConceptBuilder site)DosageBuilder.ImplwithSite(@NonNull com.babylonhealth.lit.core.model.CodeableConcept site)DosageBuilder.ImplwithText(@NonNull java.lang.String text)DosageBuilder.ImplwithTiming(@NonNull TimingBuilder timing)DosageBuilder.ImplwithTiming(@NonNull com.babylonhealth.lit.core.model.Timing timing)
-
-
-
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.
-
withSite
public DosageBuilder.Impl withSite(@NonNull @NonNull CodeableConceptBuilder site)
-
withRoute
public DosageBuilder.Impl withRoute(@NonNull @NonNull com.babylonhealth.lit.core.model.CodeableConcept route)
- Parameters:
route- - How drug should enter body.
-
withRoute
public DosageBuilder.Impl withRoute(@NonNull @NonNull CodeableConceptBuilder route)
-
withTiming
public DosageBuilder.Impl withTiming(@NonNull @NonNull com.babylonhealth.lit.core.model.Timing timing)
- Parameters:
timing- - When medication should be administered.
-
withTiming
public DosageBuilder.Impl withTiming(@NonNull @NonNull TimingBuilder timing)
-
withMethod
public DosageBuilder.Impl withMethod(@NonNull @NonNull com.babylonhealth.lit.core.model.CodeableConcept method)
- Parameters:
method- - Technique for administering medication.
-
withMethod
public DosageBuilder.Impl withMethod(@NonNull @NonNull CodeableConceptBuilder method)
-
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.
-
withExtension
public DosageBuilder.Impl withExtension(@NonNull @NonNull ExtensionBuilder... 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.
-
withMaxDosePerPeriod
public DosageBuilder.Impl withMaxDosePerPeriod(@NonNull @NonNull RatioBuilder maxDosePerPeriod)
-
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).
-
withModifierExtension
public DosageBuilder.Impl withModifierExtension(@NonNull @NonNull ExtensionBuilder... modifierExtension)
-
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.
-
withMaxDosePerLifetime
public DosageBuilder.Impl withMaxDosePerLifetime(@NonNull @NonNull QuantityBuilder maxDosePerLifetime)
-
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").
-
withAdditionalInstruction
public DosageBuilder.Impl withAdditionalInstruction(@NonNull @NonNull CodeableConceptBuilder... additionalInstruction)
-
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.
-
withDoseAndRate
public DosageBuilder.Impl withDoseAndRate(@NonNull @NonNull Dosage_DoseAndRateBuilder... doseAndRate)
-
withMaxDosePerAdministration
public DosageBuilder.Impl withMaxDosePerAdministration(@NonNull @NonNull com.babylonhealth.lit.core.model.Quantity maxDosePerAdministration)
- Parameters:
maxDosePerAdministration- - Upper limit on medication per administration.
-
withMaxDosePerAdministration
public DosageBuilder.Impl withMaxDosePerAdministration(@NonNull @NonNull QuantityBuilder maxDosePerAdministration)
-
build
public com.babylonhealth.lit.core.model.Dosage build()
- Specified by:
buildin interfaceBackboneElementBuilder- Specified by:
buildin interfaceDosageBuilder- Specified by:
buildin interfaceElementBuilder
-
-