Class HealthcareServiceBuilder.Impl

    • Constructor Detail

      • Impl

        public Impl()
        Required fields for HealthcareService
    • Method Detail

      • withId

        public HealthcareServiceBuilder.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 HealthcareServiceBuilder.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 HealthcareServiceBuilder.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.
      • withType

        public HealthcareServiceBuilder.Impl withType​(@NonNull
                                                      @NonNull com.babylonhealth.lit.core.model.CodeableConcept... _type)
        Parameters:
        _type - - The specific type of service that may be delivered or performed.
      • withType

        public HealthcareServiceBuilder.Impl withType​(@NonNull
                                                      @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> _type)
        Parameters:
        _type - - The specific type of service that may be delivered or performed.
      • withType

        public HealthcareServiceBuilder.Impl withType​(@NonNull
                                                      @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... _type)
      • withName

        public HealthcareServiceBuilder.Impl withName​(@NonNull
                                                      @NonNull java.lang.String name)
        Parameters:
        name - - Further description of the service as it would be presented to a consumer while searching.
      • withPhoto

        public HealthcareServiceBuilder.Impl withPhoto​(@NonNull
                                                       @NonNull com.babylonhealth.lit.core.model.Attachment photo)
        Parameters:
        photo - - If there is a photo/symbol associated with this HealthcareService, it may be included here to facilitate quick identification of the service in a list.
      • withPhoto

        public HealthcareServiceBuilder.Impl withPhoto​(@NonNull
                                                       @NonNull com.babylonhealth.lit.core_java.builders.AttachmentBuilder photo)
      • withActive

        public HealthcareServiceBuilder.Impl withActive​(@NonNull
                                                        @NonNull java.lang.Boolean active)
        Parameters:
        active - - This flag is used to mark the record to not be used. This is not used when a center is closed for maintenance, or for holidays, the notAvailable period is to be used for this.
      • withComment

        public HealthcareServiceBuilder.Impl withComment​(@NonNull
                                                         @NonNull java.lang.String comment)
        Parameters:
        comment - - Any additional description of the service and/or any specific issues not covered by the other attributes, which can be displayed as further detail under the serviceName.
      • withTelecom

        public HealthcareServiceBuilder.Impl withTelecom​(@NonNull
                                                         @NonNull com.babylonhealth.lit.core.model.ContactPoint... telecom)
        Parameters:
        telecom - - List of contacts related to this specific healthcare service.
      • withTelecom

        public HealthcareServiceBuilder.Impl withTelecom​(@NonNull
                                                         @NonNull java.util.Collection<com.babylonhealth.lit.core.model.ContactPoint> telecom)
        Parameters:
        telecom - - List of contacts related to this specific healthcare service.
      • withTelecom

        public HealthcareServiceBuilder.Impl withTelecom​(@NonNull
                                                         @NonNull com.babylonhealth.lit.core_java.builders.ContactPointBuilder... telecom)
      • withProgram

        public HealthcareServiceBuilder.Impl withProgram​(@NonNull
                                                         @NonNull com.babylonhealth.lit.core.model.CodeableConcept... program)
        Parameters:
        program - - Programs that this service is applicable to.
      • withProgram

        public HealthcareServiceBuilder.Impl withProgram​(@NonNull
                                                         @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> program)
        Parameters:
        program - - Programs that this service is applicable to.
      • withProgram

        public HealthcareServiceBuilder.Impl withProgram​(@NonNull
                                                         @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... program)
      • withLanguage

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

        public HealthcareServiceBuilder.Impl withCategory​(@NonNull
                                                          @NonNull com.babylonhealth.lit.core.model.CodeableConcept... category)
        Parameters:
        category - - Identifies the broad category of service being performed or delivered.
      • withCategory

        public HealthcareServiceBuilder.Impl withCategory​(@NonNull
                                                          @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> category)
        Parameters:
        category - - Identifies the broad category of service being performed or delivered.
      • withCategory

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

        public HealthcareServiceBuilder.Impl withLocation​(@NonNull
                                                          @NonNull com.babylonhealth.lit.core.model.Reference... location)
        Parameters:
        location - - The location(s) where this healthcare service may be provided.
      • withLocation

        public HealthcareServiceBuilder.Impl withLocation​(@NonNull
                                                          @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> location)
        Parameters:
        location - - The location(s) where this healthcare service may be provided.
      • withLocation

        public HealthcareServiceBuilder.Impl withLocation​(@NonNull
                                                          @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... location)
      • withEndpoint

        public HealthcareServiceBuilder.Impl withEndpoint​(@NonNull
                                                          @NonNull com.babylonhealth.lit.core.model.Reference... endpoint)
        Parameters:
        endpoint - - Technical endpoints providing access to services operated for the specific healthcare services defined at this resource.
      • withEndpoint

        public HealthcareServiceBuilder.Impl withEndpoint​(@NonNull
                                                          @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> endpoint)
        Parameters:
        endpoint - - Technical endpoints providing access to services operated for the specific healthcare services defined at this resource.
      • withEndpoint

        public HealthcareServiceBuilder.Impl withEndpoint​(@NonNull
                                                          @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... endpoint)
      • withContained

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

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

        public HealthcareServiceBuilder.Impl withSpecialty​(@NonNull
                                                           @NonNull com.babylonhealth.lit.core.model.CodeableConcept... specialty)
        Parameters:
        specialty - - Collection of specialties handled by the service site. This is more of a medical term.
      • withSpecialty

        public HealthcareServiceBuilder.Impl withSpecialty​(@NonNull
                                                           @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> specialty)
        Parameters:
        specialty - - Collection of specialties handled by the service site. This is more of a medical term.
      • withSpecialty

        public HealthcareServiceBuilder.Impl withSpecialty​(@NonNull
                                                           @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... specialty)
      • withIdentifier

        public HealthcareServiceBuilder.Impl withIdentifier​(@NonNull
                                                            @NonNull com.babylonhealth.lit.core.model.Identifier... identifier)
        Parameters:
        identifier - - External identifiers for this item.
      • withIdentifier

        public HealthcareServiceBuilder.Impl withIdentifier​(@NonNull
                                                            @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Identifier> identifier)
        Parameters:
        identifier - - External identifiers for this item.
      • withIdentifier

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

        public HealthcareServiceBuilder.Impl withProvidedBy​(@NonNull
                                                            @NonNull com.babylonhealth.lit.core.model.Reference providedBy)
        Parameters:
        providedBy - - The organization that provides this healthcare service.
      • withProvidedBy

        public HealthcareServiceBuilder.Impl withProvidedBy​(@NonNull
                                                            @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder providedBy)
      • withExtraDetails

        public HealthcareServiceBuilder.Impl withExtraDetails​(@NonNull
                                                              @NonNull java.lang.String extraDetails)
        Parameters:
        extraDetails - - Extra details about the service that can't be placed in the other fields.
      • withCoverageArea

        public HealthcareServiceBuilder.Impl withCoverageArea​(@NonNull
                                                              @NonNull com.babylonhealth.lit.core.model.Reference... coverageArea)
        Parameters:
        coverageArea - - The location(s) that this service is available to (not where the service is provided).
      • withCoverageArea

        public HealthcareServiceBuilder.Impl withCoverageArea​(@NonNull
                                                              @NonNull java.util.Collection<com.babylonhealth.lit.core.model.Reference> coverageArea)
        Parameters:
        coverageArea - - The location(s) that this service is available to (not where the service is provided).
      • withCoverageArea

        public HealthcareServiceBuilder.Impl withCoverageArea​(@NonNull
                                                              @NonNull com.babylonhealth.lit.core_java.builders.ReferenceBuilder... coverageArea)
      • withImplicitRules

        public HealthcareServiceBuilder.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.
      • withCommunication

        public HealthcareServiceBuilder.Impl withCommunication​(@NonNull
                                                               @NonNull com.babylonhealth.lit.core.model.CodeableConcept... communication)
        Parameters:
        communication - - Some services are specifically made available in multiple languages, this property permits a directory to declare the languages this is offered in. Typically this is only provided where a service operates in communities with mixed languages used.
      • withCommunication

        public HealthcareServiceBuilder.Impl withCommunication​(@NonNull
                                                               @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> communication)
        Parameters:
        communication - - Some services are specifically made available in multiple languages, this property permits a directory to declare the languages this is offered in. Typically this is only provided where a service operates in communities with mixed languages used.
      • withCommunication

        public HealthcareServiceBuilder.Impl withCommunication​(@NonNull
                                                               @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... communication)
      • withCharacteristic

        public HealthcareServiceBuilder.Impl withCharacteristic​(@NonNull
                                                                @NonNull com.babylonhealth.lit.core.model.CodeableConcept... characteristic)
        Parameters:
        characteristic - - Collection of characteristics (attributes).
      • withCharacteristic

        public HealthcareServiceBuilder.Impl withCharacteristic​(@NonNull
                                                                @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> characteristic)
        Parameters:
        characteristic - - Collection of characteristics (attributes).
      • withCharacteristic

        public HealthcareServiceBuilder.Impl withCharacteristic​(@NonNull
                                                                @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... characteristic)
      • withReferralMethod

        public HealthcareServiceBuilder.Impl withReferralMethod​(@NonNull
                                                                @NonNull com.babylonhealth.lit.core.model.CodeableConcept... referralMethod)
        Parameters:
        referralMethod - - Ways that the service accepts referrals, if this is not provided then it is implied that no referral is required.
      • withReferralMethod

        public HealthcareServiceBuilder.Impl withReferralMethod​(@NonNull
                                                                @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> referralMethod)
        Parameters:
        referralMethod - - Ways that the service accepts referrals, if this is not provided then it is implied that no referral is required.
      • withReferralMethod

        public HealthcareServiceBuilder.Impl withReferralMethod​(@NonNull
                                                                @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... referralMethod)
      • withModifierExtension

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

        public HealthcareServiceBuilder.Impl withAppointmentRequired​(@NonNull
                                                                     @NonNull java.lang.Boolean appointmentRequired)
        Parameters:
        appointmentRequired - - Indicates whether or not a prospective consumer will require an appointment for a particular service at a site to be provided by the Organization. Indicates if an appointment is required for access to this service.
      • withServiceProvisionCode

        public HealthcareServiceBuilder.Impl withServiceProvisionCode​(@NonNull
                                                                      @NonNull com.babylonhealth.lit.core.model.CodeableConcept... serviceProvisionCode)
        Parameters:
        serviceProvisionCode - - The code(s) that detail the conditions under which the healthcare service is available/offered.
      • withServiceProvisionCode

        public HealthcareServiceBuilder.Impl withServiceProvisionCode​(@NonNull
                                                                      @NonNull java.util.Collection<com.babylonhealth.lit.core.model.CodeableConcept> serviceProvisionCode)
        Parameters:
        serviceProvisionCode - - The code(s) that detail the conditions under which the healthcare service is available/offered.
      • withServiceProvisionCode

        public HealthcareServiceBuilder.Impl withServiceProvisionCode​(@NonNull
                                                                      @NonNull com.babylonhealth.lit.core_java.builders.CodeableConceptBuilder... serviceProvisionCode)
      • withAvailabilityExceptions

        public HealthcareServiceBuilder.Impl withAvailabilityExceptions​(@NonNull
                                                                        @NonNull java.lang.String availabilityExceptions)
        Parameters:
        availabilityExceptions - - A description of site availability exceptions, e.g. public holiday availability. Succinctly describing all possible exceptions to normal site availability as details in the available Times and not available Times.
      • withEligibility

        public HealthcareServiceBuilder.Impl withEligibility​(@NonNull
                                                             @NonNull com.babylonhealth.lit.hl7.model.HealthcareService.Eligibility... eligibility)
        Parameters:
        eligibility - - Does this service have specific eligibility requirements that need to be met in order to use the service?
      • withEligibility

        public HealthcareServiceBuilder.Impl withEligibility​(@NonNull
                                                             @NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.HealthcareService.Eligibility> eligibility)
        Parameters:
        eligibility - - Does this service have specific eligibility requirements that need to be met in order to use the service?
      • withNotAvailable

        public HealthcareServiceBuilder.Impl withNotAvailable​(@NonNull
                                                              @NonNull com.babylonhealth.lit.hl7.model.HealthcareService.NotAvailable... notAvailable)
        Parameters:
        notAvailable - - The HealthcareService is not available during this period of time due to the provided reason.
      • withNotAvailable

        public HealthcareServiceBuilder.Impl withNotAvailable​(@NonNull
                                                              @NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.HealthcareService.NotAvailable> notAvailable)
        Parameters:
        notAvailable - - The HealthcareService is not available during this period of time due to the provided reason.
      • withAvailableTime

        public HealthcareServiceBuilder.Impl withAvailableTime​(@NonNull
                                                               @NonNull com.babylonhealth.lit.hl7.model.HealthcareService.AvailableTime... availableTime)
        Parameters:
        availableTime - - A collection of times that the Service Site is available.
      • withAvailableTime

        public HealthcareServiceBuilder.Impl withAvailableTime​(@NonNull
                                                               @NonNull java.util.Collection<com.babylonhealth.lit.hl7.model.HealthcareService.AvailableTime> availableTime)
        Parameters:
        availableTime - - A collection of times that the Service Site is available.
      • build

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