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

<encounterDiagnoses*></encounterDiagnoses> to specify a 'diagnosesSets' attribute

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Accepted
    • Priority: Must
    • Resolution: Fixed
    • Affects Version/s: Reference Application 2.9.0
    • Component/s: Core Apps
    • Labels:
      None
    • Complexity:
      M

      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.

      The use of HFE tags <encounterDiagnoses> and <encounterDiagnosesByObs> assumes the user wants to choose diagnoses defined by the sets in the superset specified by the above mentioned GP. This may most often include irrelevant diagnoses for the HFE usage.

      2. Description

      The <encounterDiagnoses*/> tags should allow to specify the super set of diagnoses such that diagnoses relevant to the form are fetched for usage.

      The tags should provide a way to specify the diagnosis sets in the form of a comma separated list if more than one set, something along the line below is ok:

      <encounterDiagnoses diagnosisSets="160170AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA,d7f80231-48ad-4585-aeb6-44dfb70d7566"/>
      
      3. Dev Notes

      The diagnoses super set that is used to fetch the diagnosis sets is determined by the EMR API from a global property.

      4. Proposed Solution

      Create a new attribute diagnosisSets for the EncounterDiagnosesElement and EncounterDiagnosesByObsElement that will be passed into the encounterDiagnoses.gsp through its config and attached to the <input id="diagnosis-search"...../> element. This would then look like.

      <input id="diagnosis-search" ........ diagnosisSets="${config.diagnosisSets}"/>
      

      Our JavaScript routines in scripts/diagnoses/diagnoses-angular.js will pick up the value of this input attribute (attr.diagnosisesets) and use it when fetching diagnoses during the XHR/fetch.

      For backwards compatibility, if the diagnosisSets attribute doesn't exist or is empty then the diagnoses super set defined by the EmrApiConstants.GP_DIAGNOSIS_SET_OF_SETS global property will be used.

      5. Acceptance Criteria

      [TBC]

        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:
                Resolved: