Prep work: Pull the latest version of the API. After you run the API, migrations will be ran to create some new tables. Then, insert some test data into the DrugCodesLookup. The test data should include drugs in these 3 groups:
Popular prescription medications (IsPopular = true and IsOverTheCounter = false)
Over the counter medications (IsOverTheCounter = true and IsPopular = true)
And some that are neither popular nor OTC.
DrugCodesLookup is a reference table for the list of checkboxes in the A4 form. So, create a participation, visit, and go to the A4. There you should be able to:
[x] View the test medications you created from the first two groupings: Popular and OTC
[x] Check any medication and save and the data persists
[x] Uncheck any medication and save and the data persists
[x] Use the custom medication search to add a medication that is not popular
[x] Uncheck the custom medication and save and the data persists. In this scenario the checkbox remains, but is unchecked (this is for the audit trail of when and who modified the data)
Fixes #27
Prep work: Pull the latest version of the API. After you run the API, migrations will be ran to create some new tables. Then, insert some test data into the DrugCodesLookup. The test data should include drugs in these 3 groups:
IsPopular
= true andIsOverTheCounter
= false)IsOverTheCounter
= true andIsPopular
= true)DrugCodesLookup is a reference table for the list of checkboxes in the A4 form. So, create a participation, visit, and go to the A4. There you should be able to: