Class MedicationAdministrationBuilder.Impl

    • Constructor Detail

      • Impl

        public Impl​(com.babylonhealth.lit.hl7.MEDICATION_ADMIN_STATUS status,
                    com.babylonhealth.lit.core.model.Reference subject,
                    @NonNull
                    @NonNull Unions.ChoiceDateTimeOrPeriod effective,
                    @NonNull
                    @NonNull com.babylonhealth.lit.core_java.model.Unions.ChoiceCodeableConceptOrReference medication)
        Required fields for MedicationAdministration
        Parameters:
        status - - Will generally be set to show that the administration has been completed. For some long running administrations such as infusions, it is possible for an administration to be started but not completed or it may be paused while some other process is under way.
        subject - - The person or animal or group receiving the medication.
        effective - - A specific date/time or interval of time during which the administration took place (or did not take place, when the 'notGiven' attribute is true). For many administrations, such as swallowing a tablet the use of dateTime is more appropriate. Field is a 'choice' field. Type should be one of FHIRDateTime, Period. To pass the value in, wrap with one of the MedicationAdministrationBuilder.effective static methods
        medication - - Identifies the medication that was administered. This is either a link to a resource representing the details of the medication or a simple attribute carrying a code that identifies the medication from a known list of medications. Field is a 'choice' field. Type should be one of CodeableConcept, Reference. To pass the value in, wrap with one of the MedicationAdministrationBuilder.medication static methods
    • Method Detail

      • withId

        public MedicationAdministrationBuilder.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 MedicationAdministrationBuilder.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.
      • withText

        public MedicationAdministrationBuilder.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 MedicationAdministrationBuilder.Impl withNote​(@NonNull
                                                             @NonNull com.babylonhealth.lit.core.model.Annotation... note)
        Parameters:
        note - - Extra information about the medication administration that is not conveyed by the other attributes.
      • withNote

        public MedicationAdministrationBuilder.Impl withNote​(@NonNull
                                                             @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Annotation> note)
        Parameters:
        note - - Extra information about the medication administration that is not conveyed by the other attributes.
      • withPartOf

        public MedicationAdministrationBuilder.Impl withPartOf​(@NonNull
                                                               @NonNull com.babylonhealth.lit.core.model.Reference... partOf)
        Parameters:
        partOf - - A larger event of which this particular event is a component or step.
      • withPartOf

        public MedicationAdministrationBuilder.Impl withPartOf​(@NonNull
                                                               @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> partOf)
        Parameters:
        partOf - - A larger event of which this particular event is a component or step.
      • withDevice

        public MedicationAdministrationBuilder.Impl withDevice​(@NonNull
                                                               @NonNull com.babylonhealth.lit.core.model.Reference... device)
        Parameters:
        device - - The device used in administering the medication to the patient. For example, a particular infusion pump.
      • withDevice

        public MedicationAdministrationBuilder.Impl withDevice​(@NonNull
                                                               @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> device)
        Parameters:
        device - - The device used in administering the medication to the patient. For example, a particular infusion pump.
      • withContext

        public MedicationAdministrationBuilder.Impl withContext​(@NonNull
                                                                @NonNull com.babylonhealth.lit.core.model.Reference context)
        Parameters:
        context - - The visit, admission, or other contact between patient and health care provider during which the medication administration was performed.
      • withRequest

        public MedicationAdministrationBuilder.Impl withRequest​(@NonNull
                                                                @NonNull com.babylonhealth.lit.core.model.Reference request)
        Parameters:
        request - - The original request, instruction or authority to perform the administration.
      • withLanguage

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

        public MedicationAdministrationBuilder.Impl withCategory​(@NonNull
                                                                 @NonNull com.babylonhealth.lit.core.model.CodeableConcept category)
        Parameters:
        category - - Indicates where the medication is expected to be consumed or administered.
      • withContained

        public MedicationAdministrationBuilder.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 MedicationAdministrationBuilder.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.
      • withExtension

        public MedicationAdministrationBuilder.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 MedicationAdministrationBuilder.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.
      • withIdentifier

        public MedicationAdministrationBuilder.Impl withIdentifier​(@NonNull
                                                                   @NonNull com.babylonhealth.lit.core.model.Identifier... identifier)
        Parameters:
        identifier - - Identifiers associated with this Medication Administration that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server.
      • withIdentifier

        public MedicationAdministrationBuilder.Impl withIdentifier​(@NonNull
                                                                   @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Identifier> identifier)
        Parameters:
        identifier - - Identifiers associated with this Medication Administration that are defined by business processes and/or used to refer to it when a direct URL reference to the resource itself is not appropriate. They are business identifiers assigned to this resource by the performer or other systems and remain constant as the resource is updated and propagates from server to server.
      • withReasonCode

        public MedicationAdministrationBuilder.Impl withReasonCode​(@NonNull
                                                                   @NonNull com.babylonhealth.lit.core.model.CodeableConcept... reasonCode)
        Parameters:
        reasonCode - - A code indicating why the medication was given.
      • withReasonCode

        public MedicationAdministrationBuilder.Impl withReasonCode​(@NonNull
                                                                   @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> reasonCode)
        Parameters:
        reasonCode - - A code indicating why the medication was given.
      • withInstantiates

        public MedicationAdministrationBuilder.Impl withInstantiates​(@NonNull
                                                                     @NonNull java.lang.String... instantiates)
        Parameters:
        instantiates - - A protocol, guideline, orderset, or other definition that was adhered to in whole or in part by this event.
      • withInstantiates

        public MedicationAdministrationBuilder.Impl withInstantiates​(@NonNull
                                                                     @NonNull java.util.Collection<java.lang.String> instantiates)
        Parameters:
        instantiates - - A protocol, guideline, orderset, or other definition that was adhered to in whole or in part by this event.
      • withStatusReason

        public MedicationAdministrationBuilder.Impl withStatusReason​(@NonNull
                                                                     @NonNull com.babylonhealth.lit.core.model.CodeableConcept... statusReason)
        Parameters:
        statusReason - - A code indicating why the administration was not performed.
      • withStatusReason

        public MedicationAdministrationBuilder.Impl withStatusReason​(@NonNull
                                                                     @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> statusReason)
        Parameters:
        statusReason - - A code indicating why the administration was not performed.
      • withStatusReason

        public MedicationAdministrationBuilder.Impl withStatusReason​(@NonNull
                                                                     @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... statusReason)
      • withEventHistory

        public MedicationAdministrationBuilder.Impl withEventHistory​(@NonNull
                                                                     @NonNull com.babylonhealth.lit.core.model.Reference... eventHistory)
        Parameters:
        eventHistory - - A summary of the events of interest that have occurred, such as when the administration was verified.
      • withEventHistory

        public MedicationAdministrationBuilder.Impl withEventHistory​(@NonNull
                                                                     @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> eventHistory)
        Parameters:
        eventHistory - - A summary of the events of interest that have occurred, such as when the administration was verified.
      • withImplicitRules

        public MedicationAdministrationBuilder.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.
      • withReasonReference

        public MedicationAdministrationBuilder.Impl withReasonReference​(@NonNull
                                                                        @NonNull com.babylonhealth.lit.core.model.Reference... reasonReference)
        Parameters:
        reasonReference - - Condition or observation that supports why the medication was administered.
      • withReasonReference

        public MedicationAdministrationBuilder.Impl withReasonReference​(@NonNull
                                                                        @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> reasonReference)
        Parameters:
        reasonReference - - Condition or observation that supports why the medication was administered.
      • withReasonReference

        public MedicationAdministrationBuilder.Impl withReasonReference​(@NonNull
                                                                        @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... reasonReference)
      • withModifierExtension

        public MedicationAdministrationBuilder.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 MedicationAdministrationBuilder.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 MedicationAdministrationBuilder.Impl withModifierExtension​(@NonNull
                                                                          @NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... modifierExtension)
      • withSupportingInformation

        public MedicationAdministrationBuilder.Impl withSupportingInformation​(@NonNull
                                                                              @NonNull com.babylonhealth.lit.core.model.Reference... supportingInformation)
        Parameters:
        supportingInformation - - Additional information (for example, patient height and weight) that supports the administration of the medication.
      • withSupportingInformation

        public MedicationAdministrationBuilder.Impl withSupportingInformation​(@NonNull
                                                                              @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> supportingInformation)
        Parameters:
        supportingInformation - - Additional information (for example, patient height and weight) that supports the administration of the medication.
      • withSupportingInformation

        public MedicationAdministrationBuilder.Impl withSupportingInformation​(@NonNull
                                                                              @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... supportingInformation)
      • withDosage

        public MedicationAdministrationBuilder.Impl withDosage​(@NonNull
                                                               com.babylonhealth.lit.hl7.model.MedicationAdministration.Dosage dosage)
        Parameters:
        dosage - - Describes the medication dosage information details e.g. dose, rate, site, route, etc.
      • withPerformer

        public MedicationAdministrationBuilder.Impl withPerformer​(@NonNull
                                                                  @NonNull com.babylonhealth.lit.hl7.model.MedicationAdministration.Performer... performer)
        Parameters:
        performer - - Indicates who or what performed the medication administration and how they were involved.
      • withPerformer

        public MedicationAdministrationBuilder.Impl withPerformer​(@NonNull
                                                                  @NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.MedicationAdministration.Performer> performer)
        Parameters:
        performer - - Indicates who or what performed the medication administration and how they were involved.