iaso
iaso copied to clipboard
IA-2841 mapping select multiple to boolean
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)
-
update the mapping screen to display the coverage and options below.
-
the backend for storing has remain the same (quite generic)
-
update the exporter to handle that
How to test
- 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
-
- find the "Community Verification Satisfaction form"
- find a submission
- export it
- 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
-
-
Print screen / video
Upload here print screens or videos showing the changes
Notes
This won't work if the choice name contains a whitespace.