WIP: Add Patient's Primary Payer

Closed Hubbell, Harrison Taylor requested to merge hh_primary_payer into main

This commit adds the patient's "Preferred" payer the PatientDemographic.

We determine "Preferred" by taking the first used coverage record, according to Epic.Finance.PatientCoverageFileOrder. Records are ordered in descending order by FilingOrderID. Therefore, records where FilingOrderID == 1 are preferred and marked as "Primary."

Please provide any feedback by 6/19/2020

Edited by Hubbell, Harrison Taylor

Merge request reports