Class HealthcareService.Builder
- java.lang.Object
-
- com.ibm.fhir.model.builder.AbstractBuilder<Resource>
-
- com.ibm.fhir.model.resource.Resource.Builder
-
- com.ibm.fhir.model.resource.DomainResource.Builder
-
- com.ibm.fhir.model.resource.HealthcareService.Builder
-
- Enclosing class:
- HealthcareService
public static class HealthcareService.Builder extends DomainResource.Builder
-
-
Field Summary
-
Fields inherited from class com.ibm.fhir.model.resource.DomainResource.Builder
contained, extension, modifierExtension, text
-
Fields inherited from class com.ibm.fhir.model.resource.Resource.Builder
id, implicitRules, language, meta
-
Fields inherited from class com.ibm.fhir.model.builder.AbstractBuilder
validating
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HealthcareService.Builder
active(Boolean active)
This flag is used to mark the record to not be used.HealthcareService.Builder
active(java.lang.Boolean active)
Convenience method for settingactive
.HealthcareService.Builder
appointmentRequired(Boolean 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.HealthcareService.Builder
appointmentRequired(java.lang.Boolean appointmentRequired)
Convenience method for settingappointmentRequired
.HealthcareService.Builder
availabilityExceptions(String availabilityExceptions)
A description of site availability exceptions, e.g.HealthcareService.Builder
availabilityExceptions(java.lang.String availabilityExceptions)
Convenience method for settingavailabilityExceptions
.HealthcareService.Builder
availableTime(HealthcareService.AvailableTime... availableTime)
A collection of times that the Service Site is available.HealthcareService.Builder
availableTime(java.util.Collection<HealthcareService.AvailableTime> availableTime)
A collection of times that the Service Site is available.HealthcareService
build()
Build theHealthcareService
HealthcareService.Builder
category(CodeableConcept... category)
Identifies the broad category of service being performed or delivered.HealthcareService.Builder
category(java.util.Collection<CodeableConcept> category)
Identifies the broad category of service being performed or delivered.HealthcareService.Builder
characteristic(CodeableConcept... characteristic)
Collection of characteristics (attributes).HealthcareService.Builder
characteristic(java.util.Collection<CodeableConcept> characteristic)
Collection of characteristics (attributes).HealthcareService.Builder
comment(String 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.HealthcareService.Builder
comment(java.lang.String comment)
Convenience method for settingcomment
.HealthcareService.Builder
communication(CodeableConcept... communication)
Some services are specifically made available in multiple languages, this property permits a directory to declare the languages this is offered in.HealthcareService.Builder
communication(java.util.Collection<CodeableConcept> communication)
Some services are specifically made available in multiple languages, this property permits a directory to declare the languages this is offered in.HealthcareService.Builder
contained(Resource... 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.HealthcareService.Builder
contained(java.util.Collection<Resource> 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.HealthcareService.Builder
coverageArea(Reference... coverageArea)
The location(s) that this service is available to (not where the service is provided).HealthcareService.Builder
coverageArea(java.util.Collection<Reference> coverageArea)
The location(s) that this service is available to (not where the service is provided).HealthcareService.Builder
eligibility(HealthcareService.Eligibility... eligibility)
Does this service have specific eligibility requirements that need to be met in order to use the service?HealthcareService.Builder
eligibility(java.util.Collection<HealthcareService.Eligibility> eligibility)
Does this service have specific eligibility requirements that need to be met in order to use the service?HealthcareService.Builder
endpoint(Reference... endpoint)
Technical endpoints providing access to services operated for the specific healthcare services defined at this resource.HealthcareService.Builder
endpoint(java.util.Collection<Reference> endpoint)
Technical endpoints providing access to services operated for the specific healthcare services defined at this resource.HealthcareService.Builder
extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the resource.HealthcareService.Builder
extension(java.util.Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the resource.HealthcareService.Builder
extraDetails(Markdown extraDetails)
Extra details about the service that can't be placed in the other fields.protected HealthcareService.Builder
from(HealthcareService healthcareService)
HealthcareService.Builder
id(java.lang.String id)
The logical id of the resource, as used in the URL for the resource.HealthcareService.Builder
identifier(Identifier... identifier)
External identifiers for this item.HealthcareService.Builder
identifier(java.util.Collection<Identifier> identifier)
External identifiers for this item.HealthcareService.Builder
implicitRules(Uri 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.HealthcareService.Builder
language(Code language)
The base language in which the resource is written.HealthcareService.Builder
location(Reference... location)
The location(s) where this healthcare service may be provided.HealthcareService.Builder
location(java.util.Collection<Reference> location)
The location(s) where this healthcare service may be provided.HealthcareService.Builder
meta(Meta meta)
The metadata about the resource.HealthcareService.Builder
modifierExtension(Extension... 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.HealthcareService.Builder
modifierExtension(java.util.Collection<Extension> 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.HealthcareService.Builder
name(String name)
Further description of the service as it would be presented to a consumer while searching.HealthcareService.Builder
name(java.lang.String name)
Convenience method for settingname
.HealthcareService.Builder
notAvailable(HealthcareService.NotAvailable... notAvailable)
The HealthcareService is not available during this period of time due to the provided reason.HealthcareService.Builder
notAvailable(java.util.Collection<HealthcareService.NotAvailable> notAvailable)
The HealthcareService is not available during this period of time due to the provided reason.HealthcareService.Builder
photo(Attachment 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.HealthcareService.Builder
program(CodeableConcept... program)
Programs that this service is applicable to.HealthcareService.Builder
program(java.util.Collection<CodeableConcept> program)
Programs that this service is applicable to.HealthcareService.Builder
providedBy(Reference providedBy)
The organization that provides this healthcare service.HealthcareService.Builder
referralMethod(CodeableConcept... referralMethod)
Ways that the service accepts referrals, if this is not provided then it is implied that no referral is required.HealthcareService.Builder
referralMethod(java.util.Collection<CodeableConcept> referralMethod)
Ways that the service accepts referrals, if this is not provided then it is implied that no referral is required.HealthcareService.Builder
serviceProvisionCode(CodeableConcept... serviceProvisionCode)
The code(s) that detail the conditions under which the healthcare service is available/offered.HealthcareService.Builder
serviceProvisionCode(java.util.Collection<CodeableConcept> serviceProvisionCode)
The code(s) that detail the conditions under which the healthcare service is available/offered.HealthcareService.Builder
specialty(CodeableConcept... specialty)
Collection of specialties handled by the service site.HealthcareService.Builder
specialty(java.util.Collection<CodeableConcept> specialty)
Collection of specialties handled by the service site.HealthcareService.Builder
telecom(ContactPoint... telecom)
List of contacts related to this specific healthcare service.HealthcareService.Builder
telecom(java.util.Collection<ContactPoint> telecom)
List of contacts related to this specific healthcare service.HealthcareService.Builder
text(Narrative 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.HealthcareService.Builder
type(CodeableConcept... type)
The specific type of service that may be delivered or performed.HealthcareService.Builder
type(java.util.Collection<CodeableConcept> type)
The specific type of service that may be delivered or performed.protected void
validate(HealthcareService healthcareService)
-
Methods inherited from class com.ibm.fhir.model.resource.DomainResource.Builder
from, validate
-
Methods inherited from class com.ibm.fhir.model.resource.Resource.Builder
from, validate
-
Methods inherited from class com.ibm.fhir.model.builder.AbstractBuilder
isValidating, setValidating
-
-
-
-
Method Detail
-
id
public HealthcareService.Builder id(java.lang.String id)
The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.- Overrides:
id
in classDomainResource.Builder
- Parameters:
id
- Logical id of this artifact- Returns:
- A reference to this Builder instance
-
meta
public HealthcareService.Builder meta(Meta 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.- Overrides:
meta
in classDomainResource.Builder
- Parameters:
meta
- Metadata about the resource- Returns:
- A reference to this Builder instance
-
implicitRules
public HealthcareService.Builder implicitRules(Uri 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.- Overrides:
implicitRules
in classDomainResource.Builder
- Parameters:
implicitRules
- A set of rules under which this content was created- Returns:
- A reference to this Builder instance
-
language
public HealthcareService.Builder language(Code language)
The base language in which the resource is written.- Overrides:
language
in classDomainResource.Builder
- Parameters:
language
- Language of the resource content- Returns:
- A reference to this Builder instance
-
text
public HealthcareService.Builder text(Narrative 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.- Overrides:
text
in classDomainResource.Builder
- Parameters:
text
- Text summary of the resource, for human interpretation- Returns:
- A reference to this Builder instance
-
contained
public HealthcareService.Builder contained(Resource... 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.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Overrides:
contained
in classDomainResource.Builder
- Parameters:
contained
- Contained, inline Resources- Returns:
- A reference to this Builder instance
-
contained
public HealthcareService.Builder contained(java.util.Collection<Resource> 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.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Overrides:
contained
in classDomainResource.Builder
- Parameters:
contained
- Contained, inline Resources- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
extension
public HealthcareService.Builder extension(Extension... 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.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Overrides:
extension
in classDomainResource.Builder
- Parameters:
extension
- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public HealthcareService.Builder extension(java.util.Collection<Extension> 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.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Overrides:
extension
in classDomainResource.Builder
- Parameters:
extension
- Additional content defined by implementations- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
modifierExtension
public HealthcareService.Builder modifierExtension(Extension... 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).
Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Overrides:
modifierExtension
in classDomainResource.Builder
- Parameters:
modifierExtension
- Extensions that cannot be ignored- Returns:
- A reference to this Builder instance
-
modifierExtension
public HealthcareService.Builder modifierExtension(java.util.Collection<Extension> 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).
Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Overrides:
modifierExtension
in classDomainResource.Builder
- Parameters:
modifierExtension
- Extensions that cannot be ignored- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
identifier
public HealthcareService.Builder identifier(Identifier... identifier)
External identifiers for this item.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
identifier
- External identifiers for this item- Returns:
- A reference to this Builder instance
-
identifier
public HealthcareService.Builder identifier(java.util.Collection<Identifier> identifier)
External identifiers for this item.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
identifier
- External identifiers for this item- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
active
public HealthcareService.Builder active(java.lang.Boolean active)
Convenience method for settingactive
.- Parameters:
active
- Whether this HealthcareService record is in active use- Returns:
- A reference to this Builder instance
- See Also:
active(com.ibm.fhir.model.type.Boolean)
-
active
public HealthcareService.Builder active(Boolean 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.- Parameters:
active
- Whether this HealthcareService record is in active use- Returns:
- A reference to this Builder instance
-
providedBy
public HealthcareService.Builder providedBy(Reference providedBy)
The organization that provides this healthcare service.Allowed resource types for this reference:
- Parameters:
providedBy
- Organization that provides this service- Returns:
- A reference to this Builder instance
-
category
public HealthcareService.Builder category(CodeableConcept... category)
Identifies the broad category of service being performed or delivered.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
category
- Broad category of service being performed or delivered- Returns:
- A reference to this Builder instance
-
category
public HealthcareService.Builder category(java.util.Collection<CodeableConcept> category)
Identifies the broad category of service being performed or delivered.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
category
- Broad category of service being performed or delivered- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
type
public HealthcareService.Builder type(CodeableConcept... type)
The specific type of service that may be delivered or performed.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
type
- Type of service that may be delivered or performed- Returns:
- A reference to this Builder instance
-
type
public HealthcareService.Builder type(java.util.Collection<CodeableConcept> type)
The specific type of service that may be delivered or performed.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
type
- Type of service that may be delivered or performed- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
specialty
public HealthcareService.Builder specialty(CodeableConcept... specialty)
Collection of specialties handled by the service site. This is more of a medical term.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
specialty
- Specialties handled by the HealthcareService- Returns:
- A reference to this Builder instance
-
specialty
public HealthcareService.Builder specialty(java.util.Collection<CodeableConcept> specialty)
Collection of specialties handled by the service site. This is more of a medical term.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
specialty
- Specialties handled by the HealthcareService- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
location
public HealthcareService.Builder location(Reference... location)
The location(s) where this healthcare service may be provided.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.Allowed resource types for the references:
- Parameters:
location
- Location(s) where service may be provided- Returns:
- A reference to this Builder instance
-
location
public HealthcareService.Builder location(java.util.Collection<Reference> location)
The location(s) where this healthcare service may be provided.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.Allowed resource types for the references:
- Parameters:
location
- Location(s) where service may be provided- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
name
public HealthcareService.Builder name(java.lang.String name)
Convenience method for settingname
.- Parameters:
name
- Description of service as presented to a consumer while searching- Returns:
- A reference to this Builder instance
- See Also:
name(com.ibm.fhir.model.type.String)
-
name
public HealthcareService.Builder name(String name)
Further description of the service as it would be presented to a consumer while searching.- Parameters:
name
- Description of service as presented to a consumer while searching- Returns:
- A reference to this Builder instance
-
comment
public HealthcareService.Builder comment(java.lang.String comment)
Convenience method for settingcomment
.- Parameters:
comment
- Additional description and/or any specific issues not covered elsewhere- Returns:
- A reference to this Builder instance
- See Also:
comment(com.ibm.fhir.model.type.String)
-
comment
public HealthcareService.Builder comment(String 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.- Parameters:
comment
- Additional description and/or any specific issues not covered elsewhere- Returns:
- A reference to this Builder instance
-
extraDetails
public HealthcareService.Builder extraDetails(Markdown extraDetails)
Extra details about the service that can't be placed in the other fields.- Parameters:
extraDetails
- Extra details about the service that can't be placed in the other fields- Returns:
- A reference to this Builder instance
-
photo
public HealthcareService.Builder photo(Attachment 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.- Parameters:
photo
- Facilitates quick identification of the service- Returns:
- A reference to this Builder instance
-
telecom
public HealthcareService.Builder telecom(ContactPoint... telecom)
List of contacts related to this specific healthcare service.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
telecom
- Contacts related to the healthcare service- Returns:
- A reference to this Builder instance
-
telecom
public HealthcareService.Builder telecom(java.util.Collection<ContactPoint> telecom)
List of contacts related to this specific healthcare service.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
telecom
- Contacts related to the healthcare service- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
coverageArea
public HealthcareService.Builder coverageArea(Reference... coverageArea)
The location(s) that this service is available to (not where the service is provided).Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.Allowed resource types for the references:
- Parameters:
coverageArea
- Location(s) service is intended for/available to- Returns:
- A reference to this Builder instance
-
coverageArea
public HealthcareService.Builder coverageArea(java.util.Collection<Reference> coverageArea)
The location(s) that this service is available to (not where the service is provided).Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.Allowed resource types for the references:
- Parameters:
coverageArea
- Location(s) service is intended for/available to- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
serviceProvisionCode
public HealthcareService.Builder serviceProvisionCode(CodeableConcept... serviceProvisionCode)
The code(s) that detail the conditions under which the healthcare service is available/offered.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
serviceProvisionCode
- Conditions under which service is available/offered- Returns:
- A reference to this Builder instance
-
serviceProvisionCode
public HealthcareService.Builder serviceProvisionCode(java.util.Collection<CodeableConcept> serviceProvisionCode)
The code(s) that detail the conditions under which the healthcare service is available/offered.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
serviceProvisionCode
- Conditions under which service is available/offered- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
eligibility
public HealthcareService.Builder eligibility(HealthcareService.Eligibility... eligibility)
Does this service have specific eligibility requirements that need to be met in order to use the service?Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
eligibility
- Specific eligibility requirements required to use the service- Returns:
- A reference to this Builder instance
-
eligibility
public HealthcareService.Builder eligibility(java.util.Collection<HealthcareService.Eligibility> eligibility)
Does this service have specific eligibility requirements that need to be met in order to use the service?Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
eligibility
- Specific eligibility requirements required to use the service- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
program
public HealthcareService.Builder program(CodeableConcept... program)
Programs that this service is applicable to.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
program
- Programs that this service is applicable to- Returns:
- A reference to this Builder instance
-
program
public HealthcareService.Builder program(java.util.Collection<CodeableConcept> program)
Programs that this service is applicable to.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
program
- Programs that this service is applicable to- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
characteristic
public HealthcareService.Builder characteristic(CodeableConcept... characteristic)
Collection of characteristics (attributes).Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
characteristic
- Collection of characteristics (attributes)- Returns:
- A reference to this Builder instance
-
characteristic
public HealthcareService.Builder characteristic(java.util.Collection<CodeableConcept> characteristic)
Collection of characteristics (attributes).Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
characteristic
- Collection of characteristics (attributes)- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
communication
public HealthcareService.Builder communication(CodeableConcept... 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.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
communication
- The language that this service is offered in- Returns:
- A reference to this Builder instance
-
communication
public HealthcareService.Builder communication(java.util.Collection<CodeableConcept> 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.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
communication
- The language that this service is offered in- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
referralMethod
public HealthcareService.Builder referralMethod(CodeableConcept... referralMethod)
Ways that the service accepts referrals, if this is not provided then it is implied that no referral is required.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
referralMethod
- Ways that the service accepts referrals- Returns:
- A reference to this Builder instance
-
referralMethod
public HealthcareService.Builder referralMethod(java.util.Collection<CodeableConcept> referralMethod)
Ways that the service accepts referrals, if this is not provided then it is implied that no referral is required.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
referralMethod
- Ways that the service accepts referrals- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
appointmentRequired
public HealthcareService.Builder appointmentRequired(java.lang.Boolean appointmentRequired)
Convenience method for settingappointmentRequired
.- Parameters:
appointmentRequired
- If an appointment is required for access to this service- Returns:
- A reference to this Builder instance
- See Also:
appointmentRequired(com.ibm.fhir.model.type.Boolean)
-
appointmentRequired
public HealthcareService.Builder appointmentRequired(Boolean 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.- Parameters:
appointmentRequired
- If an appointment is required for access to this service- Returns:
- A reference to this Builder instance
-
availableTime
public HealthcareService.Builder availableTime(HealthcareService.AvailableTime... availableTime)
A collection of times that the Service Site is available.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
availableTime
- Times the Service Site is available- Returns:
- A reference to this Builder instance
-
availableTime
public HealthcareService.Builder availableTime(java.util.Collection<HealthcareService.AvailableTime> availableTime)
A collection of times that the Service Site is available.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
availableTime
- Times the Service Site is available- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
notAvailable
public HealthcareService.Builder notAvailable(HealthcareService.NotAvailable... notAvailable)
The HealthcareService is not available during this period of time due to the provided reason.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.- Parameters:
notAvailable
- Not available during this time due to provided reason- Returns:
- A reference to this Builder instance
-
notAvailable
public HealthcareService.Builder notAvailable(java.util.Collection<HealthcareService.NotAvailable> notAvailable)
The HealthcareService is not available during this period of time due to the provided reason.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.- Parameters:
notAvailable
- Not available during this time due to provided reason- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
availabilityExceptions
public HealthcareService.Builder availabilityExceptions(java.lang.String availabilityExceptions)
Convenience method for settingavailabilityExceptions
.- Parameters:
availabilityExceptions
- Description of availability exceptions- Returns:
- A reference to this Builder instance
- See Also:
availabilityExceptions(com.ibm.fhir.model.type.String)
-
availabilityExceptions
public HealthcareService.Builder availabilityExceptions(String 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.- Parameters:
availabilityExceptions
- Description of availability exceptions- Returns:
- A reference to this Builder instance
-
endpoint
public HealthcareService.Builder endpoint(Reference... endpoint)
Technical endpoints providing access to services operated for the specific healthcare services defined at this resource.Adds new element(s) to the existing list. If any of the elements are null, calling
build()
will fail.Allowed resource types for the references:
- Parameters:
endpoint
- Technical endpoints providing access to electronic services operated for the healthcare service- Returns:
- A reference to this Builder instance
-
endpoint
public HealthcareService.Builder endpoint(java.util.Collection<Reference> endpoint)
Technical endpoints providing access to services operated for the specific healthcare services defined at this resource.Replaces the existing list with a new one containing elements from the Collection. If any of the elements are null, calling
build()
will fail.Allowed resource types for the references:
- Parameters:
endpoint
- Technical endpoints providing access to electronic services operated for the healthcare service- Returns:
- A reference to this Builder instance
- Throws:
java.lang.NullPointerException
- If the passed collection is null
-
build
public HealthcareService build()
Build theHealthcareService
- Specified by:
build
in interfaceBuilder<Resource>
- Specified by:
build
in classDomainResource.Builder
- Returns:
- An immutable object of type
HealthcareService
- Throws:
java.lang.IllegalStateException
- if the current state cannot be built into a valid HealthcareService per the base specification
-
validate
protected void validate(HealthcareService healthcareService)
-
from
protected HealthcareService.Builder from(HealthcareService healthcareService)
-
-