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.
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.