eHealth Infrastructure
2022.1 - release

eHealth Infrastructure - Local Development build (v2022.1). See the Directory of published versions

: Fetch patient GDPR - JSON Representation

Raw json | Download


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