Use this file to discover all available pages before exploring further.
The ADM_PROFESIONAL controller manages the registry of healthcare professionals — doctors, nurses, specialists, and other credentialed staff — whose identities are referenced throughout Gestión Clínica wherever an attending clinician must be recorded. Each professional record carries personal identification data, contact details, college registration numbers, and a foreign key to the ADM_ESPECIALIDAD (medical specialty) catalogue, allowing the system to filter and assign professionals by discipline. The controller currently exposes a GetAllActives endpoint that returns every professional marked as active, providing the source data for selection lists across the attendance and scheduling modules. All requests require a valid JWT bearer token.
The ADM_PROFESIONALController in the current codebase exposes a single action: GetAllActives. Additional CRUD actions (Add, Update, Delete, GetAllFilters) are defined in the shared business logic layer (ADM_PROFESIONALBL) but have not yet been surfaced as controller endpoints. Contact the backend team if you require write access to professional records via the API.
The global TokenValidationHandler validates the JWT signature, issuer, audience, and expiry on every request. A missing or invalid token results in HTTP 401 Unauthorized.
Combined surnames (paternal + maternal). Note: this field stores the full surname string, unlike the patient DTO which splits paternal and maternal surnames into separate fields.
Foreign key to the ADM_ESPECIALIDAD catalogue. This is the primary link between a professional and their medical discipline (e.g. Cardiología, Medicina General, Pediatría). It is used by the attendance module to filter eligible professionals when opening a new attendance record of a given specialty type.
College registration number (CMP for physicians — Colegio Médico del Perú; CEP for nurses — Colegio de Enfermeros del Perú; etc.). This is a mandatory credential for practising healthcare professionals in Peru.
Each professional record carries a single id_especialidad FK that links to the ADM_ESPECIALIDAD table. This one-to-one relationship means a professional is registered under their primary specialty. In the attendance workflow, when a new ADM_ATENCION record is created, id_profesional is set on the attendance; the specialty is then resolved from the professional record for reporting and filtering purposes.
If your clinic employs professionals with dual specialties (e.g. a physician who practices both General Medicine and Cardiology), the recommended approach is to create two separate professional entries — one per specialty — sharing the same c_numero_documento but with different id_especialidad values. Consult your system administrator before doing this, as it affects billing reports that aggregate by professional.
Returns all professional records with f_estado = 1 (active). This is the primary data-source for professional selection drop-downs in the attendance registration UI and scheduling module. No request body is required.
The endpoint returns all active professionals in a single response with no pagination. In clinics with large professional rosters, consider caching this list on the client side and refreshing periodically rather than calling it on every form load.
When creating or updating an ADM_ATENCION record, set the id_profesional field to the value returned by GetAllActives. The attendance record stores only the FK; the resolved profesional name string is computed by the stored procedure and returned in query responses such as GetAtencionAllFilters and GetAllPacienteAtencionFilters.
# 1. Fetch all active professionalscurl -X POST https://your-api-host/api/ADM_PROFESIONAL/GetAllActives \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{}'# 2. Use id_profesional from the response when registering an attendancecurl -X POST https://your-api-host/api/ADM_ATENCION/Add \ -H "Authorization: Bearer <token>" \ -H "Content-Type: application/json" \ -d '{ "id_paciente": 1042, "id_profesional": 7, "id_tipo_atencion": 1, "d_fecha_ingreso": "2024-11-20T00:00:00", "c_hora_ingreso": "14:30", "f_estado": 1, "UsuarioCreacion": "jperez" }'