careplan
type: CapabilityStatement
node role: treeRoot
id:
  v: careplan
text:
  status:
    v: extensions
  div: Generated Narrative: CapabilityStatement careplan Implementation Guide Version: 9.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: 2026-04-16 13:07:23+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. This CapabilityStatement instantiates the CapabilityStatement http://hl7.org/fhir/uv/bulkdata/CapabilityStatement/bulk-data FHIR RESTful Capabilities Mode: server Summary of System-wide Interactions Supports the transactioninteraction. Summary of System-wide Operations Conformance Operation Documentation SHALL $reindex SHALL $hapi.fhir.reindex-status 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 p…
url:
  v: http://ehealth.sundhed.dk/fhir/CapabilityStatement/careplan
version:
  v: 9.0.0
name:
  v: careplan
status:
  v: active
date:
  v: 2026-04-16T13:07:23.034+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
    code:
      v: DK
    display:
      v: Denmark
kind:
  v: instance
instantiates:
  v: http://hl7.org/fhir/uv/bulkdata/CapabilityStatement/bulk-data
  link: http://hl7.org/fhir/uv/bulkdata/CapabilityStatement/bulk-data
software:
  name:
    v: careplan
  version:
    v: 1.39.0
implementation:
  description:
    v: eHealth careplan service
  url:
    v: https://careplan.devtest.systematic-ehealth.com/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: Binary
    profile:
      v: http://hl7.org/fhir/StructureDefinition/Binary
      link: http://hl7.org/fhir/StructureDefinition/Binary
    interaction:
      code:
        v: vread
    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:affiliation
    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 rev include:
      v: ServiceRequest:based-on
    search rev include:
      v: ServiceRequest:encounter
    search rev include:
      v: ServiceRequest:episodeOfCare
    search rev include:
      v: ServiceRequest:patient
    search rev include:
      v: ServiceRequest:performer
    search rev include:
      v: ServiceRequest:replaces
    search rev include:
      v: ServiceRequest:requester
    search rev include:
      v: ServiceRequest:subject
    operation:
      name:
        v: expunge
      definition:
        v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Binary-its-expunge
        link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Binary-its-expunge
  resource:
    type:
      v: CarePlan
    profile:
      v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan
      link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan
    interaction:
      code:
        v: update
    interaction:
      code:
        v: search-type
    interaction:
      code:
        v: vread

code:
  v: read

v: true

v: CarePlan:activity-reference

v: CarePlan:condition

v: CarePlan:episodeOfCare

v: CarePlan:goal

v: CarePlan:part-of

v: CarePlan:activity-reference

v: CarePlan:care-team

v: CarePlan:condition

v: CarePlan:episodeOfCare

v: CarePlan:goal

v: CarePlan:instantiates-canonical

v: CarePlan:part-of

v: CarePlan:participant-actor

v: CarePlan:patient

v: Communication:episodeOfCare

v: Communication:participant-actor

v: Communication:recipient

v: Communication:subject

v: CommunicationRequest:based-on

v: CommunicationRequest:encounter

v: CommunicationRequest:episodeOfCare

v: CommunicationRequest:patient

v: CommunicationRequest:recipient

v: CommunicationRequest:replaces

v: CommunicationRequest:requester

v: CommunicationRequest:sender

v: CommunicationRequest:subject

v: Consent:actor

v: Consent:affiliation

v: Consent:data

v: Consent:patient

v: DocumentReference:encounter

v: DocumentReference:intendedOrganization

v: DocumentReference:modifier_role_reference

v: DocumentReference:subject

v: EpisodeOfCare:condition

v: EpisodeOfCare:organization

v: EpisodeOfCare:participant-actor

v: EpisodeOfCare:patient

v: EpisodeOfCare:team

v: Goal:addresses

v: Goal:patient

v: Goal:subject

v: Provenance:target

v: ServiceRequest:based-on

v: ServiceRequest:encounter

v: ServiceRequest:episodeOfCare

v: ServiceRequest:patient

v: ServiceRequest:performer

v: ServiceRequest:replaces

v: ServiceRequest:requester

v: ServiceRequest:subject

name:
  v: _id
type:
  v: token
documentation:
  v: The ID of the resource

name:
  v: _lastUpdated
