careplan
type: CapabilityStatement
node role: treeRoot
id:
  v: careplan
text:
  status:
    v: extensions
  div:
    v: Generated Narrative: CapabilityStatement careplan Implementation Guide Version: 7.0.0 FHIR Version: 4.0.1 Supported Formats: application/fhir+xml, xml, application/fhir+json, json, application/x-turtle, ttl, html/json, html/xml, html/turtle Published on: 2025-10-21 13:03:36+0000 Published by: Den telemedicinske infrastruktur (eHealth Infrastructure) Note to Implementers: FHIR Capabilities Any FHIR capability may be 'allowed' by the system unless explicitly marked as 'SHALL NOT'. A few items are marked as MAY in the Implementation Guide to highlight their potential relevance to the use case. FHIR RESTful Capabilities Mode: server Summary of System-wide Interactions Supports the transactioninteraction. Summary of System-wide Operations Conformance Operation Documentation SHALL $migrate Data migration SHALL $get-patient-procedures This operation returns an overview of patient activities within a time period and filtered by either EpisodeOfCare or Condition code(s). On success, the returned Bundle contains a Parameters structure detailing the count of measurements received and expected. This is done per ServiceRequest with status active for those part of a CarePlan with status active related to eligible EpisodeOfCare resources. Eligible EpisodeOfCare are those with status active that refer to the given Patient and are either given as EpisodeOfCare reference in input or are referencing a Condition with a condition code that matches at least one of the Condition codes possibly given as input. The measurement regime expressed in ServiceRequest.occurrence[x] is, when possible, resolved to time slot(s) corresponding to datetime/period where an action is supposed to take place, typically performed by the Patient. When the occurrenceTiming variant is used, resolved time slots overlapping with the input time periode are considered. For occurrenceTiming expression which are either adhoc or unresolved, the effective datetime/period of a measurement is considered when checked for …
url:
  v: http://ehealth.sundhed.dk/fhir/CapabilityStatement/careplan
  l: careplan
version:
  v: 7.0.0
name:
  v: careplan
status:
  v: active
date:
  v: 2025-10-21T13:03:36.962+00:00
publisher:
  v: Den telemedicinske infrastruktur (eHealth Infrastructure)
contact:
  name:
    v: Den telemedicinske infrastruktur (eHealth Infrastructure)
  telecom:
    system:
      v: url
    value:
      v: http://ehealth.sundhed.dk
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
      l: 3166
    code:
      v: DK
    display:
      v: Denmark
kind:
  v: instance
software:
  name:
    v: careplan
  version:
    v: 1.33.0
implementation:
  description:
    v: eHealth careplan service
  url:
    v: https://careplan.devtest.systematic-ehealth.com/fhir
    l: fhir
fhir version:
  v: 4.0.1
format:
  v: application/fhir+xml
format:
  v: xml
format:
  v: application/fhir+json
format:
  v: json
format:
  v: application/x-turtle
format:
  v: ttl
format:
  v: html/json
format:
  v: html/xml
format:
  v: html/turtle
rest:
  mode:
    v: server
  resource:
    type:
      v: CarePlan
    profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan
      l: ehealth-careplan
    interaction:
      code:
        v: update
    interaction:
      code:
        v: search-type
    interaction:
      code:
        v: vread
    interaction:
      code:
        v: read
    conditional update:
      v: true
    search include:
      v: CarePlan:activity-reference
    search include:
      v: CarePlan:condition
    search include:
      v: CarePlan:episodeOfCare
    search include:
      v: CarePlan:goal
    search include:
      v: CarePlan:part-of
    search rev include:
      v: CarePlan:activity-reference
    search rev include:
      v: CarePlan:care-team
    search rev include:
      v: CarePlan:condition
    search rev include:
      v: CarePlan:episodeOfCare
    search rev include:
      v: CarePlan:goal
    search rev include:
      v: CarePlan:instantiates-canonical
    search rev include:
      v: CarePlan:part-of
    search rev include:
      v: CarePlan:participant-actor
    search rev include:
      v: CarePlan:patient
    search rev include:
      v: Communication:episodeOfCare
    search rev include:
      v: Communication:participant-actor
    search rev include:
      v: Communication:recipient
    search rev include:
      v: Communication:subject
    search rev include:
      v: CommunicationRequest:based-on
    search rev include:
      v: CommunicationRequest:encounter
    search rev include:
      v: CommunicationRequest:episodeOfCare
    search rev include:
      v: CommunicationRequest:patient
    search rev include:
      v: CommunicationRequest:recipient
    search rev include:
      v: CommunicationRequest:replaces
    search rev include:
      v: CommunicationRequest:requester
    search rev include:
      v: CommunicationRequest:sender
    search rev include:
      v: CommunicationRequest:subject
    search rev include:
      v: Consent:actor
    search rev include:
      v: Consent:data
    search rev include:
      v: Consent:patient
    search rev include:
      v: DocumentReference:encounter
    search rev include:
      v: DocumentReference:intendedOrganization
    search rev include:
      v: DocumentReference:modifier_role_reference
    search rev include:
      v: DocumentReference:subject
    search rev include:
      v: EpisodeOfCare:condition
    search rev include:
      v: EpisodeOfCare:organization
    search rev include:
      v: EpisodeOfCare:participant-actor
    search rev include:
      v: EpisodeOfCare:patient
    search rev include:
      v: EpisodeOfCare:team
    search rev include:
      v: Goal:addresses
    search rev include:
      v: Goal:patient
    search rev include:
      v: Goal:subject
    search rev include:
      v: Provenance:target
    search param:
      name:
        v: _id
      type:
        v: token
      documentation:
        v: The ID of the resource
    search param:
      name:
        v: _lastUpdated
      type:
        v: date
      documentation:
        v: Only return resources which were last updated as specified by the given range
    search param:
      name:
        v: _tag
      type:
        v: token
      documentation:
        v: Search for resources which have the given tag

