Class CarePlan.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.CarePlan.Builder
-
- Enclosing class:
- CarePlan
public static class CarePlan.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 CarePlan.Builder
activity(CarePlan.Activity... activity)
Identifies a planned action to occur as part of the plan.CarePlan.Builder
activity(Collection<CarePlan.Activity> activity)
Identifies a planned action to occur as part of the plan.CarePlan.Builder
addresses(Reference... addresses)
Identifies the conditions/problems/concerns/diagnoses/etc.CarePlan.Builder
addresses(Collection<Reference> addresses)
Identifies the conditions/problems/concerns/diagnoses/etc.CarePlan.Builder
author(Reference author)
When populated, the author is responsible for the care plan.CarePlan.Builder
basedOn(Reference... basedOn)
A care plan that is fulfilled in whole or in part by this care plan.CarePlan.Builder
basedOn(Collection<Reference> basedOn)
A care plan that is fulfilled in whole or in part by this care plan.CarePlan
build()
Build theCarePlan
CarePlan.Builder
careTeam(Reference... careTeam)
Identifies all people and organizations who are expected to be involved in the care envisioned by this plan.CarePlan.Builder
careTeam(Collection<Reference> careTeam)
Identifies all people and organizations who are expected to be involved in the care envisioned by this plan.CarePlan.Builder
category(CodeableConcept... category)
Identifies what "kind" of plan this is to support differentiation between multiple co-existing plans; e.g.CarePlan.Builder
category(Collection<CodeableConcept> category)
Identifies what "kind" of plan this is to support differentiation between multiple co-existing plans; e.g.CarePlan.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.CarePlan.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.CarePlan.Builder
contributor(Reference... contributor)
Identifies the individual(s) or organization who provided the contents of the care plan.CarePlan.Builder
contributor(Collection<Reference> contributor)
Identifies the individual(s) or organization who provided the contents of the care plan.CarePlan.Builder
created(DateTime created)
Represents when this particular CarePlan record was created in the system, which is often a system-generated date.CarePlan.Builder
description(String description)
A description of the scope and nature of the plan.CarePlan.Builder
encounter(Reference encounter)
The Encounter during which this CarePlan was created or to which the creation of this record is tightly associated.CarePlan.Builder
extension(Extension... extension)
May be used to represent additional information that is not part of the basic definition of the resource.CarePlan.Builder
extension(Collection<Extension> extension)
May be used to represent additional information that is not part of the basic definition of the resource.protected CarePlan.Builder
from(CarePlan carePlan)
CarePlan.Builder
goal(Reference... goal)
Describes the intended objective(s) of carrying out the care plan.CarePlan.Builder
goal(Collection<Reference> goal)
Describes the intended objective(s) of carrying out the care plan.CarePlan.Builder
id(String id)
The logical id of the resource, as used in the URL for the resource.CarePlan.Builder
identifier(Identifier... identifier)
Business identifiers assigned to this care plan by the performer or other systems which remain constant as the resource is updated and propagates from server to server.CarePlan.Builder
identifier(Collection<Identifier> identifier)
Business identifiers assigned to this care plan by the performer or other systems which remain constant as the resource is updated and propagates from server to server.CarePlan.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.CarePlan.Builder
instantiatesCanonical(Canonical... instantiatesCanonical)
The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.CarePlan.Builder
instantiatesCanonical(Collection<Canonical> instantiatesCanonical)
The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.CarePlan.Builder
instantiatesUri(Uri... instantiatesUri)
The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.CarePlan.Builder
instantiatesUri(Collection<Uri> instantiatesUri)
The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.CarePlan.Builder
intent(CarePlanIntent intent)
Indicates the level of authority/intentionality associated with the care plan and where the care plan fits into the workflow chain.CarePlan.Builder
language(Code language)
The base language in which the resource is written.CarePlan.Builder
meta(Meta meta)
The metadata about the resource.CarePlan.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.CarePlan.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.CarePlan.Builder
note(Annotation... note)
General notes about the care plan not covered elsewhere.CarePlan.Builder
note(Collection<Annotation> note)
General notes about the care plan not covered elsewhere.CarePlan.Builder
partOf(Reference... partOf)
A larger care plan of which this particular care plan is a component or step.CarePlan.Builder
partOf(Collection<Reference> partOf)
A larger care plan of which this particular care plan is a component or step.CarePlan.Builder
period(Period period)
Indicates when the plan did (or is intended to) come into effect and end.CarePlan.Builder
replaces(Reference... replaces)
Completed or terminated care plan whose function is taken by this new care plan.CarePlan.Builder
replaces(Collection<Reference> replaces)
Completed or terminated care plan whose function is taken by this new care plan.CarePlan.Builder
status(CarePlanStatus status)
Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.CarePlan.Builder
subject(Reference subject)
Identifies the patient or group whose intended care is described by the plan.CarePlan.Builder
supportingInfo(Reference... supportingInfo)
Identifies portions of the patient's record that specifically influenced the formation of the plan.CarePlan.Builder
supportingInfo(Collection<Reference> supportingInfo)
Identifies portions of the patient's record that specifically influenced the formation of the plan.CarePlan.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.CarePlan.Builder
title(String title)
Human-friendly name for the care plan.-
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 CarePlan.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 CarePlan.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 CarePlan.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 CarePlan.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 CarePlan.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 CarePlan.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 CarePlan.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 CarePlan.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 CarePlan.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 CarePlan.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 CarePlan.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 CarePlan.Builder identifier(Identifier... identifier)
Business identifiers assigned to this care plan by the performer or other systems which remain constant as the resource is updated and propagates from server to server.Adds new element(s) to the existing list
- Parameters:
identifier
- External Ids for this plan- Returns:
- A reference to this Builder instance
-
identifier
public CarePlan.Builder identifier(Collection<Identifier> identifier)
Business identifiers assigned to this care plan by the performer or other systems which remain constant as the resource is updated and propagates from server to server.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
identifier
- External Ids for this plan- Returns:
- A reference to this Builder instance
-
instantiatesCanonical
public CarePlan.Builder instantiatesCanonical(Canonical... instantiatesCanonical)
The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.Adds new element(s) to the existing list
- Parameters:
instantiatesCanonical
- Instantiates FHIR protocol or definition- Returns:
- A reference to this Builder instance
-
instantiatesCanonical
public CarePlan.Builder instantiatesCanonical(Collection<Canonical> instantiatesCanonical)
The URL pointing to a FHIR-defined protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
instantiatesCanonical
- Instantiates FHIR protocol or definition- Returns:
- A reference to this Builder instance
-
instantiatesUri
public CarePlan.Builder instantiatesUri(Uri... instantiatesUri)
The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.Adds new element(s) to the existing list
- Parameters:
instantiatesUri
- Instantiates external protocol or definition- Returns:
- A reference to this Builder instance
-
instantiatesUri
public CarePlan.Builder instantiatesUri(Collection<Uri> instantiatesUri)
The URL pointing to an externally maintained protocol, guideline, questionnaire or other definition that is adhered to in whole or in part by this CarePlan.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
instantiatesUri
- Instantiates external protocol or definition- Returns:
- A reference to this Builder instance
-
basedOn
public CarePlan.Builder basedOn(Reference... basedOn)
A care plan that is fulfilled in whole or in part by this care plan.Adds new element(s) to the existing list
- Parameters:
basedOn
- Fulfills CarePlan- Returns:
- A reference to this Builder instance
-
basedOn
public CarePlan.Builder basedOn(Collection<Reference> basedOn)
A care plan that is fulfilled in whole or in part by this care plan.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
basedOn
- Fulfills CarePlan- Returns:
- A reference to this Builder instance
-
replaces
public CarePlan.Builder replaces(Reference... replaces)
Completed or terminated care plan whose function is taken by this new care plan.Adds new element(s) to the existing list
- Parameters:
replaces
- CarePlan replaced by this CarePlan- Returns:
- A reference to this Builder instance
-
replaces
public CarePlan.Builder replaces(Collection<Reference> replaces)
Completed or terminated care plan whose function is taken by this new care plan.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
replaces
- CarePlan replaced by this CarePlan- Returns:
- A reference to this Builder instance
-
partOf
public CarePlan.Builder partOf(Reference... partOf)
A larger care plan of which this particular care plan is a component or step.Adds new element(s) to the existing list
- Parameters:
partOf
- Part of referenced CarePlan- Returns:
- A reference to this Builder instance
-
partOf
public CarePlan.Builder partOf(Collection<Reference> partOf)
A larger care plan of which this particular care plan is a component or step.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
partOf
- Part of referenced CarePlan- Returns:
- A reference to this Builder instance
-
status
public CarePlan.Builder status(CarePlanStatus status)
Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.This element is required.
- Parameters:
status
- draft | active | on-hold | revoked | completed | entered-in-error | unknown- Returns:
- A reference to this Builder instance
-
intent
public CarePlan.Builder intent(CarePlanIntent intent)
Indicates the level of authority/intentionality associated with the care plan and where the care plan fits into the workflow chain.This element is required.
- Parameters:
intent
- proposal | plan | order | option- Returns:
- A reference to this Builder instance
-
category
public CarePlan.Builder category(CodeableConcept... category)
Identifies what "kind" of plan this is to support differentiation between multiple co-existing plans; e.g. "Home health", "psychiatric", "asthma", "disease management", "wellness plan", etc.Adds new element(s) to the existing list
- Parameters:
category
- Type of plan- Returns:
- A reference to this Builder instance
-
category
public CarePlan.Builder category(Collection<CodeableConcept> category)
Identifies what "kind" of plan this is to support differentiation between multiple co-existing plans; e.g. "Home health", "psychiatric", "asthma", "disease management", "wellness plan", etc.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
category
- Type of plan- Returns:
- A reference to this Builder instance
-
title
public CarePlan.Builder title(String title)
Human-friendly name for the care plan.- Parameters:
title
- Human-friendly name for the care plan- Returns:
- A reference to this Builder instance
-
description
public CarePlan.Builder description(String description)
A description of the scope and nature of the plan.- Parameters:
description
- Summary of nature of plan- Returns:
- A reference to this Builder instance
-
subject
public CarePlan.Builder subject(Reference subject)
Identifies the patient or group whose intended care is described by the plan.This element is required.
Allowed resource types for this reference:
- Parameters:
subject
- Who the care plan is for- Returns:
- A reference to this Builder instance
-
encounter
public CarePlan.Builder encounter(Reference encounter)
The Encounter during which this CarePlan was created or to which the creation of this record is tightly associated.Allowed resource types for this reference:
- Parameters:
encounter
- Encounter created as part of- Returns:
- A reference to this Builder instance
-
period
public CarePlan.Builder period(Period period)
Indicates when the plan did (or is intended to) come into effect and end.- Parameters:
period
- Time period plan covers- Returns:
- A reference to this Builder instance
-
created
public CarePlan.Builder created(DateTime created)
Represents when this particular CarePlan record was created in the system, which is often a system-generated date.- Parameters:
created
- Date record was first recorded- Returns:
- A reference to this Builder instance
-
author
public CarePlan.Builder author(Reference author)
When populated, the author is responsible for the care plan. The care plan is attributed to the author.Allowed resource types for this reference:
- Parameters:
author
- Who is the designated responsible party- Returns:
- A reference to this Builder instance
-
contributor
public CarePlan.Builder contributor(Reference... contributor)
Identifies the individual(s) or organization who provided the contents of the care plan.Adds new element(s) to the existing list
- Parameters:
contributor
- Who provided the content of the care plan- Returns:
- A reference to this Builder instance
-
contributor
public CarePlan.Builder contributor(Collection<Reference> contributor)
Identifies the individual(s) or organization who provided the contents of the care plan.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
contributor
- Who provided the content of the care plan- Returns:
- A reference to this Builder instance
-
careTeam
public CarePlan.Builder careTeam(Reference... careTeam)
Identifies all people and organizations who are expected to be involved in the care envisioned by this plan.Adds new element(s) to the existing list
- Parameters:
careTeam
- Who's involved in plan?- Returns:
- A reference to this Builder instance
-
careTeam
public CarePlan.Builder careTeam(Collection<Reference> careTeam)
Identifies all people and organizations who are expected to be involved in the care envisioned by this plan.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
careTeam
- Who's involved in plan?- Returns:
- A reference to this Builder instance
-
addresses
public CarePlan.Builder addresses(Reference... addresses)
Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan.Adds new element(s) to the existing list
- Parameters:
addresses
- Health issues this plan addresses- Returns:
- A reference to this Builder instance
-
addresses
public CarePlan.Builder addresses(Collection<Reference> addresses)
Identifies the conditions/problems/concerns/diagnoses/etc. whose management and/or mitigation are handled by this plan.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
addresses
- Health issues this plan addresses- Returns:
- A reference to this Builder instance
-
supportingInfo
public CarePlan.Builder supportingInfo(Reference... supportingInfo)
Identifies portions of the patient's record that specifically influenced the formation of the plan. These might include comorbidities, recent procedures, limitations, recent assessments, etc.Adds new element(s) to the existing list
- Parameters:
supportingInfo
- Information considered as part of plan- Returns:
- A reference to this Builder instance
-
supportingInfo
public CarePlan.Builder supportingInfo(Collection<Reference> supportingInfo)
Identifies portions of the patient's record that specifically influenced the formation of the plan. These might include comorbidities, recent procedures, limitations, recent assessments, etc.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
supportingInfo
- Information considered as part of plan- Returns:
- A reference to this Builder instance
-
goal
public CarePlan.Builder goal(Reference... goal)
Describes the intended objective(s) of carrying out the care plan.Adds new element(s) to the existing list
- Parameters:
goal
- Desired outcome of plan- Returns:
- A reference to this Builder instance
-
goal
public CarePlan.Builder goal(Collection<Reference> goal)
Describes the intended objective(s) of carrying out the care plan.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
goal
- Desired outcome of plan- Returns:
- A reference to this Builder instance
-
activity
public CarePlan.Builder activity(CarePlan.Activity... activity)
Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc.Adds new element(s) to the existing list
- Parameters:
activity
- Action to occur as part of plan- Returns:
- A reference to this Builder instance
-
activity
public CarePlan.Builder activity(Collection<CarePlan.Activity> activity)
Identifies a planned action to occur as part of the plan. For example, a medication to be used, lab tests to perform, self-monitoring, education, etc.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
activity
- Action to occur as part of plan- Returns:
- A reference to this Builder instance
-
note
public CarePlan.Builder note(Annotation... note)
General notes about the care plan not covered elsewhere.Adds new element(s) to the existing list
- Parameters:
note
- Comments about the plan- Returns:
- A reference to this Builder instance
-
note
public CarePlan.Builder note(Collection<Annotation> note)
General notes about the care plan not covered elsewhere.Replaces the existing list with a new one containing elements from the Collection
- Parameters:
note
- Comments about the plan- Returns:
- A reference to this Builder instance
-
build
public CarePlan build()
- Specified by:
build
in interfaceBuilder<Resource>
- Specified by:
build
in classDomainResource.Builder
- Returns:
- An immutable object of type
CarePlan
- Throws:
IllegalStateException
- if the current state cannot be built into a valid CarePlan per the base specification
-
from
protected CarePlan.Builder from(CarePlan carePlan)
-
-