The Gestión Clínica system manages two distinct physical spaces within a healthcare facility: consultorios (consultation rooms), used for outpatient appointments where patients meet with a physician for evaluation or follow-up, and habitaciones (hospital rooms), used for inpatient care where patients are admitted and housed during a hospitalisation episode. Both catalogs are maintained under the administrative domain (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/ttpullima/RomsoftBackEnd2021_v2/llms.txt
Use this file to discover all available pages before exploring further.
ADM_) and are referenced throughout scheduling, admissions, and billing modules. The ADM_CONSULTORIO and ADM_HABITACION controllers each expose a GetAllActives endpoint to retrieve the currently active records from their respective tables. All endpoints require a valid Authorization bearer token.
Both controllers follow the API-wide
HTTP POST convention. No request body is needed for either GetAllActives call.Use Cases
| Module | Space type | Typical usage |
|---|---|---|
| Outpatient scheduling | ADM_CONSULTORIO | Assign a consultation room when booking an appointment for a doctor |
| Inpatient admissions | ADM_HABITACION | Assign a bed/room when admitting a patient to the ward |
| Occupancy reporting | Both | Generate a daily room-occupancy report across the facility |
| Billing | ADM_CONSULTORIO | Associate a specific consulting room with a charge item |
Data Transfer Objects
ADM_CONSULTORIODTO
Represents a single consultation room (outpatient).
Unique numeric surrogate key for the consultation room.
Short alphanumeric code for the room (e.g.,
"C-01", "CONS-A"). Used internally for quick identification.Full descriptive name of the consultation room (e.g.,
"Consultorio 1 – Medicina General", "Consultorio Pediatría").ADM_HABITACIONDTO
Represents a single hospital room (inpatient ward).
Unique numeric surrogate key for the hospital room.
Short alphanumeric code for the room (e.g.,
"H-101", "UCI-3").Full descriptive name of the room (e.g.,
"Habitación 101 – Piso 1", "Unidad de Cuidados Intensivos – Cama 3").ADM_CONSULTORIO Endpoints
POST /api/ADM_CONSULTORIO/GetAllActives
Returns the complete list of active outpatient consultation rooms registered in the facility. No request body is required. This list is consumed by appointment scheduling screens to present available rooms when booking a consultation.
Request
ADM_HABITACION Endpoints
POST /api/ADM_HABITACION/GetAllActives
Returns the complete list of active hospital rooms (inpatient rooms and beds) registered in the system. No request body is required. This list is used in the admissions module when assigning a room to a patient being hospitalised, as well as in inpatient census reports.
Request
Response Envelope
Both controllers return responses wrapped in the standardJsonResponse envelope:
| Field | Type | Description |
|---|---|---|
Success | boolean | true if the request completed without a server-side exception. |
Data | array / null | Array of ADM_CONSULTORIODTO or ADM_HABITACIONDTO objects on success. |
Message | string / null | Human-readable message, populated on warning or error states. |
Warning | boolean | true when a business-rule condition was triggered rather than a hard failure. |
Neither
ADM_CONSULTORIODTO nor ADM_HABITACIONDTO extends EntityAuditableDTO, so audit fields (FechaCreacion, UsuarioCreacion, etc.) are not included in these responses. Room management (create, update, deactivate) is handled by separate administrative screens and is not exposed through this API version.