Get a patient's clinical history
The patient’s clinical history as filled in the dashboard or by the patient’s forms: allergies, food preferences, medical background, habits, objectives, diet record and the account’s custom fields. Answers tracked over time come with their history.
Requires the clinical:read permission.
/patients/{patient_id}/clinical-historyAuthorizationToken Bearer (API Key) · headerobligatorioAlmendra API key, bound to one professional account. Send it as Authorization: Bearer YOUR_API_KEY.
clinical:readpatient_idstringobligatorioPatient ID
Clinical history
patientstringobligatorioPatient ID
allergiesstring[]obligatoriodrugAllergiesstring[]obligatoriofavoriteFoodsstring[]obligatoriodislikedFoodsstring[]obligatorioalcoholTypesstring[]obligatoriopersonalDiseaseBackgroundstring[]obligatoriopersonalDiseaseBackgroundCommentsstringfamilyDiseaseBackgroundstring[]obligatoriofamilyDiseaseBackgroundCommentsstringintestinalConditionCommentsstringcommentsstringFree-text notes about the patient
objectivesobject[]obligatorioMeasurable goals (e.g. reach 68 kg)
Mostrar propiedadesOcultar propiedades
objectmeasurementstringobligatoriotargetnumberobligatoriostartDatestring<date-time>dueDatestring<date-time>answersobjectobligatorioClinical history answers that are tracked over time, keyed by question (generalObjective, currentDiseases, actualMedicineConsumption, sleepQuality, stressLevel, actualDietType, supplements, …): the latest value and the earlier ones.
dietRecordobjectWhat the patient usually eats (24 h recall)
Mostrar propiedadesOcultar propiedades
summarystringcaloriesnumbermealsobject[]obligatorioMostrar propiedadesOcultar propiedades
objectnamestringdescriptionstringtimestringbirthobjectBirth data (baby patients)
Mostrar propiedadesOcultar propiedades
weightnumberAs entered, in the account's weight unit (kg or lb, Settings > Units)
heightCmnumberpregnancyWeeksnumbercommentsstringphysicalActivityobjectActivity assessment used for the physical activity level
Mostrar propiedadesOcultar propiedades
palnumberPhysical activity level computed from the activities
activitiesobject[]obligatorioMostrar propiedadesOcultar propiedades
objectnamestringobligatoriodaysstring[]obligatorioDays as stored ('Lunes'…'Domingo', 'Todos los días')
minutesnumberobligatoriofoodFrequencyobject[]obligatorioMostrar propiedadesOcultar propiedades
objectcategorystringobligatoriofrequencystringobligatorioperiodstringobligatoriocustomFieldsobject[]obligatorioThe account's own clinical history fields
Mostrar propiedadesOcultar propiedades
objectnamestringobligatoriovalueany | nullInvalid path parameter, query parameter or request body
successbooleanobligatoriofalsemessagestringobligatorioSame as error.message.
errorobjectobligatorioMostrar propiedadesOcultar propiedades
statusintegerobligatorioHTTP status code of the response.
codestringobligatorioMachine-readable error code, stable across versions; branch on this rather than on message.
bad_requestunauthorizedforbiddennot_foundmethod_not_allowedconflictpayload_too_largeunsupported_media_typeunprocessable_entityrate_limitedinternal_errornot_implementedbad_gatewayservice_unavailablegateway_timeoutmessagestringobligatorioHuman-readable explanation of what went wrong.
Missing or invalid API key
successbooleanobligatoriofalsemessagestringobligatorioSame as error.message.
errorobjectobligatorioMostrar propiedadesOcultar propiedades
statusintegerobligatorioHTTP status code of the response.
codestringobligatorioMachine-readable error code, stable across versions; branch on this rather than on message.
bad_requestunauthorizedforbiddennot_foundmethod_not_allowedconflictpayload_too_largeunsupported_media_typeunprocessable_entityrate_limitedinternal_errornot_implementedbad_gatewayservice_unavailablegateway_timeoutmessagestringobligatorioHuman-readable explanation of what went wrong.
The account behind the API key has no active paid plan, or the key lacks the permission this operation needs
successbooleanobligatoriofalsemessagestringobligatorioSame as error.message.
errorobjectobligatorioMostrar propiedadesOcultar propiedades
statusintegerobligatorioHTTP status code of the response.
codestringobligatorioMachine-readable error code, stable across versions; branch on this rather than on message.
bad_requestunauthorizedforbiddennot_foundmethod_not_allowedconflictpayload_too_largeunsupported_media_typeunprocessable_entityrate_limitedinternal_errornot_implementedbad_gatewayservice_unavailablegateway_timeoutmessagestringobligatorioHuman-readable explanation of what went wrong.
Patient not found
successbooleanobligatoriofalsemessagestringobligatorioSame as error.message.
errorobjectobligatorioMostrar propiedadesOcultar propiedades
statusintegerobligatorioHTTP status code of the response.
codestringobligatorioMachine-readable error code, stable across versions; branch on this rather than on message.
bad_requestunauthorizedforbiddennot_foundmethod_not_allowedconflictpayload_too_largeunsupported_media_typeunprocessable_entityrate_limitedinternal_errornot_implementedbad_gatewayservice_unavailablegateway_timeoutmessagestringobligatorioHuman-readable explanation of what went wrong.
Rate limit exceeded (600 requests per 60 seconds); retry after Retry-After seconds
successbooleanobligatoriofalsemessagestringobligatorioSame as error.message.
errorobjectobligatorioMostrar propiedadesOcultar propiedades
statusintegerobligatorioHTTP status code of the response.
codestringobligatorioMachine-readable error code, stable across versions; branch on this rather than on message.
bad_requestunauthorizedforbiddennot_foundmethod_not_allowedconflictpayload_too_largeunsupported_media_typeunprocessable_entityrate_limitedinternal_errornot_implementedbad_gatewayservice_unavailablegateway_timeoutmessagestringobligatorioHuman-readable explanation of what went wrong.
Unexpected server error
successbooleanobligatoriofalsemessagestringobligatorioSame as error.message.
errorobjectobligatorioMostrar propiedadesOcultar propiedades
statusintegerobligatorioHTTP status code of the response.
codestringobligatorioMachine-readable error code, stable across versions; branch on this rather than on message.
bad_requestunauthorizedforbiddennot_foundmethod_not_allowedconflictpayload_too_largeunsupported_media_typeunprocessable_entityrate_limitedinternal_errornot_implementedbad_gatewayservice_unavailablegateway_timeoutmessagestringobligatorioHuman-readable explanation of what went wrong.