GET [base]/Consent?patient=https%3A%2F%2Fpatient.cit-careplan-1716.local%2Ffhir%2FPatient%2F98597&data=https%3A%2F%2Fcareplan.cit-careplan-1716.local%2Ffhir%2FEpisodeOfCare%2F1116%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.3.0 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Bundle",
"id": "4142194b-dc46-4f20-ac7c-83db7d61e293",
"meta": {
"lastUpdated": "2021-05-04T09:54:10.279+00:00"
},
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "https://careplan.cit-careplan-1716.local/fhir/Consent?_format=json&_pretty=true&category=SSLPCI&data=https%3A%2F%2Fcareplan.cit-careplan-1716.local%2Ffhir%2FEpisodeOfCare%2F1116%2F_history%2F1&patient=https%3A%2F%2Fpatient.cit-careplan-1716.local%2Ffhir%2FPatient%2F98597&status=active"
}
],
"entry": [
{
"fullUrl": "https://careplan.cit-careplan-1716.local/fhir/Consent/1117",
"resource": {
"resourceType": "Consent",
"id": "1117",
"meta": {
"versionId": "1",
"lastUpdated": "2021-05-04T09:54:09.983+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
]
},
"status": "active",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/consent-category",
"code": "SSLPCI"
}
]
}
],
"patient": {
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/98597"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/4387"
}
],
"actor": [
{
"id": "a7c8d587-73ad-4a14-9c7d-b3ef2979116a",
"role": {
"coding": [
{
"system": "http://hl7.org/fhir/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/96883"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1716.local/fhir/EpisodeOfCare/1116"
}
}
]
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/Consent/1127/_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/5.3.0 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Consent",
"id": "1127",
"meta": {
"versionId": "2",
"lastUpdated": "2021-05-04T09:54:21.026+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
]
},
"status": "draft",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/consent-category",
"code": "TBD"
}
]
}
],
"patient": {
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/29727"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/49813"
}
],
"actor": [
{
"id": "aa112016-da33-4076-9d55-520454d852eb",
"role": {
"coding": [
{
"system": "http://hl7.org/fhir/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/32307"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1716.local/fhir/EpisodeOfCare/1126"
}
}
]
}
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/5.3.0 (FHIR Client; FHIR 3.0.2/DSTU3; 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",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/consent-category",
"code": "TBD"
}
]
}
],
"patient": {
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/68966"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/21839"
}
],
"actor": [
{
"id": "2de1d4b6-9c2b-495e-8be5-5528c0898614",
"role": {
"coding": [
{
"system": "http://hl7.org/fhir/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/90329"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1716.local/fhir/EpisodeOfCare/1079"
}
}
]
}
Response
{
"resourceType": "Consent",
"id": "1080",
"meta": {
"versionId": "1",
"lastUpdated": "2021-05-04T09:54:01.401+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
]
},
"status": "active",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/consent-category",
"code": "TBD"
}
]
}
],
"patient": {
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/68966"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/21839"
}
],
"actor": [
{
"id": "2de1d4b6-9c2b-495e-8be5-5528c0898614",
"role": {
"coding": [
{
"system": "http://hl7.org/fhir/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/90329"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1716.local/fhir/EpisodeOfCare/1079"
}
}
]
}
POST [base]/Consent/1136/$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/5.3.0 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "Parameters",
"parameter": [
{
"name": "resource",
"resource": {
"resourceType": "Consent",
"id": "1136",
"meta": {
"versionId": "1",
"lastUpdated": "2021-05-04T09:54:24.597+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
]
},
"status": "active",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/consent-category",
"code": "TBD"
}
]
}
],
"patient": {
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/10161"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/96304"
}
],
"actor": [
{
"id": "22ddf055-5540-4a1f-85d2-f066dbdb2704",
"role": {
"coding": [
{
"system": "http://hl7.org/fhir/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/88410"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1716.local/fhir/EpisodeOfCare/1135"
}
}
]
}
}
]
}
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/1127
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/5.3.0 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "Consent",
"id": "1127",
"meta": {
"versionId": "1",
"lastUpdated": "2021-05-04T09:54:18.487+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
]
},
"status": "draft",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/consent-category",
"code": "TBD"
}
]
}
],
"patient": {
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/29727"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/49813"
}
],
"actor": [
{
"id": "aa112016-da33-4076-9d55-520454d852eb",
"role": {
"coding": [
{
"system": "http://hl7.org/fhir/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/32307"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1716.local/fhir/EpisodeOfCare/1126"
}
}
]
}
Response
{
"resourceType": "Consent",
"id": "1127",
"meta": {
"versionId": "2",
"lastUpdated": "2021-05-04T09:54:21.026+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
]
},
"status": "draft",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/consent-category",
"code": "TBD"
}
]
}
],
"patient": {
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/29727"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/49813"
}
],
"actor": [
{
"id": "aa112016-da33-4076-9d55-520454d852eb",
"role": {
"coding": [
{
"system": "http://hl7.org/fhir/extra-security-role-type",
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1716.local/fhir/Patient/32307"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1716.local/fhir/EpisodeOfCare/1126"
}
}
]
}