Skip to main content
Retrieves the health profile associated with a specific beneficiario.

Endpoint

GET /salud/beneficiario/:beneficiarioId

Authentication

This endpoint requires a valid JWT token.
Authorization: Bearer YOUR_JWT_TOKEN

Path Parameters

beneficiarioId
number
required
The unique identifier of the beneficiario whose health profile you want to retrieve

Response

Returns the health profile object for the specified beneficiario.
id
number
Unique identifier for the health profile
beneficiarioId
number
ID of the associated beneficiario
esAptoFisico
boolean
Physical fitness status
padecEnfermedad
boolean
Medical condition status
nombreEnfermedad
string
Name of medical condition (if applicable)
consumeSustancias
boolean
Substance consumption status
tipoSustancias
string
Type of substances (if applicable)
afiliadoServicioSalud
string
Health service affiliation
necesitaLentes
boolean
Glasses requirement
observacionesMedicas
string
Medical observations
fechaActualizacion
string
Last update timestamp

Example Request

curl -X GET http://localhost:3000/salud/beneficiario/1 \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Example Response

{
  "id": 1,
  "beneficiarioId": 1,
  "esAptoFisico": true,
  "padecEnfermedad": false,
  "nombreEnfermedad": null,
  "consumeSustancias": false,
  "tipoSustancias": null,
  "afiliadoServicioSalud": "IMSS",
  "necesitaLentes": false,
  "observacionesMedicas": null,
  "fechaActualizacion": "2026-03-05T10:30:00.000Z"
}

Error Responses

Not Found

{
  "statusCode": 404,
  "message": "Health profile not found for this beneficiario"
}
This endpoint is useful when you know the beneficiario ID and need to quickly retrieve their health information without searching through all health profiles.
To update the health profile for a specific beneficiario, use the Update Salud by Beneficiario endpoint.

Build docs developers (and LLMs) love