diff --git a/frontend/src/pages/PatientManager/NewPatientForm.tsx b/frontend/src/pages/PatientManager/NewPatientForm.tsx index 7653a94c..774ebcb3 100644 --- a/frontend/src/pages/PatientManager/NewPatientForm.tsx +++ b/frontend/src/pages/PatientManager/NewPatientForm.tsx @@ -32,6 +32,7 @@ interface PatientInfoInterface { weightGainConcern: boolean; reproductive: boolean; riskPregnancy: boolean; + anyPregnancy: boolean; } // TODO: refactor with Formik @@ -145,6 +146,7 @@ const NewPatientForm = ({ weightGainConcern: newPatientInfo.weight_gain == "Yes", reproductive: newPatientInfo.Reproductive == "Yes", riskPregnancy: newPatientInfo.risk_pregnancy == "Yes", + anyPregnancy: newPatientInfo.any_pregnancy == "Yes", }; setIsLoading(true); // Start loading @@ -263,6 +265,7 @@ const NewPatientForm = ({ blood_pressure: "No", Reproductive: "No", risk_pregnancy: "No", + any_pregnancy: "No", })); }; diff --git a/frontend/src/pages/PatientManager/PatientManager.tsx b/frontend/src/pages/PatientManager/PatientManager.tsx index 2cb8ede3..4554ab71 100644 --- a/frontend/src/pages/PatientManager/PatientManager.tsx +++ b/frontend/src/pages/PatientManager/PatientManager.tsx @@ -29,12 +29,12 @@ const PatientManager = () => { weight_gain: "", Reproductive: "", risk_pregnancy: "", + any_pregnancy: "", PossibleMedications: { first: [], second: [], third: [], }, - any_pregnancy: "", }); const handlePatientDeleted = (deletedId: string) => {