← Back to team overview

dhis2-devs team mailing list archive

DateTime calculation for time in minutes between Tracker Capture stages

 

Good morning everyone, and greetings from Boston, MA, USA.

I have a question about the use of the DateTime value type in version 2.28.

Is there documentation yet about the recommended way to calculate some of the following calculations in the Tracker Capture module?


*       Time (in minutes) between two DateTime values? For an event with multiple stages, we are capturing in Stage 1, the Date/Time of arrival in the Emergency Department. In Stage 2, the Date/Time of an emergency intervention procedure.

*       Median Time (in minutes) between these two stages, calculated for each facility and also per country.

Please share any advice on the best direction for calculating these time differences, using enrollment program indicators if possible.
For testing purposes, I have created sample data elements in the Demo Server, and entered sample data<https://play.dhis2.org/2.28/dhis-web-event-capture/index.html#/?ou=DiszpKrYNg8&event=zwD4fd9Iz4f> in the Event Capture module.
[cid:image001.jpg@01D3A392.87FD1820]

Please note, my test data is in Event capture, but my question relates to Tracker capture. Unfortunately I was unable to register a person into my a test program with 2 stages in the demo server.


Thank you!

Mike Johnson, MSc | MEQ Manager
Monitoring, Evaluation & Quality Improvement | Partners In Health
Email: mjohnson@xxxxxxx<mailto:mjohnson@xxxxxxx>
Mobile: +1 857-206-5246
Submit an MEQ data request<https://partnersinhealth.sharepoint.com/sites/meq/Lists/MEQ%20Request%20Form/NewForm2.aspx>

JPEG image


Follow ups