Class CommunicationRequestBuilder.Impl

    • Constructor Detail

      • Impl

        public Impl​(com.babylonhealth.lit.hl7.REQUEST_STATUS status)
        Required fields for CommunicationRequest
        Parameters:
        status - - The status of the proposal or order.
    • Method Detail

      • withId

        public CommunicationRequestBuilder.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 CommunicationRequestBuilder.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 CommunicationRequestBuilder.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 CommunicationRequestBuilder.Impl withNote​(@NonNull
                                                         @NonNull com.babylonhealth.lit.core.model.Annotation... note)
        Parameters:
        note - - Comments made about the request by the requester, sender, recipient, subject or other participants.
      • withNote

        public CommunicationRequestBuilder.Impl withNote​(@NonNull
                                                         @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Annotation> note)
        Parameters:
        note - - Comments made about the request by the requester, sender, recipient, subject or other participants.
      • withAbout

        public CommunicationRequestBuilder.Impl withAbout​(@NonNull
                                                          @NonNull com.babylonhealth.lit.core.model.Reference... about)
        Parameters:
        about - - Other resources that pertain to this communication request and to which this communication request should be associated.
      • withAbout

        public CommunicationRequestBuilder.Impl withAbout​(@NonNull
                                                          @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> about)
        Parameters:
        about - - Other resources that pertain to this communication request and to which this communication request should be associated.
      • withMedium

        public CommunicationRequestBuilder.Impl withMedium​(@NonNull
                                                           @NonNull com.babylonhealth.lit.core.model.CodeableConcept... medium)
        Parameters:
        medium - - A channel that was used for this communication (e.g. email, fax).
      • withMedium

        public CommunicationRequestBuilder.Impl withMedium​(@NonNull
                                                           @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> medium)
        Parameters:
        medium - - A channel that was used for this communication (e.g. email, fax).
      • withMedium

        public CommunicationRequestBuilder.Impl withMedium​(@NonNull
                                                           @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... medium)
      • withSender

        public CommunicationRequestBuilder.Impl withSender​(@NonNull
                                                           @NonNull com.babylonhealth.lit.core.model.Reference sender)
        Parameters:
        sender - - The entity (e.g. person, organization, clinical information system, or device) which is to be the source of the communication.
      • withBasedOn

        public CommunicationRequestBuilder.Impl withBasedOn​(@NonNull
                                                            @NonNull com.babylonhealth.lit.core.model.Reference... basedOn)
        Parameters:
        basedOn - - A plan or proposal that is fulfilled in whole or in part by this request.
      • withBasedOn

        public CommunicationRequestBuilder.Impl withBasedOn​(@NonNull
                                                            @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> basedOn)
        Parameters:
        basedOn - - A plan or proposal that is fulfilled in whole or in part by this request.
      • withSubject

        public CommunicationRequestBuilder.Impl withSubject​(@NonNull
                                                            @NonNull com.babylonhealth.lit.core.model.Reference subject)
        Parameters:
        subject - - The patient or group that is the focus of this communication request.
      • withLanguage

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

        public CommunicationRequestBuilder.Impl withReplaces​(@NonNull
                                                             @NonNull com.babylonhealth.lit.core.model.Reference... replaces)
        Parameters:
        replaces - - Completed or terminated request(s) whose function is taken by this new request.
      • withReplaces

        public CommunicationRequestBuilder.Impl withReplaces​(@NonNull
                                                             @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> replaces)
        Parameters:
        replaces - - Completed or terminated request(s) whose function is taken by this new request.
      • withReplaces

        public CommunicationRequestBuilder.Impl withReplaces​(@NonNull
                                                             @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... replaces)
      • withCategory

        public CommunicationRequestBuilder.Impl withCategory​(@NonNull
                                                             @NonNull com.babylonhealth.lit.core.model.CodeableConcept... category)
        Parameters:
        category - - The type of message to be sent such as alert, notification, reminder, instruction, etc.
      • withCategory

        public CommunicationRequestBuilder.Impl withCategory​(@NonNull
                                                             @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> category)
        Parameters:
        category - - The type of message to be sent such as alert, notification, reminder, instruction, etc.
      • withCategory

        public CommunicationRequestBuilder.Impl withCategory​(@NonNull
                                                             @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... category)
      • withPriority

        public CommunicationRequestBuilder.Impl withPriority​(@NonNull
                                                             @NonNull com.babylonhealth.lit.hl7.REQUEST_PRIORITY priority)
        Parameters:
        priority - - Characterizes how quickly the proposed act must be initiated. Includes concepts such as stat, urgent, routine.
      • withContained

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

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

        public CommunicationRequestBuilder.Impl withEncounter​(@NonNull
                                                              @NonNull com.babylonhealth.lit.core.model.Reference encounter)
        Parameters:
        encounter - - The Encounter during which this CommunicationRequest was created or to which the creation of this record is tightly associated.
      • withEncounter

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

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

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

        public CommunicationRequestBuilder.Impl withRecipient​(@NonNull
                                                              @NonNull com.babylonhealth.lit.core.model.Reference... recipient)
        Parameters:
        recipient - - The entity (e.g. person, organization, clinical information system, device, group, or care team) which is the intended target of the communication.
      • withRecipient

        public CommunicationRequestBuilder.Impl withRecipient​(@NonNull
                                                              @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> recipient)
        Parameters:
        recipient - - The entity (e.g. person, organization, clinical information system, device, group, or care team) which is the intended target of the communication.
      • withRecipient

        public CommunicationRequestBuilder.Impl withRecipient​(@NonNull
                                                              @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... recipient)
      • withIdentifier

        public CommunicationRequestBuilder.Impl withIdentifier​(@NonNull
                                                               @NonNull com.babylonhealth.lit.core.model.Identifier... identifier)
        Parameters:
        identifier - - Business identifiers assigned to this communication request by the performer or other systems which remain constant as the resource is updated and propagates from server to server.
      • withIdentifier

        public CommunicationRequestBuilder.Impl withIdentifier​(@NonNull
                                                               @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Identifier> identifier)
        Parameters:
        identifier - - Business identifiers assigned to this communication request by the performer or other systems which remain constant as the resource is updated and propagates from server to server.
      • withIdentifier

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

        public CommunicationRequestBuilder.Impl withAuthoredOn​(@NonNull
                                                               @NonNull com.babylonhealth.lit.core.FHIRDateTime authoredOn)
        Parameters:
        authoredOn - - For draft requests, indicates the date of initial creation. For requests with other statuses, indicates the date of activation.
      • withReasonCode

        public CommunicationRequestBuilder.Impl withReasonCode​(@NonNull
                                                               @NonNull com.babylonhealth.lit.core.model.CodeableConcept... reasonCode)
        Parameters:
        reasonCode - - Describes why the request is being made in coded or textual form.
      • withReasonCode

        public CommunicationRequestBuilder.Impl withReasonCode​(@NonNull
                                                               @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> reasonCode)
        Parameters:
        reasonCode - - Describes why the request is being made in coded or textual form.
      • withReasonCode

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

        public CommunicationRequestBuilder.Impl withStatusReason​(@NonNull
                                                                 @NonNull com.babylonhealth.lit.core.model.CodeableConcept statusReason)
        Parameters:
        statusReason - - Captures the reason for the current state of the CommunicationRequest.
      • withStatusReason

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

        public CommunicationRequestBuilder.Impl withDoNotPerform​(@NonNull
                                                                 @NonNull java.lang.Boolean doNotPerform)
        Parameters:
        doNotPerform - - If true indicates that the CommunicationRequest is asking for the specified action to *not* occur.
      • withImplicitRules

        public CommunicationRequestBuilder.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 CommunicationRequestBuilder.Impl withOccurrence​(@NonNull
                                                               @NonNull Unions.ChoiceDateTimeOrPeriod occurrence)
        Parameters:
        occurrence - - The time when this communication is to occur. Field is a 'choice' field. Type should be one of FHIRDateTime, Period. To pass the value in, wrap with one of the CommunicationRequestBuilder.occurrence static methods
      • withGroupIdentifier

        public CommunicationRequestBuilder.Impl withGroupIdentifier​(@NonNull
                                                                    @NonNull com.babylonhealth.lit.core.model.Identifier groupIdentifier)
        Parameters:
        groupIdentifier - - A shared identifier common to all requests that were authorized more or less simultaneously by a single author, representing the identifier of the requisition, prescription or similar form.
      • withGroupIdentifier

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

        public CommunicationRequestBuilder.Impl withReasonReference​(@NonNull
                                                                    @NonNull com.babylonhealth.lit.core.model.Reference... reasonReference)
        Parameters:
        reasonReference - - Indicates another resource whose existence justifies this request.
      • withReasonReference

        public CommunicationRequestBuilder.Impl withReasonReference​(@NonNull
                                                                    @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> reasonReference)
        Parameters:
        reasonReference - - Indicates another resource whose existence justifies this request.
      • withReasonReference

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

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

        public CommunicationRequestBuilder.Impl withPayload​(@NonNull
                                                            @NonNull com.babylonhealth.lit.hl7.model.CommunicationRequest.Payload... payload)
        Parameters:
        payload - - Text, attachment(s), or resource(s) to be communicated to the recipient.
      • withPayload

        public CommunicationRequestBuilder.Impl withPayload​(@NonNull
                                                            @NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.CommunicationRequest.Payload> payload)
        Parameters:
        payload - - Text, attachment(s), or resource(s) to be communicated to the recipient.