-s-fetch-careplans-by-patient
type: OperationDefinition
node role: treeRoot
resource.id:
  value: -s-fetch-careplans-by-patient
domain resource.text:
  narrative.status:
    value: generated
  narrative.div: Generated Narrative: OperationDefinition -s-fetch-careplans-by-patient URL: [base]/$fetch-careplans-by-patient Parameters Use Name Scope Cardinality Type Binding Documentation IN anonymization 1..1 string This parameter is used to control if the report should be anonymized or not. If the value is set to NONE (no anonymization) and the user lacks the required permission, an exception is thrown. IN organization 0..1 Reference Filter on EpisodeOfCare.managingOrganization match. IN period 0..1 Period Filter on CarePlan.period overlap. OUT return 0..1 Binary
operation definition.url:
  value: http://ehealth.sundhed.dk/fhir/OperationDefinition/-s-fetch-careplans-by-patient
operation definition.version:
  value: 10.0.0
operation definition.name:
  value: fetch-careplans-by-patient
operation definition.title:
  value: Fetch careplans by patient
operation definition.status:
  value: active
operation definition.kind:
  value: operation
operation definition.date:
  value: 2026-08-06T13:17:54+00:00
operation definition.publisher:
  value: Den telemedicinske infrastruktur (eHealth Infrastructure)
operation definition.contact:
  index: 0
  contact detail.name:
    value: Den telemedicinske infrastruktur (eHealth Infrastructure)
  contact detail.telecom:
    index: 0
    contact point.system:
      value: url
    contact point.value:
      value: http://ehealth.sundhed.dk
operation definition.description:
  value: ### Report Contents This report contains the following resources: - EpisodeOfCare - PlanDefinition - CarePlan - ServiceRequest ### Grouping This report is grouped by EpisodeOfCare. Each group is returned in a separate JSon file. ### Parameters - organization: Filter on EpisodeOfCare.managingOrganization match - period: Filter on CarePlan.period overlap ### Output Output can be found in Binary.content. This is a Base64 encoded .zip file containing JSon files corresponding to the report groups. ### Example output All returned objects are Fhir resources. See the implementation guide for details { 'EHealthEpisodeOfCare': { 'resourceType': 'EpisodeOfCare', 'id': '30254', 'meta': { 'versionId': '1', 'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare'] }, 'extension': [{ 'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization', 'valueReference': { 'reference': 'https://organization.local.ehealth.sundhed.dk/fhir/Organization/88873' } } ], 'status': 'active', 'diagnosis': [{ 'condition': { 'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/Condition/66740' }, 'rank': 1 } ], 'patient': { 'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/18637' }, 'managingOrganization': { 'reference': 'https://organization.local.ehealth.sundhed.dk/fhir/Organization/16046' }, 'period': { 'start': '1970-01-01T01:00:01+01:00', 'end': '1970-01-01T01:01:40+01:00' } }, 'EHealthCarePlan': [{ 'resourceType': 'CarePlan', 'id': '1597', 'meta': { 'versionId': '1', 'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan'] }, 'definition': [{ 'reference': 'https://plan.local.ehealth.sundhed.dk/fhir/PlanDefinition/59578' } ], 'status': 'draft', 'intent': 'option', 'category': [{ 'coding': [{ 'system': 'http://ehealth.sundhed.dk/cs/careplan-category', 'code': 'TBD' } ] } ], 'subject': { 'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/57779' }, 'context'…
operation definition.jurisdiction:
  index: 0
  codeable concept.coding:
    index: 0
    coding.system:
      value: urn:iso:std:iso:3166
    coding.code:
      value: DK
    coding.display:
      value: Denmark
operation definition.affects state:
  value: true
operation definition.code:
  value: fetch-careplans-by-patient
operation definition.system:
  value: true
operation definition.type:
  value: false
operation definition.instance:
  value: false
operation definition.parameter:
  index: 0
  operation definition.parameter.name:
    value: anonymization
  operation definition.parameter.use:
    value: in
  operation definition.parameter.min:
    value: 1
  operation definition.parameter.max:
    value: 1
  operation definition.parameter.documentation:
    value: This parameter is used to control if the report should be anonymized or not. If the value is set to NONE (no anonymization) and the user lacks the required permission, an exception is thrown.
  operation definition.parameter.type:
    value: string
operation definition.parameter:
  index: 1
  operation definition.parameter.name:
    value: organization
  operation definition.parameter.use:
    value: in
  operation definition.parameter.min:
    value: 0
  operation definition.parameter.max:
    value: 1
  operation definition.parameter.documentation:
    value: Filter on EpisodeOfCare.managingOrganization match.
  operation definition.parameter.type:
    value: Reference
operation definition.parameter:
  index: 2
  operation definition.parameter.name:
    value: period
  operation definition.parameter.use:
    value: in
  operation definition.parameter.min:
    value: 0
  operation definition.parameter.max:
    value: 1
  operation definition.parameter.documentation:
    value: Filter on CarePlan.period overlap.
  operation definition.parameter.type:
    value: Period
operation definition.parameter:
  index: 3
  operation definition.parameter.name:
    value: return
  operation definition.parameter.use:
    value: out
  operation definition.parameter.min:
    value: 0
  operation definition.parameter.max:
    value: 1
  operation definition.parameter.type:
    value: Binary