From 03c5875ce61da2ab6db1a3b0eb5f7c8291f053aa Mon Sep 17 00:00:00 2001 From: Sergio Nicolas Lavaise Date: Thu, 16 Apr 2026 01:51:28 -0300 Subject: [PATCH] =?UTF-8?q?Fix:=20corregir=20cuenta=20de=20par=C3=A1metros?= =?UTF-8?q?=20en=20INSERT=20cultivos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/server.js | 4 ++-- src/sections/HistoriaClinica.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/server.js b/server/server.js index ea616de..5a4e125 100644 --- a/server/server.js +++ b/server/server.js @@ -269,9 +269,9 @@ app.put('/api/state', (req, res) => { } if (state.cultivos?.length) { - const stmt = db.prepare('INSERT INTO cultivos (id, pacienteId, internacionId, fechaToma, protocolo, tipoMuestra, observaciones, estado, fechaResultado, germen, sensible, resistente) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'); + const stmt = db.prepare('INSERT INTO cultivos (id, pacienteId, internacionId, fechaToma, protocolo, tipoMuestra, observaciones, estado, fechaResultado, germen, sensible, resistente) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'); for (const c of state.cultivos) { - stmt.run(c.id, c.pacienteId, c.internacionId, c.fechaToma, c.protocolo, c.tipoMuestra, c.observaciones, c.estado, c.fechaResultado, c.germen, c.sensible, c.resistente); + stmt.run(c.id, c.pacienteId, c.internacionId || null, c.fechaToma || null, c.protocolo || null, c.tipoMuestra || null, c.observaciones || null, c.estado || null, c.fechaResultado || null, c.germen || null, c.sensible || null, c.resistente || null); } } diff --git a/src/sections/HistoriaClinica.tsx b/src/sections/HistoriaClinica.tsx index e8287ea..ee4ba0c 100644 --- a/src/sections/HistoriaClinica.tsx +++ b/src/sections/HistoriaClinica.tsx @@ -1462,7 +1462,7 @@ function SeccionAcidosBase({ ab, patientId, add, update, del }: {

BE

{a.be}

SatO2

{a.sato2}%

{a.lactato &&

Lactato

{a.lactato}

} - {a.fio2 &&

FiO2

{a.fio2}%

} + {a.fio2 &&

FiO2

{a.fio2}

} {a.interpretacion &&

Interpretación: {a.interpretacion}

}