diff --git a/src/Components/Patient/DailyRounds.tsx b/src/Components/Patient/DailyRounds.tsx index ec2f070aa20..1590fcacba2 100644 --- a/src/Components/Patient/DailyRounds.tsx +++ b/src/Components/Patient/DailyRounds.tsx @@ -287,7 +287,7 @@ export const DailyRounds = (props: any) => { data = { ...data, bp: - state.form.bp && state.form.bp.systolic && state.form.bp.diastolic + state.form.bp?.systolic && state.form.bp?.diastolic ? { systolic: Number(state.form.bp.systolic), diastolic: Number(state.form.bp.diastolic), @@ -295,13 +295,13 @@ export const DailyRounds = (props: any) => { meanArterialPressure(state.form.bp).toFixed(2) ), } - : undefined, - pulse: state.form.pulse, - resp: state.form.resp, - temperature: state.form.temperature, + : null, + pulse: state.form.pulse ?? null, + resp: state.form.resp ?? null, + temperature: state.form.temperature ?? null, rhythm: state.form.rhythm || 0, rhythm_detail: state.form.rhythm_detail, - ventilator_spo2: state.form.ventilator_spo2, + ventilator_spo2: state.form.ventilator_spo2 ?? null, consciousness_level: state.form.consciousness_level, }; }