EyeSeeTea / WHO-custom-forms

Custom forms developed for WHO
GNU General Public License v3.0
0 stars 0 forks source link

Show two tabs for subnational #47

Closed xurxodev closed 3 years ago

xurxodev commented 3 years ago

:pushpin: References

https://app.clickup.com/t/buyh6f

:memo: Implementation

Subnational

:art: Screenshots

:fire: Is there anything the reviewer should know to test it?

Metadata changes

Remember to assign orgunits for subnational data sets, if a subnational data set is not assigned to any org unit the tab will be hidden

Data Store

"subnationalDataSet":  "SAV16xEdCZW"

add two new props subnationalStockDataDataSet and subnationalEpidemiologicalDataDataSet

  "subnationalStockDataDataSet": {
    "id": "SAV16xEdCZW",
    "name": "Subnational Stock Data"
  },
  "subnationalEpidemiologicalDataDataSet": {
    "id": "WHPEpoVDFFv",
    "name": "Subnational Epidemiological Data"
  }

To generate the custom form

cd /HEP-data-entry
yarn build
node lib/cli.js --url='http://user:pwd!@dhisUrl' --dataset-id='XBgvNrxpcDC' --module='snakebite'

Important: the command uploads all data set to the server. Important: Sometimes to generate the custom form, age category options are duplicated in data elements. I think this is an API bug.

:bookmark_tabs: Others