Hello, I am developing a drug order module and trying to implement the auto-complete functionality when the user enters the name of the drug. i
e.g. When the user starts typing ‘Asp’, the form must automatically provide the option ‘Aspirin’
Given a Concept Set ID 162552 which stands for Reference Application Common Drug Allergens, I am trying to fetch all the Concepts (Allergens) in that set. Could you please suggest…
I have an example using HFE and using a concept class for the possible set of answers. That is what we have done once for a medication order form, producing such result:
Thank you! I am unable to get the text input field where I can enter some text (drug name) and neither am I able to see the list of Concepts…
Here is what I have given
where 162552 is the concept_id for common drug allergens
Thank you…I need more help with this…
At present I have the following form in my .gsp file
< form method=“post” >
< div class=“fields”>Drug name < /div >
< button class=“confirm right” id=“btn-place” name=“confirmDrug” type=“submit” onclick=“showIndividualOrderDetailsWindow()” >${ ui.message(“Next”) }< /button >
< /form >
Given that I do not see any concept mapping for ‘your_coded_question’ which should be something like ‘selected drug’, I am just attempting to fetch a list of dropdown options using < obs conceptId=“162552” /> within the above form. All I get is a blank rectangular box with no text input field or fetched data…Sorry if I am missing something obvious but I have not understood this right…
I have also included the dependencies for htmlformentry anf htmlwidgets modules
(Ignore the space immediately before/after the tags < > symbols…had to give that space to allow the code to be displayed here - doesn’t display otherwise)
I haven’t been following this thread, but one thing that seems to be an issue is that you say you’re writing a GSP file (so, a UI Framework view), but that you’re trying to use the <obs> tag (which is part of HTML Form Entry), and these aren’t the same technology, and I wouldn’t naturally expect them to work together.
The current thread was about making autocompletion work within HFE forms. If that is not what you are doing, I would suggest to open a new thread explaining what you are trying to achieve.