iaso icon indicating copy to clipboard operation
iaso copied to clipboard

IA-2841 mapping select multiple to boolean

Open mestachs opened this issue 1 year ago • 0 comments

If you don't think about adding calculate you can't export the submissions containing a multi select. To remove the need about thinking about that "upfront", we will allow to map multi select to boolean type data element.

TODO :

  • [ ] add tests for the export
  • [ ] preserve mapping of "multiple choices" when uploading a new version
  • implement this for other mappings
    • [ ] support multiple choices for event tracker (warn stages)
    • [ ] support multiple choices for aggregate (warn category combo option)

Related JIRA tickets : IA-2841

Self proofreading checklist

  • [ ] Did I use eslint and black formatters
  • [ ] Is my code clear enough and well documented
  • [ ] Are my typescript files well typed
  • [ ] New translations have been added or updated if new strings have been introduced in the frontend
  • [ ] My migrations file are included
  • [ ] Are there enough tests
  • [ ] Documentation has been included (for new feature)

Doc

Changes

  • udpate the seed command to show case that (xlsform with select_multiple, mapping for the boolean) image

  • update the mapping screen to display the coverage and options below. image

  • the backend for storing has remain the same (quite generic)

  • update the exporter to handle that

How to test

  1. launch the seed command (not it won't update the xlsform on an existing seeded account)
    • docker-compose run --rm iaso manage seed_test_data --mode=seed --dhis2version=2.39
  2. find the "Community Verification Satisfaction form"
  3. find a submission
  4. export it
  5. check the results in dhis2
    • take the "export id" on the instance, it's the eventId in the url : https://play.dhis2.org/2.39.4.1/dhis-web-capture/index.html#/viewEvent?viewEventId=aMulsxS3imr
    • image
    • image

Print screen / video

Upload here print screens or videos showing the changes

Notes

This won't work if the choice name contains a whitespace.

mestachs avatar Apr 19 '24 14:04 mestachs