File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
frontend/src/pages/PatientManager Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ interface PatientInfoInterface {
3232 weightGainConcern : boolean ;
3333 reproductive : boolean ;
3434 riskPregnancy : boolean ;
35+ anyPregnancy : boolean ;
3536}
3637
3738// TODO: refactor with Formik
@@ -145,6 +146,7 @@ const NewPatientForm = ({
145146 weightGainConcern : newPatientInfo . weight_gain == "Yes" ,
146147 reproductive : newPatientInfo . Reproductive == "Yes" ,
147148 riskPregnancy : newPatientInfo . risk_pregnancy == "Yes" ,
149+ anyPregnancy : newPatientInfo . any_pregnancy == "Yes" ,
148150 } ;
149151
150152 setIsLoading ( true ) ; // Start loading
@@ -263,6 +265,7 @@ const NewPatientForm = ({
263265 blood_pressure : "No" ,
264266 Reproductive : "No" ,
265267 risk_pregnancy : "No" ,
268+ any_pregnancy : "No" ,
266269 } ) ) ;
267270 } ;
268271
Original file line number Diff line number Diff line change @@ -29,12 +29,12 @@ const PatientManager = () => {
2929 weight_gain : "" ,
3030 Reproductive : "" ,
3131 risk_pregnancy : "" ,
32+ any_pregnancy : "" ,
3233 PossibleMedications : {
3334 first : [ ] ,
3435 second : [ ] ,
3536 third : [ ] ,
3637 } ,
37- any_pregnancy : "" ,
3838 } ) ;
3939
4040 const handlePatientDeleted = ( deletedId : string ) => {
You can’t perform that action at this time.
0 commit comments