GET [base]/Consent?patient=https%3A%2F%2Fpatient.cit-careplan-1426.local%2Ffhir%2FPatient%2F58556&data=https%3A%2F%2Fcareplan.cit-careplan-1426.local%2Ffhir%2FEpisodeOfCare%2F604%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/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Bundle",
"id": "7c86e935-a014-4dd1-b35c-0be28a01bfa1",
"meta": {
"lastUpdated": "2020-08-12T07:56:06.409+00:00"
},
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "https://careplan.cit-careplan-1426.local/fhir/Consent?_format=json&_pretty=true&category=SSLPCI&data=https%3A%2F%2Fcareplan.cit-careplan-1426.local%2Ffhir%2FEpisodeOfCare%2F604%2F_history%2F1&patient=https%3A%2F%2Fpatient.cit-careplan-1426.local%2Ffhir%2FPatient%2F58556&status=active"
}
],
"entry": [
{
"fullUrl": "https://careplan.cit-careplan-1426.local/fhir/Consent/605",
"resource": {
"resourceType": "Consent",
"id": "605",
"meta": {
"versionId": "1",
"lastUpdated": "2020-08-12T07:56:06.171+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
]
},
"status": "active",
"category": [
{
"coding": [
{
"code": "SSLPCI"
}
]
}
],
"patient": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/58556"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/74730"
}
],
"actor": [
{
"id": "2b7c69e0-e8b8-4b02-8059-acb8909072e0",
"role": {
"coding": [
{
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/25383"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1426.local/fhir/EpisodeOfCare/604"
}
}
]
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/Consent/615/_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/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Consent",
"id": "615",
"meta": {
"versionId": "2",
"lastUpdated": "2020-08-12T07:56:14.350+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
]
},
"status": "draft",
"category": [
{
"coding": [
{
"code": "TBD"
}
]
}
],
"patient": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/87652"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/71041"
}
],
"actor": [
{
"id": "06bd7b9b-9d16-48ac-8dc9-d0692bd0e5f2",
"role": {
"coding": [
{
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/73940"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1426.local/fhir/EpisodeOfCare/614"
}
}
]
}
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/3.8.0 (FHIR Client; FHIR 3.0.1/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": [
{
"code": "TBD"
}
]
}
],
"patient": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/14727"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/75730"
}
],
"actor": [
{
"id": "10aafad7-ac6d-4569-9bae-e7360dfca986",
"role": {
"coding": [
{
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/79186"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1426.local/fhir/EpisodeOfCare/567"
}
}
]
}
Response
{
"resourceType": "Consent",
"id": "568",
"meta": {
"versionId": "1",
"lastUpdated": "2020-08-12T07:55:59.278+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
]
},
"status": "active",
"category": [
{
"coding": [
{
"code": "TBD"
}
]
}
],
"patient": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/14727"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/75730"
}
],
"actor": [
{
"id": "10aafad7-ac6d-4569-9bae-e7360dfca986",
"role": {
"coding": [
{
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/79186"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1426.local/fhir/EpisodeOfCare/567"
}
}
]
}
POST [base]/Consent/624/$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/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "Parameters",
"parameter": [
{
"name": "resource",
"resource": {
"resourceType": "Consent",
"id": "624",
"meta": {
"versionId": "1",
"lastUpdated": "2020-08-12T07:56:16.896+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
]
},
"status": "active",
"category": [
{
"coding": [
{
"code": "TBD"
}
]
}
],
"patient": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/43492"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/24899"
}
],
"actor": [
{
"id": "5c1a598a-3512-43b8-bd54-9f015389c6ec",
"role": {
"coding": [
{
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/36449"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1426.local/fhir/EpisodeOfCare/623"
}
}
]
}
}
]
}
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>\r\r\r</tr>\r<tr>\r<td style=\"font-weight: bold;\">INFORMATION</td>\r<td>[]</td>\r\r\r\r<td><pre>No issues detected during validation</pre></td>\r\r\r</tr>\r</table>\r</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/615
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/3.8.0 (FHIR Client; FHIR 3.0.1/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "Consent",
"id": "615",
"meta": {
"versionId": "1",
"lastUpdated": "2020-08-12T07:56:12.808+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
]
},
"status": "draft",
"category": [
{
"coding": [
{
"code": "TBD"
}
]
}
],
"patient": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/87652"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/71041"
}
],
"actor": [
{
"id": "06bd7b9b-9d16-48ac-8dc9-d0692bd0e5f2",
"role": {
"coding": [
{
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/73940"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1426.local/fhir/EpisodeOfCare/614"
}
}
]
}
Response
{
"resourceType": "Consent",
"id": "615",
"meta": {
"versionId": "2",
"lastUpdated": "2020-08-12T07:56:14.350+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
]
},
"status": "draft",
"category": [
{
"coding": [
{
"code": "TBD"
}
]
}
],
"patient": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/87652"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/71041"
}
],
"actor": [
{
"id": "06bd7b9b-9d16-48ac-8dc9-d0692bd0e5f2",
"role": {
"coding": [
{
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1426.local/fhir/Patient/73940"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1426.local/fhir/EpisodeOfCare/614"
}
}
]
}