Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

initial F6/F65 mappings

  • Loading branch information...
commit 4caa7089f6f8f7d8fc43263b24dd1192d12ec6e9 1 parent 79ec1da
@dwillis dwillis authored
View
2  lib/fech/fech_utils.rb
@@ -22,6 +22,8 @@ module FechUtils
:f5 => /^f5[na]/i,
:f56 => /^f56/i,
:f57 => /^f57/i,
+ :f6 => /^f6[^5]/i,
+ :f65 => /^f65[an]/i,
:f7 => /^f7[na]/i,
:f76 => /^f76/i,
:f9 => /^f9/i,
View
4 lib/fech/map_generator.rb
@@ -10,7 +10,7 @@ class MapGenerator
FILING_VERSIONS = ["8.0", "7.0", "6.4", "6.3", "6.2", "6.1",
"5.3", "5.2", "5.1", "5.0", "3"]
BASE_ROW_TYPES = ["HDR", "F1", "F1M", "F2", "F24", "F3", "F3L", "F3P", "F3P31", "F3PS", "F3S", "F3X",
- "F4", "F5", "F56", "F57", "F7", "F76", "F9", "F91", "F92", "F93", "F94", "F99",
+ "F4", "F5", "F56", "F57", "F6", "F65", "F7", "F76", "F9", "F91", "F92", "F93", "F94", "F99",
"SchA", "SchB", "SchC", "SchC1", "SchC2", "SchD", "SchE",
"SchF", "TEXT"]
ROW_TYPE_MATCHERS = {
@@ -30,6 +30,8 @@ class MapGenerator
"F5" => FechUtils::ROW_TYPES[:f5],
"F56" => FechUtils::ROW_TYPES[:f56],
"F57" => FechUtils::ROW_TYPES[:f57],
+ "F6" => FechUtils::ROW_TYPES[:f6],
+ "F65" => FechUtils::ROW_TYPES[:f65],
"F7" => FechUtils::ROW_TYPES[:f7],
"F76" => FechUtils::ROW_TYPES[:f76],
"F9" => FechUtils::ROW_TYPES[:f9],
View
15 lib/fech/rendered_maps.rb
@@ -85,6 +85,15 @@ module Fech
'^5.3|5.2|5.1|5.0' => [:form_type, :filer_committee_id_number, :entity_type, :payee_name, :payee_street_1, :payee_street_2, :payee_city, :payee_state, :payee_zip, :expenditure_purpose_descrip, :expenditure_date, :expenditure_amount, :support_oppose_code, :candidate_id_number, :candidate_name, :candidate_office, :candidate_state, :candidate_district, nil, nil, nil, nil, nil, nil, :conduit_name, :conduit_street_1, :conduit_street_2, :conduit_city, :conduit_state, :conduit_zip, nil, :transaction_id_number, :category_code, :expenditure_purpose_code, :calendar_y_t_d_per_election_office, :election_code, :election_other_description],
'^3' => [:form_type, :filer_committee_id_number, :entity_type, :payee_name, :payee_street_2, nil, :payee_city, :payee_state, :payee_zip, :expenditure_purpose_descrip, :expenditure_date, :expenditure_amount, :support_oppose_code, :candidate_id_number, :candidate_name, :candidate_office, :candidate_state, :candidate_district, nil, nil, nil, nil, nil, nil, :conduit_name, :conduit_street_1, :conduit_street_2, :conduit_city, :conduit_state, :conduit_zip, :amended_code],
},
+ "^f6[^5]" => {
+ '^7.0|6.4|6.3|6.2|6.1' => [:form_type, :filer_committee_id_number, nil, :committee_name, :street_1, :street_2, :city, :state, :zip, :candidate_id_number, :candidate_last_name, :candidate_first_name, :candidate_middle_name, :candidate_prefix, :candidate_suffix, :candidate_office, :candidate_state, :candidate_district, :signer_last_name, :signer_first_name, :signer_middle_name, :signer_prefix, :signer_suffix, :date_signed],
+ '^5.3|5.2|5.1|5.0|3.0' => [:form_type, :filer_committee_id_number, :committee_name, :street_1, :street_2, :city, :state, :zip, :candidate_id_number, :candidate_name, :candidate_office, :candidate_state, :candidate_district, :date_signed],
+ '^8.0' => [:form_type, :filer_committee_id_number, :original_amendment_date, :committee_name, :street_1, :street_2, :city, :state, :zip, :candidate_id_number, :candidate_last_name, :candidate_first_name, :candidate_middle_name, :candidate_prefix, :candidate_suffix, :candidate_office, :candidate_state, :candidate_district, :signer_last_name, :signer_first_name, :signer_middle_name, :signer_prefix, :signer_suffix, :date_signed],
+ },
+ "^f65[an]" => {
+ '^5.3|5.2|5.1|5.0|3.0' => [:form_type, :filer_committee_id_number, :entity_type, :contributor_name, :contributor_street_1, :contributor_street_2, :contributor_city, :contributor_state, :contributor_zip, :contributor_employer, :contributor_occupation, :contribution_date, :contribution_amount, :contributor_fec_id, :candidate_id, :candidate_name, :candidate_office, :candidate_state, :candidate_district, :conduit_name, :conduit_street_1, :conduit_street_2, :conduit_city, :conduit_state, :conduit_zip, nil, :transaction_id],
+ '^8.0|7.0|6.4|6.3|6.2|6.1' => [:form_type, :filer_committee_id_number, :transaction_id, :entity_type, :contributor_organization_name, :contributor_last_name, :contributor_first_name, :contributor_middle_name, :contributor_prefix, :contributor_suffix, :contributor_street_1, :contributor_street_2, :contributor_city, :contributor_state, :contributor_zip, :contributor_fec_id, :contribution_date, :contribution_amount, :contributor_employer, :contributor_occupation],
+ },
"^f7[na]" => {
'^5.3|5.2|5.1|5.0|3.0' => [:form_type, :filer_committee_id_number, :organization_name, :street_1, :street_2, :city, :state, :zip, :organization_type, :report_code, :election_date, :election_state, :coverage_from_date, :coverage_through_date, :total_costs, :person_designated_name, :date_signed, :person_designated_title],
'^8.0|7.0|6.4|6.3|6.2|6.1' => [:form_type, :filer_committee_id_number, :organization_name, :street_1, :street_2, :city, :state, :zip, :organization_type, :report_code, :election_date, :election_state, :coverage_from_date, :coverage_through_date, :total_costs, :person_designated_last_name, :person_designated_first_name, :person_designated_middle_name, :person_designated_prefix, :person_designated_suffix, :person_designated_title, :date_signed],
@@ -120,9 +129,9 @@ module Fech
'^8.0|7.0|6.4|6.3|6.2|6.1' => [:form_type, :filer_committee_id_number, :transaction_id, :back_reference_tran_id_number, :back_reference_sched_name, :candidate_id_number, :candidate_last_name, :candidate_first_name, :candidate_middle_name, :candidate_prefix, :candidate_suffix, :candidate_office, :candidate_state, :candidate_district, :election_code, :election_other_description],
},
"^f99" => {
- '^5.3|5.2|5.1|5.0' => [:form_type, :filer_committee_id_number, :committee_name, :street_1, :street_2, :city, :state, :zip, :treasurer_name, :date_signed, :text_code],
- '^8.0|7.0|6.4|6.3|6.2|6.1' => [:form_type, :filer_committee_id_number, :committee_name, :street_1, :street_2, :city, :state, :zip, :treasurer_last_name, :treasurer_first_name, :treasurer_middle_name, :treasurer_prefix, :treasurer_suffix, :date_signed, :text_code],
- '^3' => [:form_type, :filer_committee_id_number, :committee_name, :street_1, :street_2, :city, :state, :zip, :treasurer_name, :date_signed],
+ '^5.3|5.2|5.1|5.0' => [:form_type, :filer_committee_id_number, :committee_name, :street_1, :street_2, :city, :state, :zip, :treasurer_name, :date_signed, :text_code, :text],
+ '^8.0|7.0|6.4|6.3|6.2|6.1' => [:form_type, :filer_committee_id_number, :committee_name, :street_1, :street_2, :city, :state, :zip, :treasurer_last_name, :treasurer_first_name, :treasurer_middle_name, :treasurer_prefix, :treasurer_suffix, :date_signed, :text_code, :text],
+ '^3' => [:form_type, :filer_committee_id_number, :committee_name, :street_1, :street_2, :city, :state, :zip, :treasurer_name, :date_signed, :text],
},
"^sa" => {
'^5.0' => [:form_type, :filer_committee_id_number, :entity_type, :contributor_name, :contributor_street_1, :contributor_street_2, :contributor_city, :contributor_state, :contributor_zip, :election_code, :election_other_description, :contributor_employer, :contributor_occupation, :contribution_aggregate, :contribution_date, :contribution_amount, :contribution_purpose_code, :contribution_purpose_descrip, :donor_committee_fec_id, :donor_candidate_fec_id, :donor_candidate_name, :donor_candidate_office, :donor_candidate_state, :donor_candidate_district, :conduit_name, :conduit_street1, :conduit_street2, :conduit_city, :conduit_state, :conduit_zip, :memo_code, :memo_text_description, nil, :transaction_id, :back_reference_tran_id_number, :back_reference_sched_name, :reference_code, :increased_limit_code],
View
1  sources/F6.csv
@@ -0,0 +1 @@
+canonical,^8.0,,^7.0|6.4|6.3|6.2|6.1,,^5.3|5.2|5.1|5.0|3.0, form_type,1,FORM TYPE,1,FORM TYPE,1,FORM TYPE filer_committee_id_number,2,FILER COMMITTEE ID NUMBER,2,FILER COMMITTEE ID NUMBER,2,FILER FEC CMTE ID original_amendment_date,3,ORIGINAL AMENDMENT DATE,,,, committee_name,4,COMMITTEE NAME,4,COMMITTEE NAME,3,COMMITTEE NAME street_1,5,STREET 1,5,STREET 1,4,STREET 1 street_2,6,STREET 2,6,STREET 2,5,STREET 2 city,7,CITY,7,CITY,6,CITY state,8,STATE,8,STATE,7,STATE zip,9,ZIP,9,ZIP,8,ZIP candidate_id_number,10,CANDIDATE ID NUMBER,10,CANDIDATE ID NUMBER,9,FEC CANDIDATE ID NUMBER candidate_name,,,,,10,CANDIDATE NAME candidate_last_name,11,CANDIDATE LAST NAME,11,CANDIDATE LAST NAME,, candidate_first_name,12,CANDIDATE FIRST NAME,12,CANDIDATE FIRST NAME,, candidate_middle_name,13,CANDIDATE MIDDLE NAME,13,CANDIDATE MIDDLE NAME,, candidate_prefix,14,CANDIDATE PREFIX,14,CANDIDATE PREFIX,, candidate_suffix,15,CANDIDATE SUFFIX,15,CANDIDATE SUFFIX,, candidate_office,16,CANDIDATE OFFICE,16,CANDIDATE OFFICE,11,CAN/OFFICE candidate_state,17,CANDIDATE STATE ,17,CANDIDATE STATE ,12,CAN/STATE candidate_district,18,CANDIDATE DISTRICT,18,CANDIDATE DISTRICT,13,CAN/DIST signer_last_name,19,SIGNER LAST NAME,19,SIGNER LAST NAME,, signer_first_name,20,SIGNER FIRST NAME,20,SIGNER FIRST NAME,, signer_middle_name,21,SIGNER MIDDLE NAME,21,SIGNER MIDDLE NAME,, signer_prefix,22,SIGNER PREFIX,22,SIGNER PREFIX,, signer_suffix,23,SIGNER SUFFIX,23,SIGNER SUFFIX,, date_signed,24,DATE SIGNED,24,DATE SIGNED,14,DATE (Signed)
View
1  sources/F65.csv
@@ -0,0 +1 @@
+canonical,^8.0|7.0|6.4|6.3|6.2|6.1,,^5.3|5.2|5.1|5.0|3.0, form_type,1,FORM TYPE,1,FORM TYPE filer_committee_id_number,2,FILER COMMITTEE ID NUMBER,2,FILER FEC CMTE ID transaction_id,3,TRANSACTION ID NUMBER,27,TRAN ID entity_type,4,ENTITY TYPE,3,ENTITY TYPE contributor_organization_name,5,CONTRIBUTOR ORGANIZATION NAME,, contributor_name,,,4,NAME (Contributor/Lender) contributor_last_name,6,CONTRIBUTOR LAST NAME,, contributor_first_name,7,CONTRIBUTOR FIRST NAME,, contributor_middle_name,8,CONTRIBUTOR MIDDLE NAME,, contributor_prefix,9,CONTRIBUTOR PREFIX,, contributor_suffix,10,CONTRIBUTOR SUFFIX,, contributor_street_1,11,CONTRIBUTOR STREET 1,5,STREET 1 contributor_street_2,12,CONTRIBUTOR STREET 2,6,STREET 2 contributor_city,13,CONTRIBUTOR CITY,7,CITY contributor_state,14,CONTRIBUTOR STATE,8,STATE contributor_zip,15,CONTRIBUTOR ZIP,9,ZIP contributor_fec_id,16,CONTRIBUTOR COMMITTEE FEC ID,14,FEC COMMITTEE ID NUMBER contribution_date,17,CONTRIBUTION DATE,12,DATE (Of Contribution) contribution_amount,18,CONTRIBUTION AMOUNT,13,AMOUNT contributor_employer,19,CONTRIBUTOR EMPLOYER,10,INDEMP contributor_occupation,20,CONTRIBUTOR_OCCUPATION,11,INDOCC candidate_id,,,15,FEC CANDIDATE ID NUMBER candidate_name,,,16,CANDIDATE NAME candidate_office,,,17,CAN/OFFICE candidate_state,,,18,CAN/STATE candidate_district,,,19,CAN/DIST conduit_name,,,20,CONDUIT NAME conduit_street_1,,,21,CONDUIT STREET 1 conduit_street_2,,,22,CONDUIT STREET 2 conduit_city,,,23,CONDUIT CITY conduit_state,,,24,CONDUIT STATE conduit_zip,,,25,CONDUIT ZIP
Please sign in to comment.
Something went wrong with that request. Please try again.