@@ -229,7 +229,7 @@ def __init__(self, name=None, resourcefilepath=None):
229
229
'rr_preterm_labour_multiple_pregnancy' : Parameter (
230
230
Types .LIST , 'relative risk of early labour onset in women pregnant with twins' ),
231
231
232
- # ANTENATAL STILLBIRTH
232
+ # ANTENATAL STILLBIRTH...
233
233
'prob_still_birth_per_month' : Parameter (
234
234
Types .LIST , 'underlying risk of stillbirth per month without the impact of risk factors' ),
235
235
'rr_still_birth_ga_41' : Parameter (
@@ -381,21 +381,21 @@ def __init__(self, name=None, resourcefilepath=None):
381
381
}
382
382
383
383
PROPERTIES = {
384
- 'ps_gestational_age_in_weeks' : Property (Types .REAL , 'current gestational age, in weeks, of a womans '
384
+ 'ps_gestational_age_in_weeks' : Property (Types .REAL , 'current gestational age, in weeks, of a woman '
385
385
'pregnancy' ),
386
386
'ps_date_of_anc1' : Property (Types .DATE , 'Date first ANC visit is scheduled for' ),
387
- 'ps_ectopic_pregnancy' : Property (Types .CATEGORICAL , 'Whether a womans is experiencing ectopic pregnancy and'
387
+ 'ps_ectopic_pregnancy' : Property (Types .CATEGORICAL , 'Whether a woman is experiencing ectopic pregnancy and'
388
388
' its current state' ,
389
389
categories = ['none' , 'not_ruptured' , 'ruptured' ]),
390
- 'ps_multiple_pregnancy' : Property (Types .BOOL , 'Whether a womans is pregnant with multiple fetuses' ),
391
- 'ps_placenta_praevia' : Property (Types .BOOL , 'Whether a womans pregnancy will be complicated by placenta'
390
+ 'ps_multiple_pregnancy' : Property (Types .BOOL , 'Whether a woman is pregnant with multiple fetuses' ),
391
+ 'ps_placenta_praevia' : Property (Types .BOOL , 'Whether a woman pregnancy will be complicated by placenta'
392
392
'praevia' ),
393
- 'ps_syphilis' : Property (Types .BOOL , 'Whether a womans has syphilis during pregnancy' ),
393
+ 'ps_syphilis' : Property (Types .BOOL , 'Whether a woman has syphilis during pregnancy' ),
394
394
'ps_anaemia_in_pregnancy' : Property (Types .CATEGORICAL , 'Whether a woman has anaemia in pregnancy and its '
395
395
'severity' ,
396
396
categories = ['none' , 'mild' , 'moderate' , 'severe' ]),
397
397
398
- 'ps_anc4' : Property (Types .BOOL , 'Whether this womans is predicted to attend 4 or more antenatal care visits '
398
+ 'ps_anc4' : Property (Types .BOOL , 'Whether this woman is predicted to attend 4 or more antenatal care visits '
399
399
'during her pregnancy' ),
400
400
'ps_abortion_complications' : Property (Types .INT , 'Bitset column holding types of abortion complication' ),
401
401
'ps_prev_spont_abortion' : Property (Types .BOOL , 'Whether this woman has had any previous pregnancies end in '
@@ -413,13 +413,13 @@ def __init__(self, name=None, resourcefilepath=None):
413
413
'ps_prev_gest_diab' : Property (Types .BOOL , 'whether this woman has ever suffered from gestational diabetes '
414
414
'during a previous pregnancy' ),
415
415
'ps_placental_abruption' : Property (Types .BOOL , 'Whether this woman is experiencing placental abruption' ),
416
- 'ps_antepartum_haemorrhage' : Property (Types .CATEGORICAL , 'severity of this womans antepartum haemorrhage' ,
416
+ 'ps_antepartum_haemorrhage' : Property (Types .CATEGORICAL , 'severity of this woman antepartum haemorrhage' ,
417
417
categories = ['none' , 'mild_moderate' , 'severe' ]),
418
418
'ps_premature_rupture_of_membranes' : Property (Types .BOOL , 'whether this woman has experience rupture of '
419
419
'membranes before the onset of labour. If this is '
420
420
'<37 weeks from gestation the woman has preterm '
421
421
'premature rupture of membranes' ),
422
- 'ps_chorioamnionitis' : Property (Types .BOOL , 'Whether a womans is experiencing chorioamnionitis' ),
422
+ 'ps_chorioamnionitis' : Property (Types .BOOL , 'Whether a woman is experiencing chorioamnionitis' ),
423
423
'ps_emergency_event' : Property (Types .BOOL , 'signifies a woman in undergoing an acute emergency event in her '
424
424
'pregnancy- used to consolidated care seeking in the instance of '
425
425
'multiple complications' )
@@ -541,7 +541,7 @@ def initialise_simulation(self, sim):
541
541
'ectopic_pregnancy_death' : LinearModel .custom (pregnancy_supervisor_lm .ectopic_pregnancy_death ,
542
542
parameters = params ),
543
543
544
- # This equation determines the monthly probability of a women experiencing a miscarriage prior to 28 weeks
544
+ # This equation determines the monthly probability of a woman experiencing a miscarriage prior to 28 weeks
545
545
# gestation
546
546
'spontaneous_abortion' : LinearModel .custom (pregnancy_supervisor_lm .spontaneous_abortion , parameters = params ),
547
547
@@ -556,7 +556,7 @@ def initialise_simulation(self, sim):
556
556
# This equation determines the monthly probability of a woman determining anaemia during her pregnancy
557
557
'maternal_anaemia' : LinearModel .custom (pregnancy_supervisor_lm .maternal_anaemia , module = self ),
558
558
559
- # This equation determines the monthly probability of a women going into labour before reaching term
559
+ # This equation determines the monthly probability of a woman going into labour before reaching term
560
560
# gestation (i.e. 37 weeks or more)
561
561
'early_onset_labour' : LinearModel .custom (pregnancy_supervisor_lm .preterm_labour , module = self ),
562
562
@@ -568,20 +568,20 @@ def initialise_simulation(self, sim):
568
568
# pregnancy which is a strong predictor of antenatal bleeding
569
569
'placental_abruption' : LinearModel .custom (pregnancy_supervisor_lm .placental_abruption , parameters = params ),
570
570
571
- # This equation determines the monthly probability of a women developing antepartum haemorrhage. Haemorrhage
571
+ # This equation determines the monthly probability of a woman developing antepartum haemorrhage. Haemorrhage
572
572
# may only occur in the presence of either praevia or abruption
573
573
'antepartum_haem' : LinearModel .custom (pregnancy_supervisor_lm .antepartum_haem , parameters = params ),
574
574
575
- # This equation determines the monthly probability of a women developing gestational diabetes
575
+ # This equation determines the monthly probability of a woman developing gestational diabetes
576
576
'gest_diab' : LinearModel .custom (pregnancy_supervisor_lm .gest_diab , parameters = params ),
577
577
578
- # This equation determines the monthly probability of a women developing gestational hypertension
578
+ # This equation determines the monthly probability of a woman developing gestational hypertension
579
579
'gest_htn' : LinearModel .custom (pregnancy_supervisor_lm .gest_htn , parameters = params ),
580
580
581
- # This equation determines the monthly probability of a women developing mild pre-eclampsia
581
+ # This equation determines the monthly probability of a woman developing mild pre-eclampsia
582
582
'pre_eclampsia' : LinearModel .custom (pregnancy_supervisor_lm .pre_eclampsia , module = self ),
583
583
584
- # This equation determines the monthly probability of a women experiencing an antenatal stillbirth,
584
+ # This equation determines the monthly probability of a woman experiencing an antenatal stillbirth,
585
585
# pregnancy loss following 28 weeks gestation
586
586
'antenatal_stillbirth' : LinearModel .custom (pregnancy_supervisor_lm .antenatal_stillbirth , module = self ),
587
587
}
@@ -642,7 +642,7 @@ def further_on_birth_pregnancy_supervisor(self, mother_id):
642
642
643
643
if df .at [mother_id , 'is_alive' ]:
644
644
645
- # We reset all womans gestational age when they deliver as they are no longer pregnant
645
+ # We reset all women gestational age when they deliver as they are no longer pregnant
646
646
df .at [mother_id , 'ps_gestational_age_in_weeks' ] = 0
647
647
df .at [mother_id , 'ps_date_of_anc1' ] = pd .NaT
648
648
0 commit comments