title | description |
---|---|
Get patient |
Get a patient's profile |
Within Awell, there are two methods to uniquely identify patients:
- By
ID
(the Awell patient ID) - This is mandatory, as each patient in Awell is assigned a unique ID. - 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.
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.
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>"
}
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}}"
}
<HowToUse storyIds={['patient-profile']} />