POST [base]/ClinicalImpression/338/$validate
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiJHRlc3Qtb25seS1jcmVhdGUiLCJDbGluaWNhbEltcHJlc3Npb24uc2VhcmNoIiwiQ2xpbmljYWxJbXByZXNzaW9uLnBhdGNoIiwiQ2xpbmljYWxJbXByZXNzaW9uLnJlYWQiLCJDbGluaWNhbEltcHJlc3Npb24uY3JlYXRlIl19LCJ1c2VyX3R5cGUiOiJTWVNURU0ifQ.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (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": "ClinicalImpression",
"id": "338",
"meta": {
"versionId": "1",
"lastUpdated": "2020-10-22T14:21:42.770+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-clinicalimpression"
]
},
"status": "draft",
"code": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/clinicalimpression-codes",
"code": "TBD"
}
]
},
"subject": {
"reference": "https://patient.cit-task-1106.local/fhir/Patient/36475"
},
"context": {
"reference": "https://careplan.cit-task-1106.local/fhir/EpisodeOfCare/53177"
}
}
}
]
}
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"
}
]
}
GET [base]/Communication?context=https%3A%2F%2Fcareplan.cit-measurement-1137.local%2Ffhir%2FEpisodeOfCare%2F36259&sender=https%3A%2F%2Fpatient.cit-measurement-1137.local%2Ffhir%2FPatient%2F2267
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cHM6Ly9wYXRpZW50LmNpdC1tZWFzdXJlbWVudC0xMTM3LmxvY2FsL2ZoaXIvUGF0aWVudC8yMjY3IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvbW11bmljYXRpb24uc2VhcmNoIl19LCJjb250ZXh0Ijp7ImVwaXNvZGVfb2ZfY2FyZV9pZCI6Imh0dHBzOi8vY2FyZXBsYW4uY2l0LW1lYXN1cmVtZW50LTExMzcubG9jYWwvZmhpci9FcGlzb2RlT2ZDYXJlLzM2MjU5IiwidGVhbV9vbl9lb2MiOmZhbHNlfSwidXNlcl90eXBlIjoiUFJBQ1RJVElPTkVSIn0.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Bundle",
"id": "6ebf7b07-8459-4195-97dc-e0d46da14b1f",
"meta": {
"lastUpdated": "2020-10-22T13:10:24.218+00:00"
},
"type": "searchset",
"total": 0,
"link": [
{
"relation": "self",
"url": "https://measurement.cit-measurement-1137.local/fhir/Communication?_format=json&_pretty=true&context=https%3A%2F%2Fcareplan.cit-measurement-1137.local%2Ffhir%2FEpisodeOfCare%2F36259&sender=https%3A%2F%2Fpatient.cit-measurement-1137.local%2Ffhir%2FPatient%2F2267"
}
]
}
GET [base]/Communication/126/_history/2
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24uY2l0LW1lYXN1cmVtZW50LTExMzcubG9jYWwvZmhpci9QcmFjdGl0aW9uZXIvMzUyNDciLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiQ29tbXVuaWNhdGlvbi5yZWFkIiwiQ29tbXVuaWNhdGlvbi5wYXRjaCJdfSwiY29udGV4dCI6eyJlcGlzb2RlX29mX2NhcmVfaWQiOiJodHRwczovL2NhcmVwbGFuLmNpdC1tZWFzdXJlbWVudC0xMTM3LmxvY2FsL2ZoaXIvRXBpc29kZU9mQ2FyZS82NDQ1MSIsInRlYW1fb25fZW9jIjpmYWxzZX0sInVzZXJfdHlwZSI6IlBSQUNUSVRJT05FUiJ9.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Response
{
"resourceType": "Communication",
"id": "126",
"meta": {
"versionId": "2",
"lastUpdated": "2020-10-22T13:10:08.435+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-communication"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-restriction-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/restriction-category",
"code": "None"
}
]
}
}
],
"status": "aborted",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/communication-category",
"code": "annotation"
}
]
}
],
"subject": {
"reference": "https://patient.cit-measurement-1137.local/fhir/Patient/22232"
},
"topic": [
{
"reference": "https://measurement.cit-measurement-1137.local/fhir/Observation/125"
}
],
"context": {
"reference": "https://careplan.cit-measurement-1137.local/fhir/EpisodeOfCare/64451"
},
"sender": {
"reference": "https://organization.cit-measurement-1137.local/fhir/Practitioner/35247"
}
}
PATCH [base]/Communication/126
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24uY2l0LW1lYXN1cmVtZW50LTExMzcubG9jYWwvZmhpci9QcmFjdGl0aW9uZXIvMzUyNDciLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiQ29tbXVuaWNhdGlvbi5yZWFkIiwiQ29tbXVuaWNhdGlvbi5wYXRjaCJdfSwiY29udGV4dCI6eyJlcGlzb2RlX29mX2NhcmVfaWQiOiJodHRwczovL2NhcmVwbGFuLmNpdC1tZWFzdXJlbWVudC0xMTM3LmxvY2FsL2ZoaXIvRXBpc29kZU9mQ2FyZS82NDQ1MSIsInRlYW1fb25fZW9jIjpmYWxzZX0sInVzZXJfdHlwZSI6IlBSQUNUSVRJT05FUiJ9.
Accept: application/fhir+xml;q=1.0, application/fhir+json;q=1.0, application/xml+fhir;q=0.9, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/json-patch+json; charset=UTF-8
Body:
[
{
"op": "replace",
"path": "/status",
"value": "aborted"
}
]
Response
{
"resourceType": "Communication",
"id": "126",
"meta": {
"versionId": "2",
"lastUpdated": "2020-10-22T13:10:08.435+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-communication"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-restriction-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/restriction-category",
"code": "None"
}
]
}
}
],
"status": "aborted",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/communication-category",
"code": "annotation"
}
]
}
],
"subject": {
"reference": "https://patient.cit-measurement-1137.local/fhir/Patient/22232"
},
"topic": [
{
"reference": "https://measurement.cit-measurement-1137.local/fhir/Observation/125"
}
],
"context": {
"reference": "https://careplan.cit-measurement-1137.local/fhir/EpisodeOfCare/64451"
},
"sender": {
"reference": "https://organization.cit-measurement-1137.local/fhir/Practitioner/35247"
}
}
POST [base]/Communication
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiNTAwZDc0ZGQtODFjMC00NDE2LWEyNTctZDJiNjhkMTZhYjg5IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvbW11bmljYXRpb24ucmVhZCIsIkNvbW11bmljYXRpb24ucGF0Y2giLCJNZWRpYS5zZWFyY2giLCJRdWVzdGlvbm5haXJlUmVzcG9uc2UucmVhZCIsIiRzZWFyY2gtbWVhc3VyZW1lbnRzIiwiT2JzZXJ2YXRpb24uc2VhcmNoIiwiT2JzZXJ2YXRpb24ucmVhZCIsIiRzdWJtaXQtbWVhc3VyZW1lbnQiLCIkdGVzdC1vbmx5LWNyZWF0ZSIsIkNvbW11bmljYXRpb24uY3JlYXRlIiwiUXVlc3Rpb25uYWlyZVJlc3BvbnNlLnNlYXJjaCIsIkNvbW11bmljYXRpb24uc2VhcmNoIiwiUHJvdmVuYW5jZS5yZWFkIiwiTWVkaWEucmVhZCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (FHIR Client; FHIR 3.0.2/DSTU3; apache)
Accept-Encoding: gzip
Content-Type: application/fhir+json; charset=UTF-8
Body:
{
"resourceType": "Communication",
"meta": {
"versionId": "1",
"lastUpdated": "2020-10-22T13:10:03.601+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-communication"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-restriction-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/restriction-category",
"code": "None"
}
]
}
}
],
"status": "completed",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/communication-category",
"code": "annotation"
}
]
}
],
"subject": {
"reference": "https://patient.cit-measurement-1137.local/fhir/Patient/24366"
},
"topic": [
{
"reference": "https://measurement.cit-measurement-1137.local/fhir/Observation/120"
}
],
"context": {
"reference": "https://careplan.cit-measurement-1137.local/fhir/EpisodeOfCare/58675"
}
}
Response
{
"resourceType": "Communication",
"id": "122",
"meta": {
"versionId": "1",
"lastUpdated": "2020-10-22T13:10:03.697+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-communication"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-restriction-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/restriction-category",
"code": "None"
}
]
}
}
],
"status": "completed",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/communication-category",
"code": "annotation"
}
]
}
],
"subject": {
"reference": "https://patient.cit-measurement-1137.local/fhir/Patient/24366"
},
"topic": [
{
"reference": "https://measurement.cit-measurement-1137.local/fhir/Observation/120"
}
],
"context": {
"reference": "https://careplan.cit-measurement-1137.local/fhir/EpisodeOfCare/58675"
}
}
POST [base]/Communication/176/$validate
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiMThhOWRjMzUtNDdjZC00MDMxLWExOTUtNTYwNTVhYTExM2FmIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvbW11bmljYXRpb24ucmVhZCIsIkNvbW11bmljYXRpb24ucGF0Y2giLCJNZWRpYS5zZWFyY2giLCJRdWVzdGlvbm5haXJlUmVzcG9uc2UucmVhZCIsIiRzZWFyY2gtbWVhc3VyZW1lbnRzIiwiT2JzZXJ2YXRpb24uc2VhcmNoIiwiT2JzZXJ2YXRpb24ucmVhZCIsIiRzdWJtaXQtbWVhc3VyZW1lbnQiLCIkdGVzdC1vbmx5LWNyZWF0ZSIsIkNvbW11bmljYXRpb24uY3JlYXRlIiwiUXVlc3Rpb25uYWlyZVJlc3BvbnNlLnNlYXJjaCIsIkNvbW11bmljYXRpb24uc2VhcmNoIiwiUHJvdmVuYW5jZS5yZWFkIiwiTWVkaWEucmVhZCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
Accept: application/fhir+json;q=1.0, application/json+fhir;q=0.9
User-Agent: HAPI-FHIR/5.0.2 (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": "Communication",
"id": "176",
"meta": {
"versionId": "1",
"lastUpdated": "2020-10-22T13:10:27.517+00:00",
"profile": [
"http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-communication"
]
},
"extension": [
{
"url": "http://ehealth.sundhed.dk/fhir/StructureDefinition/ehealth-restriction-category",
"valueCodeableConcept": {
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/restriction-category",
"code": "None"
}
]
}
}
],
"status": "completed",
"category": [
{
"coding": [
{
"system": "http://ehealth.sundhed.dk/cs/communication-category",
"code": "annotation"
}
]
}
],
"subject": {
"reference": "https://patient.cit-measurement-1137.local/fhir/Patient/41247"
},
"topic": [
{
"reference": "https://measurement.cit-measurement-1137.local/fhir/Observation/175"
}
],
"context": {
"reference": "https://careplan.cit-measurement-1137.local/fhir/EpisodeOfCare/51445"
}
}
}
]
}
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"
}
]
}