Fix: usar hora vacía al parsear, sobrescribir con hora seleccionada
This commit is contained in:
@@ -831,8 +831,7 @@ for (const linea of lineas) {
|
||||
console.log('AB:', { ph, pco2, po2, hco3, be, sato2 });
|
||||
|
||||
if (ph) {
|
||||
const hora = new Date().toTimeString().slice(0, 5);
|
||||
return { pacienteId: patientId, fecha, hora, ph, pco2: pco2 || 40, po2: po2 || 85, hco3: hco3 || 24, be: be || 0, sato2: sato2 || 97, lactato, fio2, interpretacion: '' };
|
||||
return { pacienteId: patientId, fecha, hora: '', ph, pco2: pco2 || 40, po2: po2 || 85, hco3: hco3 || 24, be: be || 0, sato2: sato2 || 97, lactato, fio2, interpretacion: '' };
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user