Drug formularies in HFE form

4 views
Skip to first unread message

Sara Armson

unread,
Feb 25, 2015, 9:23:51 PM2/25/15
to implem...@openmrs.org
Hi Implementers,

The AMPATH Form Team is working on html forms in the HTML Form Entry module, and we need to include several drug formularies in the form.  

So far, we have...
<obs conceptId="123" labelText="Current medications?" answerConceptId="456" answerLabel="Drug1" style="checkbox"/>
...but Drug1 (concept_id=456) has 3 drug formularies (drug_ids=7, 8, 9)

How do we go about using just Drug1 formulary #8 as the answerConcept?

Also, we are on OpenMRS 1.9.7. Thank you!



Sara Armson

International Health Data Coordinator | Regenstrief Institute

Form & Concept Team | Ampath Informatics


Darius Jazayeri

unread,
Feb 26, 2015, 12:08:41 AM2/26/15
to implementers
Hi Sara,

As far as I know the only widget for choosing a drug as an obs value is an autocomplete that searches through all drugs:

<obs conceptId="1234" answerDrugs="true"/>
Renders as an autocomplete widget that searches the Drug table, and will save the selected value in obs.value_drug
 
<obs conceptId="1234" answerDrugs="true" displayTemplate="{{concept}} ({{doseStrength}} {{units}})"/>
Renders an an autocomplete widget, with items displayed using a custom handlebars template. (Default is "{{name}}".)


(A developer would be able to add a widget for choosing specific drugs.)

-Darius

--
THIS LIST IS MOVING to OpenMRS Talk effective 5 March 2015 at 19:00 UTC.
Visit https://talk.openmrs.org/c/implementing to join the conversation!
--
OpenMRS Implementers: https://groups.google.com/a/openmrs.org/forum/#!forum/implementers
Post: implem...@openmrs.org | Unsubscribe: implementers...@openmrs.org
Manage your OpenMRS subscriptions: http://om.rs/id

To unsubscribe from this group and stop receiving emails from it, send an email to implementers...@openmrs.org.

Andrew Kanter

unread,
Feb 26, 2015, 9:50:08 AM2/26/15
to implem...@openmrs.org
I like the idea of adding a flag which would allow a particular location to have certain drug concepts and/or drug formulations flagged as "on formulary" so that the widget could autofilter.

Andy
 
--------------------
Andrew S. Kanter, MD MPH FACMI

Asst. Prof. of Clinical Biomedical Informatics and Clinical Epidemiology
Columbia University
Email: andrew...@dbmi.columbia.edu
Mobile: +1 (646) 469-2421
Office: +1 (212) 305-4842
Skype: akanter-ippnw
Yahoo: andy_kanter
Reply all
Reply to author
Forward
0 new messages