GET [base]/Consent?patient=https%3A%2F%2Fpatient.cit-careplan-1279.local%2Ffhir%2FPatient%2F40492&data=https%3A%2F%2Fcareplan.cit-careplan-1279.local%2Ffhir%2FEpisodeOfCare%2F626%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": "0c31ab43-7e5d-4daf-8b2f-3bdeb2ff6fa9",
"meta": {
"lastUpdated": "2020-06-23T08:11:29.906+00:00"
},
"type": "searchset",
"total": 1,
"link": [
{
"relation": "self",
"url": "https://careplan.cit-careplan-1279.local/fhir/Consent?_format=json&_pretty=true&category=SSLPCI&data=https%3A%2F%2Fcareplan.cit-careplan-1279.local%2Ffhir%2FEpisodeOfCare%2F626%2F_history%2F1&patient=https%3A%2F%2Fpatient.cit-careplan-1279.local%2Ffhir%2FPatient%2F40492&status=active"
}
],
"entry": [
{
"fullUrl": "https://careplan.cit-careplan-1279.local/fhir/Consent/627",
"resource": {
"resourceType": "Consent",
"id": "627",
"meta": {
"versionId": "1",
"lastUpdated": "2020-06-23T08:11:29.644+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
]
},
"status": "active",
"category": [
{
"coding": [
{
"code": "SSLPCI"
}
]
}
],
"patient": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/40492"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/72498"
}
],
"actor": [
{
"id": "67450e29-d9f1-497f-8761-c9a73076aa74",
"role": {
"coding": [
{
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/97900"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1279.local/fhir/EpisodeOfCare/626"
}
}
]
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/Consent/637/_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": "637",
"meta": {
"versionId": "2",
"lastUpdated": "2020-06-23T08:11:38.077+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
]
},
"status": "draft",
"category": [
{
"coding": [
{
"code": "TBD"
}
]
}
],
"patient": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/83692"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/47492"
}
],
"actor": [
{
"id": "32aa6676-7529-45af-b765-da82f1a0dcbf",
"role": {
"coding": [
{
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/65346"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1279.local/fhir/EpisodeOfCare/636"
}
}
]
}
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-1279.local/fhir/Patient/30880"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/81399"
}
],
"actor": [
{
"id": "64e5e0f3-12d2-4ca9-a55f-00cf9e818640",
"role": {
"coding": [
{
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/58271"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1279.local/fhir/EpisodeOfCare/589"
}
}
]
}
Response
{
"resourceType": "Consent",
"id": "590",
"meta": {
"versionId": "1",
"lastUpdated": "2020-06-23T08:11:22.108+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
]
},
"status": "active",
"category": [
{
"coding": [
{
"code": "TBD"
}
]
}
],
"patient": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/30880"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/81399"
}
],
"actor": [
{
"id": "64e5e0f3-12d2-4ca9-a55f-00cf9e818640",
"role": {
"coding": [
{
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/58271"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1279.local/fhir/EpisodeOfCare/589"
}
}
]
}
POST [base]/Consent/646/$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": "646",
"meta": {
"versionId": "1",
"lastUpdated": "2020-06-23T08:11:41.115+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
]
},
"status": "active",
"category": [
{
"coding": [
{
"code": "TBD"
}
]
}
],
"patient": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/63814"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/62131"
}
],
"actor": [
{
"id": "d731d37c-8c9c-4037-af9e-99173d135588",
"role": {
"coding": [
{
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/85743"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1279.local/fhir/EpisodeOfCare/645"
}
}
]
}
}
]
}
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/637
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": "637",
"meta": {
"versionId": "1",
"lastUpdated": "2020-06-23T08:11:36.523+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
]
},
"status": "draft",
"category": [
{
"coding": [
{
"code": "TBD"
}
]
}
],
"patient": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/83692"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/47492"
}
],
"actor": [
{
"id": "32aa6676-7529-45af-b765-da82f1a0dcbf",
"role": {
"coding": [
{
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/65346"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1279.local/fhir/EpisodeOfCare/636"
}
}
]
}
Response
{
"resourceType": "Consent",
"id": "637",
"meta": {
"versionId": "2",
"lastUpdated": "2020-06-23T08:11:38.077+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-consent"
]
},
"status": "draft",
"category": [
{
"coding": [
{
"code": "TBD"
}
]
}
],
"patient": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/83692"
},
"period": {
"start": "1970-01-01T00:00:01+00:00",
"end": "1970-01-01T00:01:40+00:00"
},
"consentingParty": [
{
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/47492"
}
],
"actor": [
{
"id": "32aa6676-7529-45af-b765-da82f1a0dcbf",
"role": {
"coding": [
{
"code": "authserver"
}
]
},
"reference": {
"reference": "https://patient.cit-careplan-1279.local/fhir/Patient/65346"
}
}
],
"policyRule": "Rule",
"data": [
{
"meaning": "related",
"reference": {
"reference": "https://careplan.cit-careplan-1279.local/fhir/EpisodeOfCare/636"
}
}
]
}