← Back to team overview

dhis2-users team mailing list archive

Error in documentation - TEI JSON syntax

 

Hi Devs,
I am trying to generate a json output file for transferring data via the
api to a dhis instance. I have tried using the guide on
http://dhis2.github.io/dhis2-docs/2.24/en/developer/html/dhis2_developer_manual_full.html#d7439e12065
 found that the syntax for  "Create and enroll tracked entity instances" is
wrong i.e. it reads dateOfEnrollment and dateOfIncident.  These should
read enrollmentDate
and incidentDate for the attached json snippet to work. Also IS it possible
to do multiple TEI's and enrollments in the same payload and how would the
syntax look like, since the attached snippet is for one  TEI.
Thanks
David

Attachment: error in fieldname tracker api documentation.PNG
Description: PNG image