name:
  v: activity-reference
type:
  v: reference
documentation:
  v: Activity details defined in specific resource

name:
  v: care-team
type:
  v: reference
documentation:
  v: Who's involved in plan?

name:
  v: category
type:
  v: token
documentation:
  v: Type of plan

name:
  v: condition
type:
  v: reference
documentation:
  v: Health issues this plan addresses

name:
  v: date
type:
  v: date
documentation:
  v: Time period plan covers

name:
  v: episodeOfCare
type:
  v: reference
documentation:
  v: EpisodeOfCare

name:
  v: goal
type:
  v: reference
documentation:
  v: Goal of the care plan

name:
  v: identifier
type:
  v: token
documentation:
  v: External Ids for this plan

name:
  v: instantiates-canonical
type:
  v: reference
documentation:
  v: Instantiates FHIR protocol or definition

name:
  v: part-of
type:
  v: reference
documentation:
  v: Part of referenced CarePlan

name:
  v: participant-actor
type:
  v: reference
documentation:
  v: Reference to the participant

name:
  v: participant-function
type:
  v: token
documentation:
  v: The role of the participant

name:
  v: participant-function-actor
type:
  v: composite
documentation:
  v: A Participant with a specific function and actor

name:
  v: patient
type:
  v: reference
documentation:
  v: Who care plan is for

name:
  v: status
type:
  v: token
documentation:
  v: draft | active | suspended | completed | entered-in-error | cancelled | unknown

name:
  v: status-history-end-time
type:
  v: date
documentation:
  v: end time of historic status change

name:
  v: status-history-start-time
type:
  v: date
documentation:
  v: start time of historic status change

name:
  v: status-history-status
type:
  v: token
documentation:
  v: status of historic status change

name:
  v: status-scheduled-status
type:
  v: token
documentation:
  v: Scheduled status for status change

name:
  v: status-scheduled-time
type:
  v: date
documentation:
  v: Scheduled time for status change

name:
  v: team-scheduled-time
type:
  v: date
documentation:
  v: Scheduled time for team change

name:
  v: validate
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Multi-it-validate
  l: Multi-it-validate

name:
  v: update-care-teams
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/CarePlanEpisodeOfCare-i-update-care-teams
  l: CarePlanEpisodeOfCare-i-update-care-teams
documentation:
  v: The operation modifies the care team assignment of the care plan and all of its sub plans.

name:
  v: suggest-care-teams
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/CarePlan-i-suggest-care-teams
  l: CarePlan-i-suggest-care-teams
documentation:
  v: Suggest care teams matching the conditions required by the care plan on either a regional or a municipality level. The suggested care teams has reason codes matching all the conditions addressed by the care plan and has a managing organization matching the input region code or municipality code. One of region code or municipality code must be input. If both region code and municipality code is input, then the municipality code is ignored. Return a bundle with matching care teams and their managing organizations.

type:
  v: Communication
profile:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-material-communication
  l: ehealth-material-communication
interaction:
  code:
    v: update
interaction:
  code:
    v: search-type
interaction:
  code:
    v: read
interaction:
  code:
    v: create
conditional create:
  v: true
conditional update:
  v: true
search include:
  v: *
search include:
  v: Communication:episodeOfCare
search include:
  v: Communication:participant-actor
search include:
  v: Communication:recipient
search include:
  v: Communication:subject
search rev include:
  v: CarePlan:activity-reference
search rev include:
  v: CarePlan:care-team
search rev include:
  v: CarePlan:condition
search rev include:
  v: CarePlan:episodeOfCare
search rev include:
  v: CarePlan:goal
search rev include:
  v: CarePlan:instantiates-canonical
search rev include:
  v: CarePlan:part-of
search rev include:
  v: CarePlan:participant-actor
search rev include:
  v: CarePlan:patient
search rev include:
  v: Communication:episodeOfCare
search rev include:
  v: Communication:participant-actor
search rev include:
  v: Communication:recipient
search rev include:
  v: Communication:subject
search rev include:
  v: CommunicationRequest:based-on
search rev include:
  v: CommunicationRequest:encounter
search rev include:
  v: CommunicationRequest:episodeOfCare
search rev include:
  v: CommunicationRequest:patient
search rev include:
  v: CommunicationRequest:recipient
search rev include:
  v: CommunicationRequest:replaces
search rev include:
  v: CommunicationRequest:requester
search rev include:
  v: CommunicationRequest:sender
search rev include:
  v: CommunicationRequest:subject
search rev include:
  v: Consent:actor
search rev include:
  v: Consent:data
search rev include:
  v: Consent:patient
search rev include:
  v: DocumentReference:encounter
search rev include:
  v: DocumentReference:intendedOrganization
search rev include:
  v: DocumentReference:modifier_role_reference
search rev include:
  v: DocumentReference:subject
search rev include:
  v: EpisodeOfCare:condition
search rev include:
  v: EpisodeOfCare:organization
search rev include:
  v: EpisodeOfCare:participant-actor
search rev include:
  v: EpisodeOfCare:patient
search rev include:
  v: EpisodeOfCare:team
search rev include:
  v: Goal:addresses
search rev include:
  v: Goal:patient
search rev include:
  v: Goal:subject
search rev include:
  v: Provenance:target
search param:
  name:
    v: _id
  type:
    v: token
  documentation:
    v: Search for MaterialCommunication with the given _id
search param:
  name:
    v: _lastUpdated
  type:
    v: date
  documentation:
    v: Only return resources which were last updated as specified by the given range
search param:
  name:
    v: _tag
  type:
    v: token
  documentation:
    v: Search for resources which have the given tag
search param:
  name:
    v: category
  type:
    v: token
  documentation:
    v: Search for MaterialCommunication share the following category(s)
