← Back to team overview

dhis2-devs team mailing list archive

dueDate in Tracker Capture

 

Hello Devs!

I am working on an app using the d2 APIs related to tracker capture. I have
successfully registered and enrolled the new trackedEntityInstances to the
selected orgUnit and Program.

Now what I want to do is add events, for which I have to POST a payload
containing dueDate for the event. My doubt is, how do I calculate due date
? The program stage model gives me info like 'minDaysFromStart',
'lastUpdated' but I do not see 'dueDate' anywhere. Is it a separately
calculated value ?

Should, dueDate = createdOn + minDaysFromStart ?

Regards,
Shivee

Follow ups