Skip to content

Commit

Permalink
removing pii from missing transmissions report (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
erubinst authored May 10, 2024
1 parent 747a56b commit d63231b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions script/queries/policies_missing_transmissions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
timestamp = Time.now.strftime('%Y%m%d%H%M')

CSV.open("policies_without_transmissions_#{timestamp}.csv","w") do |csv|
csv << ["Created At", "Enrollment Group ID", "Carrier", "Employer", "Subscriber Name", "Subscriber HBX ID"]
csv << ["Created At", "Enrollment Group ID", "Carrier", "Employer", "Subscriber HBX ID"]
pols_2015.each do |pol|
if !all_pol_ids.include?(pol.id)
if pol.subscriber.present? && !pol.canceled?
Expand All @@ -32,9 +32,8 @@
eg_id = pol.eg_id
carrier = pol.plan.carrier.abbrev
employer = pol.try(:employer).try(:name)
subscriber_name = pol.subscriber.person.full_name rescue ""
subscriber_hbx_id = pol.subscriber.m_id
csv << [created_at,eg_id,carrier,employer,subscriber_name,subscriber_hbx_id]
csv << [created_at,eg_id,carrier,employer,subscriber_hbx_id]
end
end
end
Expand Down

0 comments on commit d63231b

Please sign in to comment.