search param:
  name:
    v: episodeOfCare
  type:
    v: reference
  documentation:
    v: Search for MaterialCommunication which are associated to the given EpisodeOfCare
search param:
  name:
    v: participant-actor
  type:
    v: reference
  documentation:
    v: Search for MaterialCommunication which are associated to the given participant actor
search param:
  name:
    v: participant-function
  type:
    v: token
  documentation:
    v: Search for MaterialCommunication which are associated to the given participant function
search param:
  name:
    v: participant-function-actor
  type:
    v: composite
  documentation:
    v: A Participant with a specific function and actor
search param:
  name:
    v: period
  type:
    v: date
  documentation:
    v: Search for MaterialCommunication which are associated to the given period
search param:
  name:
    v: periodEnd
  type:
    v: date
  documentation:
    v: Search for MaterialCommunication which are associated to the given period end
search param:
  name:
    v: periodStart
  type:
    v: date
  documentation:
    v: Search for MaterialCommunication which are associated to the given period start
search param:
  name:
    v: recipient
  type:
    v: reference
  documentation:
    v: Search for MaterialCommunication which are associated to the given recipient
search param:
  name:
    v: sent
  type:
    v: date
  documentation:
    v: Search for MaterialCommunication which are associated to the given sent date
search param:
  name:
    v: status

v: token

v: Search for MaterialCommunication which are associated to the given status

name:
  v: subject
type:
  v: reference
documentation:
  v: Search for MaterialCommunication which are associated to the given subject

name:
  v: validate
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Multi-it-validate
  l: Multi-it-validate

type:
  v: CommunicationRequest
profile:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-communication-request
  l: ehealth-communication-request
interaction:
  code:
    v: update
interaction:
  code:
    v: search-type
interaction:
  code:
    v: vread
interaction:
  code:
    v: read
interaction:
  code:
    v: delete
interaction:
  code:
    v: create
conditional create:
  v: true
conditional update:
  v: true
search include:
  v: CommunicationRequest:based-on
search include:
  v: CommunicationRequest:context
search rev include:
  v: CarePlan:activity-reference
search rev include:
  v: CarePlan:care-team
search rev include:
  v: CarePlan:condition
search rev include:
  v: CarePlan:episodeOfCare
search rev include:
  v: CarePlan:goal
search rev include:
  v: CarePlan:instantiates-canonical
search rev include:
  v: CarePlan:part-of
search rev include:
  v: CarePlan:participant-actor
search rev include:
  v: CarePlan:patient
search rev include:
  v: Communication:episodeOfCare
search rev include:
  v: Communication:participant-actor
search rev include:
  v: Communication:recipient
search rev include:
  v: Communication:subject
search rev include:
  v: CommunicationRequest:based-on
search rev include:
  v: CommunicationRequest:encounter
search rev include:
  v: CommunicationRequest:episodeOfCare
search rev include:
  v: CommunicationRequest:patient
search rev include:
  v: CommunicationRequest:recipient
search rev include:
  v: CommunicationRequest:replaces
search rev include:
  v: CommunicationRequest:requester
search rev include:
  v: CommunicationRequest:sender
search rev include:
  v: CommunicationRequest:subject
search rev include:
  v: Consent:actor
search rev include:
  v: Consent:data
search rev include:
  v: Consent:patient
search rev include:
  v: DocumentReference:encounter
search rev include:
  v: DocumentReference:intendedOrganization
search rev include:
  v: DocumentReference:modifier_role_reference
search rev include:
  v: DocumentReference:subject
search rev include:
  v: EpisodeOfCare:condition
search rev include:
  v: EpisodeOfCare:organization
search rev include:
  v: EpisodeOfCare:participant-actor
search rev include:
  v: EpisodeOfCare:patient
search rev include:
  v: EpisodeOfCare:team
search rev include:
  v: Goal:addresses
search rev include:
  v: Goal:patient
search rev include:
  v: Goal:subject
search rev include:
  v: Provenance:target
search param:
  name:
    v: _content
  type:
    v: string
  documentation:
    v: Search the contents of the resource's data using a fulltext search
search param:
  name:
    v: _has
  type:
    v: string
  documentation:
    v: Return resources linked to by the given target
search param:
  name:
    v: _id
  type:
    v: token
  documentation:
    v: The ID of the resource
search param:
  name:
    v: _language
  type:
    v: string
  documentation:
    v: The language of the resource
search param:
  name:
    v: _lastUpdated
  type:
    v: date
  documentation:
    v: Only return resources which were last updated as specified by the given range
search param:
  name:
    v: _profile
  type:
    v: uri
  documentation:
    v: Search for resources which have the given profile
search param:
  name:
    v: _security
  type:
    v: token
  documentation:
    v: Search for resources which have the given security labels
search param:
  name:
    v: _tag
  type:
    v: token
  documentation:
    v: Search for resources which have the given tag
search param:
  name:
    v: _text
  type:
    v: string
  documentation:
    v: Search the contents of the resource's narrative using a fulltext search
search param:
  name:
    v: authored
  type:
    v: date
  documentation:
    v: When request transitioned to being actionable
search param:
  name:
    v: based-on
  type:
    v: reference
  documentation:
    v: Fulfills plan or proposal
search param:
  name:
    v: category
  type:
    v: token
  documentation:
    v: Message category
search param:
  name:
    v: encounter
  type:
    v: reference
  documentation:
    v: Encounter leading to message
search param:
  name:
    v: episodeOfCare

v: reference

v: Episode leading to message

name:
  v: group-identifier
type:
  v: token
documentation:
  v: Composite request this is part of

name:
  v: identifier
type:
  v: token
documentation:
  v: Unique identifier

name:
  v: medium
type:
  v: token
documentation:
  v: A channel of communication

name:
  v: occurrence
type:
  v: date
