Function to assist coding of medical issues

epsdky wrote on Friday, September 25, 2015:

Hello Brady and community,

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”

Regards,

epsdky.

bradymiller wrote on Sunday, September 27, 2015:

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

arnabnaha wrote on Sunday, September 27, 2015:

Thanks epsdky for sharing this great feature…and thank you Brady for code review. I have made the changes you asked for - Changes as per Brady's comments for epsdky issue changes mod · arnabnaha/openemr@a6cc135 · GitHub

epsdky wrote on Sunday, September 27, 2015:

Hello Brady,

Thanks! Here is the update with your suggestions (slightly different to what Arnab ha provided)

Regards,

epsdky.

epsdky wrote on Sunday, September 27, 2015:

Hello Arnab,

You’re welcome!

Regards,

epsdky.

bradymiller wrote on Monday, September 28, 2015:

Hi epsdky and Arnab,

I just committed your code to the codebase. Thanks for the contribution!

-brady

bradymiller wrote on Monday, September 28, 2015:

Hi,

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.

-brady
OpenEMR

epsdky wrote on Monday, September 28, 2015:

Hello Brady,

(You’re welcome!)

I am sending you an email about the project you are proposing.

Regards,

epsdkiy.