eHealth Infrastructure 2022.2 - release
Publish Box goes here
No examples are currently available for the profile.
GET [base]/Consent?patient=https%3A%2F%2Fpatient.cit-careplan-2046.local%2Ffhir%2FPatient%2F74564&data=https%3A%2F%2Fcareplan.cit-careplan-2046.local%2Ffhir%2FEpisodeOfCare%2F1170%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/5.7.0 (FHIR Client; FHIR 4.0.1/R4; apache) Accept-Encoding: gzip
Response
{ "resourceType": "Bundle", "id": "6ad52cd4-07f8-4149-af27-13bafab696d6", "meta": { "lastUpdated": "2022-06-17T08:34:45.779+00:00" }, "type": "searchset", "total": 1, "link": [ { "relation": "self", "url": "https://careplan.cit-careplan-2046.local/fhir/Consent?_format=json&_pretty=true&category=SSLPCI&data=https%3A%2F%2Fcareplan.cit-careplan-2046.local%2Ffhir%2FEpisodeOfCare%2F1170%2F_history%2F1&patient=https%3A%2F%2Fpatient.cit-careplan-2046.local%2Ffhir%2FPatient%2F74564&status=active" } ], "entry": [ { "fullUrl": "https://careplan.cit-careplan-2046.local/fhir/Consent/1171", "resource": { "resourceType": "Consent", "id": "1171", "meta": { "versionId": "1", "lastUpdated": "2022-06-17T08:34:45.624+00:00", "source": "#a0eecb47-e873-4a", "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-2046.local/fhir/Patient/74564" }, "performer": [ { "reference": "https://patient.cit-careplan-2046.local/fhir/Patient/8080" } ], "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": "8cb932b4-8016-4c60-b0b3-179c786591df", "role": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type", "code": "authserver" } ] }, "reference": { "reference": "https://patient.cit-careplan-2046.local/fhir/Patient/84100" } } ], "data": [ { "meaning": "related", "reference": { "reference": "https://careplan.cit-careplan-2046.local/fhir/EpisodeOfCare/1170" } } ] } }, "search": { "mode": "match" } } ] }
GET [base]/Consent/1181/_history/2
{ "resourceType": "Consent", "id": "1181", "meta": { "versionId": "2", "lastUpdated": "2022-06-17T08:34:57.238+00:00", "source": "#6311757a-8290-46", "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-2046.local/fhir/Patient/32315" }, "performer": [ { "reference": "https://patient.cit-careplan-2046.local/fhir/Patient/12065" } ], "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": "a7b71cce-7a09-45e6-abc2-cabaf09e74b4", "role": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type", "code": "authserver" } ] }, "reference": { "reference": "https://patient.cit-careplan-2046.local/fhir/Patient/21941" } } ], "data": [ { "meaning": "related", "reference": { "reference": "https://careplan.cit-careplan-2046.local/fhir/EpisodeOfCare/1180" } } ] } }
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/5.7.0 (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-2046.local/fhir/Patient/39843" }, "performer": [ { "reference": "https://patient.cit-careplan-2046.local/fhir/Patient/80694" } ], "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": "5fc18fbb-fc19-4ad8-9d0a-d2ec7023207a", "role": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type", "code": "authserver" } ] }, "reference": { "reference": "https://patient.cit-careplan-2046.local/fhir/Patient/77282" } } ], "data": [ { "meaning": "related", "reference": { "reference": "https://careplan.cit-careplan-2046.local/fhir/EpisodeOfCare/1133" } } ] } }
{ "resourceType": "Consent", "id": "1134", "meta": { "versionId": "1", "lastUpdated": "2022-06-17T08:34:32.788+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-2046.local/fhir/Patient/39843" }, "performer": [ { "reference": "https://patient.cit-careplan-2046.local/fhir/Patient/80694" } ], "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": "5fc18fbb-fc19-4ad8-9d0a-d2ec7023207a", "role": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type", "code": "authserver" } ] }, "reference": { "reference": "https://patient.cit-careplan-2046.local/fhir/Patient/77282" } } ], "data": [ { "meaning": "related", "reference": { "reference": "https://careplan.cit-careplan-2046.local/fhir/EpisodeOfCare/1133" } } ] } }
POST [base]/Consent/1190/$validate
{ "resourceType": "Parameters", "parameter": [ { "name": "resource", "resource": { "resourceType": "Consent", "id": "1190", "meta": { "versionId": "1", "lastUpdated": "2022-06-17T08:35:02.193+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-2046.local/fhir/Patient/70510" }, "performer": [ { "reference": "https://patient.cit-careplan-2046.local/fhir/Patient/7710" } ], "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": "2ef1e913-73b4-4580-ae68-ac35cc7918b2", "role": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type", "code": "authserver" } ] }, "reference": { "reference": "https://patient.cit-careplan-2046.local/fhir/Patient/42170" } } ], "data": [ { "meaning": "related", "reference": { "reference": "https://careplan.cit-careplan-2046.local/fhir/EpisodeOfCare/1189" } } ] } } } ] }
{ "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/1181
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/5.7.0 (FHIR Client; FHIR 4.0.1/R4; apache) Accept-Encoding: gzip Content-Type: application/fhir+json; charset=UTF-8
{ "resourceType": "Consent", "id": "1181", "meta": { "versionId": "1", "lastUpdated": "2022-06-17T08:34:54.778+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-2046.local/fhir/Patient/32315" }, "performer": [ { "reference": "https://patient.cit-careplan-2046.local/fhir/Patient/12065" } ], "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": "a7b71cce-7a09-45e6-abc2-cabaf09e74b4", "role": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type", "code": "authserver" } ] }, "reference": { "reference": "https://patient.cit-careplan-2046.local/fhir/Patient/21941" } } ], "data": [ { "meaning": "related", "reference": { "reference": "https://careplan.cit-careplan-2046.local/fhir/EpisodeOfCare/1180" } } ] } }
{ "resourceType": "Consent", "id": "1181", "meta": { "versionId": "2", "lastUpdated": "2022-06-17T08:34:57.238+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-2046.local/fhir/Patient/32315" }, "performer": [ { "reference": "https://patient.cit-careplan-2046.local/fhir/Patient/12065" } ], "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": "a7b71cce-7a09-45e6-abc2-cabaf09e74b4", "role": { "coding": [ { "system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type", "code": "authserver" } ] }, "reference": { "reference": "https://patient.cit-careplan-2046.local/fhir/Patient/21941" } } ], "data": [ { "meaning": "related", "reference": { "reference": "https://careplan.cit-careplan-2046.local/fhir/EpisodeOfCare/1180" } } ] } }