Open kanikamedic opened 4 years ago
It appears that the Pregnancy report is not meant to show until 6 weeks after the most recent delivery: https://github.com/medic/medic/blob/319e133229a84e18807bffc318bfd1958f88e940/config/default/contact-summary-extras.js#L260
Can you verify that it appears after 6 weeks? You can change your computer clock accordingly to check. If it appears you can close the issue, otherwise let us know.
@abbyad I tried changing the date on my computer and am now able to see an option to submit a Delivery form but not a New Pregnancy for this patient.
I also looked at some other test patient's profiles for whom more than 6 weeks have passed since the date of delivery and observed the same error. Perhaps that's the result of a different contraint so I'm still sharing a screenshot here.
Thanks for the extra info @kanikamedic. I am assigning @nomulex to dig into this further.
While looking into this I found another issue. Pregnancy registration and delivery report both appearing in the action item.
Describe the bug I tried registering a new pregnancy for a patient who had delivered a month ago. The 'New Action' icon on her profile page gave me the option to report her death but a new pregnancy form was not listed.
To Reproduce Steps to reproduce the behavior:
Expected behavior I'm not sure if a constraint has been added on purpose but shouldn't I be able to report a new pregnancy for a woman who has already delivered a child in the past?
Screenshots![image](https://user-images.githubusercontent.com/37296453/67269052-8ea58600-f4d3-11e9-98ca-c9bdfb144585.png)
Environment