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
-
-
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
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
availabilityExceptions(String availabilityExceptions)
A description of site availability exceptions, e.g.HealthcareService.Builder
availableTime(HealthcareService.AvailableTime... availableTime)
A collection of times that the Service Site is available.HealthcareService.Builder
availableTime(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(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(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
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(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(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(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(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(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(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(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(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(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(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
notAvailable(HealthcareService.NotAvailable... notAvailable)
The HealthcareService is not available during this period of time due to the provided reason.HealthcareService.Builder
notAvailable(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(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(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(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(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(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(Collection<CodeableConcept> type)
The specific type of service that may be delivered or performed.-
Methods inherited from class com.ibm.fhir.model.resource.DomainResource.Builder
from
-
Methods inherited from class com.ibm.fhir.model.resource.Resource.Builder
from
-
-
-
-
Method Detail
-
id
public HealthcareService.Builder id(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
- Overrides:
contained
in classDomainResource.Builder
- Parameters:
contained
- Contained, inline Resources- Returns:
- A reference to this Builder instance
-
contained
public HealthcareService.Builder contained(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
- Overrides:
contained
in classDomainResource.Builder
- Parameters:
contained
- Contained, inline Resources- Returns:
- A reference to this Builder instance
-
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
- Overrides:
extension
in classDomainResource.Builder
- Parameters:
extension
- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
extension
public HealthcareService.Builder extension(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
- Overrides:
extension
in classDomainResource.Builder
- Parameters:
extension
- Additional content defined by implementations- Returns:
- A reference to this Builder instance
-
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
- Overrides:
modifierExtension
in classDomainResource.Builder
- Parameters:
modifierExtension
- Extensions that cannot be ignored- Returns:
- A reference to this Builder instance
-
modifierExtension
public HealthcareService.Builder modifierExtension(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
- Overrides:
modifierExtension
in classDomainResource.Builder
- Parameters:
modifierExtension
- Extensions that cannot be ignored- Returns:
- A reference to this Builder instance
-
identifier
public HealthcareService.Builder identifier(Identifier... identifier)
External identifiers for this item.Adds new element(s) to the existing list
- Parameters:
identifier
- External identifiers for this item- Returns:
- A reference to this Builder instance
-
identifier
public HealthcareService.Builder identifier(Collection<Identifier> identifier)
External identifiers for this item.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
identifier
- External identifiers for this item- Returns:
- A reference to this Builder instance
-
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
- Parameters:
category
- Broad category of service being performed or delivered- Returns:
- A reference to this Builder instance
-
category
public HealthcareService.Builder category(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
- Parameters:
category
- Broad category of service being performed or delivered- Returns:
- A reference to this Builder instance
-
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
- Parameters:
type
- Type of service that may be delivered or performed- Returns:
- A reference to this Builder instance
-
type
public HealthcareService.Builder type(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
- Parameters:
type
- Type of service that may be delivered or performed- Returns:
- A reference to this Builder instance
-
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
- Parameters:
specialty
- Specialties handled by the HealthcareService- Returns:
- A reference to this Builder instance
-
specialty
public HealthcareService.Builder specialty(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
- Parameters:
specialty
- Specialties handled by the HealthcareService- Returns:
- A reference to this Builder instance
-
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
- Parameters:
location
- Location(s) where service may be provided- Returns:
- A reference to this Builder instance
-
location
public HealthcareService.Builder location(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
- Parameters:
location
- Location(s) where service may be provided- Returns:
- A reference to this Builder instance
-
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(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
- Parameters:
telecom
- Contacts related to the healthcare service- Returns:
- A reference to this Builder instance
-
telecom
public HealthcareService.Builder telecom(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
- Parameters:
telecom
- Contacts related to the healthcare service- Returns:
- A reference to this Builder instance
-
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
- Parameters:
coverageArea
- Location(s) service is intended for/available to- Returns:
- A reference to this Builder instance
-
coverageArea
public HealthcareService.Builder coverageArea(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
- Parameters:
coverageArea
- Location(s) service is intended for/available to- Returns:
- A reference to this Builder instance
-
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
- Parameters:
serviceProvisionCode
- Conditions under which service is available/offered- Returns:
- A reference to this Builder instance
-
serviceProvisionCode
public HealthcareService.Builder serviceProvisionCode(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
- Parameters:
serviceProvisionCode
- Conditions under which service is available/offered- Returns:
- A reference to this Builder instance
-
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
- Parameters:
eligibility
- Specific eligibility requirements required to use the service- Returns:
- A reference to this Builder instance
-
eligibility
public HealthcareService.Builder eligibility(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
- Parameters:
eligibility
- Specific eligibility requirements required to use the service- Returns:
- A reference to this Builder instance
-
program
public HealthcareService.Builder program(CodeableConcept... program)
Programs that this service is applicable to.Adds new element(s) to the existing list
- Parameters:
program
- Programs that this service is applicable to- Returns:
- A reference to this Builder instance
-
program
public HealthcareService.Builder program(Collection<CodeableConcept> program)
Programs that this service is applicable to.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
program
- Programs that this service is applicable to- Returns:
- A reference to this Builder instance
-
characteristic
public HealthcareService.Builder characteristic(CodeableConcept... characteristic)
Collection of characteristics (attributes).Adds new element(s) to the existing list
- Parameters:
characteristic
- Collection of characteristics (attributes)- Returns:
- A reference to this Builder instance
-
characteristic
public HealthcareService.Builder characteristic(Collection<CodeableConcept> characteristic)
Collection of characteristics (attributes).Replaces the existing list with a new one containing elements from the Collection
- Parameters:
characteristic
- Collection of characteristics (attributes)- Returns:
- A reference to this Builder instance
-
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
- Parameters:
communication
- The language that this service is offered in- Returns:
- A reference to this Builder instance
-
communication
public HealthcareService.Builder communication(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
- Parameters:
communication
- The language that this service is offered in- Returns:
- A reference to this Builder instance
-
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
- Parameters:
referralMethod
- Ways that the service accepts referrals- Returns:
- A reference to this Builder instance
-
referralMethod
public HealthcareService.Builder referralMethod(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
- Parameters:
referralMethod
- Ways that the service accepts referrals- Returns:
- A reference to this Builder instance
-
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
- Parameters:
availableTime
- Times the Service Site is available- Returns:
- A reference to this Builder instance
-
availableTime
public HealthcareService.Builder availableTime(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
- Parameters:
availableTime
- Times the Service Site is available- Returns:
- A reference to this Builder instance
-
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
- Parameters:
notAvailable
- Not available during this time due to provided reason- Returns:
- A reference to this Builder instance
-
notAvailable
public HealthcareService.Builder notAvailable(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
- Parameters:
notAvailable
- Not available during this time due to provided reason- Returns:
- A reference to this Builder instance
-
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
- 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(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
- Parameters:
endpoint
- Technical endpoints providing access to electronic services operated for the healthcare service- Returns:
- A reference to this Builder instance
-
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:
IllegalStateException
- if the current state cannot be built into a valid HealthcareService per the base specification
-
from
protected HealthcareService.Builder from(HealthcareService healthcareService)
-
-