Class EpisodeOfCare.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.EpisodeOfCare.Builder
-
- Enclosing class:
- EpisodeOfCare
public static class EpisodeOfCare.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 EpisodeOfCare.Builder
account(Reference... account)
The set of accounts that may be used for billing for this EpisodeOfCare.EpisodeOfCare.Builder
account(Collection<Reference> account)
The set of accounts that may be used for billing for this EpisodeOfCare.EpisodeOfCare
build()
Build theEpisodeOfCare
EpisodeOfCare.Builder
careManager(Reference careManager)
The practitioner that is the care manager/care coordinator for this patient.EpisodeOfCare.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.EpisodeOfCare.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.EpisodeOfCare.Builder
diagnosis(EpisodeOfCare.Diagnosis... diagnosis)
The list of diagnosis relevant to this episode of care.EpisodeOfCare.Builder
diagnosis(Collection<EpisodeOfCare.Diagnosis> diagnosis)
The list of diagnosis relevant to this episode of care.EpisodeOfCare.Builder
extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the resource.EpisodeOfCare.Builder
extension(Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the resource.protected EpisodeOfCare.Builder
from(EpisodeOfCare episodeOfCare)
EpisodeOfCare.Builder
id(String id)
The logical id of the resource, as used in the URL for the resource.EpisodeOfCare.Builder
identifier(Identifier... identifier)
The EpisodeOfCare may be known by different identifiers for different contexts of use, such as when an external agency is tracking the Episode for funding purposes.EpisodeOfCare.Builder
identifier(Collection<Identifier> identifier)
The EpisodeOfCare may be known by different identifiers for different contexts of use, such as when an external agency is tracking the Episode for funding purposes.EpisodeOfCare.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.EpisodeOfCare.Builder
language(Code language)
The base language in which the resource is written.EpisodeOfCare.Builder
managingOrganization(Reference managingOrganization)
The organization that has assumed the specific responsibilities for the specified duration.EpisodeOfCare.Builder
meta(Meta meta)
The metadata about the resource.EpisodeOfCare.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.EpisodeOfCare.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.EpisodeOfCare.Builder
patient(Reference patient)
The patient who is the focus of this episode of care.EpisodeOfCare.Builder
period(Period period)
The interval during which the managing organization assumes the defined responsibility.EpisodeOfCare.Builder
referralRequest(Reference... referralRequest)
Referral Request(s) that are fulfilled by this EpisodeOfCare, incoming referrals.EpisodeOfCare.Builder
referralRequest(Collection<Reference> referralRequest)
Referral Request(s) that are fulfilled by this EpisodeOfCare, incoming referrals.EpisodeOfCare.Builder
status(EpisodeOfCareStatus status)
planned | waitlist | active | onhold | finished | cancelled.EpisodeOfCare.Builder
statusHistory(EpisodeOfCare.StatusHistory... statusHistory)
The history of statuses that the EpisodeOfCare has been through (without requiring processing the history of the resource).EpisodeOfCare.Builder
statusHistory(Collection<EpisodeOfCare.StatusHistory> statusHistory)
The history of statuses that the EpisodeOfCare has been through (without requiring processing the history of the resource).EpisodeOfCare.Builder
team(Reference... team)
The list of practitioners that may be facilitating this episode of care for specific purposes.EpisodeOfCare.Builder
team(Collection<Reference> team)
The list of practitioners that may be facilitating this episode of care for specific purposes.EpisodeOfCare.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.EpisodeOfCare.Builder
type(CodeableConcept... type)
A classification of the type of episode of care; e.g.EpisodeOfCare.Builder
type(Collection<CodeableConcept> type)
A classification of the type of episode of care; e.g.-
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 EpisodeOfCare.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 EpisodeOfCare.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 EpisodeOfCare.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 EpisodeOfCare.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 EpisodeOfCare.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 EpisodeOfCare.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 EpisodeOfCare.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 EpisodeOfCare.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 EpisodeOfCare.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 EpisodeOfCare.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 EpisodeOfCare.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 EpisodeOfCare.Builder identifier(Identifier... identifier)
The EpisodeOfCare may be known by different identifiers for different contexts of use, such as when an external agency is tracking the Episode for funding purposes.Adds new element(s) to the existing list
- Parameters:
identifier
- Business Identifier(s) relevant for this EpisodeOfCare- Returns:
- A reference to this Builder instance
-
identifier
public EpisodeOfCare.Builder identifier(Collection<Identifier> identifier)
The EpisodeOfCare may be known by different identifiers for different contexts of use, such as when an external agency is tracking the Episode for funding purposes.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
identifier
- Business Identifier(s) relevant for this EpisodeOfCare- Returns:
- A reference to this Builder instance
-
status
public EpisodeOfCare.Builder status(EpisodeOfCareStatus status)
planned | waitlist | active | onhold | finished | cancelled.This element is required.
- Parameters:
status
- planned | waitlist | active | onhold | finished | cancelled | entered-in-error- Returns:
- A reference to this Builder instance
-
statusHistory
public EpisodeOfCare.Builder statusHistory(EpisodeOfCare.StatusHistory... statusHistory)
The history of statuses that the EpisodeOfCare has been through (without requiring processing the history of the resource).Adds new element(s) to the existing list
- Parameters:
statusHistory
- Past list of status codes (the current status may be included to cover the start date of the status)- Returns:
- A reference to this Builder instance
-
statusHistory
public EpisodeOfCare.Builder statusHistory(Collection<EpisodeOfCare.StatusHistory> statusHistory)
The history of statuses that the EpisodeOfCare has been through (without requiring processing the history of the resource).Replaces the existing list with a new one containing elements from the Collection
- Parameters:
statusHistory
- Past list of status codes (the current status may be included to cover the start date of the status)- Returns:
- A reference to this Builder instance
-
type
public EpisodeOfCare.Builder type(CodeableConcept... type)
A classification of the type of episode of care; e.g. specialist referral, disease management, type of funded care.Adds new element(s) to the existing list
- Parameters:
type
- Type/class - e.g. specialist referral, disease management- Returns:
- A reference to this Builder instance
-
type
public EpisodeOfCare.Builder type(Collection<CodeableConcept> type)
A classification of the type of episode of care; e.g. specialist referral, disease management, type of funded care.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
type
- Type/class - e.g. specialist referral, disease management- Returns:
- A reference to this Builder instance
-
diagnosis
public EpisodeOfCare.Builder diagnosis(EpisodeOfCare.Diagnosis... diagnosis)
The list of diagnosis relevant to this episode of care.Adds new element(s) to the existing list
- Parameters:
diagnosis
- The list of diagnosis relevant to this episode of care- Returns:
- A reference to this Builder instance
-
diagnosis
public EpisodeOfCare.Builder diagnosis(Collection<EpisodeOfCare.Diagnosis> diagnosis)
The list of diagnosis relevant to this episode of care.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
diagnosis
- The list of diagnosis relevant to this episode of care- Returns:
- A reference to this Builder instance
-
patient
public EpisodeOfCare.Builder patient(Reference patient)
The patient who is the focus of this episode of care.This element is required.
Allowed resource types for this reference:
- Parameters:
patient
- The patient who is the focus of this episode of care- Returns:
- A reference to this Builder instance
-
managingOrganization
public EpisodeOfCare.Builder managingOrganization(Reference managingOrganization)
The organization that has assumed the specific responsibilities for the specified duration.Allowed resource types for this reference:
- Parameters:
managingOrganization
- Organization that assumes care- Returns:
- A reference to this Builder instance
-
period
public EpisodeOfCare.Builder period(Period period)
The interval during which the managing organization assumes the defined responsibility.- Parameters:
period
- Interval during responsibility is assumed- Returns:
- A reference to this Builder instance
-
referralRequest
public EpisodeOfCare.Builder referralRequest(Reference... referralRequest)
Referral Request(s) that are fulfilled by this EpisodeOfCare, incoming referrals.Adds new element(s) to the existing list
- Parameters:
referralRequest
- Originating Referral Request(s)- Returns:
- A reference to this Builder instance
-
referralRequest
public EpisodeOfCare.Builder referralRequest(Collection<Reference> referralRequest)
Referral Request(s) that are fulfilled by this EpisodeOfCare, incoming referrals.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
referralRequest
- Originating Referral Request(s)- Returns:
- A reference to this Builder instance
-
careManager
public EpisodeOfCare.Builder careManager(Reference careManager)
The practitioner that is the care manager/care coordinator for this patient.Allowed resource types for this reference:
- Parameters:
careManager
- Care manager/care coordinator for the patient- Returns:
- A reference to this Builder instance
-
team
public EpisodeOfCare.Builder team(Reference... team)
The list of practitioners that may be facilitating this episode of care for specific purposes.Adds new element(s) to the existing list
- Parameters:
team
- Other practitioners facilitating this episode of care- Returns:
- A reference to this Builder instance
-
team
public EpisodeOfCare.Builder team(Collection<Reference> team)
The list of practitioners that may be facilitating this episode of care for specific purposes.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
team
- Other practitioners facilitating this episode of care- Returns:
- A reference to this Builder instance
-
account
public EpisodeOfCare.Builder account(Reference... account)
The set of accounts that may be used for billing for this EpisodeOfCare.Adds new element(s) to the existing list
- Parameters:
account
- The set of accounts that may be used for billing for this EpisodeOfCare- Returns:
- A reference to this Builder instance
-
account
public EpisodeOfCare.Builder account(Collection<Reference> account)
The set of accounts that may be used for billing for this EpisodeOfCare.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
account
- The set of accounts that may be used for billing for this EpisodeOfCare- Returns:
- A reference to this Builder instance
-
build
public EpisodeOfCare build()
- Specified by:
build
in interfaceBuilder<Resource>
- Specified by:
build
in classDomainResource.Builder
- Returns:
- An immutable object of type
EpisodeOfCare
- Throws:
IllegalStateException
- if the current state cannot be built into a valid EpisodeOfCare per the base specification
-
from
protected EpisodeOfCare.Builder from(EpisodeOfCare episodeOfCare)
-
-