EyeSeeTea / WHO-custom-forms

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

Feature/antivenom vials products #42

Closed xurxodev closed 3 years ago

xurxodev commented 3 years ago

:pushpin: References

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

:memo: Implementation

:art: Screenshots

screencapture-taris-sferadev-who-dev-dhis-web-dataentry-index-action-2021-01-20-11_18_46

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

for this PR it's necessary to edit the metadata creating the necessary data elements and categorycombinations who_vials_products_data_elements.json.zip snake-bite.json.zip important: we have 5 data elements for product fields but we have n category options by products, this package conatins only 3 category options to development, there is a task to create the rest of the category options. https://app.clickup.com/t/ck0mrv

for this PR it's necessary to edit the custom metadata key in the snake-bite namespace in the data store: customMetadata.json.zip

for this PR it's necessary to create an antivenomEntries key in the snake-bite namespace in the data store with the definition of the antivenom vials entries: antivenomEntries.json.zip

for this PR it's necessary to create an empty antivenomProducts key in the snake-bite namespace in the data store. In this key the created antivenom products will be stored. This is an example: antivenomProducts.json.zip

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