xShare Project CarePlan
0.1.0 - qa-preview 150

xShare Project CarePlan - Downloaded Version 0.1.0 See the Directory of published versions

## Resource Profile: xShare Care Plan

Official URL: http://hl7.eu/fhir/ig/xshare-careplan/StructureDefinition/xshare-careplan | Version: 0.1.0
Draft as of 2026-06-08 | Computable Name: CarePlanXShare

CarePlan profile aligned with the Care Plan logical model.

Usages:

- Examples for this Profile: CarePlan/xshare-careplan-example

You can also check for usages in the FHIR IG Statistics

### Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

- Key Elements Table
- Differential Table
- Snapshot Table
- Statistics/References
- All

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
CarePlan |  | 0..* | CarePlan | Healthcare plan for patient
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
instantiatesCanonical | Σ | 0..* | canonical(PlanDefinition | Questionnaire | Measure | ActivityDefinition | OperationDefinition) | Instantiated Canonical
instantiatesUri | Σ | 0..* | uri | Instantiated URI
status | ?!Σ | 1..1 | code | Status of the care plan Binding: RequestStatus (required): Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.
intent | ?!Σ | 1..1 | code | proposal | plan | order | option Binding: CarePlanIntent (required): Codes indicating the degree of authority/intentionality associated with a care plan.
category | Σ | 0..* | CodeableConcept | Kind of plan Binding: CarePlanCategory (example): Identifies what "kind" of plan this is to support differentiation between multiple co-existing plans; e.g. "Home health", "psychiatric", "asthma", "disease management", etc.
title | Σ | 0..1 | string | Care Plan Title
description | Σ | 0..1 | string | Description of the care plan
subject | Σ | 1..1 | Reference(Patient (EU core)) | Who the care plan is for
period | Σ | 0..1 | Period | Time period covered by the plan
start | Σ C | 1..1 | dateTime | Starting time with inclusive boundary
created | Σ | 0..1 | dateTime | Date the plan was created
author | Σ | 0..1 | Reference(Patient | Practitioner | PractitionerRole | Device | RelatedPerson | Organization | CareTeam) | Who the plan is attributed to
careTeam |  | 0..* | Reference(CareTeam) | Participants in the care plan
addresses | Σ | 0..* | Reference(Condition (EU core)) | Health issues this plan addresses
supportingInfo |  | 0..* | Reference(Resource) | Information considered as part of the care plan
goal |  | 0..* | Reference(xShare Goal) | Desired outcomes
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
CarePlan.status | Base | required | RequestStatus | 📍4.0.1 | FHIR Std.
CarePlan.intent | Base | required | Care Plan Intent | 📍4.0.1 | FHIR Std.
CarePlan.category | Base | example | Care Plan Category | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | CarePlan | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | CarePlan | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | CarePlan | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | CarePlan | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | CarePlan | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from CarePlan

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
CarePlan |  | 0..* | CarePlan | Healthcare plan for patient
instantiatesCanonical |  | 0..* | canonical(PlanDefinition | Questionnaire | Measure | ActivityDefinition | OperationDefinition) | Instantiated Canonical
instantiatesUri |  | 0..* | uri | Instantiated URI
status |  | 1..1 | code | Status of the care plan
category |  | 0..* | CodeableConcept | Kind of plan
title |  | 0..1 | string | Care Plan Title
description |  | 0..1 | string | Description of the care plan
subject |  | 1..1 | Reference(Patient (EU core)) | Who the care plan is for
period |  | 0..1 | Period | Time period covered by the plan
start |  | 1..1 | dateTime | Starting time with inclusive boundary
created |  | 0..1 | dateTime | Date the plan was created
author |  | 0..1 | Reference(Patient | Practitioner | PractitionerRole | Device | RelatedPerson | Organization | CareTeam) | Who the plan is attributed to
careTeam |  | 0..* | Reference(CareTeam) | Participants in the care plan
addresses |  | 0..* | Reference(Condition (EU core)) | Health issues this plan addresses
supportingInfo |  | 0..* | Reference(Resource) | Information considered as part of the care plan
goal |  | 0..* | Reference(xShare Goal) | Desired outcomes
activity |  |  |  |
outcomeCodeableConcept |  | 0..* | CodeableConcept | Codeable Outcome summary
outcomeReference |  | 0..* | Reference(Resource) | Outcome evidence
progress |  | 0..* | Annotation | Notes about the progress of the activity
reference |  | 0..1 | Reference(Appointment | CommunicationRequest | DeviceRequest | MedicationRequest | NutritionOrder | Task | ServiceRequest | VisionPrescription | RequestGroup) | Activity details defined in specific resource.
detail |  | 0..0 |  | Removed for R5/R6 alignment
Documentation for this format

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
CarePlan |  | 0..* | CarePlan | Healthcare plan for patient
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..* | Identifier | External Ids for this plan
instantiatesCanonical | Σ | 0..* | canonical(PlanDefinition | Questionnaire | Measure | ActivityDefinition | OperationDefinition) | Instantiated Canonical
instantiatesUri | Σ | 0..* | uri | Instantiated URI
basedOn | Σ | 0..* | Reference(CarePlan) | Fulfills CarePlan
replaces | Σ | 0..* | Reference(CarePlan) | CarePlan replaced by this CarePlan
partOf | Σ | 0..* | Reference(CarePlan) | Part of referenced CarePlan
status | ?!Σ | 1..1 | code | Status of the care plan Binding: RequestStatus (required): Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.
intent | ?!Σ | 1..1 | code | proposal | plan | order | option Binding: CarePlanIntent (required): Codes indicating the degree of authority/intentionality associated with a care plan.
category | Σ | 0..* | CodeableConcept | Kind of plan Binding: CarePlanCategory (example): Identifies what "kind" of plan this is to support differentiation between multiple co-existing plans; e.g. "Home health", "psychiatric", "asthma", "disease management", etc.
title | Σ | 0..1 | string | Care Plan Title
description | Σ | 0..1 | string | Description of the care plan
subject | Σ | 1..1 | Reference(Patient (EU core)) | Who the care plan is for
encounter | Σ | 0..1 | Reference(Encounter) | Encounter created as part of
period | Σ | 0..1 | Period | Time period covered by the plan
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
start | Σ C | 1..1 | dateTime | Starting time with inclusive boundary
end | Σ C | 0..1 | dateTime | End time with inclusive boundary, if not ongoing
created | Σ | 0..1 | dateTime | Date the plan was created
author | Σ | 0..1 | Reference(Patient | Practitioner | PractitionerRole | Device | RelatedPerson | Organization | CareTeam) | Who the plan is attributed to
contributor |  | 0..* | Reference(Patient | Practitioner | PractitionerRole | Device | RelatedPerson | Organization | CareTeam) | Who provided the content of the care plan
careTeam |  | 0..* | Reference(CareTeam) | Participants in the care plan
addresses | Σ | 0..* | Reference(Condition (EU core)) | Health issues this plan addresses
supportingInfo |  | 0..* | Reference(Resource) | Information considered as part of the care plan
goal |  | 0..* | Reference(xShare Goal) | Desired outcomes
activity | C | 0..* | BackboneElement | Action to occur as part of plan Constraints: cpl-3
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
outcomeCodeableConcept |  | 0..* | CodeableConcept | Codeable Outcome summary Binding: CarePlanActivityOutcome (example): Identifies the results of the activity.
outcomeReference |  | 0..* | Reference(Resource) | Outcome evidence
progress |  | 0..* | Annotation | Notes about the progress of the activity
reference | C | 0..1 | Reference(Appointment | CommunicationRequest | DeviceRequest | MedicationRequest | NutritionOrder | Task | ServiceRequest | VisionPrescription | RequestGroup) | Activity details defined in specific resource.
note |  | 0..* | Annotation | Comments about the plan
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
CarePlan.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std.
CarePlan.status | Base | required | RequestStatus | 📍4.0.1 | FHIR Std.
CarePlan.intent | Base | required | Care Plan Intent | 📍4.0.1 | FHIR Std.
CarePlan.category | Base | example | Care Plan Category | 📍4.0.1 | FHIR Std.
CarePlan.activity.outcomeCodeableConcept | Base | example | Care Plan Activity Outcome | 📍4.0.1 | FHIR Std.
CarePlan.activity.detail.​kind | Base | required | Care Plan Activity Kind | 📍4.0.1 | FHIR Std.
CarePlan.activity.detail.​code | Base | example | Procedure Codes (SNOMED CT) | 📍4.0.1 | FHIR Std.
CarePlan.activity.detail.​reasonCode | Base | example | SNOMED CT Clinical Findings | 📍4.0.1 | FHIR Std.
CarePlan.activity.detail.​status | Base | required | CarePlanActivityStatus | 📍4.0.1 | FHIR Std.
CarePlan.activity.detail.​product[x] | Base | example | SNOMED CT Medication Codes | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
cpl-3 | error | CarePlan.activity | Provide a reference or detail, not both | `detail.empty() or reference.empty()`
dom-2 | error | CarePlan | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | CarePlan | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | CarePlan | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | CarePlan | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | CarePlan | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from CarePlan

Summary

Mandatory: 0 element(1 nested mandatory element)
Prohibited: 1 element

Structures

This structure refers to these other structures:

- Patient (EU core) (http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core)
- Condition (EU core) (http://hl7.eu/fhir/base/StructureDefinition/condition-eu-core)
- xShare Goal (http://hl7.eu/fhir/ig/xshare-careplan/StructureDefinition/goal-xshare)

Key Elements View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
CarePlan |  | 0..* | CarePlan | Healthcare plan for patient
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
instantiatesCanonical | Σ | 0..* | canonical(PlanDefinition | Questionnaire | Measure | ActivityDefinition | OperationDefinition) | Instantiated Canonical
instantiatesUri | Σ | 0..* | uri | Instantiated URI
status | ?!Σ | 1..1 | code | Status of the care plan Binding: RequestStatus (required): Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.
intent | ?!Σ | 1..1 | code | proposal | plan | order | option Binding: CarePlanIntent (required): Codes indicating the degree of authority/intentionality associated with a care plan.
category | Σ | 0..* | CodeableConcept | Kind of plan Binding: CarePlanCategory (example): Identifies what "kind" of plan this is to support differentiation between multiple co-existing plans; e.g. "Home health", "psychiatric", "asthma", "disease management", etc.
title | Σ | 0..1 | string | Care Plan Title
description | Σ | 0..1 | string | Description of the care plan
subject | Σ | 1..1 | Reference(Patient (EU core)) | Who the care plan is for
period | Σ | 0..1 | Period | Time period covered by the plan
start | Σ C | 1..1 | dateTime | Starting time with inclusive boundary
created | Σ | 0..1 | dateTime | Date the plan was created
author | Σ | 0..1 | Reference(Patient | Practitioner | PractitionerRole | Device | RelatedPerson | Organization | CareTeam) | Who the plan is attributed to
careTeam |  | 0..* | Reference(CareTeam) | Participants in the care plan
addresses | Σ | 0..* | Reference(Condition (EU core)) | Health issues this plan addresses
supportingInfo |  | 0..* | Reference(Resource) | Information considered as part of the care plan
goal |  | 0..* | Reference(xShare Goal) | Desired outcomes
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
CarePlan.status | Base | required | RequestStatus | 📍4.0.1 | FHIR Std.
CarePlan.intent | Base | required | Care Plan Intent | 📍4.0.1 | FHIR Std.
CarePlan.category | Base | example | Care Plan Category | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
dom-2 | error | CarePlan | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | CarePlan | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | CarePlan | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | CarePlan | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | CarePlan | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

Differential View

This structure is derived from CarePlan

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
CarePlan |  | 0..* | CarePlan | Healthcare plan for patient
instantiatesCanonical |  | 0..* | canonical(PlanDefinition | Questionnaire | Measure | ActivityDefinition | OperationDefinition) | Instantiated Canonical
instantiatesUri |  | 0..* | uri | Instantiated URI
status |  | 1..1 | code | Status of the care plan
category |  | 0..* | CodeableConcept | Kind of plan
title |  | 0..1 | string | Care Plan Title
description |  | 0..1 | string | Description of the care plan
subject |  | 1..1 | Reference(Patient (EU core)) | Who the care plan is for
period |  | 0..1 | Period | Time period covered by the plan
start |  | 1..1 | dateTime | Starting time with inclusive boundary
created |  | 0..1 | dateTime | Date the plan was created
author |  | 0..1 | Reference(Patient | Practitioner | PractitionerRole | Device | RelatedPerson | Organization | CareTeam) | Who the plan is attributed to
careTeam |  | 0..* | Reference(CareTeam) | Participants in the care plan
addresses |  | 0..* | Reference(Condition (EU core)) | Health issues this plan addresses
supportingInfo |  | 0..* | Reference(Resource) | Information considered as part of the care plan
goal |  | 0..* | Reference(xShare Goal) | Desired outcomes
activity |  |  |  |
outcomeCodeableConcept |  | 0..* | CodeableConcept | Codeable Outcome summary
outcomeReference |  | 0..* | Reference(Resource) | Outcome evidence
progress |  | 0..* | Annotation | Notes about the progress of the activity
reference |  | 0..1 | Reference(Appointment | CommunicationRequest | DeviceRequest | MedicationRequest | NutritionOrder | Task | ServiceRequest | VisionPrescription | RequestGroup) | Activity details defined in specific resource.
detail |  | 0..0 |  | Removed for R5/R6 alignment
Documentation for this format

Snapshot View

Name | Flags | Card. | Type | Description & Constraints Filter: Bindings Constraints Obligations
--- | --- | --- | --- | ---
CarePlan |  | 0..* | CarePlan | Healthcare plan for patient
id | Σ | 0..1 | id | Logical id of this artifact
meta | Σ | 0..1 | Meta | Metadata about the resource
implicitRules | ?!Σ | 0..1 | uri | A set of rules under which this content was created
language |  | 0..1 | code | Language of the resource content Binding: CommonLanguages (preferred): A human language.
Additional Bindings | Purpose
AllLanguages | Max Binding
text |  | 0..1 | Narrative | Text summary of the resource, for human interpretation This profile does not constrain the narrative in regard to content, language, or traceability to data elements
contained |  | 0..* | Resource | Contained, inline Resources
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?! | 0..* | Extension | Extensions that cannot be ignored
identifier | Σ | 0..* | Identifier | External Ids for this plan
instantiatesCanonical | Σ | 0..* | canonical(PlanDefinition | Questionnaire | Measure | ActivityDefinition | OperationDefinition) | Instantiated Canonical
instantiatesUri | Σ | 0..* | uri | Instantiated URI
basedOn | Σ | 0..* | Reference(CarePlan) | Fulfills CarePlan
replaces | Σ | 0..* | Reference(CarePlan) | CarePlan replaced by this CarePlan
partOf | Σ | 0..* | Reference(CarePlan) | Part of referenced CarePlan
status | ?!Σ | 1..1 | code | Status of the care plan Binding: RequestStatus (required): Indicates whether the plan is currently being acted upon, represents future intentions or is now a historical record.
intent | ?!Σ | 1..1 | code | proposal | plan | order | option Binding: CarePlanIntent (required): Codes indicating the degree of authority/intentionality associated with a care plan.
category | Σ | 0..* | CodeableConcept | Kind of plan Binding: CarePlanCategory (example): Identifies what "kind" of plan this is to support differentiation between multiple co-existing plans; e.g. "Home health", "psychiatric", "asthma", "disease management", etc.
title | Σ | 0..1 | string | Care Plan Title
description | Σ | 0..1 | string | Description of the care plan
subject | Σ | 1..1 | Reference(Patient (EU core)) | Who the care plan is for
encounter | Σ | 0..1 | Reference(Encounter) | Encounter created as part of
period | Σ | 0..1 | Period | Time period covered by the plan
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations Slice: Unordered, Open by value:url
start | Σ C | 1..1 | dateTime | Starting time with inclusive boundary
end | Σ C | 0..1 | dateTime | End time with inclusive boundary, if not ongoing
created | Σ | 0..1 | dateTime | Date the plan was created
author | Σ | 0..1 | Reference(Patient | Practitioner | PractitionerRole | Device | RelatedPerson | Organization | CareTeam) | Who the plan is attributed to
contributor |  | 0..* | Reference(Patient | Practitioner | PractitionerRole | Device | RelatedPerson | Organization | CareTeam) | Who provided the content of the care plan
careTeam |  | 0..* | Reference(CareTeam) | Participants in the care plan
addresses | Σ | 0..* | Reference(Condition (EU core)) | Health issues this plan addresses
supportingInfo |  | 0..* | Reference(Resource) | Information considered as part of the care plan
goal |  | 0..* | Reference(xShare Goal) | Desired outcomes
activity | C | 0..* | BackboneElement | Action to occur as part of plan Constraints: cpl-3
id |  | 0..1 | string | Unique id for inter-element referencing
extension |  | 0..* | Extension | Additional content defined by implementations
modifierExtension | ?!Σ | 0..* | Extension | Extensions that cannot be ignored even if unrecognized
outcomeCodeableConcept |  | 0..* | CodeableConcept | Codeable Outcome summary Binding: CarePlanActivityOutcome (example): Identifies the results of the activity.
outcomeReference |  | 0..* | Reference(Resource) | Outcome evidence
progress |  | 0..* | Annotation | Notes about the progress of the activity
reference | C | 0..1 | Reference(Appointment | CommunicationRequest | DeviceRequest | MedicationRequest | NutritionOrder | Task | ServiceRequest | VisionPrescription | RequestGroup) | Activity details defined in specific resource.
note |  | 0..* | Annotation | Comments about the plan
Documentation for this format

#### Terminology Bindings

Path | Status | Usage | ValueSet | Version | Source
CarePlan.language | Base | preferred | Common Languages | 📍4.0.1 | FHIR Std.
CarePlan.status | Base | required | RequestStatus | 📍4.0.1 | FHIR Std.
CarePlan.intent | Base | required | Care Plan Intent | 📍4.0.1 | FHIR Std.
CarePlan.category | Base | example | Care Plan Category | 📍4.0.1 | FHIR Std.
CarePlan.activity.outcomeCodeableConcept | Base | example | Care Plan Activity Outcome | 📍4.0.1 | FHIR Std.
CarePlan.activity.detail.​kind | Base | required | Care Plan Activity Kind | 📍4.0.1 | FHIR Std.
CarePlan.activity.detail.​code | Base | example | Procedure Codes (SNOMED CT) | 📍4.0.1 | FHIR Std.
CarePlan.activity.detail.​reasonCode | Base | example | SNOMED CT Clinical Findings | 📍4.0.1 | FHIR Std.
CarePlan.activity.detail.​status | Base | required | CarePlanActivityStatus | 📍4.0.1 | FHIR Std.
CarePlan.activity.detail.​product[x] | Base | example | SNOMED CT Medication Codes | 📍4.0.1 | FHIR Std.

#### Constraints

Id | Grade | Path(s) | Description | Expression
cpl-3 | error | CarePlan.activity | Provide a reference or detail, not both | `detail.empty() or reference.empty()`
dom-2 | error | CarePlan | If the resource is contained in another resource, it SHALL NOT contain nested Resources | `contained.contained.empty()`
dom-3 | error | CarePlan | If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource | `contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()`
dom-4 | error | CarePlan | If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated | `contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()`
dom-5 | error | CarePlan | If a resource is contained in another resource, it SHALL NOT have a security label | `contained.meta.security.empty()`
dom-6 | best practice | CarePlan | A resource should have narrative for robust management | `text.`div`.exists()`
ele-1 | error | **ALL** elements | All FHIR elements must have a @value or children | `hasValue() or (children().count() > id.count())`
ext-1 | error | **ALL** extensions | Must have either extensions or value[x], not both | `extension.exists() != value.exists()`

This structure is derived from CarePlan

Summary

Mandatory: 0 element(1 nested mandatory element)
Prohibited: 1 element

Structures

This structure refers to these other structures:

- Patient (EU core) (http://hl7.eu/fhir/base/StructureDefinition/patient-eu-core)
- Condition (EU core) (http://hl7.eu/fhir/base/StructureDefinition/condition-eu-core)
- xShare Goal (http://hl7.eu/fhir/ig/xshare-careplan/StructureDefinition/goal-xshare)

Other representations of profile: CSV, Excel, Schematron