shihjay2 / nosh2

NOSH ChartingSystem is an electronic health record system designed exclusively for doctors and patients. This is a new mobile-friendly version that is now based off of the Laravel PHP framework and jQuery. NOSH has FHIR, Bluebutton, ICD-10, GoodRX API, RXNorm API, Phaxio, and UMA support.
Other
75 stars 52 forks source link

Selecting medications/diagnoses #69

Open shihjay2 opened 7 years ago

shihjay2 commented 7 years ago

Whenever somebody starts to type in a medication or diagnosis, a drop-down list should appear of all the matching options and when relevant, if you type in a medicine name, you are only presented with the actual dosing options which are available…as well as sig drop down list of options

shihjay2 commented 7 years ago

There is a field "Search RX" at the very top of the form (same for getting diagnoses called Search ICD for DX) that allows you to type in a few letters, press Enter and then you'll be presented with a dropdown of all the valid available medications and codes (RXNorm and ICD10). The RXNorm database is actually an API call (https://rxnav.nlm.nih.gov/RxNormAPIs.html#) and although it's quick enough, it's not quick enough to do an autosuggest in each field after months of testing. I had this with my first version of NOSH and it did create a lot of issues with speed and subsequent data errors as it couldn't keep up with the calls and cache of data from typing - it's a lot of data. The reason I switched to using RXNorm is that this database has normalized all the various different medication types and has an assigned identifier which is quite useful for FHIR and interoperability for use in different services (like GoodRX and others). The downside is that this database is very big and not feasible to run locally on each instance/machine.

So the solution that I had was to query and you'll see a dropdown list and when you click on that, it will autofill in all the subsequent/applicable fields for the medication/prescription without having the provider go through each one. You may notice on the demo that if you type in an empty field (like Medication), if there is a previous history of a mediation, it will autosuggest a medication only if it's been historically prescribed for any patient in the past in NOSH. Also for the sig field where you have a historical entry, it'll will autosuggest what you had similarly typed in the past. If you notice this is not working as I indicated, please let me know!