documentation:
  v: When scheduled

name:
  v: patient
type:
  v: reference
documentation:
  v: Focus of message

name:
  v: priority
type:
  v: token
documentation:
  v: Message urgency

name:
  v: reasonCode
type:
  v: token
documentation:
  v: ReasonCode

name:
  v: recipient
type:
  v: reference
documentation:
  v: Message recipient

name:
  v: replaces
type:
  v: reference
documentation:
  v: Request(s) replaced by this request

name:
  v: requester
type:
  v: reference
documentation:
  v: Individual making the request

name:
  v: sender
type:
  v: reference
documentation:
  v: Message sender

name:
  v: status
type:
  v: token
documentation:
  v: draft | active | suspended | cancelled | completed | entered-in-error | unknown

name:
  v: subject
type:
  v: reference
documentation:
  v: Focus of message

name:
  v: validate
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Multi-it-validate
  l: Multi-it-validate

type:
  v: Condition
profile:
  v: http://hl7.org/fhir/StructureDefinition/Condition
  l: Condition
interaction:
  code:
    v: vread
interaction:
  code:
    v: read
interaction:
  code:
    v: patch
interaction:
  code:
    v: create
conditional create:
  v: true
search include:
  v: *
search rev include:
  v: CarePlan:activity-reference
search rev include:
  v: CarePlan:care-team
search rev include:
  v: CarePlan:condition
search rev include:
  v: CarePlan:episodeOfCare
search rev include:
  v: CarePlan:goal
search rev include:
  v: CarePlan:instantiates-canonical
search rev include:
  v: CarePlan:part-of
search rev include:
  v: CarePlan:participant-actor
search rev include:
  v: CarePlan:patient
search rev include:
  v: Communication:episodeOfCare
search rev include:
  v: Communication:participant-actor
search rev include:
  v: Communication:recipient
search rev include:
  v: Communication:subject
search rev include:
  v: CommunicationRequest:based-on
search rev include:
  v: CommunicationRequest:encounter
search rev include:
  v: CommunicationRequest:episodeOfCare
search rev include:
  v: CommunicationRequest:patient
search rev include:
  v: CommunicationRequest:recipient
search rev include:
  v: CommunicationRequest:replaces
search rev include:
  v: CommunicationRequest:requester
search rev include:
  v: CommunicationRequest:sender
search rev include:
  v: CommunicationRequest:subject
search rev include:
  v: Consent:actor
search rev include:
  v: Consent:data
search rev include:
  v: Consent:patient
search rev include:
  v: DocumentReference:encounter
search rev include:
  v: DocumentReference:intendedOrganization
search rev include:
  v: DocumentReference:modifier_role_reference
search rev include:
  v: DocumentReference:subject
search rev include:
  v: EpisodeOfCare:condition
search rev include:
  v: EpisodeOfCare:organization
search rev include:
  v: EpisodeOfCare:participant-actor
search rev include:
  v: EpisodeOfCare:patient
search rev include:
  v: EpisodeOfCare:team
search rev include:
  v: Goal:addresses
search rev include:
  v: Goal:patient
search rev include:
  v: Goal:subject
search rev include:
  v: Provenance:target
operation:
  name:
    v: validate
  definition:
    v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Multi-it-validate
    l: Multi-it-validate

type:
  v: Consent
profile:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent
  l: ehealth-consent
interaction:
  code:
    v: update
interaction:
  code:
    v: search-type
interaction:
  code:
    v: vread
interaction:
  code:
    v: read
interaction:
  code:
    v: create
conditional create:
  v: true
conditional update:
  v: true
search rev include:
  v: CarePlan:activity-reference
search rev include:
  v: CarePlan:care-team
search rev include:
  v: CarePlan:condition
search rev include:
  v: CarePlan:episodeOfCare
search rev include:
  v: CarePlan:goal
search rev include:
  v: CarePlan:instantiates-canonical
search rev include:
  v: CarePlan:part-of
search rev include:
  v: CarePlan:participant-actor
search rev include:
  v: CarePlan:patient
search rev include:
  v: Communication:episodeOfCare
search rev include:
  v: Communication:participant-actor
search rev include:
  v: Communication:recipient
search rev include:
  v: Communication:subject
search rev include:
  v: CommunicationRequest:based-on
search rev include:
  v: CommunicationRequest:encounter
search rev include:
  v: CommunicationRequest:episodeOfCare
search rev include:
  v: CommunicationRequest:patient
search rev include:
  v: CommunicationRequest:recipient
search rev include:
  v: CommunicationRequest:replaces
search rev include:
  v: CommunicationRequest:requester
search rev include:
  v: CommunicationRequest:sender
search rev include:
  v: CommunicationRequest:subject
search rev include:
  v: Consent:actor
search rev include:
  v: Consent:data
search rev include:
  v: Consent:patient
search rev include:
  v: DocumentReference:encounter
search rev include:
  v: DocumentReference:intendedOrganization
search rev include:
  v: DocumentReference:modifier_role_reference
search rev include:
  v: DocumentReference:subject
search rev include:
  v: EpisodeOfCare:condition
search rev include:
  v: EpisodeOfCare:organization
search rev include:
  v: EpisodeOfCare:participant-actor
search rev include:
  v: EpisodeOfCare:patient
search rev include:
  v: EpisodeOfCare:team
search rev include:
  v: Goal:addresses
search rev include:
  v: Goal:patient
search rev include:
  v: Goal:subject
search rev include:
  v: Provenance:target
search param:
  name:
    v: data
  type:
    v: reference
  documentation:
    v: The actual data reference
search param:
  name:
    v: _tag
  type:
    v: token
  documentation:
    v: Search for resources which have the given tag
search param:
  name:
    v: actor
  type:
    v: reference
  documentation:
    v: Resource for the actor (or group, by role)
