eHealth Infrastructure 2.6.0 - Release 13
Publish Box goes here
No examples are currently available for the profile.
GET [base]/Consent?patient=https%3A%2F%2Fpatient.cit-careplan-2271.local%2Ffhir%2FPatient%2F27475&data=https%3A%2F%2Fcareplan.cit-careplan-2271.local%2Ffhir%2FEpisodeOfCare%2F1250%2F_history%2F1&category=SSLPCI&status=active
Header
Accept-Charset: utf-8 Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiQ29uc2VudC5yZWFkIiwiQ29uc2VudC5zZWFyY2giLCJDb25zZW50LnVwZGF0ZSIsIkNvbnNlbnQuY3JlYXRlIiwiJHRlc3Qtb25seS1jcmVhdGUiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9. Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9 User-Agent: HAPI-FHIR/6.2.1 (FHIR Client; FHIR 4.0.1/R4; apache) Accept-Encoding: gzip
Response
{ "resourceType": "Bundle", "id": "2219fa0a-efde-41a4-a22b-92ddaba26f5f", "meta": { "lastUpdated": "2023-01-06T08:56:02.979+00:00" }, "type": "searchset", "total": 1, "link": [ { "relation": "self", "url": "https://careplan.cit-careplan-2271.local/fhir/Consent?_format=json&_pretty=true&category=SSLPCI&data=https%3A%2F%2Fcareplan.cit-careplan-2271.local%2Ffhir%2FEpisodeOfCare%2F1250%2F_history%2F1&patient=https%3A%2F%2Fpatient.cit-careplan-2271.local%2Ffhir%2FPatient%2F27475&status=active" } ], "entry": [ { "fullUrl": "https://careplan.cit-careplan-2271.local/fhir/Consent/1251", "resource": { "resourceType": "Consent", "id": "1251", "meta": { "versionId": "1", "lastUpdated": "2023-01-06T08:56:01.841+00:00", "source": "#8ed1a47a-7d12-9b", "profile": [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent" ] }, "status": "active", "scope": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/consentscope", "code": "treatment", "display": "Treatment" } ] }, "category": [ { "coding": [ { "system": "http://ehealth.sundhed.dk/cs/consent-category", "code": "SSLPCI" } ] } ], "patient": { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/27475" }, "performer": [ { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/71742" } ], "policyRule": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/consentpolicycodes", "code": "cric" } ] }, "provision": { "period": { "start": "1970-01-01T00:00:01+00:00", "end": "1970-01-01T00:01:40+00:00" }, "actor": [ { "id": "74048685-c9a4-4ad4-923b-bd02f8ce778e", "role": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type", "code": "authserver" } ] }, "reference": { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/84784" } } ], "data": [ { "meaning": "related", "reference": { "reference": "https://careplan.cit-careplan-2271.local/fhir/EpisodeOfCare/1250" } } ] } }, "search": { "mode": "match" } } ] }
GET [base]/Consent/1273/_history/2
{ "resourceType": "Consent", "id": "1273", "meta": { "versionId": "2", "lastUpdated": "2023-01-06T08:56:18.515+00:00", "source": "#50fb9d9c-68e7-9b", "profile": [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent" ] }, "status": "draft", "scope": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/consentscope", "code": "treatment", "display": "Treatment" } ] }, "category": [ { "coding": [ { "system": "http://ehealth.sundhed.dk/cs/consent-category", "code": "TBD" } ] } ], "patient": { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/33005" }, "performer": [ { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/6528" } ], "policyRule": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/consentpolicycodes", "code": "cric" } ] }, "provision": { "period": { "start": "1970-01-01T00:00:01+00:00", "end": "1970-01-01T00:01:40+00:00" }, "actor": [ { "id": "78efbd58-2e3b-4e28-b9f3-5155375b9d2b", "role": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type", "code": "authserver" } ] }, "reference": { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/79354" } } ], "data": [ { "meaning": "related", "reference": { "reference": "https://careplan.cit-careplan-2271.local/fhir/EpisodeOfCare/1272" } } ] } }
POST [base]/Consent
Accept-Charset: utf-8 Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiQ29uc2VudC5yZWFkIiwiQ29uc2VudC5zZWFyY2giLCJDb25zZW50LnVwZGF0ZSIsIkNvbnNlbnQuY3JlYXRlIiwiJHRlc3Qtb25seS1jcmVhdGUiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9. Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9 User-Agent: HAPI-FHIR/6.2.1 (FHIR Client; FHIR 4.0.1/R4; apache) Accept-Encoding: gzip Content-Type: application/fhir+json; charset=UTF-8
Body:
{ "resourceType": "Consent", "meta": { "profile": [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent" ] }, "status": "active", "scope": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/consentscope", "code": "treatment", "display": "Treatment" } ] }, "category": [ { "coding": [ { "system": "http://ehealth.sundhed.dk/cs/consent-category", "code": "TBD" } ] } ], "patient": { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/91241" }, "performer": [ { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/74502" } ], "policyRule": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/consentpolicycodes", "code": "cric" } ] }, "provision": { "period": { "start": "1970-01-01T00:00:01+00:00", "end": "1970-01-01T00:01:40+00:00" }, "actor": [ { "id": "cb93efaa-b338-4d24-a9c8-7b5595668ce1", "role": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type", "code": "authserver" } ] }, "reference": { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/41849" } } ], "data": [ { "meaning": "related", "reference": { "reference": "https://careplan.cit-careplan-2271.local/fhir/EpisodeOfCare/1213" } } ] } }
{ "resourceType": "Consent", "id": "1214", "meta": { "versionId": "1", "lastUpdated": "2023-01-06T08:55:49.607+00:00", "profile": [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent" ] }, "status": "active", "scope": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/consentscope", "code": "treatment", "display": "Treatment" } ] }, "category": [ { "coding": [ { "system": "http://ehealth.sundhed.dk/cs/consent-category", "code": "TBD" } ] } ], "patient": { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/91241" }, "performer": [ { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/74502" } ], "policyRule": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/consentpolicycodes", "code": "cric" } ] }, "provision": { "period": { "start": "1970-01-01T00:00:01+00:00", "end": "1970-01-01T00:01:40+00:00" }, "actor": [ { "id": "cb93efaa-b338-4d24-a9c8-7b5595668ce1", "role": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type", "code": "authserver" } ] }, "reference": { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/41849" } } ], "data": [ { "meaning": "related", "reference": { "reference": "https://careplan.cit-careplan-2271.local/fhir/EpisodeOfCare/1213" } } ] } }
POST [base]/Consent/1282/$validate
{ "resourceType": "Parameters", "parameter": [ { "name": "resource", "resource": { "resourceType": "Consent", "id": "1282", "meta": { "versionId": "1", "lastUpdated": "2023-01-06T08:56:24.325+00:00", "profile": [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent" ] }, "status": "active", "scope": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/consentscope", "code": "treatment", "display": "Treatment" } ] }, "category": [ { "coding": [ { "system": "http://ehealth.sundhed.dk/cs/consent-category", "code": "TBD" } ] } ], "patient": { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/9633" }, "performer": [ { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/36982" } ], "policyRule": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/consentpolicycodes", "code": "cric" } ] }, "provision": { "period": { "start": "1970-01-01T00:00:01+00:00", "end": "1970-01-01T00:01:40+00:00" }, "actor": [ { "id": "dfd6f79f-bb8f-4f55-8cf4-8a39b6e3ff84", "role": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type", "code": "authserver" } ] }, "reference": { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/69524" } } ], "data": [ { "meaning": "related", "reference": { "reference": "https://careplan.cit-careplan-2271.local/fhir/EpisodeOfCare/1281" } } ] } } } ] }
{ "resourceType": "OperationOutcome", "text": { "status": "generated", "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\"><h1>Operation Outcome</h1><table border=\"0\"><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>No issues detected during validation</pre></td></tr><tr><td style=\"font-weight: bold;\">INFORMATION</td><td>[]</td><td><pre>No issues detected during validation</pre></td></tr></table></div>" }, "issue": [ { "severity": "information", "code": "informational", "diagnostics": "No issues detected during validation" }, { "severity": "information", "code": "informational", "diagnostics": "No issues detected during validation" } ] }
PUT [base]/Consent/1273
Accept-Charset: utf-8 Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiQ29uc2VudC5yZWFkIiwiQ29uc2VudC5zZWFyY2giLCJDb25zZW50LnVwZGF0ZSIsIkNvbnNlbnQuY3JlYXRlIiwiJHRlc3Qtb25seS1jcmVhdGUiXX0sInVzZXJfdHlwZSI6IlNZU1RFTSJ9. If-Match: "1" Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9 User-Agent: HAPI-FHIR/6.2.1 (FHIR Client; FHIR 4.0.1/R4; apache) Accept-Encoding: gzip Content-Type: application/fhir+json; charset=UTF-8
{ "resourceType": "Consent", "id": "1273", "meta": { "versionId": "1", "lastUpdated": "2023-01-06T08:56:16.007+00:00", "profile": [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent" ] }, "status": "draft", "scope": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/consentscope", "code": "treatment", "display": "Treatment" } ] }, "category": [ { "coding": [ { "system": "http://ehealth.sundhed.dk/cs/consent-category", "code": "TBD" } ] } ], "patient": { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/33005" }, "performer": [ { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/6528" } ], "policyRule": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/consentpolicycodes", "code": "cric" } ] }, "provision": { "period": { "start": "1970-01-01T00:00:01+00:00", "end": "1970-01-01T00:01:40+00:00" }, "actor": [ { "id": "78efbd58-2e3b-4e28-b9f3-5155375b9d2b", "role": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type", "code": "authserver" } ] }, "reference": { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/79354" } } ], "data": [ { "meaning": "related", "reference": { "reference": "https://careplan.cit-careplan-2271.local/fhir/EpisodeOfCare/1272" } } ] } }
{ "resourceType": "Consent", "id": "1273", "meta": { "versionId": "2", "lastUpdated": "2023-01-06T08:56:18.515+00:00", "profile": [ "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent" ] }, "status": "draft", "scope": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/consentscope", "code": "treatment", "display": "Treatment" } ] }, "category": [ { "coding": [ { "system": "http://ehealth.sundhed.dk/cs/consent-category", "code": "TBD" } ] } ], "patient": { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/33005" }, "performer": [ { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/6528" } ], "policyRule": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/consentpolicycodes", "code": "cric" } ] }, "provision": { "period": { "start": "1970-01-01T00:00:01+00:00", "end": "1970-01-01T00:01:40+00:00" }, "actor": [ { "id": "78efbd58-2e3b-4e28-b9f3-5155375b9d2b", "role": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type", "code": "authserver" } ] }, "reference": { "reference": "https://patient.cit-careplan-2271.local/fhir/Patient/79354" } } ], "data": [ { "meaning": "related", "reference": { "reference": "https://careplan.cit-careplan-2271.local/fhir/EpisodeOfCare/1272" } } ] } }