Class DeviceRequestBuilder.Impl

    • Constructor Detail

      • Impl

        public Impl​(com.babylonhealth.lit.hl7.REQUEST_INTENT intent,
                    @NonNull
                    @NonNull com.babylonhealth.lit.core_java.model.Unions.ChoiceCodeableConceptOrReference code,
                    com.babylonhealth.lit.core.model.Reference subject)
        Required fields for DeviceRequest
        Parameters:
        intent - - Whether the request is a proposal, plan, an original order or a reflex order.
        code - - The details of the device to be used. Field is a 'choice' field. Type should be one of CodeableConcept, Reference. To pass the value in, wrap with one of the DeviceRequestBuilder.code static methods
        subject - - The patient who will use the device.
    • Method Detail

      • withId

        public DeviceRequestBuilder.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 DeviceRequestBuilder.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 DeviceRequestBuilder.Impl withMeta​(@NonNull
                                                  @NonNull com.babylonhealth.lit.core_java.builders.MetaBuilder meta)
      • withText

        public DeviceRequestBuilder.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 DeviceRequestBuilder.Impl withNote​(@NonNull
                                                  @NonNull com.babylonhealth.lit.core.model.Annotation... note)
        Parameters:
        note - - Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement.
      • withNote

        public DeviceRequestBuilder.Impl withNote​(@NonNull
                                                  @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Annotation> note)
        Parameters:
        note - - Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement.
      • withNote

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

        public DeviceRequestBuilder.Impl withStatus​(@NonNull
                                                    @NonNull com.babylonhealth.lit.hl7.REQUEST_STATUS status)
        Parameters:
        status - - The status of the request.
      • withBasedOn

        public DeviceRequestBuilder.Impl withBasedOn​(@NonNull
                                                     @NonNull com.babylonhealth.lit.core.model.Reference... basedOn)
        Parameters:
        basedOn - - Plan/proposal/order fulfilled by this request.
      • withBasedOn

        public DeviceRequestBuilder.Impl withBasedOn​(@NonNull
                                                     @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> basedOn)
        Parameters:
        basedOn - - Plan/proposal/order fulfilled by this request.
      • withBasedOn

        public DeviceRequestBuilder.Impl withBasedOn​(@NonNull
                                                     @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... basedOn)
      • withLanguage

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

        public DeviceRequestBuilder.Impl withPriority​(@NonNull
                                                      @NonNull com.babylonhealth.lit.hl7.REQUEST_PRIORITY priority)
        Parameters:
        priority - - Indicates how quickly the {{title}} should be addressed with respect to other requests.
      • withContained

        public DeviceRequestBuilder.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 DeviceRequestBuilder.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 DeviceRequestBuilder.Impl withContained​(@NonNull
                                                       @NonNull com.babylonhealth.lit.core_java.builders.ResourceBuilder... contained)
      • withExtension

        public DeviceRequestBuilder.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 DeviceRequestBuilder.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 DeviceRequestBuilder.Impl withExtension​(@NonNull
                                                       @NonNull com.babylonhealth.lit.core_java.builders.ExtensionBuilder... extension)
      • withEncounter

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

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

        public DeviceRequestBuilder.Impl withRequester​(@NonNull
                                                       @NonNull com.babylonhealth.lit.core.model.Reference requester)
        Parameters:
        requester - - The individual who initiated the request and has responsibility for its activation.
      • withRequester

        public DeviceRequestBuilder.Impl withRequester​(@NonNull
                                                       @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder requester)
      • withPerformer

        public DeviceRequestBuilder.Impl withPerformer​(@NonNull
                                                       @NonNull com.babylonhealth.lit.core.model.Reference performer)
        Parameters:
        performer - - The desired performer for doing the diagnostic testing.
      • withPerformer

        public DeviceRequestBuilder.Impl withPerformer​(@NonNull
                                                       @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder performer)
      • withInsurance

        public DeviceRequestBuilder.Impl withInsurance​(@NonNull
                                                       @NonNull com.babylonhealth.lit.core.model.Reference... insurance)
        Parameters:
        insurance - - Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be required for delivering the requested service.
      • withInsurance

        public DeviceRequestBuilder.Impl withInsurance​(@NonNull
                                                       @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> insurance)
        Parameters:
        insurance - - Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be required for delivering the requested service.
      • withInsurance

        public DeviceRequestBuilder.Impl withInsurance​(@NonNull
                                                       @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... insurance)
      • withIdentifier

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

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

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

        public DeviceRequestBuilder.Impl withAuthoredOn​(@NonNull
                                                        @NonNull com.babylonhealth.lit.core.FHIRDateTime authoredOn)
        Parameters:
        authoredOn - - When the request transitioned to being actionable.
      • withReasonCode

        public DeviceRequestBuilder.Impl withReasonCode​(@NonNull
                                                        @NonNull com.babylonhealth.lit.core.model.CodeableConcept... reasonCode)
        Parameters:
        reasonCode - - Reason or justification for the use of this device.
      • withReasonCode

        public DeviceRequestBuilder.Impl withReasonCode​(@NonNull
                                                        @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> reasonCode)
        Parameters:
        reasonCode - - Reason or justification for the use of this device.
      • withReasonCode

        public DeviceRequestBuilder.Impl withReasonCode​(@NonNull
                                                        @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... reasonCode)
      • withPriorRequest

        public DeviceRequestBuilder.Impl withPriorRequest​(@NonNull
                                                          @NonNull com.babylonhealth.lit.core.model.Reference... priorRequest)
        Parameters:
        priorRequest - - The request takes the place of the referenced completed or terminated request(s).
      • withPriorRequest

        public DeviceRequestBuilder.Impl withPriorRequest​(@NonNull
                                                          @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> priorRequest)
        Parameters:
        priorRequest - - The request takes the place of the referenced completed or terminated request(s).
      • withPriorRequest

        public DeviceRequestBuilder.Impl withPriorRequest​(@NonNull
                                                          @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... priorRequest)
      • withImplicitRules

        public DeviceRequestBuilder.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.
      • withOccurrence

        public DeviceRequestBuilder.Impl withOccurrence​(@NonNull
                                                        @NonNull Unions.ChoiceDateTimeOrPeriodOrTiming occurrence)
        Parameters:
        occurrence - - The timing schedule for the use of the device. The Schedule data type allows many different expressions, for example. "Every 8 hours"; "Three times a day"; "1/2 an hour before breakfast for 10 days from 23-Dec 2011:"; "15 Oct 2013, 17 Oct 2013 and 1 Nov 2013". Field is a 'choice' field. Type should be one of FHIRDateTime, Period, Timing. To pass the value in, wrap with one of the DeviceRequestBuilder.occurrence static methods
      • withPerformerType

        public DeviceRequestBuilder.Impl withPerformerType​(@NonNull
                                                           @NonNull com.babylonhealth.lit.core.model.CodeableConcept performerType)
        Parameters:
        performerType - - Desired type of performer for doing the diagnostic testing.
      • withPerformerType

        public DeviceRequestBuilder.Impl withPerformerType​(@NonNull
                                                           @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder performerType)
      • withSupportingInfo

        public DeviceRequestBuilder.Impl withSupportingInfo​(@NonNull
                                                            @NonNull com.babylonhealth.lit.core.model.Reference... supportingInfo)
        Parameters:
        supportingInfo - - Additional clinical information about the patient that may influence the request fulfilment. For example, this may include where on the subject's body the device will be used (i.e. the target site).
      • withSupportingInfo

        public DeviceRequestBuilder.Impl withSupportingInfo​(@NonNull
                                                            @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> supportingInfo)
        Parameters:
        supportingInfo - - Additional clinical information about the patient that may influence the request fulfilment. For example, this may include where on the subject's body the device will be used (i.e. the target site).
      • withSupportingInfo

        public DeviceRequestBuilder.Impl withSupportingInfo​(@NonNull
                                                            @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... supportingInfo)
      • withInstantiatesUri

        public DeviceRequestBuilder.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 DeviceRequest.
      • withInstantiatesUri

        public DeviceRequestBuilder.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 DeviceRequest.
      • withGroupIdentifier

        public DeviceRequestBuilder.Impl withGroupIdentifier​(@NonNull
                                                             @NonNull com.babylonhealth.lit.core.model.Identifier groupIdentifier)
        Parameters:
        groupIdentifier - - Composite request this is part of.
      • withGroupIdentifier

        public DeviceRequestBuilder.Impl withGroupIdentifier​(@NonNull
                                                             @NonNull com.babylonhealth.lit.core_java.builders.IdentifierBuilder groupIdentifier)
      • withReasonReference

        public DeviceRequestBuilder.Impl withReasonReference​(@NonNull
                                                             @NonNull com.babylonhealth.lit.core.model.Reference... reasonReference)
        Parameters:
        reasonReference - - Reason or justification for the use of this device.
      • withReasonReference

        public DeviceRequestBuilder.Impl withReasonReference​(@NonNull
                                                             @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> reasonReference)
        Parameters:
        reasonReference - - Reason or justification for the use of this device.
      • withReasonReference

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

        public DeviceRequestBuilder.Impl withRelevantHistory​(@NonNull
                                                             @NonNull com.babylonhealth.lit.core.model.Reference... relevantHistory)
        Parameters:
        relevantHistory - - Key events in the history of the request.
      • withRelevantHistory

        public DeviceRequestBuilder.Impl withRelevantHistory​(@NonNull
                                                             @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> relevantHistory)
        Parameters:
        relevantHistory - - Key events in the history of the request.
      • withRelevantHistory

        public DeviceRequestBuilder.Impl withRelevantHistory​(@NonNull
                                                             @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... relevantHistory)
      • withModifierExtension

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

        public DeviceRequestBuilder.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 DeviceRequest.
      • withInstantiatesCanonical

        public DeviceRequestBuilder.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 DeviceRequest.
      • withParameter

        public DeviceRequestBuilder.Impl withParameter​(@NonNull
                                                       @NonNull com.babylonhealth.lit.hl7.model.DeviceRequest.Parameter... parameter)
        Parameters:
        parameter - - Specific parameters for the ordered item. For example, the prism value for lenses.
      • withParameter

        public DeviceRequestBuilder.Impl withParameter​(@NonNull
                                                       @NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.DeviceRequest.Parameter> parameter)
        Parameters:
        parameter - - Specific parameters for the ordered item. For example, the prism value for lenses.
      • build

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