Add_edit + Code Feature

medfetch wrote on Wednesday, March 09, 2016:

I like to get comments/review on a small update to the file add_edit_issue.php
The change:

When the user adds a new issue by clicking on an option in the picklist, if the option had a code associated with it in the DB, the code is also added to the form field “form_diagnosis” (why it is not called code or something similar I have no idea).

If the item was saved by the user without a code, the work-flow is unchanged from the end-user’s perspective. The Code field (form_diagnosis) remains blank.

sunsetsystems wrote on Wednesday, March 09, 2016:

Looks reasonable to me. Some documentation in the wiki about what the “Code(s)” column in the list editor is used for would be good.

Rod
http://www.sunsetsystems.com/

bradymiller wrote on Friday, March 11, 2016:

Hi,

The documentation for the Code(s) in the list editor is admittedly sparse and buried here:
http://www.open-emr.org/wiki/index.php/Code_Types#Configure.2FAdd_Code_Types
(the Clinical Term setting)

Note it is actually only supposed to be set for SNOMED. However, when SNOMED isn’t turned on it, then there is a bug in the selector popup that allows adding all the code types. After seeing Ray’s use, it makes sense to actually turn this on for all the code types by default, since the lists can pretty much represent anything.

As an aside, this feature was initially added to support the SNOMED terms for the smoking statuses.

-brady
OpenEMR

bradymiller wrote on Saturday, March 12, 2016:

Ray’s above code was just added to the codebase. Thank you for the contribution!
-brady
OpenEMR