Truepill logo
Docs
Introduction
Pharmacy
Telehealth

Patient record API

Overview

A patient record is the repository of information about a single patient. In the context of Truepill’s telehealth APIs, think of the patient record object as a summary of all the personal, clinical and administrative data related to a patient that is needed prior to, during and after a consult.

Create a patient record

A patient record can be created using our /telehealth/patient API endpoint. Truepill will provide a receipt confirmation of the request, and you will be required to reference your patient_record_id for subsequent consult requests.

icon code

Create a patient record


const body = {
  patient_token: 'c249dx5a',
  medications: ['Tafluprost'],
  allergies: ['Penicillin', 'nuts'],
  conditions: null,
  events: [
    {
      year: '2019',
      type: 'hospitalization',
      reason: 'food poisoning'
    },
    {
      year: '2018',
      type: 'surgery',
      reason: 'glaucoma treatment'
    }
  ],
  clinical_notes: 'Patient came in for non-regular appointment. Experiencing pain.',
  notes: null
}

fetch('https://web.archive.org/web/20230107151355/https://api.truepill.com/v1/telehealth/patient_record', {
  method: 'POST',
  headers: {
    Authorization: 'ApiKey tp_live_key_dwXajyzag6mhXQi1z0Gq9w',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify(body)
})
  .then(response => response.json())
  .then(response => console.log(response))
icon success

Success response


{
  "status": "success",
  "patient_record_token": "4526d90a",
  "patient_token": "c249dx5a",
}

Update a patient record

You can update a patient record at any time prior to or after a provider consult. The patient record object lives forever in the Truepill ecosystem, where you can reference it today or even a year later for a follow up consult. This enables our providers to see the history of data associated with your patient to provide the highest quality of care.