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}

}