About Authentication Example API Functions Patient Lookup GET /patientinfo/patient/id GET /patientinfo/{patientId} GET /patientsummary Encounters GET /{patientId}/uscdi/api/list-encounters GET /{patientId}/uscdi/api/encounter-uscdi USCDI GET /{patientId}/uscdi/api/all-patient-data GET /{patientId}/uscdi/api/patient-info GET /{patientId}/uscdi/api/smoking-status GET /{patientId}/uscdi/api/problems GET /{patientId}/uscdi/api/medications GET /{patientId}/uscdi/api/medication-allergies GET /{patientId}/uscdi/api/laboratory-tests GET /{patientId}/uscdi/api/laboratory-results GET /{patientId}/uscdi/api/vital-signs GET /{patientId}/uscdi/api/procedures GET /{patientId}/uscdi/api/care-team-members GET /{patientId}/uscdi/api/immunizations GET /{patientId}/uscdi/api/udi-for-implantable-device GET /{patientId}/uscdi/api/assessment-and-plan-of-treatment GET /{patientId}/uscdi/api/goals GET /{patientId}/uscdi/api/health-concerns

escribeHOST API Documentation

https://ehr.escribe.com/ehr/api

Authentication

Authentication is required to use the API.
To authenticate, send HTTP POST to https://ehr.escribe.com/ehr/api/users/login with data 'username' and 'password'.
After logging in, you will receive a cookie, JSESSIONID, that must be used to make further authenticated API calls.

Example

This example demonstrates logging in and looking up a patient's identifier using their name.
The user's username is YOURUSERNAME and password is YOURPASSWORD. The patient's name is John Doe.
The example uses curl.

Step 1: Login (store JSESSIONID in a file named 'cookiejar')
curl -c cookiejar 'https://ehr.escribe.com/ehr/api/users/login' -d 'username=YOURUSERNAME&password=YOURPASSWORD'
Step 2: Get patient ID (using JSESSIONID stored in a file named 'cookiejar')
curl -b cookiejar 'https://ehr.escribe.com/ehr/api/patientinfo/patient/id?firstName=john&lastName=doe'
The patient identifier is returned in the HTTP response:
12345678

API Functions

Patient Lookup

Patient Lookup
GET /patientinfo/patient/id Lookup Patient ID
GET /patientinfo/{patientId} Fetch patient by ID
GET /patientsummary Patient Search

Encounters

Patient Encounters
GET /{patientId}/uscdi/api/list-encounters Encounter IDs
GET /{patientId}/uscdi/api/encounter-uscdi Specific encounter (USCDI)

USCDI

Patient USCDI documents
GET /{patientId}/uscdi/api/all-patient-data All patient data (USCDI)
GET /{patientId}/uscdi/api/patient-info Personal info (USCDI)
GET /{patientId}/uscdi/api/smoking-status Smoking status (USCDI)
GET /{patientId}/uscdi/api/problems Problems (USCDI)
GET /{patientId}/uscdi/api/medications Medications (USCDI)
GET /{patientId}/uscdi/api/medication-allergies Medication allergies (USCDI)
GET /{patientId}/uscdi/api/laboratory-tests Laboratory tests (USCDI)
GET /{patientId}/uscdi/api/laboratory-results Laboratory results (USCDI)
GET /{patientId}/uscdi/api/vital-signs Vital signs (USCDI)
GET /{patientId}/uscdi/api/procedures Procedures (USCDI)
GET /{patientId}/uscdi/api/care-team-members Care team members (USCDI)
GET /{patientId}/uscdi/api/immunizations Immunizations (USCDI)
GET /{patientId}/uscdi/api/udi-for-implantable-device UDI(s) for implantable device (USCDI)
GET /{patientId}/uscdi/api/assessment-and-plan-of-treatment Assessment and plan of treatment (USCDI)
GET /{patientId}/uscdi/api/goals Goals (USCDI)
GET /{patientId}/uscdi/api/health-concerns Health concerns (USCDI)