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.Builderaccount(Reference... account)The set of accounts that may be used for billing for this EpisodeOfCare.EpisodeOfCare.Builderaccount(Collection<Reference> account)The set of accounts that may be used for billing for this EpisodeOfCare.EpisodeOfCarebuild()Build theEpisodeOfCareEpisodeOfCare.BuildercareManager(Reference careManager)The practitioner that is the care manager/care coordinator for this patient.EpisodeOfCare.Buildercontained(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.Buildercontained(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.Builderdiagnosis(EpisodeOfCare.Diagnosis... diagnosis)The list of diagnosis relevant to this episode of care.EpisodeOfCare.Builderdiagnosis(Collection<EpisodeOfCare.Diagnosis> diagnosis)The list of diagnosis relevant to this episode of care.EpisodeOfCare.Builderextension(Extension... extension)May be used to represent additional information that is not part of the basic definition of the resource.EpisodeOfCare.Builderextension(Collection<Extension> extension)May be used to represent additional information that is not part of the basic definition of the resource.protected EpisodeOfCare.Builderfrom(EpisodeOfCare episodeOfCare)EpisodeOfCare.Builderid(String id)The logical id of the resource, as used in the URL for the resource.EpisodeOfCare.Builderidentifier(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.Builderidentifier(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.BuilderimplicitRules(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.Builderlanguage(Code language)The base language in which the resource is written.EpisodeOfCare.BuildermanagingOrganization(Reference managingOrganization)The organization that has assumed the specific responsibilities for the specified duration.EpisodeOfCare.Buildermeta(Meta meta)The metadata about the resource.EpisodeOfCare.BuildermodifierExtension(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.BuildermodifierExtension(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.Builderpatient(Reference patient)The patient who is the focus of this episode of care.EpisodeOfCare.Builderperiod(Period period)The interval during which the managing organization assumes the defined responsibility.EpisodeOfCare.BuilderreferralRequest(Reference... referralRequest)Referral Request(s) that are fulfilled by this EpisodeOfCare, incoming referrals.EpisodeOfCare.BuilderreferralRequest(Collection<Reference> referralRequest)Referral Request(s) that are fulfilled by this EpisodeOfCare, incoming referrals.EpisodeOfCare.Builderstatus(EpisodeOfCareStatus status)planned | waitlist | active | onhold | finished | cancelled.EpisodeOfCare.BuilderstatusHistory(EpisodeOfCare.StatusHistory... statusHistory)The history of statuses that the EpisodeOfCare has been through (without requiring processing the history of the resource).EpisodeOfCare.BuilderstatusHistory(Collection<EpisodeOfCare.StatusHistory> statusHistory)The history of statuses that the EpisodeOfCare has been through (without requiring processing the history of the resource).EpisodeOfCare.Builderteam(Reference... team)The list of practitioners that may be facilitating this episode of care for specific purposes.EpisodeOfCare.Builderteam(Collection<Reference> team)The list of practitioners that may be facilitating this episode of care for specific purposes.EpisodeOfCare.Buildertext(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.Buildertype(CodeableConcept... type)A classification of the type of episode of care; e.g.EpisodeOfCare.Buildertype(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:
idin 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:
metain 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:
implicitRulesin 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:
languagein 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:
textin 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:
containedin 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:
containedin 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:
extensionin 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:
extensionin 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:
modifierExtensionin 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:
modifierExtensionin 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
Allowed resource types for the references:
- 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
Allowed resource types for the references:
- 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
Allowed resource types for the references:
- 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
Allowed resource types for the references:
- 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
Allowed resource types for the references:
- 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
Allowed resource types for the references:
- 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:
buildin interfaceBuilder<Resource>- Specified by:
buildin 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)
-
-