search param:
  name:
    v: category
  type:
    v: token
  documentation:
    v: Classification of the consent statement - for indexing/retrieval
search param:
  name:
    v: identifier
  type:
    v: token
  documentation:
    v: Identifier for this record (external references)
search param:
  name:
    v: patient
  type:
    v: reference
  documentation:
    v: Who the consent applies to
search param:
  name:
    v: period
  type:
    v: date
  documentation:
    v: Period that this consent applies
search param:
  name:
    v: status
  type:
    v: token
  documentation:
    v: draft | proposed | active | rejected | inactive | entered-in-error
operation:
  name:
    v: validate
  definition:
    v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Multi-it-validate
    l: Multi-it-validate

type:
  v: DocumentReference
profile:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-documentreference
  l: ehealth-documentreference
interaction:
  code:
    v: update
interaction:
  code:
    v: search-type
interaction:
  code:
    v: vread
interaction:
  code:
    v: read
interaction:
  code:
    v: create
conditional create:
  v: true
conditional update:
  v: true
search rev include:
  v: CarePlan:activity-reference
search rev include:
  v: CarePlan:care-team
search rev include:
  v: CarePlan:condition
search rev include:
  v: CarePlan:episodeOfCare
search rev include:
  v: CarePlan:goal
search rev include:
  v: CarePlan:instantiates-canonical
search rev include:
  v: CarePlan:part-of
search rev include:
  v: CarePlan:participant-actor
search rev include:
  v: CarePlan:patient
search rev include:
  v: Communication:episodeOfCare
search rev include:
  v: Communication:participant-actor
search rev include:
  v: Communication:recipient
search rev include:
  v: Communication:subject
search rev include:
  v: CommunicationRequest:based-on
search rev include:
  v: CommunicationRequest:encounter
search rev include:
  v: CommunicationRequest:episodeOfCare
search rev include:
  v: CommunicationRequest:patient
search rev include:
  v: CommunicationRequest:recipient
search rev include:
  v: CommunicationRequest:replaces
search rev include:
  v: CommunicationRequest:requester
search rev include:
  v: CommunicationRequest:sender
search rev include:
  v: CommunicationRequest:subject
search rev include:
  v: Consent:actor
search rev include:
  v: Consent:data
search rev include:
  v: Consent:patient
search rev include:
  v: DocumentReference:encounter
search rev include:
  v: DocumentReference:intendedOrganization
search rev include:
  v: DocumentReference:modifier_role_reference
search rev include:
  v: DocumentReference:subject
search rev include:
  v: EpisodeOfCare:condition
search rev include:
  v: EpisodeOfCare:organization
search rev include:
  v: EpisodeOfCare:participant-actor
search rev include:
  v: EpisodeOfCare:patient
search rev include:
  v: EpisodeOfCare:team
search rev include:
  v: Goal:addresses
search rev include:
  v: Goal:patient
search rev include:
  v: Goal:subject
search rev include:
  v: Provenance:target
search param:
  name:
    v: _id
  type:
    v: token
  documentation:
    v: Logical id of this artifact
search param:
  name:
    v: _tag
  type:
    v: token
  documentation:
    v: Tags applied to this resource
search param:
  name:
    v: category
  type:
    v: token
  documentation:
    v: Categorization of document
search param:
  name:
    v: contenttype
  type:
    v: token
  documentation:
    v: Document referenced
search param:
  name:
    v: date
  type:
    v: date
  documentation:
    v: When this document reference was created
search param:
  name:
    v: description
  type:
    v: string
  documentation:
    v: Human-readable description
search param:
  name:
    v: encounter
  type:
    v: reference
  documentation:
    v: Context of the document content
search param:
  name:
    v: intendedOrganization
  type:
    v: reference
  documentation:
    v: The organization intended to use this resource
search param:
  name:
    v: modifier_role_reference
  type:
    v: reference
  documentation:
    v: Reference to modifier organization
search param:
  name:
    v: modifier_role_role
  type:
    v: token
  documentation:
    v: Role of organization related to modification of the DocumentReference
search param:
  name:
    v: status
  type:
    v: token
  documentation:
    v: current | superseded | entered-in-error
search param:
  name:
    v: subject
  type:
    v: reference
  documentation:
    v: Who/what is the subject of the document
search param:
  name:
    v: type
  type:
    v: token
  documentation:
    v: Kind of document (LOINC if possible)
search param:
  name:
    v: use-context-context
  type:
    v: token
  documentation:
    v: The context that the content is intended to support
operation:
  name:
    v: validate

type:
  v: EpisodeOfCare
profile:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare
  l: ehealth-episodeofcare
interaction:
  code:
    v: search-type
interaction:
  code:
    v: vread
interaction:
  code:
    v: read
interaction:
  code:
    v: patch
search include:
  v: EpisodeOfCare:condition
search rev include:
  v: CarePlan:episodeOfCare
search param:
  name:
    v: _tag
  type:
    v: token
  documentation:
    v: Search for resources which have the given tag
search param:
  name:
    v: condition
  type:
    v: reference
  documentation:
    v: Conditions/problems/diagnoses this episode of care is for
search param:
  name:
    v: identifier
  type:
    v: token
  documentation:
    v: Business Identifier(s) relevant for this EpisodeOfCare
search param:
  name:
    v: organization
  type:
    v: reference
  documentation:
    v: The organization that has assumed the specific responsibilities of this EpisodeOfCare
search param:
  name:
    v: participant-actor
  type:
    v: reference
  documentation:
    v: The reference to the actor
search param:
  name:
    v: participant-function
  type:
    v: token
  documentation:
    v: The role of the participant
search param:
  name:
    v: participant-function-actor
  type:
    v: composite
  documentation:
    v: A Participant with a specific function and actor
search param:
  name:
    v: patient
  type:
    v: reference
  documentation:
    v: The patient who is the focus of this episode of care
