careplan
type: CapabilityStatement
node role: treeRoot
id:
  v: careplan
text:
  status:
    v: extensions
  div: careplan Mode SERVER Description Transaction y System History y System Search Resource Type Profile Read V-Read Search Update Patch Create Delete CarePlan http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan y y y y CommunicationRequest http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-communication-request y y y y y y Condition http://hl7.org/fhir/StructureDefinition/Condition y y y y Consent http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent y y y y y EpisodeOfCare http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare y y y y Goal http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-goal y y y y y OperationDefinition http://hl7.org/fhir/StructureDefinition/OperationDefinition y Provenance http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-provenance y y y ServiceRequest http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-servicerequest y y y
url:
  v: http://ehealth.sundhed.dk/fhir/CapabilityStatement/careplan
version:
  v: 2.9.0
name:
  v: careplan
status:
  v: active
date:
  v: 2023-08-18T02:02:44.292+00:00
publisher:
  v: Systematic | Trifork
contact:
  name:
    v: Systematic | Trifork
  telecom:
    system:
      v: url
    value:
      v: http://ehealth.sundhed.dk
kind:
  v: instance
software:
  name:
    v: careplan
  version:
    v: 1.16.6
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: 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
    interaction:
      code:
        v: read
    conditional update:
      v: true
    search include:
      v: CarePlan:activity-reference
    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:episodeOfCare
    search rev include:
      v: CarePlan:goal
    search rev include:
      v: CarePlan:part-of
    search rev include:
      v: CarePlan:patient
    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: EpisodeOfCare:condition
    search rev include:
      v: EpisodeOfCare:organization
    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: _tag
      type:
        v: token
      documentation:
        v: Search for resources which have the given tag
    search param:
      name:
        v: activity-reference
      type:
        v: reference
      documentation:
        v: Activity details defined in specific resource
    search param:
      name:
        v: care-team
      type:
        v: reference
      documentation:
        v: Who's involved in plan?
    search param:
      name:
        v: category
      type:
        v: token
      documentation:
        v: Type of plan
    search param:
      name:
        v: date
      type:
        v: date
      documentation:
        v: Time period plan covers
    search param:
      name:
        v: episodeOfCare
      type:
        v: reference
      documentation:
        v: EpisodeOfCare
    search param:
      name:
        v: goal
      type:
        v: reference
      documentation:
        v: Goal of the care plan
    search param:
      name:
        v: identifier
      type:
        v: token

v: External Ids for this plan

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

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: 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:episodeOfCare
search rev include:
  v: CarePlan:goal
search rev include:
  v: CarePlan:part-of
search rev include:
  v: CarePlan:patient
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: EpisodeOfCare:condition
search rev include:
  v: EpisodeOfCare:organization
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
  type:
    v: reference
  documentation:
    v: Episode leading to message
search param:
  name:
    v: group-identifier
  type:
    v: token
  documentation:
    v: Composite request this is part of
search param:
  name:
    v: identifier
  type:
    v: token
  documentation:
    v: Unique identifier
search param:
  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:episodeOfCare
search rev include:
  v: CarePlan:goal
search rev include:
  v: CarePlan:part-of
search rev include:
  v: CarePlan:patient
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: EpisodeOfCare:condition
search rev include:
  v: EpisodeOfCare:organization
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
    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:episodeOfCare
search rev include:
  v: CarePlan:goal
search rev include:
  v: CarePlan:part-of
search rev include:
  v: CarePlan:patient
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: EpisodeOfCare:condition
search rev include:
  v: EpisodeOfCare:organization
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
    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: 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:episodeOfCare
search rev include:
  v: CarePlan:goal
search rev include:
  v: CarePlan:part-of
search rev include:
  v: CarePlan:patient
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: EpisodeOfCare:condition
search rev include:
  v: EpisodeOfCare:organization
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
  documentation:
    v: External Ids for this goal
search param:
  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
search param:
  name:
    v: patient
  type:
    v: reference
  documentation:
    v: Who this goal is intended for
search param:
  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:episodeOfCare
search rev include:
  v: CarePlan:goal
search rev include:
  v: CarePlan:part-of
search rev include:
  v: CarePlan:patient
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: EpisodeOfCare:condition
search rev include:
  v: EpisodeOfCare:organization
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
  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:episodeOfCare
search rev include:
  v: CarePlan:goal
search rev include:
  v: CarePlan:part-of
search rev include:
  v: CarePlan:patient
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: EpisodeOfCare:condition
search rev include:
  v: EpisodeOfCare:organization
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
    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: 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:episodeOfCare
search rev include:
  v: CarePlan:goal
search rev include:
  v: CarePlan:part-of
search rev include:
  v: CarePlan:patient
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: EpisodeOfCare:condition
search rev include:
  v: EpisodeOfCare:organization
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
    link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/Multi-it-validate

code:
  v: transaction

code:
  v: history-system

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' ### 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```. ### 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 points to a resource which is created as a shadow identity from the JWT t…

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: This operation creates a careplan for a specific episodeOfCare using this PlanDefinition as a template.

name:
  v: process-message
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-process-message
  link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-process-message
documentation:
  v: Accept a FHIR Message Bundle for processing

name:
  v: perform-reindexing-pass
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-perform-reindexing-pass
  link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-perform-reindexing-pass
documentation:
  v: Forces a single pass of the resource reindexing processor

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: reindex-terminology
definition:
  v: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-reindex-terminology
  link: https://careplan.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-reindex-terminology