Here is a function that I have written following a request from Dr Arnab Naha who wanted a feature that makes it easy to reuse the codes associated with active medical issues by adding a list box to the “New Issue” window (add_edit_issue.php).
In this function, codes are gathered from active medical issues specific to the mode OpenEMR is currently operating in.
Only code types that are appropriate for a particular issue are displayed in that issue.
The filter for each issue type is constructed with elements from the appropriate code type sets in…
Admin > Lists > Code Types
i.e.
Medical Problem (medical_problem)
Diagnosis (diagnosis)
Drug (drug)
The relationship between Code sets and issue type are as follows (mirrors “Code Finder” window)…
Medical Problem - medical_problem
Allergies - diagnosis, drug
Medication - drug, diagnosis
Surgeries - diagnosis
Dental - diagnosis
All others - diagnosis
Codes are displayed in the “New Issue” window in a list box immediately above “Coding”
Hi,
Super cool feature and tests well. Placed a couple minor comments on github. Will plan to commit your next revision to the codebase.
-brady OpenEMR
The above feature also opens the door to another project that would allow better customization of the “Issue Types”. Instead of hard-coding which Coding categories each items used, we could instead have a “Coding” selector in Administration->Lists->Issue Types for each item. The selector would be a multi select that lists all the possible categories(diagnosis, procedure, clinical_term, medical_problem, drug). Can then use this selection in both the feature above and also when show the Codes popup in the add_edit_issue.php. This would then make things more flexible and also support customized “Issue Types” a lot better.
This project wouldn’t take to much coding. If anybody want to take it on, let me know. Otherwise, I’ll list it on the wiki for potential projects.