search param:
  name:
    v: status
  type:
    v: token
  documentation:
    v: The current status of the Episode of Care as provided (does not check the status history collection)
search param:
  name:
    v: status-scheduled-time
  type:
    v: date
  documentation:
    v: Scheduled time for status change
search param:
  name:
    v: team
  type:
    v: reference
  documentation:
    v: The list of practitioners that may be facilitating this episode of care for specific purposes.
search param:
  name:
    v: team-scheduled-time
  type:
    v: date
  documentation:
    v: Scheduled time for team change
operation:
  name:
    v: validate
  definition:
    v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Multi-it-validate
    l: Multi-it-validate
operation:
  name:
    v: update-care-teams
  definition:
    v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/CarePlanEpisodeOfCare-i-update-care-teams
    l: CarePlanEpisodeOfCare-i-update-care-teams
  documentation:
    v: Modify the care team assignment of the episode of care and all care plans that has the episode of care as context.
operation:
  name:
    v: is-context-allowed
  definition:
    v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/EpisodeOfCare-i-is-context-allowed
    l: EpisodeOfCare-i-is-context-allowed
  documentation:
    v: Checks that it is allowed to set an EpisodeOfCare as context. If the user requesting context is a patient, then the patient input parameter should be specified. If the user requesting context is a practitioner, then the careTeam input parameter should be specified. Throws an exception if it is not allowed to select the Episode Of Care context. ## Output For valid Episode of Care is returned references that cause the Episode of Care to be valid context. For a practitioner, two output parameters will be returned on success: - CareTeam: The Careteam that gave access - EpisodeOfCare/CarePlan: The EpisodeOfCare or CarePlan that referenced the CareTeam

type:
  v: Goal
profile:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-goal
  l: ehealth-goal
interaction:
  code:
    v: update
interaction:
  code:
    v: search-type
interaction:
  code:
    v: vread
interaction:
  code:
    v: read
interaction:
  code:
    v: create
conditional create:
  v: true
conditional update:
  v: true
search include:
  v: *
search include:
  v: Goal:patient
search include:
  v: Goal:subject
search rev include:
  v: CarePlan:activity-reference
search rev include:
  v: CarePlan:care-team
search rev include:
  v: CarePlan:condition
search rev include:
  v: CarePlan:episodeOfCare
search rev include:
  v: CarePlan:goal
search rev include:
  v: CarePlan:instantiates-canonical
search rev include:
  v: CarePlan:part-of
search rev include:
  v: CarePlan:participant-actor
search rev include:
  v: CarePlan:patient
search rev include:
  v: Communication:episodeOfCare
search rev include:
  v: Communication:participant-actor
search rev include:
  v: Communication:recipient
search rev include:
  v: Communication:subject
search rev include:
  v: CommunicationRequest:based-on
search rev include:
  v: CommunicationRequest:encounter
search rev include:
  v: CommunicationRequest:episodeOfCare
search rev include:
  v: CommunicationRequest:patient
search rev include:
  v: CommunicationRequest:recipient
search rev include:
  v: CommunicationRequest:replaces
search rev include:
  v: CommunicationRequest:requester
search rev include:
  v: CommunicationRequest:sender
search rev include:
  v: CommunicationRequest:subject
search rev include:
  v: Consent:actor
search rev include:
  v: Consent:data
search rev include:
  v: Consent:patient
search rev include:
  v: DocumentReference:encounter
search rev include:
  v: DocumentReference:intendedOrganization
search rev include:
  v: DocumentReference:modifier_role_reference
search rev include:
  v: DocumentReference:subject
search rev include:
  v: EpisodeOfCare:condition
search rev include:
  v: EpisodeOfCare:organization
search rev include:
  v: EpisodeOfCare:participant-actor
search rev include:
  v: EpisodeOfCare:patient
search rev include:
  v: EpisodeOfCare:team
search rev include:
  v: Goal:addresses
search rev include:
  v: Goal:patient
search rev include:
  v: Goal:subject
search rev include:
  v: Provenance:target
search param:
  name:
    v: _content
  type:
    v: string
  documentation:
    v: Search the contents of the resource's data using a fulltext search
search param:
  name:
    v: _filter
  type:
    v: string
  documentation:
    v: Search the contents of the resource's data using a filter
search param:
  name:
    v: _has
  type:
    v: string
  documentation:
    v: Return resources linked to by the given target
search param:
  name:
    v: _id
  type:
    v: token
  documentation:
    v: The ID of the resource
search param:
  name:
    v: _language
  type:
    v: string
  documentation:
    v: The language of the resource
search param:
  name:
    v: _lastUpdated
  type:
    v: date
  documentation:
    v: Only return resources which were last updated as specified by the given range
search param:
  name:
    v: _profile
  type:
    v: uri
  documentation:
    v: Search for resources which have the given profile
search param:
  name:
    v: _security
  type:
    v: token
  documentation:
    v: Search for resources which have the given security labels
search param:
  name:
    v: _source
  type:
    v: uri
  documentation:
    v: Search for resources which have the given source value (Resource.meta.source)
search param:
  name:
    v: _tag
  type:
    v: token
  documentation:
    v: Search for resources which have the given tag
search param:
  name:
    v: _text
  type:
    v: string
  documentation:
    v: Search the contents of the resource's narrative using a fulltext search
search param:
  name:
    v: addresses
  type:
    v: reference
  documentation:
    v: What the goal addresses
search param:
  name:
    v: category
  type:
    v: token
  documentation:
    v: E.g. Treatment, dietary, behavioral, etc.
search param:
  name:
    v: identifier
  type:
    v: token

v: External Ids for this goal

name:
  v: lifecycle-status
type:
  v: token
documentation:
  v: proposed | accepted | planned | in-progress | on-target | ahead-of-target | behind-target | sustaining | achieved | on-hold | cancelled | entered-in-error | rejected

