Appearance
Endpoint: /Patient/GetAllData
This endpoint will allow a GEHRIMED Patient ID, a time range, and a source to be supplied, returning all categories of data for a patient with that GEHRIMED Patient ID from the chosen source. The result will be JSON and the CCDA property will contain a CCDA R2.1 XML document.
Request: JSON
{
"PatientID": "159987",
"StartDate": "2011-11-09",
"EndDate": "2012-11-09",
"Source": "PatientAgent"
}| Field | Data Type | Required | Comments |
|---|---|---|---|
| PatientID | Long | Required | GEHRIMED PatientID |
| StartDate | Date | Optional | Start date to filter data on. |
| EndDate | Date | Optional | End date to filter data on. |
| Source | String | Optional | Origin of data |
Response: JSON Encapsulated CCDA
{
"Metadata": {
"ApiSender": "GEHRIMED",
"ApiConsumer": "client_id",
"MessageDateTime": "2018-09-07T19:24:32.6246499Z"
},
"Data": {
"PatientID": "159987",
"CCDA": "<?xml version="1.0" encoding="utf-8"?>...</xml>"
}
}