I have a form for which I would like to create the following functionality:
1. Be able to select a Medication (most recent) from a drop-down menu
2. Answer a series of question related to the selected Medication
3. Submit the answers and repeated Steps 1 and 2 for another Medication
I tried to attach the form but kept getting an HTTP error, so if you would like the form, just email me at [email protected]
I have sent you the edited files, but I will post the solution to each of the 3 needs you posted, in case anyone was wondering.
1. Be able to select a Medication (most recent) from a drop-down menu
Use the MEDS_AFTER("comma") Mel symbol to create a comma seperated list of all active medications, then insert it into a dropdown list by using the "Dynamic Choice List" checkbox
2. Answer a series of question related to the selected Medication
Checkbox lists with multiple options for each section needed recorded the answer for each question.
3. Submit the answers and repeated Steps 1 and 2 for another Medication
By pressing a button, a function took the data from each checkbox list and formatted the data into a readable form, and then saved it to an obs term. The function then cleared all of the previous answers (e.g. DOCUMENT.CHECK_BOX_1 = "") so the provider could enter another medication and answer the questions anew. if the button was clicked again, the Obsterms was appended to, so the 1rst medication was not overwritten e.g. OBSNOW("MTMASSESS",obsnow("MTMASSESS") + formattedvar )