Uploaded image for project: 'Reference Application'
  1. Reference Application
  2. RA-1598

<encounterDiagnoses*/> to specify a preferred diagnoses coding system

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Waiting for Test
    • Priority: Should
    • Resolution: Unresolved
    • Affects Version/s: Reference Application 2.9.0
    • Component/s: Core Apps
    • Labels:
      None
    • Complexity:
      Undetermined

      Description

      1. Background

      The diagnoses pool that is known and used by the Ref App (and in particular by EMR API) is controlled by two GPs: EmrApiConstants.GP_DIAGNOSIS_SET_OF_SETS and EmrApiConstants.EMR_CONCEPT_SOURCES_FOR_DIAGNOSIS_SEARCH.

      On the other hand, when using HFE tags <encounterDiagnoses> and <encounterDiagnosesByObs>, there is an hardcoded "safeguard" that highlights for the user the fact that some of the diagnoses that are to choose from do not have an ICD-10-WHO code. Example:

      This underscores that by default ICD-10-WHO is the preferred coding system, since diagnoses that are not ICD-10-WHO coded are highlighted to be spotted (and possibly preferably avoided) by the user.

      2. Description

      The <encounterDiagnoses*/> tags should allow to specify the preferred coding system so that diagnoses that 1) are available but 2) are not coded in the preferred coding system are highlighted as such.

      The tags should provide a way to specify the preferred coding system, something like this would be useful:

      <encounterDiagnoses preferredCodingSource="ICPC2"/>
      
      3. Dev Notes

      The concept source that is used to filter the diagnosis codes is hardcoded as being "ICD-10-WHO", see here.

      4. Proposed Solution

      Create a new attribute preferredCodingSource for the EncounterDiagnosesElement and EncounterDiagnosesByObsElement that will add an attribute to the field identified by #diagnosis-search in the encounterDiagnoses.gsp upon HTML substitution, eg.:

      <input id="diagnosis-search" preferredCodingSource="ICPC2" . . . ./>
      

      Our JavaScript routines in scripts/diagnoses/diagnoses.js will pick up the value of this input field by locating it through its ID and use it when filtering the diagnosis codes by source.

      For backwards compatibility, if the conceptSource attribute doesn't exist or is empty then ICD-10-WHO will remain the default preferred coding source to filter with.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ruhanga Nathan Ruhanga
              Reporter:
              mksd Dimitri R
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: