<?xml version="1.0" encoding="UTF-8"?>

<OperationDefinition xmlns="http://hl7.org/fhir">
  <id value="-s-fetch-patient-gdpr"/>
  <text>
    <status value="extensions"/><div xmlns="http://www.w3.org/1999/xhtml"><p>URL: [base]/$fetch-patient-gdpr</p><p>Parameters</p><table class="grid"><tr><td><b>Use</b></td><td><b>Name</b></td><td><b>Cardinality</b></td><td><b>Type</b></td><td><b>Binding</b></td><td><b>Documentation</b></td></tr><tr><td>IN</td><td>anonymization</td><td>1..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#string">string</a></td><td/><td/></tr><tr><td>IN</td><td>organization</td><td>0..1</td><td><a href="http://hl7.org/fhir/R4/references.html#Reference">Reference</a></td><td/><td/></tr><tr><td>IN</td><td>period</td><td>0..1</td><td><a href="http://hl7.org/fhir/R4/datatypes.html#Period">Period</a></td><td/><td/></tr><tr><td>IN</td><td>patient</td><td>1..1</td><td><a href="http://hl7.org/fhir/R4/references.html#Reference">Reference</a></td><td/><td/></tr><tr><td>OUT</td><td>return</td><td>0..1</td><td><a href="http://hl7.org/fhir/R4/binary.html">Binary</a></td><td/><td/></tr></table></div>
  </text>
  <url value="https://reporting.devtest.systematic-ehealth.com/fhir/OperationDefinition/-s-fetch-patient-gdpr"/>
  <version value="2.7.0"/>
  <name value="fetch-patient-gdpr"/>
  <title value="Fetch patient GDPR"/>
  <status value="active"/>
  <kind value="operation"/>
  <date value="2023-03-20T13:02:35+00:00"/>
  <publisher value="Systematic | Trifork"/>
  <contact>
    <name value="Systematic | Trifork"/>
    <telecom>
      <system value="url"/>
      <value value="http://ehealth.sundhed.dk"/>
    </telecom>
  </contact>
  <description value="### Report Contents&#xA;This report contains all information related to the specified Patient&#xA;### Grouping &#xA;None. This report returns a single JSon file.&#xA;### Parameters&#xA;- organization: Filter on EpisodeOfCare.managingOrganization match&#xA;- period: not used.&#xA;- patient: The patient to fetch information for.&#xA;### Output&#xA;Output can be found in Binary.content. This is a Base64 encoded .zip file containing JSon files corresponding to the report groups.&#xA;### Example output&#xA;All returned objects are Fhir resources. See the implementation guide for details&#xA;&#xA;    {&#xA;        'Patient': {&#xA;            'resourceType': 'Patient',&#xA;            'id': '70791',&#xA;            'meta': {&#xA;                'versionId': '1'&#xA;            }&#xA;        },&#xA;        'Communication': [{&#xA;                'resourceType': 'Communication',&#xA;                'id': '29256',&#xA;                'meta': {&#xA;                    'versionId': '1'&#xA;                },&#xA;                'context': {&#xA;                    'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/10928'&#xA;                }&#xA;            }&#xA;        ],&#xA;        'RelatedPerson': [{&#xA;                'resourceType': 'RelatedPerson',&#xA;                'id': '44196',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-relatedperson']&#xA;                },&#xA;                'identifier': [{&#xA;                        'use': 'official',&#xA;                        'system': 'urn:oid:1.2.208.176.1.2',&#xA;                        'value': '2412001234'&#xA;                    }&#xA;                ],&#xA;                'patient': {&#xA;                    'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/70791'&#xA;                },&#xA;                'name': [{&#xA;                        'text': 'Tester'&#xA;                    }&#xA;                ]&#xA;            }&#xA;        ],&#xA;        'Appointment': [{&#xA;                'resourceType': 'Appointment',&#xA;                'id': '74036',&#xA;                'meta': {&#xA;                    'versionId': '1'&#xA;                },&#xA;                'participant': [{&#xA;                        'id': '5fda865d-5e46-4fc4-8dcc-9b5f9a6b501a',&#xA;                        'actor': {&#xA;                            'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/70791'&#xA;                        }&#xA;                    }&#xA;                ]&#xA;            }&#xA;        ],&#xA;        'AppointmentResponse': [{&#xA;                'resourceType': 'AppointmentResponse',&#xA;                'id': '63226',&#xA;                'meta': {&#xA;                    'versionId': '1'&#xA;                },&#xA;                'actor': {&#xA;                    'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/70791'&#xA;                }&#xA;            }&#xA;        ],&#xA;        'EHealthEpisodeOfCare': [{&#xA;                'resourceType': 'EpisodeOfCare',&#xA;                'id': '10928',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare']&#xA;                },&#xA;                'extension': [{&#xA;                        'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization',&#xA;                        'valueReference': {&#xA;                            'reference': 'https://organization.local.ehealth.sundhed.dk/fhir/Organization/43014'&#xA;                        }&#xA;                    }&#xA;                ],&#xA;                'status': 'active',&#xA;                'diagnosis': [{&#xA;                        'condition': {&#xA;                            'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/Condition/33654'&#xA;                        },&#xA;                        'rank': 1&#xA;                    }&#xA;                ],&#xA;                'patient': {&#xA;                    'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/70791'&#xA;                },&#xA;                'managingOrganization': {&#xA;                    'reference': 'https://organization.local.ehealth.sundhed.dk/fhir/Organization/34361'&#xA;                },&#xA;                'period': {&#xA;                    'start': '1970-01-01T01:00:01+01:00',&#xA;                    'end': '1970-01-01T01:01:40+01:00'&#xA;                }&#xA;            }, {&#xA;                'resourceType': 'EpisodeOfCare',&#xA;                'id': '48392',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare']&#xA;                },&#xA;                'extension': [{&#xA;                        'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-episodeofcare-caremanagerOrganization',&#xA;                        'valueReference': {&#xA;                            'reference': 'https://organization.local.ehealth.sundhed.dk/fhir/Organization/41282'&#xA;                        }&#xA;                    }&#xA;                ],&#xA;                'status': 'active',&#xA;                'diagnosis': [{&#xA;                        'condition': {&#xA;                            'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/Condition/87020'&#xA;                        },&#xA;                        'rank': 1&#xA;                    }&#xA;                ],&#xA;                'patient': {&#xA;                    'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/47956'&#xA;                },&#xA;                'managingOrganization': {&#xA;                    'reference': 'https://organization.local.ehealth.sundhed.dk/fhir/Organization/34361'&#xA;                },&#xA;                'period': {&#xA;                    'start': '1970-01-01T01:00:01+01:00',&#xA;                    'end': '1970-01-01T01:01:40+01:00'&#xA;                }&#xA;            }&#xA;        ],&#xA;        'EHealthDeviceUseStatement': [{&#xA;                'resourceType': 'DeviceUseStatement',&#xA;                'id': '4021',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement']&#xA;                },&#xA;                'extension': [{&#xA;                        'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context',&#xA;                        'valueReference': {&#xA;                            'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/87235'&#xA;                        }&#xA;                    }&#xA;                ],&#xA;                'status': 'active',&#xA;                'subject': {&#xA;                    'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/69099'&#xA;                },&#xA;                'device': {&#xA;                    'reference': 'https://device.local.ehealth.sundhed.dk/fhir/Device/81729'&#xA;                }&#xA;            }, {&#xA;                'resourceType': 'DeviceUseStatement',&#xA;                'id': '5732',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement']&#xA;                },&#xA;                'extension': [{&#xA;                        'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-deviceusestatement-context',&#xA;                        'valueReference': {&#xA;                            'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/CarePlan/23385'&#xA;                        }&#xA;                    }&#xA;                ],&#xA;                'status': 'active',&#xA;                'subject': {&#xA;                    'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/10543'&#xA;                },&#xA;                'device': {&#xA;                    'reference': 'https://device.local.ehealth.sundhed.dk/fhir/Device/91432'&#xA;                }&#xA;            }&#xA;        ],&#xA;        'EHealthDevice': [{&#xA;                'resourceType': 'Device',&#xA;                'id': '81729',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device']&#xA;                },&#xA;                'extension': [{&#xA;                        'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device-privatelyOwned',&#xA;                        'valueBoolean': true&#xA;                    }&#xA;                ],&#xA;                'status': 'active'&#xA;            }, {&#xA;                'resourceType': 'Device',&#xA;                'id': '91432',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device']&#xA;                },&#xA;                'extension': [{&#xA;                        'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-device-privatelyOwned',&#xA;                        'valueBoolean': true&#xA;                    }&#xA;                ],&#xA;                'status': 'active'&#xA;            }&#xA;        ],&#xA;        'EHealthDeviceMetric': [{&#xA;                'resourceType': 'DeviceMetric',&#xA;                'id': '35094',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-devicemetric']&#xA;                },&#xA;                'extension': [{&#xA;                        'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-devicemetric-qualities',&#xA;                        'extension': [{&#xA;                                'url': 'category',&#xA;                                'valueCodeableConcept': {&#xA;                                    'coding': [{&#xA;                                            'system': 'http://ehealth.sundhed.dk/cs/devicemetric-quality-types',&#xA;                                            'code': 'initial'&#xA;                                        }&#xA;                                    ]&#xA;                                }&#xA;                            }, {&#xA;                                'url': 'value',&#xA;                                'valueInteger': 5&#xA;                            }&#xA;                        ]&#xA;                    }, {&#xA;                        'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-devicemetric-templateQualities',&#xA;                        'extension': [{&#xA;                                'url': 'category',&#xA;                                'valueCodeableConcept': {&#xA;                                    'coding': [{&#xA;                                            'system': 'http://ehealth.sundhed.dk/cs/devicemetric-quality-types',&#xA;                                            'code': 'initial'&#xA;                                        }&#xA;                                    ]&#xA;                                }&#xA;                            }, {&#xA;                                'url': 'value',&#xA;                                'valueInteger': 10&#xA;                            }&#xA;                        ]&#xA;                    }, {&#xA;                        'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-devicemetric-templateQualities',&#xA;                        'extension': [{&#xA;                                'url': 'category',&#xA;                                'valueCodeableConcept': {&#xA;                                    'coding': [{&#xA;                                            'system': 'http://ehealth.sundhed.dk/cs/devicemetric-quality-types',&#xA;                                            'code': 'initial'&#xA;                                        }&#xA;                                    ]&#xA;                                }&#xA;                            }, {&#xA;                                'url': 'value',&#xA;                                'valueInteger': 12&#xA;                            }&#xA;                        ]&#xA;                    }, {&#xA;                        'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-devicemetric-templateQualities',&#xA;                        'extension': [{&#xA;                                'url': 'category',&#xA;                                'valueCodeableConcept': {&#xA;                                    'coding': [{&#xA;                                            'system': 'http://ehealth.sundhed.dk/cs/devicemetric-quality-types',&#xA;                                            'code': 'initial'&#xA;                                        }&#xA;                                    ]&#xA;                                }&#xA;                            }, {&#xA;                                'url': 'value',&#xA;                                'valueInteger': 14&#xA;                            }&#xA;                        ]&#xA;                    }&#xA;                ],&#xA;                'identifier': {&#xA;                    'value': 'Foo'&#xA;                },&#xA;                'type': {&#xA;                    'text': 'code'&#xA;                },&#xA;                'source': {&#xA;                    'reference': 'https://device.local.ehealth.sundhed.dk/fhir/Device/81729'&#xA;                },&#xA;                'category': 'calculation'&#xA;            }, {&#xA;                'resourceType': 'DeviceMetric',&#xA;                'id': '22449',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-devicemetric']&#xA;                },&#xA;                'extension': [{&#xA;                        'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-devicemetric-qualities',&#xA;                        'extension': [{&#xA;                                'url': 'category',&#xA;                                'valueCodeableConcept': {&#xA;                                    'coding': [{&#xA;                                            'system': 'http://ehealth.sundhed.dk/cs/devicemetric-quality-types',&#xA;                                            'code': 'initial'&#xA;                                        }&#xA;                                    ]&#xA;                                }&#xA;                            }, {&#xA;                                'url': 'value',&#xA;                                'valueInteger': 5&#xA;                            }&#xA;                        ]&#xA;                    }, {&#xA;                        'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-devicemetric-templateQualities',&#xA;                        'extension': [{&#xA;                                'url': 'category',&#xA;                                'valueCodeableConcept': {&#xA;                                    'coding': [{&#xA;                                            'system': 'http://ehealth.sundhed.dk/cs/devicemetric-quality-types',&#xA;                                            'code': 'initial'&#xA;                                        }&#xA;                                    ]&#xA;                                }&#xA;                            }, {&#xA;                                'url': 'value',&#xA;                                'valueInteger': 10&#xA;                            }&#xA;                        ]&#xA;                    }, {&#xA;                        'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-devicemetric-templateQualities',&#xA;                        'extension': [{&#xA;                                'url': 'category',&#xA;                                'valueCodeableConcept': {&#xA;                                    'coding': [{&#xA;                                            'system': 'http://ehealth.sundhed.dk/cs/devicemetric-quality-types',&#xA;                                            'code': 'initial'&#xA;                                        }&#xA;                                    ]&#xA;                                }&#xA;                            }, {&#xA;                                'url': 'value',&#xA;                                'valueInteger': 12&#xA;                            }&#xA;                        ]&#xA;                    }, {&#xA;                        'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-devicemetric-templateQualities',&#xA;                        'extension': [{&#xA;                                'url': 'category',&#xA;                                'valueCodeableConcept': {&#xA;                                    'coding': [{&#xA;                                            'system': 'http://ehealth.sundhed.dk/cs/devicemetric-quality-types',&#xA;                                            'code': 'initial'&#xA;                                        }&#xA;                                    ]&#xA;                                }&#xA;                            }, {&#xA;                                'url': 'value',&#xA;                                'valueInteger': 14&#xA;                            }&#xA;                        ]&#xA;                    }&#xA;                ],&#xA;                'identifier': {&#xA;                    'value': 'Foo'&#xA;                },&#xA;                'type': {&#xA;                    'text': 'code'&#xA;                },&#xA;                'source': {&#xA;                    'reference': 'https://device.local.ehealth.sundhed.dk/fhir/Device/81729'&#xA;                },&#xA;                'category': 'calculation'&#xA;            }&#xA;        ],&#xA;        'EHealthConsent': [{&#xA;                'resourceType': 'Consent',&#xA;                'id': '51690',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent']&#xA;                },&#xA;                'status': 'active',&#xA;                'category': [{&#xA;                        'coding': [{&#xA;                                'code': 'TBD'&#xA;                            }&#xA;                        ]&#xA;                    }&#xA;                ],&#xA;                'patient': {&#xA;                    'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/70791'&#xA;                },&#xA;                'period': {&#xA;                    'start': '1970-01-01T01:00:01+01:00',&#xA;                    'end': '1970-01-01T01:01:40+01:00'&#xA;                },&#xA;                'consentingParty': [{&#xA;                        'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/41034'&#xA;                    }&#xA;                ],&#xA;                'actor': [{&#xA;                        'id': 'f31bec27-965f-49ea-b8fe-5fdb259c539d',&#xA;                        'role': {&#xA;                            'coding': [{&#xA;                                    'code': 'authserver'&#xA;                                }&#xA;                            ]&#xA;                        },&#xA;                        'reference': {&#xA;                            'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/60499'&#xA;                        }&#xA;                    }&#xA;                ],&#xA;                'policyRule': 'Rule',&#xA;                'data': [{&#xA;                        'meaning': 'related',&#xA;                        'reference': {&#xA;                            'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/51427'&#xA;                        }&#xA;                    }&#xA;                ]&#xA;            }&#xA;        ],&#xA;        'EHealthCarePlan': [{&#xA;                'resourceType': 'CarePlan',&#xA;                'id': '87235',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan']&#xA;                },&#xA;                'definition': [{&#xA;                        'reference': 'https://plan.local.ehealth.sundhed.dk/fhir/PlanDefinition/98996'&#xA;                    }&#xA;                ],&#xA;                'status': 'draft',&#xA;                'intent': 'option',&#xA;                'category': [{&#xA;                        'coding': [{&#xA;                                'system': 'http://ehealth.sundhed.dk/cs/careplan-category',&#xA;                                'code': 'TBD'&#xA;                            }&#xA;                        ]&#xA;                    }&#xA;                ],&#xA;                'subject': {&#xA;                    'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/55953'&#xA;                },&#xA;                'context': {&#xA;                    'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/10928'&#xA;                },&#xA;                'period': {&#xA;                    'start': '1970-01-01T01:00:01+01:00',&#xA;                    'end': '1970-01-01T01:01:40+01:00'&#xA;                },&#xA;                'addresses': [{&#xA;                        'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/Condition/25664'&#xA;                    }&#xA;                ]&#xA;            }, {&#xA;                'resourceType': 'CarePlan',&#xA;                'id': '23385',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-careplan']&#xA;                },&#xA;                'definition': [{&#xA;                        'reference': 'https://plan.local.ehealth.sundhed.dk/fhir/PlanDefinition/83648'&#xA;                    }&#xA;                ],&#xA;                'status': 'draft',&#xA;                'intent': 'option',&#xA;                'category': [{&#xA;                        'coding': [{&#xA;                                'system': 'http://ehealth.sundhed.dk/cs/careplan-category',&#xA;                                'code': 'TBD'&#xA;                            }&#xA;                        ]&#xA;                    }&#xA;                ],&#xA;                'subject': {&#xA;                    'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/51258'&#xA;                },&#xA;                'context': {&#xA;                    'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/48392'&#xA;                },&#xA;                'period': {&#xA;                    'start': '1970-01-01T01:00:01+01:00',&#xA;                    'end': '1970-01-01T01:01:40+01:00'&#xA;                },&#xA;                'addresses': [{&#xA;                        'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/Condition/4845'&#xA;                    }&#xA;                ]&#xA;            }&#xA;        ],&#xA;        'EHealthServiceRequest': [{&#xA;                'resourceType': 'ServiceRequest',&#xA;                'id': '18904',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-servicerequest']&#xA;                },&#xA;                'extension': [{&#xA;                        'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-sharingPolicy',&#xA;                        'valueCodeableConcept': {&#xA;                            'coding': [{&#xA;                                    'system': 'http://ehealth.sundhed.dk/cs/measurement-sharing-policies',&#xA;                                    'code': 'TBD'&#xA;                                }&#xA;                            ]&#xA;                        }&#xA;                    }&#xA;                ],&#xA;                'definition': [{&#xA;                        'reference': 'https://plan.local.ehealth.sundhed.dk/fhir/ActivityDefinition/64273'&#xA;                    }&#xA;                ],&#xA;                'status': 'completed',&#xA;                'intent': 'filler-order',&#xA;                'code': {&#xA;                    'coding': [{&#xA;                            'system': 'http://ehealth.sundhed.dk/cs/activitydefinition-code',&#xA;                            'code': 'TBD'&#xA;                        }&#xA;                    ],&#xA;                    'text': '7654414a-7f86-4170-9920-fde60368b58b'&#xA;                },&#xA;                'subject': {&#xA;                    'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/59415'&#xA;                },&#xA;                'context': {&#xA;                    'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/10928'&#xA;                }&#xA;            }&#xA;        ],&#xA;        'EHealthCondition': [{&#xA;                'resourceType': 'Condition',&#xA;                'id': '22743',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-condition']&#xA;                },&#xA;                'clinicalStatus': 'active',&#xA;                'code': {&#xA;                    'coding': [{&#xA;                            'system': 'http://ehealth.sundhed.dk/cs/conditions',&#xA;                            'code': 'TBD'&#xA;                        }&#xA;                    ]&#xA;                },&#xA;                'subject': {&#xA;                    'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/84730'&#xA;                },&#xA;                'context': {&#xA;                    'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/10928'&#xA;                }&#xA;            }&#xA;        ],&#xA;        'EHealthObservation': [{&#xA;                'resourceType': 'Observation',&#xA;                'id': '55832',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-observation']&#xA;                },&#xA;                'basedOn': [{&#xA;                        'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/ServiceRequest/69506'&#xA;                    }&#xA;                ],&#xA;                'status': 'amended',&#xA;                'code': {&#xA;                    'coding': [{&#xA;                            'system': 'urn:oid:1.2.208.176.2.1',&#xA;                            'code': 'NPU03011'&#xA;                        }&#xA;                    ]&#xA;                },&#xA;                'subject': {&#xA;                    'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/96798'&#xA;                },&#xA;                'context': {&#xA;                    'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/10928'&#xA;                },&#xA;                'effectivePeriod': {&#xA;                    'start': '2020-03-26T13:37:40+01:00',&#xA;                    'end': '2020-03-26T13:37:40+01:00'&#xA;                },&#xA;                'performer': [{&#xA;                        'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/43621'&#xA;                    }&#xA;                ],&#xA;                'device': {&#xA;                    'reference': 'https://device.local.ehealth.sundhed.dk/fhir/Device/30416'&#xA;                }&#xA;            }&#xA;        ],&#xA;        'EHealthQuestionnaireResponse': [{&#xA;                'resourceType': 'QuestionnaireResponse',&#xA;                'id': '21957',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-questionnaireresponse']&#xA;                },&#xA;                'basedOn': [{&#xA;                        'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/ServiceRequest/12403'&#xA;                    }&#xA;                ],&#xA;                'questionnaire': {&#xA;                    'reference': 'https://questionnaire.local.ehealth.sundhed.dk/fhir/Questionnaire/42078'&#xA;                },&#xA;                'status': 'completed',&#xA;                'subject': {&#xA;                    'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/47155'&#xA;                },&#xA;                'context': {&#xA;                    'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/10928'&#xA;                },&#xA;                'authored': '2020-03-26T13:37:40+01:00',&#xA;                'source': {&#xA;                    'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/61666'&#xA;                }&#xA;            }&#xA;        ],&#xA;        'EHealthMedia': [{&#xA;                'resourceType': 'Media',&#xA;                'id': '18256',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-media']&#xA;                },&#xA;                'extension': [{&#xA;                        'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-quality',&#xA;                        'extension': [{&#xA;                                'url': 'qualityType',&#xA;                                'valueCodeableConcept': {&#xA;                                    'coding': [{&#xA;                                            'system': 'http://ehealth.sundhed.dk/cs/quality-types',&#xA;                                            'code': 'TBD'&#xA;                                        }&#xA;                                    ]&#xA;                                }&#xA;                            }, {&#xA;                                'url': 'qualityCode',&#xA;                                'valueCodeableConcept': {&#xA;                                    'coding': [{&#xA;                                            'system': 'http://ehealth.sundhed.dk/cs/usage-quality',&#xA;                                            'code': 'TBD'&#xA;                                        }&#xA;                                    ]&#xA;                                }&#xA;                            }&#xA;                        ]&#xA;                    }&#xA;                ],&#xA;                'basedOn': [{&#xA;                        'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/ServiceRequest/98474'&#xA;                    }&#xA;                ],&#xA;                'type': 'audio',&#xA;                'subject': {&#xA;                    'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/20886'&#xA;                },&#xA;                'context': {&#xA;                    'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/10928'&#xA;                },&#xA;                'occurrenceDateTime': '2020-03-26T13:37:40+01:00',&#xA;                'content': {&#xA;                    'language': 'en'&#xA;                }&#xA;            }&#xA;        ],&#xA;        'EHealthClinicalImpression': [{&#xA;                'resourceType': 'ClinicalImpression',&#xA;                'id': '39697',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression']&#xA;                },&#xA;                'status': 'draft',&#xA;                'code': {&#xA;                    'coding': [{&#xA;                            'system': 'http://ehealth.sundhed.dk/cs/clinicalimpression-codes',&#xA;                            'code': 'TBD'&#xA;                        }&#xA;                    ]&#xA;                },&#xA;                'subject': {&#xA;                    'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/32140'&#xA;                },&#xA;                'context': {&#xA;                    'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/10928'&#xA;                }&#xA;            }&#xA;        ],&#xA;        'EHealthTask': [{&#xA;                'resourceType': 'Task',&#xA;                'id': '96988',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task']&#xA;                },&#xA;                'extension': [{&#xA;                        'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-category',&#xA;                        'valueCodeableConcept': {&#xA;                            'coding': [{&#xA;                                    'system': 'http://ehealth.sundhed.dk/cs/task-category',&#xA;                                    'code': 'TBD'&#xA;                                }&#xA;                            ]&#xA;                        }&#xA;                    }, {&#xA;                        'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-restriction-category',&#xA;                        'valueCodeableConcept': {&#xA;                            'coding': [{&#xA;                                    'system': 'http://ehealth.sundhed.dk/cs/restriction-category',&#xA;                                    'code': 'None'&#xA;                                }&#xA;                            ]&#xA;                        }&#xA;                    }, {&#xA;                        'url': 'http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-task-responsible',&#xA;                        'valueReference': {&#xA;                            'reference': 'https://organization.local.ehealth.sundhed.dk/fhir/Practitioner/74334'&#xA;                        }&#xA;                    }&#xA;                ],&#xA;                'status': 'draft',&#xA;                'intent': 'proposal',&#xA;                'priority': 'routine',&#xA;                'context': {&#xA;                    'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/10928'&#xA;                }&#xA;            }&#xA;        ],&#xA;        'EHealthCommunication': [{&#xA;                'resourceType': 'Communication',&#xA;                'id': '29256',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-communication']&#xA;                },&#xA;                'context': {&#xA;                    'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/10928'&#xA;                }&#xA;            }&#xA;        ],&#xA;        'EHealthProvenance': [{&#xA;                'resourceType': 'Provenance',&#xA;                'id': '68399',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-provenance']&#xA;                },&#xA;                'target': [{&#xA;                        'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/10928'&#xA;                    }&#xA;                ],&#xA;                'recorded': '2020-03-26T13:37:39.772+01:00',&#xA;                'policy': ['policy'],&#xA;                'agent': [{&#xA;                        'whoReference': {&#xA;                            'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/6901'&#xA;                        }&#xA;                    }&#xA;                ]&#xA;            }, {&#xA;                'resourceType': 'Provenance',&#xA;                'id': '96195',&#xA;                'meta': {&#xA;                    'versionId': '1',&#xA;                    'profile': ['http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-provenance']&#xA;                },&#xA;                'target': [{&#xA;                        'reference': 'https://careplan.local.ehealth.sundhed.dk/fhir/EpisodeOfCare/48392'&#xA;                    }&#xA;                ],&#xA;                'recorded': '2020-03-26T13:37:39.801+01:00',&#xA;                'policy': ['policy'],&#xA;                'agent': [{&#xA;                        'whoReference': {&#xA;                            'reference': 'https://patient.local.ehealth.sundhed.dk/fhir/Patient/45854'&#xA;                        }&#xA;                    }&#xA;                ]&#xA;            }&#xA;        ]&#xA;    }&#xA;"/>
  <affectsState value="true"/>
  <code value="fetch-patient-gdpr"/>
  <system value="true"/>
  <type value="false"/>
  <instance value="false"/>
  <parameter>
    <name value="anonymization"/>
    <use value="in"/>
    <min value="1"/>
    <max value="1"/>
    <type value="string"/>
  </parameter>
  <parameter>
    <name value="organization"/>
    <use value="in"/>
    <min value="0"/>
    <max value="1"/>
    <type value="Reference"/>
  </parameter>
  <parameter>
    <name value="period"/>
    <use value="in"/>
    <min value="0"/>
    <max value="1"/>
    <type value="Period"/>
  </parameter>
  <parameter>
    <name value="patient"/>
    <use value="in"/>
    <min value="1"/>
    <max value="1"/>
    <type value="Reference"/>
  </parameter>
  <parameter>
    <name value="return"/>
    <use value="out"/>
    <min value="0"/>
    <max value="1"/>
    <type value="Binary"/>
  </parameter>
</OperationDefinition>