name:
  v: patient
type:
  v: reference
documentation:
  v: Who this goal is intended for

name:
  v: start-date
type:
  v: date
documentation:
  v: When goal pursuit begins

name:
  v: subject
type:
  v: reference
documentation:
  v: Who this goal is intended for

name:
  v: target-date
type:
  v: date
documentation:
  v: Reach goal on or before

type:
  v: OperationDefinition
profile:
  v: http://hl7.org/fhir/StructureDefinition/OperationDefinition
  l: OperationDefinition
interaction:
  code:
    v: read
search include:
  v: *
search rev include:
  v: CarePlan:activity-reference
search rev include:
  v: CarePlan:care-team
search rev include:
  v: CarePlan:condition
search rev include:
  v: CarePlan:episodeOfCare
search rev include:
  v: CarePlan:goal
search rev include:
  v: CarePlan:instantiates-canonical
search rev include:
  v: CarePlan:part-of
search rev include:
  v: CarePlan:participant-actor
search rev include:
  v: CarePlan:patient
search rev include:
  v: Communication:episodeOfCare
search rev include:
  v: Communication:participant-actor
search rev include:
  v: Communication:recipient
search rev include:
  v: Communication:subject
search rev include:
  v: CommunicationRequest:based-on
search rev include:
  v: CommunicationRequest:encounter
search rev include:
  v: CommunicationRequest:episodeOfCare
search rev include:
  v: CommunicationRequest:patient
search rev include:
  v: CommunicationRequest:recipient
search rev include:
  v: CommunicationRequest:replaces
search rev include:
  v: CommunicationRequest:requester
search rev include:
  v: CommunicationRequest:sender
search rev include:
  v: CommunicationRequest:subject
search rev include:
  v: Consent:actor
search rev include:
  v: Consent:data
search rev include:
  v: Consent:patient
search rev include:
  v: DocumentReference:encounter
search rev include:
  v: DocumentReference:intendedOrganization
search rev include:
  v: DocumentReference:modifier_role_reference
search rev include:
  v: DocumentReference:subject
search rev include:
  v: EpisodeOfCare:condition
search rev include:
  v: EpisodeOfCare:organization
search rev include:
  v: EpisodeOfCare:participant-actor
search rev include:
  v: EpisodeOfCare:patient
search rev include:
  v: EpisodeOfCare:team
search rev include:
  v: Goal:addresses
search rev include:
  v: Goal:patient
search rev include:
  v: Goal:subject
search rev include:
  v: Provenance:target

type:
  v: Provenance
profile:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-provenance
  l: ehealth-provenance
interaction:
  code:
    v: search-type
interaction:
  code:
    v: vread
interaction:
  code:
    v: read
search rev include:
  v: CarePlan:activity-reference
search rev include:
  v: CarePlan:care-team
search rev include:
  v: CarePlan:condition
search rev include:
  v: CarePlan:episodeOfCare
search rev include:
  v: CarePlan:goal
search rev include:
  v: CarePlan:instantiates-canonical
search rev include:
  v: CarePlan:part-of
search rev include:
  v: CarePlan:participant-actor
search rev include:
  v: CarePlan:patient
search rev include:
  v: Communication:episodeOfCare
search rev include:
  v: Communication:participant-actor
search rev include:
  v: Communication:recipient
search rev include:
  v: Communication:subject
search rev include:
  v: CommunicationRequest:based-on
search rev include:
  v: CommunicationRequest:encounter
search rev include:
  v: CommunicationRequest:episodeOfCare
search rev include:
  v: CommunicationRequest:patient
search rev include:
  v: CommunicationRequest:recipient
search rev include:
  v: CommunicationRequest:replaces
search rev include:
  v: CommunicationRequest:requester
search rev include:
  v: CommunicationRequest:sender
search rev include:
  v: CommunicationRequest:subject
search rev include:
  v: Consent:actor
search rev include:
  v: Consent:data
search rev include:
  v: Consent:patient
search rev include:
  v: DocumentReference:encounter
search rev include:
  v: DocumentReference:intendedOrganization
search rev include:
  v: DocumentReference:modifier_role_reference
search rev include:
  v: DocumentReference:subject
search rev include:
  v: EpisodeOfCare:condition
search rev include:
  v: EpisodeOfCare:organization
search rev include:
  v: EpisodeOfCare:participant-actor
search rev include:
  v: EpisodeOfCare:patient
search rev include:
  v: EpisodeOfCare:team
search rev include:
  v: Goal:addresses
search rev include:
  v: Goal:patient
search rev include:
  v: Goal:subject
search rev include:
  v: Provenance:target
search param:
  name:
    v: target
  type:
    v: reference
  documentation:
    v: Target Reference(s) (usually version specific)
search param:
  name:
    v: _tag
  type:
    v: token
  documentation:
    v: Search for resources which have the given tag
operation:
  name:
    v: validate
  definition:
    v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Multi-it-validate
    l: Multi-it-validate

type:
  v: ServiceRequest
profile:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-servicerequest
  l: ehealth-servicerequest
interaction:
  code:
    v: update
interaction:
  code:
    v: vread
interaction:
  code:
    v: read
conditional update:
  v: true
search include:
  v: *
search rev include:
  v: CarePlan:activity-reference
search rev include:
  v: CarePlan:care-team
search rev include:
  v: CarePlan:condition
search rev include:
  v: CarePlan:episodeOfCare
search rev include:
  v: CarePlan:goal
search rev include:
  v: CarePlan:instantiates-canonical
search rev include:
  v: CarePlan:part-of
search rev include:
  v: CarePlan:participant-actor
search rev include:
  v: CarePlan:patient
search rev include:
  v: Communication:episodeOfCare
search rev include:
  v: Communication:participant-actor
search rev include:
  v: Communication:recipient
search rev include:
  v: Communication:subject
search rev include:
  v: CommunicationRequest:based-on
search rev include:
  v: CommunicationRequest:encounter
search rev include:
  v: CommunicationRequest:episodeOfCare
search rev include:
  v: CommunicationRequest:patient
search rev include:
  v: CommunicationRequest:recipient
search rev include:
  v: CommunicationRequest:replaces
search rev include:
  v: CommunicationRequest:requester
search rev include:
  v: CommunicationRequest:sender
search rev include:
  v: CommunicationRequest:subject
search rev include:
  v: Consent:actor
search rev include:
  v: Consent:data
search rev include:
  v: Consent:patient
search rev include:
  v: DocumentReference:encounter
search rev include:
  v: DocumentReference:intendedOrganization
search rev include:
  v: DocumentReference:modifier_role_reference
search rev include:
  v: DocumentReference:subject
search rev include:
  v: EpisodeOfCare:condition
search rev include:
  v: EpisodeOfCare:organization
search rev include:
  v: EpisodeOfCare:participant-actor
search rev include:
  v: EpisodeOfCare:patient
search rev include:
  v: EpisodeOfCare:team
search rev include:
  v: Goal:addresses
search rev include:
  v: Goal:patient
search rev include:
  v: Goal:subject
search rev include:
  v: Provenance:target
operation:
  name:
    v: validate
  definition:
    v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Multi-it-validate
    l: Multi-it-validate

code:
  v: transaction

name:
  v: migrate
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-migrate
  l: -s-migrate
documentation:
  v: Data migration

name:
  v: get-patient-procedures
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-get-patient-procedures
  l: -s-get-patient-procedures
documentation:
  v: This operation returns an overview of patient activities within a time period and filtered by either EpisodeOfCare or Condition code(s). On success, the returned Bundle contains a Parameters structure detailing the count of measurements received and expected. This is done per ServiceRequest with status active for those part of a CarePlan with status active related to eligible EpisodeOfCare resources. Eligible EpisodeOfCare are those with status active that refer to the given Patient and are either given as EpisodeOfCare reference in input or are referencing a Condition with a condition code that matches at least one of the Condition codes possibly given as input. The measurement regime expressed in ServiceRequest.occurrence[x] is, when possible, resolved to time slot(s) corresponding to datetime/period where an action is supposed to take place, typically performed by the Patient. When the occurrenceTiming variant is used, resolved time slots overlapping with the input time periode are considered. For occurrenceTiming expression which are either adhoc or unresolved, the effective datetime/period of a measurement is considered when checked for overlap with input time period. ## Input The operation has three mandatory inputs, a Patient reference, a start date and an end date. Additionally the operation has three optional inputs: a list of reference(s) to EpisodeOfCare, a list of Codings for Condition and a list of Codings for tags. ### Patient reference Mandatory reference for the Patient which the procedure overview is computed for. ### Start and end datetimes Start and end datetime are both mandatory, and together specify the period of interest in the patient procedure overview. As stated above, for resolvable past and future time slots as well as adhoc and unresolved timings there must overlap with this period. ### EpisodeOfCare list The list of EpisodeOfCare references is optional. If EpisodeOfCare are provided, these will be used to further filter which active Epi…

name:
  v: create-episode-of-care
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-create-episode-of-care
  l: -s-create-episode-of-care
documentation:
  v: This operation persists an EpisodeOfCare based on the transient value of an EpisodeOfCare provided in the input. ## Input The input is a Bundle which must contain exactly one EpisodeOfCare, conditions referenced in diagnosis list and at least one Provenance resource. All Provenances in the input must have the EpisodeOfCare as target. At least one Provenance must be interpreted into a 'Privacy-provenance' (see below). ### The EpisodeOfCare resource The EpisodeOfCare has to have `PLANNED` status The 'id' property of the EpisodeOfCare will be reassigned by the server, but can be referenced by other resources in the same bundle. The 'managingOrganization' property of the EpisodeOfCare references the GDPR Data Controller (Danish: 'Dataansvarlig'). ### The privacy-Provenance resource A privacy-Provenance is a Provenance resource characterized by having at least one entry in Provenance.policy which data are transported, stored, or processed in the system. Possible values are: - 'http://ehealth.sundhed.dk/policy/dk/sundhedsloven' - 'http://ehealth.sundhed.dk/policy/dk/serviceloven' ### Diagnosis referenced Condition resource For any diagnosis listed, the referenced Condition must be concerning the same Patient as the EpisodeOfCare. ## Output For valid inputs, the server will create, persist and return a new EpisodeOfCare, client-supplied provenances, conditions and origin-provenance carrying a server-assigned ids. To get resources bodies in the output the request header has to contain parameter ```Prefer: return=representation```. ## Validation - Patient.deceased must be false to create episode of care ### The origin-Provenance resource Whenever an EpisodeOfCare is created, the server automatically creates an 'origin' Provenance resource point to it (in addition to the client-supplied Privacy-Provenance). This Origin-Provenance resource is filled with data from the JWT access token in order to record the origin of the EpisodeOfCare resource. For instance agent.whoReference …

name:
  v: apply
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-apply
  l: -s-apply
documentation:
  v: Create a careplan with service requests for a specific episodeOfCare using the PlanDefinition as a template. If using POST the operation will persist resources and return the careplan. If using GET the operation will return transient resources in a transaction bundle. The bundle with transient careplan and servicerequest resources can then be modified before being persisted using a FHIR transaction.

name:
  v: reindex-terminology
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-reindex-terminology
  l: -s-reindex-terminology

name:
  v: meta
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-meta
  l: -s-meta

name:
  v: get-resource-counts
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-get-resource-counts
  l: -s-get-resource-counts
documentation:
  v: Provides the number of resources currently stored on the server, broken down by resource type