Get the health profile of a patient
/care/v1/patient/{patient_id}/health-profile/get/documenthealth-profile:readBAA requiredReturns the health profile of a patient with their latest measurement. The patient must have
an active connection with your company that allows the health profile: a pending or revoked
connection answers connection_not_active, a connection made without the health profile
permission answers connection_scope_not_granted, and an unknown patient, or one of another
company or mode, answers not_found.
A patient who has no health profile yet answers health_profile_not_found; create it with the
update route. diabetes_information and heart_condition_information are null when none
was saved, and general_health_data, the latest measurement, is null when there is none. Needs the health-profile:read scope,
which needs a signed BAA.
Path parameters
patient_idstring (uuid)requiredThe ID of the patient, as
createanswered it.
Response 200
additional_informationstringnullableNotes about the health profile.
biological_sexenumrequiredThe biological sex.
MaleFemalePrefer not to say
created_atstring (date-time)requiredWhen the health profile was created, in UTC.
date_of_birthstringrequiredThe date of birth, as
YYYY-MM-DD.diabetes_informationHealthProfileDiabetesOutputnullableThe diabetes information.
nullwhen none was saved.Show child attributesHide child attributes
additional_informationstringnullableNotes about the diabetes.
diabetes_typeenumrequiredThe type of diabetes.
Type 1Type 2GestationalPrediabetesOther
diabetes_type_otherstringnullableThe type of diabetes, when
diabetes_typeisOther.diabetic_complicationsstringnullableThe complications, when there are any.
does_user_have_diabetic_complicationsbooleanrequiredWhether the patient has complications of diabetes.
does_user_have_family_history_of_diabetesbooleanrequiredWhether diabetes runs in the family.
general_health_dataHealthProfileGeneralHealthDataOutputnullableThe latest measurement.
nullwhen there is none.Show child attributesHide child attributes
activity_levelenumrequiredHow active the patient is.
SedentaryLightModerateActiveExtractive
alcohol_consumption_frequencyenumnullableHow often the patient drinks alcohol.
Never drinksLight (up to 1 drink per day)Moderate (1-2 drinks per day)Heavy (more than 2 drinks per day)Binge Drinking (5+ drinks on a single occasion)
date_of_measurementstring (date-time)requiredWhen the measurement was taken, in UTC.
goalenumrequiredThe health goal.
Weight LossMaintainMuscle GainWeight Loss and Muscle GainManaged Condition
height_in_cmnumberrequiredThe height in centimeters.
managed_conditionenumnullableThe condition managed, when the goal is
Managed Condition.ObesityHeart DiseaseDiabetes [Weight Loss]Diabetes [Maintain]Diabetes [Muscle Gain]Prediabetes Reversal [Weight Loss]Prediabetes Reversal [Maintain]Prediabetes Reversal [Muscle Gain]Chronic Kidney Disease Stage 1Chronic Kidney Disease Stage 2Chronic Kidney Disease Stage 3Chronic Kidney Disease Stage 4Chronic Kidney Disease Stage 5 [Dialysis]Chronic Kidney Disease Stage 5 [Non-Dialysis]Neuroprotective Diet [Weight Loss]Neuroprotective Diet [Maintain]Neuroprotective Diet [Muscle Gain]
sleep_qualityenumnullableHow well the patient sleeps.
Low sleep qualityModerate sleep qualityHigh sleep qualityExcellent sleep quality
smoking_statusenumnullableThe smoking status.
Non-SmokerFormer SmokerOccasional SmokerRegular Smoker
stress_levelenumnullableHow stressed the patient is.
Low stress (relaxed throughout the day)Moderate stress (some stress throughout the day)High stress (stressed throughout the day)Extremely High stress (very stressed throughout the day)
weight_in_kgnumberrequiredThe weight in kilograms.
has_diabetesbooleanrequiredWhether the patient has diabetes.
has_heart_conditionbooleanrequiredWhether the patient has a heart condition.
has_other_diseasesbooleanrequiredWhether the patient has other diseases.
heart_condition_informationHealthProfileHeartConditionOutputnullableThe heart condition information.
nullwhen none was saved.Show child attributesHide child attributes
additional_informationstringnullableNotes about the heart condition.
does_user_have_heart_condition_family_historybooleanrequiredWhether heart conditions run in the family.
heart_condition_typeenumrequiredThe type of heart condition.
Coronary Artery DiseaseHeart FailureHypertensionArrhythmiaOther
heart_condition_type_otherstringnullableThe type of heart condition, when
heart_condition_typeisOther.
medicationsarray of HealthProfileMedicationOutputThe medications the patient takes.
Show child attributesHide child attributes
dosage_amountnumberrequiredThe amount of one dose.
dosage_unitenumrequiredThe unit of the dose.
gmgmcgIUunitstabletsmlother
dosage_unit_otherstringnullableThe unit of the dose, when
dosage_unitisother.frequencyenumrequiredHow often it is taken.
Once dailyTwice dailyThree times dailyFour times dailyWith mealsBefore mealsAfter mealsAt bedtimeEvery other dayAs neededOther
frequency_otherstringnullableHow often it is taken, when
frequencyisOther.medication_namestringrequiredThe name of the medication or supplement.
other_diseases_notesstringnullableThe other diseases of the patient.
nullwhen none were saved.supplementsarray of HealthProfileMedicationOutputThe supplements the patient takes.
Show child attributesHide child attributes
dosage_amountnumberrequiredThe amount of one dose.
dosage_unitenumrequiredThe unit of the dose.
gmgmcgIUunitstabletsmlother
dosage_unit_otherstringnullableThe unit of the dose, when
dosage_unitisother.frequencyenumrequiredHow often it is taken.
Once dailyTwice dailyThree times dailyFour times dailyWith mealsBefore mealsAfter mealsAt bedtimeEvery other dayAs neededOther
frequency_otherstringnullableHow often it is taken, when
frequencyisOther.medication_namestringrequiredThe name of the medication or supplement.
updated_atstring (date-time)requiredWhen the health profile last changed, in UTC.
userstring (uuid)requiredThe ID of the patient.
Errors
Every error has this shape. Branch on code, not on message. request_id equals the X-Request-Id response header.
{
"error": {
"code": "not_found",
"message": "The object does not exist.",
"request_id": "req_0123456789abcdef0123456789abcdef"
}
}| Status | Code | Meaning |
|---|---|---|
401 | invalid_api_key | The API key is missing or not valid. |
403 | company_archived | This company is archived. |
403 | company_not_live | The company must be live to use prod keys. |
403 | company_suspended | This company is suspended. |
403 | connection_scope_not_granted | The connection does not hold the care.health-profile scope. |
403 | scope_not_granted | This API key does not have the health-profile:read scope. |
404 | health_profile_not_found | The patient has no health profile yet. Create it with the update route. |
404 | not_found | The requested resource was not found. |
409 | connection_not_active | The connection is not active. |
422 | validation_error | path.patient_id: Input should be a valid UUID, invalid character: found n at 0 |
429 | rate_limited | Too many requests. Wait before calling again. |
500 | internal_error | Something went wrong on our side. Please try again later. |
502 | upstream_error | A Nurish'd service could not complete the request. |
503 | upstream_unavailable | A Nurish'd service is unavailable. Please try again later. |
504 | upstream_timeout | A Nurish'd service did not answer in time. Please try again. |