[x] Refactor Custom Form Generator (create data layer with repositories and builders by module)
[x] Create metadata for antivenom products
[x] Implement antivenom products section
[x] Rename input ids to change antivenom product
[x] Remove previous data values to change product
[x] Remove previous data values to clear selected product
[x] Add product
[x] Remove product
[x] Add new antivenom product table
[x] Remove new antivenom product table
[x] Avoid selected the same product twice
:art: Screenshots
: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.zipsnake-bite.json.zipimportant: 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.
:pushpin: References
https://app.clickup.com/t/buyh6f
:memo: Implementation
:art: Screenshots
: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:
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