I am building an electronic birth registry. I have created an indicator to calculate Expected Date of Delivery based on Last Known Menstrual Period + 39 weeks (273 days). I’d like to display the value of that indicator (a date in the future) somewhere so that when a nurse is using the Capture app, she can see the Expected Delivery Date as soon as the LMP has been entered.
Is what I am trying to do possible and is an indicator the best way to do it?
Hey there @swoodworth !
To calculate and display a date, you can use program rules.
The expression that would produce an estimate of the due date would look like this: d2:addDays( #{lmpDate}, 273 )
This expression produces a date that is 273 days after the date stored in the #{lmpDate} variable.
Hi @Markus, thank you so much. Shortly after I posted the question, I found that searching for “menstrual” at the following link: Programs - DHIS2 Documentation returns an asnwer esseintually the same as yours. I will give it a try.