Skip to content

Latest commit

 

History

History
112 lines (95 loc) · 2.02 KB

File metadata and controls

112 lines (95 loc) · 2.02 KB
title description
Get patient
Get a patient's profile

Within Awell, there are two methods to uniquely identify patients:

  1. By ID (the Awell patient ID) - This is mandatory, as each patient in Awell is assigned a unique ID.
  2. Through business identifiers - This is optional and consists of an array of unique system-value pairs, defined by you, that serve as business identifiers.

Learn more about identifiers.

Request

Two queries can be used to retrieve a patient: one employs the Awell patient ID, and the other utilizes a business identifier for patient retrieval.

Get patient

Request:

query GetPatient($patient_id: String!) {
  patient(id: $patient_id) {
    patient {
      id
      profile {
        identifier {
          system
          value
        }
        email
        first_name
        last_name
        name
        sex
        birth_date
        phone
        mobile_phone
        preferred_language
        patient_code
        national_registry_number
        address {
          street
          city
          zip
          state
          country
        }
      }
    }
  }
}

Variables:

{
  "patient_id": "<AWELL_PATIENT_ID>"
}

Get patient by identifier

Request:

query GetPatientByIdentifier($system: String!, $value: String!) {
  patientByIdentifier(system: $system, value: $value) {
    patient {
      id
      profile {
        identifier {
          system
          value
        }
        email
        first_name
        last_name
        name
        sex
        birth_date
        phone
        mobile_phone
        preferred_language
        patient_code
        national_registry_number
        address {
          street
          city
          zip
          state
          country
        }
      }
    }
  }
}

Variables:

{
  "system": "{{IDENTIFIER_SYSTEM}}",
  "value": "{{IDENTIFIER_VALUE}}"
}

How to use

<HowToUse storyIds={['patient-profile']} />