POST [base]/ClinicalImpression/129/$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/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": "ClinicalImpression",
"id": "129",
"meta": {
"versionId": "1",
"lastUpdated": "2020-06-22T20:24:16.694+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-899.local/fhir/Patient/12547"
},
"context": {
"reference": "https://careplan.cit-task-899.local/fhir/EpisodeOfCare/44700"
}
}
}
]
}
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"
}
]
}
GET [base]/Communication?subject=https%3A%2F%2Fpatient.cit-measurement-1074.local%2Ffhir%2FPatient%2F66038
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZDRjMThlNDAtOTg4MC00MTI5LWJkOWQtMDhlMDhkZmMxMDAyIiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvbW11bmljYXRpb24ucmVhZCIsIkNvbW11bmljYXRpb24ucGF0Y2giLCJNZWRpYS5zZWFyY2giLCJRdWVzdGlvbm5haXJlUmVzcG9uc2UucmVhZCIsIiRzZWFyY2gtbWVhc3VyZW1lbnRzIiwiT2JzZXJ2YXRpb24uc2VhcmNoIiwiT2JzZXJ2YXRpb24ucmVhZCIsIiRzdWJtaXQtbWVhc3VyZW1lbnQiLCIkdGVzdC1vbmx5LWNyZWF0ZSIsIkNvbW11bmljYXRpb24uY3JlYXRlIiwiUXVlc3Rpb25uYWlyZVJlc3BvbnNlLnNlYXJjaCIsIkNvbW11bmljYXRpb24uc2VhcmNoIiwiUHJvdmVuYW5jZS5yZWFkIiwiTWVkaWEucmVhZCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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": "08598c6c-49de-4f72-9214-f986b33b36f8",
"meta": {
"lastUpdated": "2020-06-22T19:57:38.647+00:00"
},
"type": "searchset",
"total": 2,
"link": [
{
"relation": "self",
"url": "https://measurement.cit-measurement-1074.local/fhir/Communication?_format=json&_pretty=true&subject=https%3A%2F%2Fpatient.cit-measurement-1074.local%2Ffhir%2FPatient%2F66038"
}
],
"entry": [
{
"fullUrl": "https://measurement.cit-measurement-1074.local/fhir/Communication/162",
"resource": {
"resourceType": "Communication",
"id": "162",
"meta": {
"versionId": "1",
"lastUpdated": "2020-06-22T19:57:37.897+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-1074.local/fhir/Patient/66038"
},
"topic": [
{
"reference": "https://measurement.cit-measurement-1074.local/fhir/Observation/161"
}
],
"context": {
"reference": "https://careplan.cit-measurement-1074.local/fhir/EpisodeOfCare/42231"
}
},
"search": {
"mode": "match"
}
},
{
"fullUrl": "https://measurement.cit-measurement-1074.local/fhir/Communication/166",
"resource": {
"resourceType": "Communication",
"id": "166",
"meta": {
"versionId": "1",
"lastUpdated": "2020-06-22T19:57:38.507+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-1074.local/fhir/Patient/66038"
},
"topic": [
{
"reference": "https://measurement.cit-measurement-1074.local/fhir/Observation/165"
}
],
"context": {
"reference": "https://careplan.cit-measurement-1074.local/fhir/EpisodeOfCare/23933"
}
},
"search": {
"mode": "match"
}
}
]
}
GET [base]/Communication/124/_history/2
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24uY2l0LW1lYXN1cmVtZW50LTEwNzQubG9jYWwvZmhpci9QcmFjdGl0aW9uZXIvMjIwMjUiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiQ29tbXVuaWNhdGlvbi5yZWFkIiwiQ29tbXVuaWNhdGlvbi5wYXRjaCJdfSwiY29udGV4dCI6eyJlcGlzb2RlX29mX2NhcmVfaWQiOiJodHRwczovL2NhcmVwbGFuLmNpdC1tZWFzdXJlbWVudC0xMDc0LmxvY2FsL2ZoaXIvRXBpc29kZU9mQ2FyZS8yNzY2MCIsInRlYW1fb25fZW9jIjpmYWxzZX0sInVzZXJfdHlwZSI6IlBSQUNUSVRJT05FUiJ9.
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": "Communication",
"id": "124",
"meta": {
"versionId": "2",
"lastUpdated": "2020-06-22T19:57:23.306+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-1074.local/fhir/Patient/47855"
},
"topic": [
{
"reference": "https://measurement.cit-measurement-1074.local/fhir/Observation/123"
}
],
"context": {
"reference": "https://careplan.cit-measurement-1074.local/fhir/EpisodeOfCare/27660"
},
"sender": {
"reference": "https://organization.cit-measurement-1074.local/fhir/Practitioner/22025"
}
}
PATCH [base]/Communication/124
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiaHR0cHM6Ly9vcmdhbml6YXRpb24uY2l0LW1lYXN1cmVtZW50LTEwNzQubG9jYWwvZmhpci9QcmFjdGl0aW9uZXIvMjIwMjUiLCJyZWFsbV9hY2Nlc3MiOnsicm9sZXMiOlsiQ29tbXVuaWNhdGlvbi5yZWFkIiwiQ29tbXVuaWNhdGlvbi5wYXRjaCJdfSwiY29udGV4dCI6eyJlcGlzb2RlX29mX2NhcmVfaWQiOiJodHRwczovL2NhcmVwbGFuLmNpdC1tZWFzdXJlbWVudC0xMDc0LmxvY2FsL2ZoaXIvRXBpc29kZU9mQ2FyZS8yNzY2MCIsInRlYW1fb25fZW9jIjpmYWxzZX0sInVzZXJfdHlwZSI6IlBSQUNUSVRJT05FUiJ9.
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/3.8.0 (FHIR Client; FHIR 3.0.1/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": "124",
"meta": {
"versionId": "2",
"lastUpdated": "2020-06-22T19:57:23.306+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-1074.local/fhir/Patient/47855"
},
"topic": [
{
"reference": "https://measurement.cit-measurement-1074.local/fhir/Observation/123"
}
],
"context": {
"reference": "https://careplan.cit-measurement-1074.local/fhir/EpisodeOfCare/27660"
},
"sender": {
"reference": "https://organization.cit-measurement-1074.local/fhir/Practitioner/22025"
}
}
POST [base]/Communication
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiZWE3MGQ3NGItNmVjZC00Y2FmLWExOGUtZDQ5MGQ5NDNiODI3IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvbW11bmljYXRpb24ucmVhZCIsIkNvbW11bmljYXRpb24ucGF0Y2giLCJNZWRpYS5zZWFyY2giLCJRdWVzdGlvbm5haXJlUmVzcG9uc2UucmVhZCIsIiRzZWFyY2gtbWVhc3VyZW1lbnRzIiwiT2JzZXJ2YXRpb24uc2VhcmNoIiwiT2JzZXJ2YXRpb24ucmVhZCIsIiRzdWJtaXQtbWVhc3VyZW1lbnQiLCIkdGVzdC1vbmx5LWNyZWF0ZSIsIkNvbW11bmljYXRpb24uY3JlYXRlIiwiUXVlc3Rpb25uYWlyZVJlc3BvbnNlLnNlYXJjaCIsIkNvbW11bmljYXRpb24uc2VhcmNoIiwiUHJvdmVuYW5jZS5yZWFkIiwiTWVkaWEucmVhZCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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": "Communication",
"meta": {
"versionId": "1",
"lastUpdated": "2020-06-22T19:57:17.506+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-1074.local/fhir/Patient/49294"
},
"topic": [
{
"reference": "https://measurement.cit-measurement-1074.local/fhir/Observation/118"
}
],
"context": {
"reference": "https://careplan.cit-measurement-1074.local/fhir/EpisodeOfCare/35479"
}
}
Response
{
"resourceType": "Communication",
"id": "120",
"meta": {
"versionId": "1",
"lastUpdated": "2020-06-22T19:57:17.614+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-1074.local/fhir/Patient/49294"
},
"topic": [
{
"reference": "https://measurement.cit-measurement-1074.local/fhir/Observation/118"
}
],
"context": {
"reference": "https://careplan.cit-measurement-1074.local/fhir/EpisodeOfCare/35479"
}
}
POST [base]/Communication/174/$validate
Header
Accept-Charset: utf-8
Authorization: Bearer eyJhbGciOiJub25lIn0.eyJ1c2VyX2lkIjoiYzNhMWI1MjItNjU4YS00YWY2LWJjMzAtNjRmNjlkZDU4MTY0IiwicmVhbG1fYWNjZXNzIjp7InJvbGVzIjpbIkNvbW11bmljYXRpb24ucmVhZCIsIkNvbW11bmljYXRpb24ucGF0Y2giLCJNZWRpYS5zZWFyY2giLCJRdWVzdGlvbm5haXJlUmVzcG9uc2UucmVhZCIsIiRzZWFyY2gtbWVhc3VyZW1lbnRzIiwiT2JzZXJ2YXRpb24uc2VhcmNoIiwiT2JzZXJ2YXRpb24ucmVhZCIsIiRzdWJtaXQtbWVhc3VyZW1lbnQiLCIkdGVzdC1vbmx5LWNyZWF0ZSIsIkNvbW11bmljYXRpb24uY3JlYXRlIiwiUXVlc3Rpb25uYWlyZVJlc3BvbnNlLnNlYXJjaCIsIkNvbW11bmljYXRpb24uc2VhcmNoIiwiUHJvdmVuYW5jZS5yZWFkIiwiTWVkaWEucmVhZCJdfSwidXNlcl90eXBlIjoiU1lTVEVNIn0.
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": "Communication",
"id": "174",
"meta": {
"versionId": "1",
"lastUpdated": "2020-06-22T19:57:41.204+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-1074.local/fhir/Patient/72190"
},
"topic": [
{
"reference": "https://measurement.cit-measurement-1074.local/fhir/Observation/173"
}
],
"context": {
"reference": "https://careplan.cit-measurement-1074.local/fhir/EpisodeOfCare/12788"
}
}
}
]
}
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"
}
]
}