stable, before a refactor
This commit is contained in:
+67
-67
@@ -83,30 +83,30 @@ def determine_network_logos(pl_plan_key)
|
||||
end
|
||||
end
|
||||
|
||||
benefit_descriptions = ["Primary Visit",
|
||||
"Specialist Visit",
|
||||
"Urgent Care",
|
||||
"INN–Ind Ded",
|
||||
"INN–Family Ded",
|
||||
"OON–Ind Ded",
|
||||
"OON–Family Ded",
|
||||
"Co-Insurance",
|
||||
"INN–Ind OOP",
|
||||
"INN–Family OOP",
|
||||
"OON–Ind OOP",
|
||||
"OON–Family OOP",
|
||||
"Emergency Room",
|
||||
"Preventive Care"]
|
||||
# benefit_descriptions = ["Primary Visit",
|
||||
# "Specialist Visit",
|
||||
# "Urgent Care",
|
||||
# "INN–Ind Ded",
|
||||
# "INN–Family Ded",
|
||||
# "OON–Ind Ded",
|
||||
# "OON–Family Ded",
|
||||
# "Co-Insurance",
|
||||
# "INN–Ind OOP",
|
||||
# "INN–Family OOP",
|
||||
# "OON–Ind OOP",
|
||||
# "OON–Family OOP",
|
||||
# "Emergency Room",
|
||||
# "Preventive Care"]
|
||||
|
||||
default = IdCardBenefitsTemplate.create(title: "BLANK")
|
||||
benefit_descriptions.each_with_index do |bene, i|
|
||||
IdCardBenefit.create(sequence: i + 1, benefit_desc: bene, id_card_benefits_template: default)
|
||||
end
|
||||
# default = IdCardBenefitsTemplate.create(title: "BLANK")
|
||||
# benefit_descriptions.each_with_index do |bene, i|
|
||||
# IdCardBenefit.create(sequence: i + 1, benefit_desc: bene, id_card_benefits_template: default)
|
||||
# end
|
||||
|
||||
temp_2 = IdCardBenefitsTemplate.create(title: "Jason's Template")
|
||||
(1..14).each do |seq|
|
||||
IdCardBenefit.create(sequence: seq, benefit: "#{seq} hit wonder", id_card_benefits_template: temp_2)
|
||||
end
|
||||
# temp_2 = IdCardBenefitsTemplate.create(title: "Jason's Template")
|
||||
# (1..14).each do |seq|
|
||||
# IdCardBenefit.create(sequence: seq, benefit: "#{seq} hit wonder", id_card_benefits_template: temp_2)
|
||||
# end
|
||||
|
||||
# temp_1 = IdCardBenefitsTemplate.create(title: "Rebekah's Template")
|
||||
# (1..14).each do |seq|
|
||||
@@ -130,7 +130,7 @@ end
|
||||
|
||||
|
||||
# Imports employers and members from VHCS
|
||||
sql_query = "SELECT PLPlanKey, PlanId, ShortDesc FROM PLPlanHeader WHERE ActiveInactive = 'Active' AND PLPlanKey = 61"
|
||||
sql_query = "SELECT PLPlanKey, PlanId, ShortDesc FROM PLPlanHeader WHERE ActiveInactive = 'Active' AND PLPlanKey = 65"
|
||||
plan_headers = VhcsRecord.connection.select_all(sql_query)
|
||||
|
||||
plan_headers.each do |ph|
|
||||
@@ -202,57 +202,57 @@ plan_headers.each do |ph|
|
||||
end
|
||||
end
|
||||
|
||||
Vhcs::HlidCardProvider.all.each do |vhcs|
|
||||
CardProvider.find_or_create_by(provider_code: vhcs.provider_code) do |cp|
|
||||
cp.provider_line_1 = vhcs.provider_line_1
|
||||
cp.provider_line_2 = vhcs.provider_line_2
|
||||
cp.provider_line_3 = vhcs.provider_line_3
|
||||
cp.provider_line_4 = vhcs.provider_line_4
|
||||
cp.provider_line_5 = vhcs.provider_line_5
|
||||
cp.provider_line_6 = vhcs.provider_line_6
|
||||
cp.provider_line_7 = vhcs.provider_line_7
|
||||
cp.provider_line_8 = vhcs.provider_line_8
|
||||
cp.provider_line_9 = vhcs.provider_line_9
|
||||
cp.provider_line_10 = vhcs.provider_line_10
|
||||
cp.provider_line_11 = vhcs.provider_line_11
|
||||
cp.provider_line_12 = vhcs.provider_line_12
|
||||
# Vhcs::HlidCardProvider.all.each do |vhcs|
|
||||
# CardProvider.find_or_create_by(provider_code: vhcs.provider_code) do |cp|
|
||||
# cp.provider_line_1 = vhcs.provider_line_1
|
||||
# cp.provider_line_2 = vhcs.provider_line_2
|
||||
# cp.provider_line_3 = vhcs.provider_line_3
|
||||
# cp.provider_line_4 = vhcs.provider_line_4
|
||||
# cp.provider_line_5 = vhcs.provider_line_5
|
||||
# cp.provider_line_6 = vhcs.provider_line_6
|
||||
# cp.provider_line_7 = vhcs.provider_line_7
|
||||
# cp.provider_line_8 = vhcs.provider_line_8
|
||||
# cp.provider_line_9 = vhcs.provider_line_9
|
||||
# cp.provider_line_10 = vhcs.provider_line_10
|
||||
# cp.provider_line_11 = vhcs.provider_line_11
|
||||
# cp.provider_line_12 = vhcs.provider_line_12
|
||||
|
||||
cp.claim_to_1 = vhcs.claim_to_1
|
||||
cp.claim_to_2 = vhcs.claim_to_2
|
||||
cp.claim_to_3 = vhcs.claim_to_3
|
||||
cp.claim_to_4 = vhcs.claim_to_4
|
||||
cp.claim_to_5 = vhcs.claim_to_5
|
||||
cp.claim_to_6 = vhcs.claim_to_6
|
||||
cp.claim_to_7 = vhcs.claim_to_7
|
||||
cp.claim_to_8 = vhcs.claim_to_8
|
||||
cp.claim_to_9 = vhcs.claim_to_9
|
||||
cp.claim_to_10 = vhcs.claim_to_10
|
||||
cp.claim_to_11 = vhcs.claim_to_11
|
||||
cp.claim_to_12 = vhcs.claim_to_12
|
||||
# cp.claim_to_1 = vhcs.claim_to_1
|
||||
# cp.claim_to_2 = vhcs.claim_to_2
|
||||
# cp.claim_to_3 = vhcs.claim_to_3
|
||||
# cp.claim_to_4 = vhcs.claim_to_4
|
||||
# cp.claim_to_5 = vhcs.claim_to_5
|
||||
# cp.claim_to_6 = vhcs.claim_to_6
|
||||
# cp.claim_to_7 = vhcs.claim_to_7
|
||||
# cp.claim_to_8 = vhcs.claim_to_8
|
||||
# cp.claim_to_9 = vhcs.claim_to_9
|
||||
# cp.claim_to_10 = vhcs.claim_to_10
|
||||
# cp.claim_to_11 = vhcs.claim_to_11
|
||||
# cp.claim_to_12 = vhcs.claim_to_12
|
||||
|
||||
cp.mail_to = vhcs.mail_to
|
||||
cp.mail_to_2 = vhcs.mail_to_2
|
||||
# cp.mail_to = vhcs.mail_to
|
||||
# cp.mail_to_2 = vhcs.mail_to_2
|
||||
|
||||
cp.contact_line_1 = vhcs.contact_line_1
|
||||
cp.contact_line_2 = vhcs.contact_line_2
|
||||
cp.contact_line_3 = vhcs.contact_line_3
|
||||
# cp.contact_line_1 = vhcs.contact_line_1
|
||||
# cp.contact_line_2 = vhcs.contact_line_2
|
||||
# cp.contact_line_3 = vhcs.contact_line_3
|
||||
|
||||
cp.group_number = vhcs.group_number
|
||||
cp.rx_group_id = vhcs.rx_group_id
|
||||
cp.rx_contact = vhcs.rx_contact
|
||||
# cp.group_number = vhcs.group_number
|
||||
# cp.rx_group_id = vhcs.rx_group_id
|
||||
# cp.rx_contact = vhcs.rx_contact
|
||||
|
||||
cp.provider_lookup_1 = vhcs.provider_lookup_1
|
||||
cp.provider_lookup_2 = vhcs.provider_lookup_2
|
||||
# cp.provider_lookup_1 = vhcs.provider_lookup_1
|
||||
# cp.provider_lookup_2 = vhcs.provider_lookup_2
|
||||
|
||||
cp.precert_1 = vhcs.precert_1
|
||||
cp.precert_2 = vhcs.precert_2
|
||||
cp.precert_3 = vhcs.precert_3
|
||||
cp.precert_4 = vhcs.precert_4
|
||||
cp.precert_5 = vhcs.precert_5
|
||||
cp.precert_6 = vhcs.precert_6
|
||||
# cp.precert_1 = vhcs.precert_1
|
||||
# cp.precert_2 = vhcs.precert_2
|
||||
# cp.precert_3 = vhcs.precert_3
|
||||
# cp.precert_4 = vhcs.precert_4
|
||||
# cp.precert_5 = vhcs.precert_5
|
||||
# cp.precert_6 = vhcs.precert_6
|
||||
|
||||
end
|
||||
end
|
||||
# end
|
||||
# end
|
||||
|
||||
Vhcs::HlrxCrosRef.all.each do |vhcs|
|
||||
rx = CardRx.find_or_create_by(help_desk: vhcs.help_desk, customer_service: vhcs.customer_service, web_url: vhcs.web_url)
|
||||
|
||||
Reference in New Issue
Block a user