[x] Metadata: category "Type" (with new category options: preventive, reactive -> with sharing metadata=r / data=rw)
[x] Metadata: categoryOptionGroup to list all the antigens (category options) which are type-selectable: Antigen type selectable / RVC_ANTIGEN_TYPE_SELECTABLE.
[x] Metadata: add category "campaign type" to categoryCombo "Data Element - Vaccine doses administered - Required" (antigen / doses / [New: type] / Age groups)
[x] Metadata: add category "campaign type" to all categoryCombos starting with "Antigen / Dose / Age group" (but also keep "Antigen / Dose / Age group" for population)
[x] UI step "Configure indicators": Show radio if the antigen is type-selectable.
[x] Custom form: add preventive or reactive in the tab name as a suffix or between brackets.
[x] Custom form: use reactive (default) or preventive cocId, but do not render the corresponding header.
To discuss
[x] Changes in Population? for now we don't need to disaggregate by type, so nothing to do.
[x] Can we use AOCs instead of COCs (so it's a catCombo of type attribute)? for now we say NO, weird data entry workflow.
[x] When using cocs. We add preventive/reactive to all the data elements in the tab? NO, only to doses administered.
:pushpin: References
:memo: Implementation
To discuss
Metadata
$ curl-msf 'http://localhost:8097/api/metadata.json?filter=code:in:[RVC_TYPE,RVC_REACTIVE,RVC_PREVENTIVE,RVC_ANTIGEN_TYPE_SELECTABLE,RVC_DE_NEEDLES_REQUIRED,RVC_DE_SYRINGES_REQUIRED,RVC_DE_DOSES_ADMINISTERED_REQUIRED,RVC_DE_DOSES_USED_REQUIRED]' | jq-clean > preventive-campaign-metadata.json
:art: Screenshots