Publish Box goes here
No examples are currently available for the profile.
GET [base]/Consent?patient=https%3A%2F%2Fpatient.cit-careplan-2467.local%2Ffhir%2FPatient%2F69795&data=https%3A%2F%2Fcareplan.cit-careplan-2467.local%2Ffhir%2FEpisodeOfCare%2F1283%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": "438f8b80-26da-4c75-a996-4329a6e775b9",
"meta": {
"lastUpdated": "2023-05-16T07:41:40.413+00:00"
},
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "https://careplan.cit-careplan-2467.local/fhir/Consent?_format=json&_pretty=true&category=SSLPCI&data=https%3A%2F%2Fcareplan.cit-careplan-2467.local%2Ffhir%2FEpisodeOfCare%2F1283%2F_history%2F1&patient=https%3A%2F%2Fpatient.cit-careplan-2467.local%2Ffhir%2FPatient%2F69795&status=active"
}
],
"entry": [
{
"fullUrl": "https://careplan.cit-careplan-2467.local/fhir/Consent/1284",
"resource": {
"resourceType": "Consent",
"id": "1284",
"meta": {
"versionId": "1",
"lastUpdated": "2023-05-16T07:41:40.171+00:00",
"source": "#5cf013eb-41e3-9c",
"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-2467.local/fhir/Patient/69795"
},
"performer": [
{
"reference": "https://patient.cit-careplan-2467.local/fhir/Patient/77597"
}
],
"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": "d8978198-5005-49a1-9a31-8e7b07f9edc9",
"role": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-2467.local/fhir/Patient/66956"
}
}
],
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-2467.local/fhir/EpisodeOfCare/1283"
}
}
]
}
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/Consent/1306/_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": "1306",
"meta": {
"versionId": "2",
"lastUpdated": "2023-05-16T07:41:57.305+00:00",
"source": "#ead2523e-0364-96",
"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-2467.local/fhir/Patient/32034"
},
"performer": [
{
"reference": "https://patient.cit-careplan-2467.local/fhir/Patient/67772"
}
],
"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": "cfb92f33-ac32-4f39-9158-142d3fa7f0e4",
"role": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-2467.local/fhir/Patient/653"
}
}
],
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-2467.local/fhir/EpisodeOfCare/1305"
}
}
]
}
}
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-2467.local/fhir/Patient/8748"
},
"performer": [
{
"reference": "https://patient.cit-careplan-2467.local/fhir/Patient/80608"
}
],
"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": "5b226025-5bc0-4b90-818c-e0df92d6f13c",
"role": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-2467.local/fhir/Patient/9185"
}
}
],
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-2467.local/fhir/EpisodeOfCare/1246"
}
}
]
}
}
Response
{
"resourceType": "Consent",
"id": "1247",
"meta": {
"versionId": "1",
"lastUpdated": "2023-05-16T07:41:26.215+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-2467.local/fhir/Patient/8748"
},
"performer": [
{
"reference": "https://patient.cit-careplan-2467.local/fhir/Patient/80608"
}
],
"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": "5b226025-5bc0-4b90-818c-e0df92d6f13c",
"role": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-2467.local/fhir/Patient/9185"
}
}
],
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-2467.local/fhir/EpisodeOfCare/1246"
}
}
]
}
}
POST [base]/Consent/1315/$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": "1315",
"meta": {
"versionId": "1",
"lastUpdated": "2023-05-16T07:42:03.055+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-2467.local/fhir/Patient/61390"
},
"performer": [
{
"reference": "https://patient.cit-careplan-2467.local/fhir/Patient/64434"
}
],
"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": "ce8dbb0a-4415-498f-b9c9-db3201563469",
"role": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-2467.local/fhir/Patient/87017"
}
}
],
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-2467.local/fhir/EpisodeOfCare/1314"
}
}
]
}
}
}
]
}
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/1306
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": "1306",
"meta": {
"versionId": "1",
"lastUpdated": "2023-05-16T07:41:54.681+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-2467.local/fhir/Patient/32034"
},
"performer": [
{
"reference": "https://patient.cit-careplan-2467.local/fhir/Patient/67772"
}
],
"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": "cfb92f33-ac32-4f39-9158-142d3fa7f0e4",
"role": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-2467.local/fhir/Patient/653"
}
}
],
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-2467.local/fhir/EpisodeOfCare/1305"
}
}
]
}
}
Response
{
"resourceType": "Consent",
"id": "1306",
"meta": {
"versionId": "2",
"lastUpdated": "2023-05-16T07:41:57.305+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-2467.local/fhir/Patient/32034"
},
"performer": [
{
"reference": "https://patient.cit-careplan-2467.local/fhir/Patient/67772"
}
],
"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": "cfb92f33-ac32-4f39-9158-142d3fa7f0e4",
"role": {
"coding": [
{
"system": "http://terminology.hl7.org/CodeSystem/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-2467.local/fhir/Patient/653"
}
}
],
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-2467.local/fhir/EpisodeOfCare/1305"
}
}
]
}
}