Closed matiasgarcia91 closed 5 years ago
@tokland This is ready for review.
Two things I would like you to take a special look into:
I added an attribute
to the dataElements
to specify if their inputs should be OptionList
(comboxes) or regular TextFields
. This could also be done checking for the existence of optionSets
within the dataElements, but there could be cases when optionsSets are defined but TextFields
are preferred.
The call for fetching the data might have ended up too nested and could be split into two (program-id
-> get programStageDataElements
and a reference to the dataElementGroups
and then a second call to get all dataElementGroups
(Sections) with their respective dataElements
).
:pushpin: References
:tophat: What is the goal?
Create script to generate custom forms for Hepatitis Policy Uptake
:memo: Implementation
Script creates a custom form for event capture composed of: 3 sections defined by three dataElementGroups with an
order
attribute for the display order. Also, dataElementGroups have a second attribute to specify if fields should betextFields
or comboBoxes (DHISoptionList
).🖌 To-do:
Event completed
div using css.event date -> Reporting Date
) (Waiting on comments from WHO):art: Screenshots
:boom: How can it be tested?
cd
into HEP-event-capture folder, runyarn install
and follow README.:floppy_disk: Requires DB migration?