Uploaded image for project: 'CYPRESS Issue Tracker'
  1. CYPRESS Issue Tracker
  2. CYPRESS-2034

Each load of /records/(some patient) displays new data in "Patient IDs"

XMLWordPrintable

    • Icon: Bug/Issue Bug/Issue
    • Resolution: Resolved
    • Icon: Moderate Moderate
    • 5.3

      When loading the patient view, the "Patient IDs" data is not static and does not match the data in the QRDA I files.

      To reproduce:

      • Navigate to a measure
      • Click on a patient
      • On the right, view the "Patient IDs" data
      • Note that it does not match the Id1ExtensionId in the QRDA I file
      • Reload the page
      • Patient IDs won't match the prior version, nor will they match the QRDA I file

       

      Glancing at the Ruby (and I might be mis-interpreting this), it appears that we're generating a new QDM patient based on the current patient.

      https://github.com/projectcypress/cypress/blob/master/app/views/records/show.html.erb#L108

      <%= QdmPatient.new(Cypress::ScoopAndFilter.new(sf_measures).scoop_and_filter(sf_patient), false).render.html_safe %>
      

      That new QDMPatient (https://github.com/projecttacoma/cqm-models/blob/master/app/models/qdm/patient.rb ) gets a new id.

      That new id is used internally to represent the MRN

      https://github.com/projecttacoma/cqm-reports/blob/dfe1db2cbeb9afca0a8a2a1daf672771f7db0553/lib/qrda-export/helper/patient_view_helper.rb#L37

       

      def mrn
          @patient.id.to_s
      end
      

       

      The view us rendering "mrn"
      https://github.com/projecttacoma/cqm-reports/blob/master/lib/html-export/qdm-patient/qdm_patient.mustache#L39

      <div class="div-table-head">{{{mrn}}} Cypress</div>

       

      Is there a way to not clone that patient and get a new ID so we can match up what we see on screen to the QRDA I that was emitted by Cypress?

      Is there a way to persist the MRN so we can match up what we see on screen to the QRDA I that was emitted by Cypress? -- 

       

       

            dczulada David Czulada
            ewhitleyHC Eric Whitley
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: