fixed a bug where obstetric history was not printing automatically