Class CommunicationBuilder.Impl

    • Constructor Detail

      • Impl

        public Impl​(com.babylonhealth.lit.hl7.EVENT_STATUS status)
        Required fields for Communication
        Parameters:
        status - - The status of the transmission.
    • Method Detail

      • withId

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

        public CommunicationBuilder.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.
      • withSent

        public CommunicationBuilder.Impl withSent​(@NonNull
                                                  @NonNull com.babylonhealth.lit.core.FHIRDateTime sent)
        Parameters:
        sent - - The time when this communication was sent.
      • withNote

        public CommunicationBuilder.Impl withNote​(@NonNull
                                                  @NonNull com.babylonhealth.lit.core.model.Annotation... note)
        Parameters:
        note - - Additional notes or commentary about the communication by the sender, receiver or other interested parties.
      • withNote

        public CommunicationBuilder.Impl withNote​(@NonNull
                                                  @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Annotation> note)
        Parameters:
        note - - Additional notes or commentary about the communication by the sender, receiver or other interested parties.
      • withNote

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

        public CommunicationBuilder.Impl withTopic​(@NonNull
                                                   @NonNull com.babylonhealth.lit.core.model.CodeableConcept topic)
        Parameters:
        topic - - Description of the purpose/content, similar to a subject line in an email.
      • withTopic

        public CommunicationBuilder.Impl withTopic​(@NonNull
                                                   @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder topic)
      • withAbout

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

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

        public CommunicationBuilder.Impl withAbout​(@NonNull
                                                   @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... about)
      • withPartOf

        public CommunicationBuilder.Impl withPartOf​(@NonNull
                                                    @NonNull com.babylonhealth.lit.core.model.Reference... partOf)
        Parameters:
        partOf - - Part of this action.
      • withPartOf

        public CommunicationBuilder.Impl withPartOf​(@NonNull
                                                    @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> partOf)
        Parameters:
        partOf - - Part of this action.
      • withPartOf

        public CommunicationBuilder.Impl withPartOf​(@NonNull
                                                    @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... partOf)
      • withMedium

        public CommunicationBuilder.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 CommunicationBuilder.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 CommunicationBuilder.Impl withMedium​(@NonNull
                                                    @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... medium)
      • withSender

        public CommunicationBuilder.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 was the source of the communication.
      • withSender

        public CommunicationBuilder.Impl withSender​(@NonNull
                                                    @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder sender)
      • withBasedOn

        public CommunicationBuilder.Impl withBasedOn​(@NonNull
                                                     @NonNull com.babylonhealth.lit.core.model.Reference... basedOn)
        Parameters:
        basedOn - - An order, proposal or plan fulfilled in whole or in part by this Communication.
      • withBasedOn

        public CommunicationBuilder.Impl withBasedOn​(@NonNull
                                                     @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> basedOn)
        Parameters:
        basedOn - - An order, proposal or plan fulfilled in whole or in part by this Communication.
      • withBasedOn

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

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

        public CommunicationBuilder.Impl withSubject​(@NonNull
                                                     @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder subject)
      • withLanguage

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

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

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

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

        public CommunicationBuilder.Impl withPriority​(@NonNull
                                                      @NonNull com.babylonhealth.lit.hl7.REQUEST_PRIORITY priority)
        Parameters:
        priority - - Characterizes how quickly the planned or in progress communication must be addressed. Includes concepts such as stat, urgent, routine.
      • withReceived

        public CommunicationBuilder.Impl withReceived​(@NonNull
                                                      @NonNull com.babylonhealth.lit.core.FHIRDateTime received)
        Parameters:
        received - - The time when this communication arrived at the destination.
      • withContained

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

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

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

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

        public CommunicationBuilder.Impl withRecipient​(@NonNull
                                                       @NonNull com.babylonhealth.lit.core.model.Reference... recipient)
        Parameters:
        recipient - - The entity (e.g. person, organization, clinical information system, care team or device) which was the target of the communication. If receipts need to be tracked by an individual, a separate resource instance will need to be created for each recipient. Multiple recipient communications are intended where either receipts are not tracked (e.g. a mass mail-out) or a receipt is captured in aggregate (all emails confirmed received by a particular time).
      • withRecipient

        public CommunicationBuilder.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, care team or device) which was the target of the communication. If receipts need to be tracked by an individual, a separate resource instance will need to be created for each recipient. Multiple recipient communications are intended where either receipts are not tracked (e.g. a mass mail-out) or a receipt is captured in aggregate (all emails confirmed received by a particular time).
      • withRecipient

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

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

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

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

        public CommunicationBuilder.Impl withReasonCode​(@NonNull
                                                        @NonNull com.babylonhealth.lit.core.model.CodeableConcept... reasonCode)
        Parameters:
        reasonCode - - The reason or justification for the communication.
      • withReasonCode

        public CommunicationBuilder.Impl withReasonCode​(@NonNull
                                                        @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> reasonCode)
        Parameters:
        reasonCode - - The reason or justification for the communication.
      • withReasonCode

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

        public CommunicationBuilder.Impl withInResponseTo​(@NonNull
                                                          @NonNull com.babylonhealth.lit.core.model.Reference... inResponseTo)
        Parameters:
        inResponseTo - - Prior communication that this communication is in response to.
      • withInResponseTo

        public CommunicationBuilder.Impl withInResponseTo​(@NonNull
                                                          @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> inResponseTo)
        Parameters:
        inResponseTo - - Prior communication that this communication is in response to.
      • withInResponseTo

        public CommunicationBuilder.Impl withInResponseTo​(@NonNull
                                                          @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... inResponseTo)
      • withStatusReason

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

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

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

        public CommunicationBuilder.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 Communication.
      • withInstantiatesUri

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

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

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

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

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

        public CommunicationBuilder.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 Communication.
      • withInstantiatesCanonical

        public CommunicationBuilder.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 Communication.
      • withPayload

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

        public CommunicationBuilder.Impl withPayload​(@NonNull
                                                     @NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.Communication.Payload> payload)
        Parameters:
        payload - - Text, attachment(s), or resource(s) that was communicated to the recipient.
      • build

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