Creates a new FHIR CarePlanBuilder
Adds a questionnaire to the careplan, by adding a task referencing the canonical url of the questionnaire to the careplan's contained array, and adding an activity referencing the task to the careplan's activity array
The Questionnaire to add
The builder
Adds the activity provided as an argument to the resource's activity-array
The activity to be added to the activity-array
the Builder
Appends a reference to a condition, that this carePlan addresses
Adds the resource provided as an argument to the resource's contained array, if a resource that is in conflict does not already exist in the array.
the Builder
Adds the extension provided as an argument to the resource's extension array
The extension to be added to the extension-array
the Builder
Appends an identifier to the carePlan, if an identifier within the system does not already exist
the identifier to be appended
Appends a plan definition canonical reference to the carePlan, if it does not already exist
the canonical reference to be appended
Adds the extension provided as an argument to the resource's modifierExtension array
The modifierExtension to be added to the modifierExtension-array
the Builder
Builds and returns the carePlan
Returns whether or not the resource provided as an argument is in conflict with the resource used in the builder
The resource to test for conflict
Whether it is in conflict
Returns either the carePlanActivity identified by the provided id from the activity-array or the entire activity-array, if no id is provided
The carePlanActivity identified by the provided id or the activity-array
Returns an array of references to conditions, that this carePlan addresses
Returns the carePlan's author
author - the author of the carePlan
Returns the activity from the activity-array that is in conflict with the provided activity, if one exists
The activity to test for conflicts
The activity that is in conflict with the provided activity
Returns the carePlan's created field If no argument is provided, the field will be removed
created - the date the carePlan's was created
Returns the carePlan's encounter
encounter - the encounter to which the carePlan is related.
Returns the resource's id
The resource's id
Returns either the identifier identified by the provided system from the identifier-array or the entire identifier array, if no system is provided
The identifier if it exists or the identifier-array
Returns the implicitRules-field of the Resource
The implicitRules-field
Returns all plan definition canonical references for carePlan
Returns the carePlan's intent field. This field is contrained to 'order'
Returns the language-field of the Resource
The language-field
Returns the meta-field of the Resource
The meta-field
Returns the carePlan's period
period - the period within which the carePlan is active
Returns the resourceType-field of the Resource
The resourceType-field
Returns the carePlan's status field
Returns the carePlan's subject
subject - the subject of the carePlan
Returns the text-field of the DomainResource
The text-field
Returns the carplan's title field
the title of the carePlan
Checks if a Questionnaire with a specific canonical is already in the CarePlan.
The canonical of the Questionnaire to check for
A boolean value indicating whether the Questionnaire is already there or not.
Removes a Questionnaire from the CarePlan based on the provided canonical reference
Sets the activity-array to the provided array If no argument is provided, the field will be removed
The array to be set as the action-array
the Builder
Replace the array of references to conditions, that this carePlan addresses with the provided array If no argument is provided, the field will be removed
The array of references
Sets the carePlan's author field If no argument is provided, the field will be removed
the author which the carePlan refereces
The builder
Sets the resource's contained-array to the provided array If no argument is provided, the field will be removed
The array to be set as the resource's contained array
the Builder
Sets the carePlan's created field If no argument is provided, the field will be removed
the date the carePlan's was created
this CarePlanBuilder
Sets the carePlan's encounter field If no argument is provided, the field will be removed
the encounter to which the carePlan is related
this CarePlanBuilder
Sets the resource's extension-array to the provided array If no argument is provided, the field will be removed
The array to be set as the resource's extension array
the Builder
Sets the resource's id to the id provided as an argument If no argument is provided, the field will be removed
the id to be set
the Builder
Replaces the identifier array with the provided array If no argument is provided, the field will be removed
Sets the implicitRules-field of the Resource If no argument is provided, the field will be removed
The value to be set in the implicitRules-field
Replaces the instantiatesCanonical array with the provided array If no argument is provided, the field will be removed
the array to be set
Sets the carePlan's intent-field If no argument is provided, the field will be removed
the intent to be set
Sets the language-field of the Resource If no argument is provided, the field will be removed
Sets the meta-field of the Resource If no argument is provided, the field will be removed
The value to be set in the meta-field
Sets the resource's modifierExtension-array to the provided array If no argument is provided, the field will be removed
The array to be set as the resource's modifierExtension array
the Builder
Sets the carePlan's period field If no argument is provided, the field will be removed
the period within which the carePlan is active
this CarePlanBuilder
Sets the resourceType-field of the Resource If no argument is provided, the field will be removed
The value to be set in the resourceType-field
Sets the carePlan's status field If no argument is provided, the field will be removed
the status to be set. Must be one of: draft | active | suspended | completed | entered-in-error | cancelled | unknown
Sets the carePlan's subject field If no argument is provided, the field will be removed
the subject which the carePlan refereces
this CarePlanBuilder
Sets the text-field of the DomainResource If no argument is provided, the field will be removed
The value to be set in the text-field
Sets the carePlan's title field. If no argument is provided, the field will be removed
the title of the carePlan
this CarePlanBuilder
Sets a copy of an existing carePlan for this CarePlanBuilder to allow for manipulating, or interacting with, the carePlan through this CarePlanBuilder If no argument is provided, a new CarePlan will be generated
The carePlan to set
The builder
Generated using TypeDoc
Class representing a FHIR CarePlan builder