Custom REST API
The Custom REST API allows developers to quickly and easily interact with PKB functionality in a programmatic way, including accessing patient medical records. We are currently in the process of moving to a FHIR compliant REST API.
Test with Postman
There are many tools available to test REST APIs; we've had good experiences working with Postman: http://www.postman.com
This example demonstrates how to search for a patient's diagnoses based on their known PKB ID.
Generate an access token by following the OAuth 2.0 walkthrough
The example below assumes you have been granted an access token of: aaaaa-bbbbb
Confirm the PKB ID of the patient whose appointments you want to search for
The example below assumes a PKB ID of: 123
Make the call as detailed below, replacing the access token and PKB ID with your own values
The patient's diagnoses will be returned in the response
This example is written for sandbox.patientsknowbest.com; replace the URL as needed if you are connecting to a different environment.