Publish Box goes here
No examples are currently available for the profile.
GET [base]/Consent?patient=https%3A%2F%2Fpatient.cit-careplan-2626.local%2Ffhir%2FPatient%2F98838&data=https%3A%2F%2Fcareplan.cit-careplan-2626.local%2Ffhir%2FEpisodeOfCare%2F1522%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": "b4e8c992-5adc-4d45-8ceb-886e4a2f88d0",
"meta": {
"lastUpdated": "2023-10-18T07:31:23.518+00:00"
},
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "https://careplan.cit-careplan-2626.local/fhir/Consent?_format=json&_pretty=true&category=SSLPCI&data=https%3A%2F%2Fcareplan.cit-careplan-2626.local%2Ffhir%2FEpisodeOfCare%2F1522%2F_history%2F1&patient=https%3A%2F%2Fpatient.cit-careplan-2626.local%2Ffhir%2FPatient%2F98838&status=active"
}
],
"entry": [
{
"fullUrl": "https://careplan.cit-careplan-2626.local/fhir/Consent/1523",
"resource": {
"resourceType": "Consent",
"id": "1523",
"meta": {
"versionId": "1",
"lastUpdated": "2023-10-18T07:31:22.310+00:00",
"source": "#2d23c741-d9a8-98",
"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-2626.local/fhir/Patient/98838"
},
"performer": [
{
"reference": "https://patient.cit-careplan-2626.local/fhir/Patient/98295"
}
],
"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": "4c282464-6912-4c3f-b358-a260053a8351",
"role": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-2626.local/fhir/Patient/91973"
}
}
],
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-2626.local/fhir/EpisodeOfCare/1522"
}
}
]
}
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/Consent/1545/_history/2
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": "Consent",
"id": "1545",
"meta": {
"versionId": "2",
"lastUpdated": "2023-10-18T07:31:41.476+00:00",
"source": "#0b1d589e-a71f-9c",
"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-2626.local/fhir/Patient/33232"
},
"performer": [
{
"reference": "https://patient.cit-careplan-2626.local/fhir/Patient/65615"
}
],
"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": "12439c7c-e9d2-4beb-8c12-15e5b5ff8907",
"role": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-2626.local/fhir/Patient/41119"
}
}
],
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-2626.local/fhir/EpisodeOfCare/1544"
}
}
]
}
}
POST [base]/Consent
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
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-2626.local/fhir/Patient/73390"
},
"performer": [
{
"reference": "https://patient.cit-careplan-2626.local/fhir/Patient/72718"
}
],
"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": "e1905ac7-36c1-4868-b9d0-acfe356336f9",
"role": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-2626.local/fhir/Patient/5848"
}
}
],
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-2626.local/fhir/EpisodeOfCare/1485"
}
}
]
}
}
Response
{
"resourceType": "Consent",
"id": "1486",
"meta": {
"versionId": "1",
"lastUpdated": "2023-10-18T07:31:08.349+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-2626.local/fhir/Patient/73390"
},
"performer": [
{
"reference": "https://patient.cit-careplan-2626.local/fhir/Patient/72718"
}
],
"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": "e1905ac7-36c1-4868-b9d0-acfe356336f9",
"role": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-2626.local/fhir/Patient/5848"
}
}
],
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-2626.local/fhir/EpisodeOfCare/1485"
}
}
]
}
}
POST [base]/Consent/1554/$validate
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
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "Parameters",
"parameter": [
{
"name": "resource",
"resource": {
"resourceType": "Consent",
"id": "1554",
"meta": {
"versionId": "1",
"lastUpdated": "2023-10-18T07:31:48.163+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-2626.local/fhir/Patient/14172"
},
"performer": [
{
"reference": "https://patient.cit-careplan-2626.local/fhir/Patient/7518"
}
],
"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": "ad3456a7-650f-4b9f-acf5-457ecd9b5c92",
"role": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-2626.local/fhir/Patient/15725"
}
}
],
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-2626.local/fhir/EpisodeOfCare/1553"
}
}
]
}
}
}
]
}
Response
{
"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/1545
Header
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
Body:
{
"resourceType": "Consent",
"id": "1545",
"meta": {
"versionId": "1",
"lastUpdated": "2023-10-18T07:31:39.032+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-2626.local/fhir/Patient/33232"
},
"performer": [
{
"reference": "https://patient.cit-careplan-2626.local/fhir/Patient/65615"
}
],
"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": "12439c7c-e9d2-4beb-8c12-15e5b5ff8907",
"role": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-2626.local/fhir/Patient/41119"
}
}
],
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-2626.local/fhir/EpisodeOfCare/1544"
}
}
]
}
}
Response
{
"resourceType": "Consent",
"id": "1545",
"meta": {
"versionId": "2",
"lastUpdated": "2023-10-18T07:31:41.476+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-2626.local/fhir/Patient/33232"
},
"performer": [
{
"reference": "https://patient.cit-careplan-2626.local/fhir/Patient/65615"
}
],
"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": "12439c7c-e9d2-4beb-8c12-15e5b5ff8907",
"role": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-2626.local/fhir/Patient/41119"
}
}
],
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-2626.local/fhir/EpisodeOfCare/1544"
}
}
]
}
}