-
Bug/Issue
-
Resolution: Resolved
-
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
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? --