type:
  v: date
documentation:
  v: Only return resources which were last updated as specified by the given range

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
  link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Multi-it-validate

name:
  v: update-care-teams
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/CarePlanEpisodeOfCare-i-update-care-teams
  link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/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
  link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/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
  link: http://ehealth.sundhed.dk/fhir/StructureDefinition/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:affiliation
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 rev include:
  v: ServiceRequest:based-on
search rev include:
  v: ServiceRequest:encounter
search rev include:
  v: ServiceRequest:episodeOfCare
search rev include:
  v: ServiceRequest:patient
search rev include:
  v: ServiceRequest:performer
search rev include:
  v: ServiceRequest:replaces
search rev include:
  v: ServiceRequest:requester
search rev include:
  v: ServiceRequest:subject
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

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

name:
  v: sent
type:
  v: date
documentation:
  v: Search for MaterialCommunication which are associated to the given sent date

name:
  v: status
type:
  v: token
documentation:
  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
  link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Multi-it-validate

type:
  v: CommunicationRequest
profile:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-communication-request
  link: http://ehealth.sundhed.dk/fhir/StructureDefinition/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:affiliation
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 rev include:
  v: ServiceRequest:based-on
search rev include:
  v: ServiceRequest:encounter
search rev include:
  v: ServiceRequest:episodeOfCare
search rev include:
  v: ServiceRequest:patient
search rev include:
  v: ServiceRequest:performer
search rev include:
  v: ServiceRequest:replaces
search rev include:
  v: ServiceRequest:requester
search rev include:
  v: ServiceRequest:subject
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

name:
  v: category
type:
  v: token
documentation:
  v: Message category

name:
  v: encounter
type:
  v: reference
documentation:
  v: Encounter leading to message

name:
  v: episodeOfCare
type:
  v: reference
documentation:
  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
  link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Multi-it-validate

type:
  v: Condition
profile:
  v: http://hl7.org/fhir/StructureDefinition/Condition
  link: http://hl7.org/fhir/StructureDefinition/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:affiliation
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 rev include:
  v: ServiceRequest:based-on
search rev include:
  v: ServiceRequest:encounter
search rev include:
  v: ServiceRequest:episodeOfCare
search rev include:
  v: ServiceRequest:patient
search rev include:
  v: ServiceRequest:performer
search rev include:
  v: ServiceRequest:replaces
search rev include:
  v: ServiceRequest:requester
search rev include:
  v: ServiceRequest:subject
operation:
  name:
    v: validate
  definition:
    v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Multi-it-validate
    link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Multi-it-validate

type:
  v: Consent
profile:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent
  link: http://ehealth.sundhed.dk/fhir/StructureDefinition/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:affiliation
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 rev include:
  v: ServiceRequest:based-on
search rev include:
  v: ServiceRequest:encounter
search rev include:
  v: ServiceRequest:episodeOfCare
search rev include:
  v: ServiceRequest:patient
search rev include:
  v: ServiceRequest:performer
search rev include:
  v: ServiceRequest:replaces
search rev include:
  v: ServiceRequest:requester
search rev include:
  v: ServiceRequest:subject
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: affiliation
  type:
    v: reference
  documentation:
    v: Affiliation to resources the consent is affiliated with, for instance EpisodeOfCare and CarePlan
search param:
  name:
    v: category
  type:
    v: token
  documentation:
    v: Classification of the consent statement - for indexing/retrieval
search param:
  name:
    v: data
  type:
    v: reference
  documentation:
    v: The actual data reference
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: policy
  type:
    v: uri
  documentation:
    v: Policies covered by the consent
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
    link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Multi-it-validate

type:
  v: DocumentReference
profile:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-documentreference
  link: http://ehealth.sundhed.dk/fhir/StructureDefinition/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:affiliation
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 rev include:
  v: ServiceRequest:based-on
search rev include:
  v: ServiceRequest:encounter
search rev include:
  v: ServiceRequest:episodeOfCare
search rev include:
  v: ServiceRequest:patient
search rev include:
  v: ServiceRequest:performer
search rev include:
  v: ServiceRequest:replaces
search rev include:
  v: ServiceRequest:requester
search rev include:
  v: ServiceRequest:subject
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

name:
  v: type
type:
  v: token
documentation:
  v: Kind of document (LOINC if possible)

name:
  v: use-context-context
type:
  v: token
documentation:
  v: The context that the content is intended to support

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

type:
  v: EpisodeOfCare
profile:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare
  link: http://ehealth.sundhed.dk/fhir/StructureDefinition/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
    link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Multi-it-validate
operation:
  name:
    v: update-care-teams
  definition:
    v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/CarePlanEpisodeOfCare-i-update-care-teams
    link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/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
    link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/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
  link: http://ehealth.sundhed.dk/fhir/StructureDefinition/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:affiliation
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 rev include:
  v: ServiceRequest:based-on
search rev include:
  v: ServiceRequest:encounter
search rev include:
  v: ServiceRequest:episodeOfCare
search rev include:
  v: ServiceRequest:patient
search rev include:
  v: ServiceRequest:performer
search rev include:
  v: ServiceRequest:replaces
search rev include:
  v: ServiceRequest:requester
search rev include:
  v: ServiceRequest:subject
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

name:
  v: addresses
type:
  v: reference
documentation:
  v: What the goal addresses

name:
  v: category
type:
  v: token
documentation:
  v: E.g. Treatment, dietary, behavioral, etc.

name:
  v: identifier
type:
  v: token
documentation:
  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
  link: http://hl7.org/fhir/StructureDefinition/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:affiliation
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 rev include:
  v: ServiceRequest:based-on
search rev include:
  v: ServiceRequest:encounter
search rev include:
  v: ServiceRequest:episodeOfCare
search rev include:
  v: ServiceRequest:patient
search rev include:
  v: ServiceRequest:performer
search rev include:
  v: ServiceRequest:replaces
search rev include:
  v: ServiceRequest:requester
search rev include:
  v: ServiceRequest:subject

type:
  v: Provenance
profile:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-provenance
  link: http://ehealth.sundhed.dk/fhir/StructureDefinition/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:affiliation
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 rev include:
  v: ServiceRequest:based-on
search rev include:
  v: ServiceRequest:encounter
search rev include:
  v: ServiceRequest:episodeOfCare
search rev include:
  v: ServiceRequest:patient
search rev include:
  v: ServiceRequest:performer
search rev include:
  v: ServiceRequest:replaces
search rev include:
  v: ServiceRequest:requester
search rev include:
  v: ServiceRequest:subject
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
    link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Multi-it-validate

type:
  v: ServiceRequest
profile:
  v: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-servicerequest
  link: http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-servicerequest
interaction:
  code:
    v: update
interaction:
  code:
    v: search-type
interaction:
  code:
    v: vread
interaction:
  code:
    v: read
conditional update:
  v: true
search include:
  v: ServiceRequest:episodeOfCare
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:affiliation
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 rev include:
  v: ServiceRequest:based-on
search rev include:
  v: ServiceRequest:encounter
search rev include:
  v: ServiceRequest:episodeOfCare
search rev include:
  v: ServiceRequest:patient
search rev include:
  v: ServiceRequest:performer
search rev include:
  v: ServiceRequest:replaces
search rev include:
  v: ServiceRequest:requester
search rev include:
  v: ServiceRequest:subject
search param:
  name:
    v: _id
  type:
    v: token
  documentation:
    v: The ID of the resource
search param:
  name:
    v: authored
  type:
    v: date
  documentation:
    v: Date request signed
search param:
  name:
    v: based-on
  type:
    v: reference
  documentation:
    v: What request fulfills
search param:
  name:
    v: category
  type:
    v: token
  documentation:
    v: Classification of service
search param:
  name:
    v: code
  type:
    v: token
  documentation:
    v: What is being requested/ordered
search param:
  name:
    v: encounter
  type:
    v: reference
  documentation:
    v: An encounter in which this request is made
search param:
  name:
    v: episodeOfCare
  type:
    v: reference
  documentation:
    v: episodeOfCare
search param:
  name:
    v: identifier
  type:
    v: token
  documentation:
    v: Identifiers assigned to this order
search param:
  name:
    v: intent
  type:
    v: token
  documentation:
    v: proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option
search param:
  name:
    v: patient
  type:
    v: reference
  documentation:
    v: Search by subject - a patient
search param:
  name:
    v: performer
  type:
    v: reference
  documentation:
    v: Requested performer
search param:
  name:
    v: replaces
  type:
    v: reference
  documentation:
    v: What request replaces
search param:
  name:
    v: requester

v: reference

v: Who/what is requesting service

name:
  v: status
type:
  v: token
documentation:
  v: draft | active | on-hold | revoked | completed | entered-in-error | unknown

name:
  v: subject
type:
  v: reference
documentation:
  v: Search by subject

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

code:
  v: transaction

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

name:
  v: hapi.fhir.reindex-status
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-hapi.fhir.reindex-status
  link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-hapi.fhir.reindex-status

name:
  v: migrate
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-migrate
  link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-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
  link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-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
  link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-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' - 'http://ehealth.sundhed.dk/policy/dk/aeldreloven' ### Diagnosis referenced Condition resource For any diagnosis listed, the referenced Condition must be concerning the same Patient as the EpisodeOfCare. ### Treatment area validation When creating an EpisodeOfCare, the infrastructure validates that all diagnoses (referenced Condition.code) are within the treatment area of the telemedicine solution tied to the EpisodeOfCare.The telemedicine solution is determined by inspecting the incoming security token of the practitioner creating the EpisodeOfCare (coexistence-tag in scope claim).The treatment areas are defined by each telemedicine solution having a ValueSet determining the allowed Condition.code.The treatment area ValueSets are characterized by having a useContext with 'system-treatment-area' context code, and using the coexistence-tag as the value (see https://ehealth.sundhed.dk/fhir/ValueSe…

name:
  v: apply
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-apply
  link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-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: export-poll-status
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-export-poll-status
  link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-export-poll-status
documentation:
  v: Operation for polling the status of a previously initiated FHIR Bulk Data System Level Export. A complete URL including the '_jobId' is returned in the 'Content-Location' response header when initiating the export. A 'GET' request to the polling location will return '202 Accepted' with a response header 'X-Progress' containing a status message for the progress of the export job. When the job has finished, the polling location will return '200 OK', and the contents of the body will be a JSON object providing metadata and links to the generated bulk data files. A 'DELETE' request can be used to cancel the export. If the export has already finished, the delete will return '404 Not Found', else the export job will be cancelled and a '202 Accepted' is returned with an operation outcome response. ### Parameters - _jobId: the job ID for the Bulk Export job which was returned in the 'Content-Location' header when initiating the export

name:
  v: export
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-export
  link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-export
documentation:
  v: FHIR Operation to initiate an export of data from a FHIR server. The type of resources returned can be restricted using the '_type' parameter, and the '_since' parameter can be used to restrict resources to be only included if changed since the supplied time. The FHIR server support invocation of this operation using the [FHIR Asynchronous Request Pattern](http://hl7.org/fhir/R4/async.html). ## Initiation of export The initiation of an export must specify the request header 'Prefer: respond-async', and will return '202 Accepted' with a polling location in the response header 'Content-Location'. The polling location is for the endpoint '$export-poll-status' and has the export job ID as parameter '_jobId'. ### Parameters - _outputFormat: Optional parameter to specify the output format of the exported files. Default is 'application/fhir+ndjson' - _type: Optional parameter to specify a comma separated list of resource types to be included in the export. If not provided, all resource types will be included. - _since: Optional parameter to specify a time. Only resources that have been created or modified after this time will be included in the export (i.e., if Resource.meta.lastUpdated is later than the supplied _since time). - _until: Optional parameter to specify a time. Only resources that have been created or modified before this time will be included in the export (i.e., if Resource.meta.lastUpdated is earlier than the supplied _until time). - _typeFilter: Optional parameter to apply search filter of resources for export. It is a string of comma-delimited FHIR REST search queries in the format [resourceType]?[parameters]. The filter will be applied when searching resources. - _typePostFetchFilterUrl: Optional parameter to apply filtering of resources for export. It is a string of comma-delimited FHIR REST search queries in the format [resourceType]?[parameters]. The filter will be applied on resources after being fetched from the database. - _includeHistory: Optional…

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

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

name:
  v: expunge
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Binary-its-expunge
  link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Binary-its-expunge