ncs_mdes_warehouse 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.rvmrc +1 -1
- data/.yardopts +0 -1
- data/CHANGELOG.md +26 -0
- data/Rakefile +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_one.rb +563 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/address.rb +101 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit.rb +365 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_2.rb +359 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_baby_name.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_baby_name_2.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_decorate_room.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_decorate_room_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_li.rb +374 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_li_baby_name.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_li_decorate_room.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_li_renovate_room.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_renovate_room.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_renovate_room_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/contact.rb +77 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/drf_therm_verification.rb +50 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/dwelling_unit.rb +53 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother.rb +347 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_cond.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_detail.rb +50 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_habits.rb +164 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_lice.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_mold.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_otc.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_pet_type.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_prescr.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_renovate_room.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_room_mold.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_saq.rb +257 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_suppl.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/email.rb +74 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/env_equipment.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/env_equipment_prob_log.rb +50 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/event.rb +68 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/father_pv1.rb +374 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/father_pv1_2.rb +380 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/father_pv1_cancer.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/father_pv1_cancer_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/father_pv1_educ.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/father_pv1_race.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/father_pv1_race_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/household_enumeration.rb +239 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/household_enumeration_age_elig.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/household_enumeration_hidden_du.rb +50 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/household_enumeration_pregnant.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/household_inventory.rb +203 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/household_inventory_age.rb +35 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/household_inventory_age_elig.rb +35 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/household_unit.rb +53 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/incident.rb +98 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/incident_media.rb +35 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/incident_unanticipated.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/institution.rb +68 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/instrument.rb +74 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/internet_usage.rb +92 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/internet_usage_participate.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/link_contact.rb +41 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/link_household_dwelling.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/link_person_household.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/link_person_institute.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/link_person_participant.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/link_person_provider.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/listing_unit.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/low_high_script.rb +119 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/nine_mth_mother.rb +62 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/nine_mth_mother_detail.rb +143 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/non_interview_rpt.rb +128 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/non_interview_rpt_dutype.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/non_interview_rpt_noaccess.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/non_interview_rpt_refusal.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/non_interview_rpt_vacant.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/outreach.rb +98 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/outreach_eval.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/outreach_lang2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/outreach_race.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/outreach_staff.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/outreach_target.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/participant.rb +62 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/participant_auth.rb +44 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/participant_consent.rb +86 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/participant_consent_sample.rb +35 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/participant_rvis.rb +74 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/participant_vis_consent.rb +53 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/pb_recruitment.rb +275 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/pb_recruitment_2.rb +275 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/pb_recruitment_info_source.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/pb_recruitment_info_source_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/pb_recruitment_prov_source.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/pb_recruitment_prov_source_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/pb_recruitment_prov_svc.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/pb_recruitment_prov_svc_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/person.rb +113 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/person_race.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/ppg_cati.rb +98 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/ppg_details.rb +41 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/ppg_saq.rb +92 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/ppg_status_history.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/pre_preg.rb +422 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/pre_preg_cool.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/pre_preg_heat2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/pre_preg_pdecorate_room.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/pre_preg_prenovate_room.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/pre_preg_room_mold.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/pre_preg_saq.rb +116 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/pre_preg_sp_race.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/prec_therm_cert.rb +41 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_eh.rb +350 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_eh_2.rb +362 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_eh_know_ncs.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_eh_know_ncs_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_eh_race.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_eh_race_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_hi.rb +371 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_hi_2.rb +380 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_hi_know_ncs.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_hi_know_ncs_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_hi_race.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_hi_race_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_pb.rb +371 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_pb_2.rb +380 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_pb_know_ncs.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_pb_know_ncs_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_pb_race.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_pb_race_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1.rb +521 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_2.rb +497 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_commute.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_commute_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_cool.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_cool_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_diagnose_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_diagnose_2_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_heat2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_heat2_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_local_trav.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_local_trav_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_nonenglish2_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_pdecorate_room.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_pdecorate_room_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_pet_type.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_pet_type_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_prenovate2_room.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_prenovate_room.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_prenovate_room_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_room_mold.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_room_mold_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_saq.rb +188 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_saq_2.rb +233 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_saq_3.rb +236 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_sp_race.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_sp_race_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2.rb +452 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_2.rb +440 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_cool.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_cool_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_diagnose_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_diagnose_2_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_heat2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_heat2_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_pdecorate2_room.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_pdecorate2_room_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_prenovate_room.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_prenovate_room_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_room_mold.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_room_mold_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_saq.rb +116 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_saq_2.rb +116 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_li.rb +350 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_li_2.rb +350 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_li_cool.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_li_cool_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/provider.rb +62 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/provider_role.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/psu.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/ref_freezer_verification.rb +50 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/sample_receipt_confirm.rb +53 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/sample_receipt_store.rb +65 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/sample_shipping.rb +53 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_mother.rb +278 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_mother_detail.rb +266 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_mother_pet.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_saq.rb +218 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_saq_2.rb +218 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_saq_formula_type.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_saq_formula_type_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_saq_supp.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_saq_supp_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_saq_water.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_saq_water_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_blood.rb +194 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_blood_draw.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_blood_hemolyze.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_blood_tube.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_blood_tube_comments.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_cord_blood.rb +110 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_cord_blood_2.rb +110 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_cord_blood_specimen.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_cord_blood_specimen_2.rb +35 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_equipment.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_pickup.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_receipt.rb +80 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_shipping.rb +56 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_spsc_info.rb +26 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_storage.rb +62 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_urine.rb +110 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/srsc_info.rb +26 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/ssu.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/staff.rb +65 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/staff_cert_training.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/staff_exp_data_cllctn_tasks.rb +44 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/staff_exp_mngmnt_tasks.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/staff_language.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/staff_validation.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/staff_weekly_expense.rb +44 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/study_center.rb +26 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/subsample_doc.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twf.rb +152 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twf_blank_collected.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twf_dup_collected.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twf_dup_filled.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twf_n_collected.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twf_reason_filled.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twf_reason_filled2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twf_sample.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twf_subsamples.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twq.rb +143 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twq_blank_collected.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twq_dup_collected.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twq_dup_filled.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twq_n_collected.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twq_reason_filled.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twq_reason_filled2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twq_sample.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twq_subsamples.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/telephone.rb +83 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/three_mth_mother.rb +89 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/three_mth_mother_child_detail.rb +59 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/three_mth_mother_child_habits.rb +185 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/three_mth_mother_race.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/trh_meter_calibration.rb +77 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/tsu.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_mother.rb +299 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_mother_detail.rb +302 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_mother_lice.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_mother_renovate_room.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_mother_room_mold.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_saq.rb +293 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_saq_2.rb +293 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_saq_formula_brand.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_saq_formula_brand_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_saq_formula_type.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_saq_formula_type_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_saq_supplement.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_saq_supplement_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_saq_water.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_saq_water_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_mother.rb +347 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_mother_cond.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_mother_detail.rb +50 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_mother_habits.rb +194 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_mother_mold.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_mother_otc.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_mother_prescr.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_mother_suppl.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_pet_type.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_renovate_room.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_room_mold.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_saq.rb +242 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/vacuum_bag.rb +131 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/vacuum_bag_outside.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_one/validation_ins.rb +233 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two.rb +681 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/address.rb +101 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit.rb +365 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_2.rb +359 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_baby_name.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_baby_name_2.rb +50 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_decorate_room.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_decorate_room_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_li.rb +374 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_li_baby_name.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_li_decorate_room.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_li_renovate_room.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_renovate_room.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_renovate_room_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/contact.rb +77 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/drf_therm_verification.rb +50 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/dwelling_unit.rb +53 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother.rb +350 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_2.rb +350 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_cond.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_detail.rb +50 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_detail_2.rb +50 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_habits.rb +164 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_habits_2.rb +173 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_lice.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_lice_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_mold.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_mold_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_otc.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_otc_2.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_pet_type.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_pet_type_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_prescr.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_prescr_2.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_renovate_room.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_renovate_room_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_room_mold.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_room_mold_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_saq.rb +260 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_suppl.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_suppl_2.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/email.rb +74 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/env_equipment.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/env_equipment_prob_log.rb +50 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/event.rb +68 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/father_pv1.rb +374 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/father_pv1_2.rb +380 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/father_pv1_cancer.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/father_pv1_cancer_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/father_pv1_educ.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/father_pv1_race.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/father_pv1_race_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/household_enumeration.rb +239 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/household_enumeration_age_elig.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/household_enumeration_hidden_du.rb +50 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/household_enumeration_pregnant.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/household_inventory.rb +203 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/household_inventory_age.rb +35 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/household_inventory_age_elig.rb +35 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/household_unit.rb +53 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/incident.rb +98 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/incident_media.rb +35 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/incident_unanticipated.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/institution.rb +68 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/instrument.rb +74 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/internet_usage.rb +92 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/internet_usage_participate.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/link_contact.rb +41 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/link_household_dwelling.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/link_person_household.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/link_person_institute.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/link_person_participant.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/link_person_provider.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/listing_unit.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/low_high_script.rb +119 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/nine_mth_mother.rb +65 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/nine_mth_mother_detail.rb +143 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/non_interview_rpt.rb +128 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/non_interview_rpt_dutype.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/non_interview_rpt_noaccess.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/non_interview_rpt_refusal.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/non_interview_rpt_vacant.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/outreach.rb +98 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/outreach_eval.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/outreach_lang2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/outreach_race.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/outreach_staff.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/outreach_target.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/participant.rb +62 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/participant_auth.rb +44 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/participant_consent.rb +86 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/participant_consent_sample.rb +35 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/participant_rvis.rb +74 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/participant_vis_consent.rb +53 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/pb_recruitment.rb +275 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/pb_recruitment_2.rb +275 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/pb_recruitment_info_source.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/pb_recruitment_info_source_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/pb_recruitment_prov_source.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/pb_recruitment_prov_source_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/pb_recruitment_prov_svc.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/pb_recruitment_prov_svc_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/person.rb +113 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/person_race.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/ppg_cati.rb +98 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/ppg_details.rb +41 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/ppg_saq.rb +92 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/ppg_status_history.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/pre_preg.rb +422 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/pre_preg_cool.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/pre_preg_heat2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/pre_preg_pdecorate_room.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/pre_preg_prenovate_room.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/pre_preg_room_mold.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/pre_preg_saq.rb +116 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/pre_preg_sp_race.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/prec_therm_cert.rb +41 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_eh.rb +350 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_eh_2.rb +362 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_eh_know_ncs.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_eh_know_ncs_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_eh_race.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_eh_race_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_hi.rb +371 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_hi_2.rb +380 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_hi_know_ncs.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_hi_know_ncs_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_hi_race.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_hi_race_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_pb.rb +371 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_pb_2.rb +380 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_pb_know_ncs.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_pb_know_ncs_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_pb_race.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_pb_race_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1.rb +521 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_2.rb +497 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_commute.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_commute_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_cool.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_cool_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_diagnose_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_diagnose_2_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_heat2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_heat2_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_local_trav.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_local_trav_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_nonenglish2_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_pdecorate_room.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_pdecorate_room_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_pet_type.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_pet_type_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_prenovate2_room.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_prenovate_room.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_prenovate_room_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_room_mold.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_room_mold_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_saq.rb +188 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_saq_2.rb +233 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_saq_3.rb +236 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_sp_race.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_sp_race_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2.rb +452 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_2.rb +440 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_cool.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_cool_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_diagnose_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_diagnose_2_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_heat2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_heat2_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_pdecorate2_room.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_pdecorate2_room_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_prenovate_room.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_prenovate_room_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_room_mold.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_room_mold_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_saq.rb +116 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_saq_2.rb +116 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_saq_3.rb +116 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_li.rb +350 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_li_2.rb +350 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_li_cool.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_li_cool_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/provider.rb +62 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/provider_role.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/psu.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/ref_freezer_verification.rb +62 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/sample_dist.rb +74 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/sample_dist_samp.rb +50 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/sample_receipt_confirm.rb +53 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/sample_receipt_store.rb +65 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/sample_shipping.rb +53 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_mother.rb +281 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_mother_detail.rb +266 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_mother_pet.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_saq.rb +218 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_saq_2.rb +221 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_saq_formula_type.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_saq_formula_type_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_saq_supp.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_saq_supp_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_saq_water.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_saq_water_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_blood.rb +194 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_blood_2.rb +197 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_blood_draw.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_blood_draw_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_blood_hemolyze.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_blood_hemolyze_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_blood_tube.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_blood_tube_2.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_blood_tube_comments.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_blood_tube_comments_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_cord_blood.rb +110 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_cord_blood_2.rb +110 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_cord_blood_3.rb +122 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_cord_blood_specimen.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_cord_blood_specimen_2.rb +35 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_cord_blood_specimen_3.rb +35 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_equipment.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_pickup.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_receipt.rb +80 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_shipping.rb +56 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_spsc_info.rb +26 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_storage.rb +62 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_urine.rb +110 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/srsc_info.rb +26 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/ssu.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/staff.rb +65 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/staff_cert_training.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/staff_exp_data_cllctn_tasks.rb +44 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/staff_exp_mngmnt_tasks.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/staff_language.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/staff_validation.rb +38 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/staff_weekly_expense.rb +44 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/study_center.rb +26 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/subsample_doc.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf.rb +152 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_2.rb +155 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_blank_collected.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_blank_collected_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_dup_collected.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_dup_collected_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_dup_filled.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_dup_filled_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_n_collected.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_n_collected_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_reason_filled.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_reason_filled2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_reason_filled2_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_reason_filled_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_sample.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_sample_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_saq.rb +98 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_saq_eat.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_saq_prob.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_subsamples.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_subsamples_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq.rb +143 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_2.rb +146 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_blank_collected.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_blank_collected_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_dup_collected.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_dup_collected_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_dup_filled.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_dup_filled_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_n_collected.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_n_collected_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_reason_filled.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_reason_filled2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_reason_filled2_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_reason_filled_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_sample.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_sample_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_saq.rb +98 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_saq_prob.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_subsamples.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_subsamples_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/telephone.rb +83 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/three_mth_mother.rb +92 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/three_mth_mother_child_detail.rb +59 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/three_mth_mother_child_habits.rb +185 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/three_mth_mother_race.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/trh_meter_calibration.rb +77 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/tsu.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_mother.rb +302 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_mother_detail.rb +302 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_mother_lice.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_mother_renovate_room.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_mother_room_mold.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_saq.rb +293 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_saq_2.rb +296 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_saq_formula_brand.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_saq_formula_brand_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_saq_formula_type.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_saq_formula_type_2.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_saq_supplement.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_saq_supplement_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_saq_water.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_saq_water_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother.rb +350 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_2.rb +353 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_cond.rb +29 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_detail.rb +50 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_detail_2.rb +50 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_habits.rb +194 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_habits_2.rb +200 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_mold.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_mold_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_otc.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_otc_2.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_prescr.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_prescr_2.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_suppl.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_suppl_2.rb +47 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_pet_type.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_pet_type_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_renovate_room.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_renovate_room_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_room_mold.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_room_mold_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_saq.rb +245 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/vacuum_bag.rb +131 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/vacuum_bag_2.rb +137 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/vacuum_bag_outside.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/vacuum_bag_outside_2.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/vacuum_bag_saq.rb +89 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/vacuum_bag_saq_outside.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/vacuum_bag_saq_prob.rb +32 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_two/validation_ins.rb +233 -0
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero.rb +53 -53
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/birth_visit_2.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/birth_visit_baby_name_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/birth_visit_decorate_room_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/birth_visit_renovate_room_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/pb_recruitment_2.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/pb_recruitment_info_source_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/pb_recruitment_prov_source_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/pb_recruitment_prov_svc_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_screen_eh_2.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_screen_eh_know_ncs_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_screen_eh_race_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_screen_hi_2.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_screen_hi_know_ncs_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_screen_hi_race_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_screen_pb_2.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_screen_pb_know_ncs_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_screen_pb_race_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_2.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_commute.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_commute_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_cool.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_cool_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_diagnose_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_diagnose_2_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_heat2.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_heat2_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_local_trav.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_local_trav_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_nonenglish2_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_pdecorate_room.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_pdecorate_room_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_pet_type.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_pet_type_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_prenovate2_room.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_prenovate_room.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_prenovate_room_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_room_mold.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_room_mold_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_saq_2.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_sp_race.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_sp_race_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_2.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_cool.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_cool_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_diagnose_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_diagnose_2_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_heat2.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_heat2_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_pdecorate2_room.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_pdecorate2_room_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_prenovate_room.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_prenovate_room_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_room_mold.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_room_mold_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_saq_2.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_li_2.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_li_cool_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/six_mth_saq_2.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/six_mth_saq_formula_type_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/six_mth_saq_supp_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/six_mth_saq_water_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/twelve_mth_saq_2.rb +1 -1
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/twelve_mth_saq_formula_brand_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/twelve_mth_saq_formula_type_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/twelve_mth_saq_supplement_2.rb +2 -2
- data/generated_models/ncs_navigator/warehouse/models/two_point_zero/twelve_mth_saq_water_2.rb +2 -2
- data/lib/ncs_navigator/warehouse/cli.rb +33 -0
- data/lib/ncs_navigator/warehouse/configuration/file_evaluator.rb +9 -0
- data/lib/ncs_navigator/warehouse/table_modeler/mdes_ext.rb +6 -1
- data/lib/ncs_navigator/warehouse/transform_load.rb +6 -0
- data/lib/ncs_navigator/warehouse/transformers.rb +11 -5
- data/lib/ncs_navigator/warehouse/transformers/apply_global_values_filter.rb +63 -0
- data/lib/ncs_navigator/warehouse/transformers/coded_as_missing_filter.rb +91 -0
- data/lib/ncs_navigator/warehouse/transformers/database.rb +1 -1
- data/lib/ncs_navigator/warehouse/transformers/enum_transformer.rb +34 -15
- data/lib/ncs_navigator/warehouse/transformers/filters.rb +66 -0
- data/lib/ncs_navigator/warehouse/transformers/no_blank_foreign_keys_filter.rb +29 -0
- data/lib/ncs_navigator/warehouse/transformers/no_ssu_outreach_all_ssus_filter.rb +102 -0
- data/lib/ncs_navigator/warehouse/transformers/no_ssu_outreach_placeholder_filter.rb +61 -0
- data/lib/ncs_navigator/warehouse/transformers/vdr_xml.rb +7 -4
- data/lib/ncs_navigator/warehouse/transformers/vdr_xml/reader.rb +1 -13
- data/lib/ncs_navigator/warehouse/version.rb +1 -1
- data/ncs_mdes_warehouse.gemspec +1 -1
- data/spec/ncs_navigator/warehouse/configuration_spec.rb +16 -0
- data/spec/ncs_navigator/warehouse/models_spec.rb +13 -0
- data/spec/ncs_navigator/warehouse/table_modeler_spec.rb +7 -1
- data/spec/ncs_navigator/warehouse/transformers/apply_global_values_filter_spec.rb +44 -0
- data/spec/ncs_navigator/warehouse/transformers/coded_as_missing_filter_spec.rb +68 -0
- data/spec/ncs_navigator/warehouse/transformers/database_spec.rb +9 -1
- data/spec/ncs_navigator/warehouse/transformers/enum_transformer_spec.rb +72 -27
- data/spec/ncs_navigator/warehouse/transformers/filters_spec.rb +97 -0
- data/spec/ncs_navigator/warehouse/transformers/no_blank_foreign_keys_filter_spec.rb +29 -0
- data/spec/ncs_navigator/warehouse/transformers/no_ssu_outreach_all_ssus_filter_spec.rb +166 -0
- data/spec/ncs_navigator/warehouse/transformers/no_ssu_outreach_placeholder_filter_spec.rb +60 -0
- data/spec/ncs_navigator/warehouse/transformers/sampling_units_spec.rb +5 -4
- data/spec/ncs_navigator/warehouse/transformers/vdr_xml/reader_spec.rb +2 -32
- data/spec/ncs_navigator/warehouse/transformers/vdr_xml_spec.rb +7 -2
- data/spec/spec_helper.rb +18 -4
- data/spec/test_samples.csv +1 -0
- metadata +918 -293
@@ -8,8 +8,8 @@ module NcsNavigator::Warehouse::Transformers
|
|
8
8
|
##
|
9
9
|
# @return [#transform] a transformer that loads the MDES data in
|
10
10
|
# the specified VDR XML file.
|
11
|
-
def from_file(config, filename) # <- TODO better solution
|
12
|
-
EnumTransformer.new(config, Reader.new(config, filename))
|
11
|
+
def from_file(config, filename, options={}) # <- TODO better solution
|
12
|
+
EnumTransformer.new(config, Reader.new(config, filename), options)
|
13
13
|
end
|
14
14
|
|
15
15
|
##
|
@@ -17,10 +17,12 @@ module NcsNavigator::Warehouse::Transformers
|
|
17
17
|
# warehouse.
|
18
18
|
# @param list [String,Array<String>] the files to consider. This
|
19
19
|
# may be either a glob or an explicit list of files.
|
20
|
+
# @param options [Hash<Symbol, Object>] options for the
|
21
|
+
# resulting transformer.
|
20
22
|
#
|
21
23
|
# @return [#transform] a transformer for the most recently
|
22
24
|
# modified VDR XML file from the given list of files.
|
23
|
-
def from_most_recent_file(config, list)
|
25
|
+
def from_most_recent_file(config, list, options={})
|
24
26
|
files =
|
25
27
|
if String === list
|
26
28
|
Dir[list].tap { |a| fail "Glob #{list} does not match any files." if a.empty? }
|
@@ -31,7 +33,8 @@ module NcsNavigator::Warehouse::Transformers
|
|
31
33
|
from_file(
|
32
34
|
config,
|
33
35
|
files.collect { |fn| [fn, File.stat(fn).mtime] }.
|
34
|
-
sort_by { |fn, mtime| mtime }.reverse.first.first
|
36
|
+
sort_by { |fn, mtime| mtime }.reverse.first.first,
|
37
|
+
options)
|
35
38
|
end
|
36
39
|
end
|
37
40
|
end
|
@@ -84,10 +84,7 @@ class NcsNavigator::Warehouse::Transformers::VdrXml
|
|
84
84
|
elsif @current_model_class
|
85
85
|
if !is_open && node.local_name == @current_model_class.mdes_table_name
|
86
86
|
# on the way out of this record
|
87
|
-
|
88
|
-
unless MISSING_CODES.include?(rec.key.first)
|
89
|
-
yield rec
|
90
|
-
end
|
87
|
+
yield build_current_instance
|
91
88
|
@current_model_class = nil
|
92
89
|
@record_count += 1
|
93
90
|
shell.clear_line_then_say('%6d records (%3.1f per second); up to %s' %
|
@@ -121,15 +118,6 @@ class NcsNavigator::Warehouse::Transformers::VdrXml
|
|
121
118
|
|
122
119
|
def should_filter_out(model_class, variable_name, value)
|
123
120
|
return true if variable_name == :transaction_type
|
124
|
-
|
125
|
-
if is_foreign_key_in_current_model?(variable_name)
|
126
|
-
return MISSING_CODES.include?(value) || value.strip.empty?
|
127
|
-
end
|
128
|
-
|
129
|
-
property = @current_model_class.properties.find { |p| p.name == variable_name }
|
130
|
-
unless property.required? || property.options[:set]
|
131
|
-
return MISSING_CODES.include?(value)
|
132
|
-
end
|
133
121
|
end
|
134
122
|
|
135
123
|
def is_foreign_key_in_current_model?(variable_name)
|
data/ncs_mdes_warehouse.gemspec
CHANGED
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
16
16
|
s.require_paths = ["lib", "generated_models"]
|
17
17
|
|
18
|
-
s.add_dependency 'ncs_mdes', '~> 0.
|
18
|
+
s.add_dependency 'ncs_mdes', '~> 0.6', '>= 0.6.1'
|
19
19
|
s.add_dependency 'ncs_navigator_configuration', '~> 0.2'
|
20
20
|
|
21
21
|
s.add_dependency 'activesupport', '~> 3.0'
|
@@ -471,6 +471,22 @@ module NcsNavigator::Warehouse
|
|
471
471
|
subject.bcdatabase_group.should == :custom
|
472
472
|
end
|
473
473
|
|
474
|
+
it 'evaluates constants from NcsNavigator::Warehouse::Transformers' do
|
475
|
+
write_file do |f|
|
476
|
+
f.puts 'c.log_file = "#{EnumTransformer}.log"'
|
477
|
+
end
|
478
|
+
|
479
|
+
subject.log_file.to_s.should == 'NcsNavigator::Warehouse::Transformers::EnumTransformer.log'
|
480
|
+
end
|
481
|
+
|
482
|
+
it 'reports missing constants as bare' do
|
483
|
+
write_file do |f|
|
484
|
+
f.puts 'c.add_transformer = ATransformerIForgotToRequire'
|
485
|
+
end
|
486
|
+
|
487
|
+
lambda { subject }.should raise_error(/uninitialized constant ATransformerIForgotToRequire/)
|
488
|
+
end
|
489
|
+
|
474
490
|
describe 'source file tracking' do
|
475
491
|
it 'knows what file it came from' do
|
476
492
|
write_file { }
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
# These tests directly examine the generated models for the current
|
4
|
+
# SPEC_MDES_VERSION. For tests of general generation logic, see
|
5
|
+
# table_modeler_spec.
|
6
|
+
|
7
|
+
describe "Generated models for MDES #{spec_mdes_version}", :use_mdes do
|
8
|
+
let(:models_module) { spec_config.models_module }
|
9
|
+
|
10
|
+
it 'does not generate different models with the same name' do
|
11
|
+
models_module.mdes_order.should == models_module.mdes_order.uniq
|
12
|
+
end
|
13
|
+
end
|
@@ -90,10 +90,16 @@ module NcsNavigator::Warehouse
|
|
90
90
|
it 'preserves non-reversible table names' do
|
91
91
|
table.instance_eval { @name = 'generational_tableau_1' }
|
92
92
|
subject.load!
|
93
|
-
Spec::ModeledTables::
|
93
|
+
Spec::ModeledTables::GenerationalTableau_1.
|
94
94
|
storage_names[:default].should == 'generational_tableau_1'
|
95
95
|
end
|
96
96
|
|
97
|
+
it 'preserves numeric suffixes intact' do
|
98
|
+
table.instance_eval { @name = 'generational_tableau2_3_1' }
|
99
|
+
subject.load!
|
100
|
+
lambda { Spec::ModeledTables::GenerationalTableau2_3_1 }.should_not raise_error(NameError)
|
101
|
+
end
|
102
|
+
|
97
103
|
[:default, :mdes_warehouse_working, :mdes_warehouse_reporting].each do |repo|
|
98
104
|
it "sets the storage name for the #{repo} repo" do
|
99
105
|
subject.load!
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module NcsNavigator::Warehouse::Transformers
|
4
|
+
describe ApplyGlobalValuesFilter, :use_mdes do
|
5
|
+
let(:filter) {
|
6
|
+
ApplyGlobalValuesFilter.new(spec_config, :values => { :first_name => 'Fred' })
|
7
|
+
}
|
8
|
+
|
9
|
+
let(:person) { mdes_model(:Person).new }
|
10
|
+
let(:contact) { mdes_model(:Contact).new }
|
11
|
+
|
12
|
+
it 'applies a global value if the record has that variable and it is not set' do
|
13
|
+
filter.call([person])
|
14
|
+
person.first_name.should == 'Fred'
|
15
|
+
end
|
16
|
+
|
17
|
+
it 'does not apply a global value if the record does not have that variable' do
|
18
|
+
lambda { filter.call([contact]) }.should_not raise_error
|
19
|
+
end
|
20
|
+
|
21
|
+
it 'does not apply a global value if the record already has a value for that variable' do
|
22
|
+
person.first_name = 'Leo'
|
23
|
+
filter.call([person])
|
24
|
+
person.first_name.should == 'Leo'
|
25
|
+
end
|
26
|
+
|
27
|
+
describe 'default values' do
|
28
|
+
it 'includes the id of the first PSU as :psu_id' do
|
29
|
+
filter.global_values[:psu_id].should == '20000030'
|
30
|
+
end
|
31
|
+
|
32
|
+
it 'includes the recruitment type as :recruit_type' do
|
33
|
+
filter.global_values[:recruit_type].should == '3'
|
34
|
+
end
|
35
|
+
|
36
|
+
[:psu_id, :recruit_type].each do |defaulted_var|
|
37
|
+
it "can receive an override for #{defaulted_var.inspect} during construction" do
|
38
|
+
ApplyGlobalValuesFilter.new(spec_config, :values => { defaulted_var => 'foo' }).
|
39
|
+
global_values[defaulted_var].should == 'foo'
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module NcsNavigator::Warehouse::Transformers
|
4
|
+
describe CodedAsMissingFilter, :use_mdes do
|
5
|
+
def call(records)
|
6
|
+
filter.call(records)
|
7
|
+
end
|
8
|
+
|
9
|
+
def self.it_filters_missing_code(bad_code)
|
10
|
+
it "removes a record whose primary key is #{bad_code.inspect}" do
|
11
|
+
records = [
|
12
|
+
mdes_model(:Person).new(:person_id => bad_code),
|
13
|
+
mdes_model(:Person).new(:person_id => '23')
|
14
|
+
]
|
15
|
+
|
16
|
+
call(records).collect(&:person_id).should == %w(23)
|
17
|
+
end
|
18
|
+
|
19
|
+
it "clears a non-coded, non-required variable whose entire value is #{bad_code.inspect}" do
|
20
|
+
records = [
|
21
|
+
mdes_model(:StudyCenter).new(:sc_id => '2000029', :comments => bad_code)
|
22
|
+
]
|
23
|
+
|
24
|
+
call(records).first.comments.should be_nil
|
25
|
+
end
|
26
|
+
|
27
|
+
it "clears a foreign key whose value is #{bad_code.inspect}" do
|
28
|
+
records = [
|
29
|
+
mdes_model(:Person).new(:person_id => '4', :new_address_id => bad_code)
|
30
|
+
]
|
31
|
+
|
32
|
+
call(records).first.new_address_id.should be_nil
|
33
|
+
end
|
34
|
+
|
35
|
+
it "leaves alone a coded variable whose value is #{bad_code.inspect}" do
|
36
|
+
records = [
|
37
|
+
mdes_model(:Person).new(:person_id => '4', :sex => bad_code)
|
38
|
+
]
|
39
|
+
|
40
|
+
call(records).first.sex.should == bad_code
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe '.call' do
|
45
|
+
let(:filter) { CodedAsMissingFilter }
|
46
|
+
|
47
|
+
%w(-3 -4 -6 -7).each do |bad_code|
|
48
|
+
it_filters_missing_code(bad_code)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe '#call' do
|
53
|
+
let(:filter) { CodedAsMissingFilter.new(spec_config) }
|
54
|
+
|
55
|
+
%w(-3 -4 -6 -7).each do |bad_code|
|
56
|
+
it_filters_missing_code(bad_code)
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'with additional codes' do
|
60
|
+
let(:filter) { CodedAsMissingFilter.new(spec_config, :additional_codes => %w(-47)) }
|
61
|
+
|
62
|
+
%w(-3 -4 -47 -6 -7).each do |bad_code|
|
63
|
+
it_filters_missing_code(bad_code)
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -192,6 +192,7 @@ module NcsNavigator::Warehouse::Transformers
|
|
192
192
|
|
193
193
|
describe '.create_transformer' do
|
194
194
|
let(:enumerator_def) { sample_class }
|
195
|
+
let(:filter) { Object.new.tap { |x| def x.call(y); y; end } }
|
195
196
|
subject { enumerator_def.create_transformer(configuration) }
|
196
197
|
|
197
198
|
it 'creates an EnumTransformer' do
|
@@ -203,11 +204,18 @@ module NcsNavigator::Warehouse::Transformers
|
|
203
204
|
end
|
204
205
|
|
205
206
|
describe 'with options' do
|
206
|
-
subject {
|
207
|
+
subject {
|
208
|
+
enumerator_def.create_transformer(configuration,
|
209
|
+
:repository => :alpha, :filters => [filter])
|
210
|
+
}
|
207
211
|
|
208
212
|
it 'passes the options to the enumerable constructor' do
|
209
213
|
subject.enum.repository_name.should == :alpha
|
210
214
|
end
|
215
|
+
|
216
|
+
it 'passes the filters to the transformer constructor' do
|
217
|
+
subject.filters.to_a.should == [filter]
|
218
|
+
end
|
211
219
|
end
|
212
220
|
end
|
213
221
|
|
@@ -24,9 +24,9 @@ module NcsNavigator::Warehouse::Transformers
|
|
24
24
|
end
|
25
25
|
}
|
26
26
|
let(:records) { [
|
27
|
-
Sample.new(:id => 1, :name => 'One'),
|
28
|
-
Sample.new(:id => 2, :name => 'Two'),
|
29
|
-
Sample.new(:id => 3, :name => 'Three')
|
27
|
+
Sample.new(:id => 1, :psu_id => '20000030', :name => 'One'),
|
28
|
+
Sample.new(:id => 2, :psu_id => '20000030', :name => 'Two'),
|
29
|
+
Sample.new(:id => 3, :psu_id => '20000030', :name => 'Three')
|
30
30
|
] }
|
31
31
|
let(:transform_status) { NcsNavigator::Warehouse::TransformStatus.memory_only('test') }
|
32
32
|
subject { EnumTransformer.new(config, records) }
|
@@ -41,30 +41,6 @@ module NcsNavigator::Warehouse::Transformers
|
|
41
41
|
transform_status.transform_errors.should be_empty
|
42
42
|
end
|
43
43
|
|
44
|
-
it 'automatically sets the PSU ID if necessary' do
|
45
|
-
records[1].psu_id = '20000042'
|
46
|
-
|
47
|
-
records.each do |m|
|
48
|
-
m.should_receive(:valid?).and_return(true)
|
49
|
-
m.should_receive(:save).and_return(true)
|
50
|
-
end
|
51
|
-
|
52
|
-
subject.transform(transform_status)
|
53
|
-
records.collect(&:psu_id).should == %w(20000030 20000042 20000030)
|
54
|
-
end
|
55
|
-
|
56
|
-
it 'automatically sets recruit_type if necessary' do
|
57
|
-
records[2].recruit_type = '1'
|
58
|
-
|
59
|
-
records.each do |m|
|
60
|
-
m.should_receive(:valid?).and_return(true)
|
61
|
-
m.should_receive(:save).and_return(true)
|
62
|
-
end
|
63
|
-
|
64
|
-
subject.transform(transform_status)
|
65
|
-
records.collect(&:recruit_type).should == %w(3 3 1)
|
66
|
-
end
|
67
|
-
|
68
44
|
describe 'with an invalid instance' do
|
69
45
|
before do
|
70
46
|
records[0].should_receive(:save).and_return(true)
|
@@ -86,6 +62,50 @@ module NcsNavigator::Warehouse::Transformers
|
|
86
62
|
end
|
87
63
|
end
|
88
64
|
|
65
|
+
describe 'with an instance with an invalid PSU' do
|
66
|
+
before do
|
67
|
+
records[0].should_receive(:save).and_return(true)
|
68
|
+
records[1].should_not_receive(:save)
|
69
|
+
records[2].should_receive(:save).and_return(true)
|
70
|
+
|
71
|
+
records[1].psu_id = '20000041'
|
72
|
+
end
|
73
|
+
|
74
|
+
it 'does not save that instance' do
|
75
|
+
subject.transform(transform_status)
|
76
|
+
end
|
77
|
+
|
78
|
+
it 'saves the other instances' do
|
79
|
+
subject.transform(transform_status)
|
80
|
+
end
|
81
|
+
|
82
|
+
it 'records an error' do
|
83
|
+
subject.transform(transform_status)
|
84
|
+
transform_status.transform_errors.collect(&:record_id).should == ['2']
|
85
|
+
end
|
86
|
+
|
87
|
+
describe 'the recorded error' do
|
88
|
+
let(:error) { transform_status.transform_errors.first }
|
89
|
+
|
90
|
+
before do
|
91
|
+
subject.transform(transform_status)
|
92
|
+
end
|
93
|
+
|
94
|
+
it 'has the correct model class' do
|
95
|
+
error.model_class.should == Sample.to_s
|
96
|
+
end
|
97
|
+
|
98
|
+
it 'has the record ID' do
|
99
|
+
error.record_id.should == '2'
|
100
|
+
end
|
101
|
+
|
102
|
+
it 'has a message' do
|
103
|
+
error.message.should ==
|
104
|
+
'Invalid PSU ID "20000041". The list of valid PSU IDs for this Study Center is ["20000030", "20000042"].'
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
89
109
|
describe 'with an unsaveable instance' do
|
90
110
|
before do
|
91
111
|
records[0].should_receive(:save).and_return(true)
|
@@ -202,6 +222,31 @@ module NcsNavigator::Warehouse::Transformers
|
|
202
222
|
transform_status.transform_errors.first.id.should be_nil
|
203
223
|
end
|
204
224
|
end
|
225
|
+
|
226
|
+
describe 'with a filter set' do
|
227
|
+
let(:filter_one) { lambda { |recs| recs.each { |r| r.name = 'FILTERED' }; recs } }
|
228
|
+
let(:filter_two) { lambda { |recs| recs.each { |r| r.name.downcase! }; recs } }
|
229
|
+
let(:replacing_filter) { lambda { |recs| [records[1]] } }
|
230
|
+
|
231
|
+
def transformer_with_filters(*filters)
|
232
|
+
EnumTransformer.new(config, records, :filters => filters)
|
233
|
+
end
|
234
|
+
|
235
|
+
it 'applies all the filters' do
|
236
|
+
|
237
|
+
transformer_with_filters(filter_one, filter_two).transform(transform_status)
|
238
|
+
|
239
|
+
records.each { |m| m.name.should == 'filtered' }
|
240
|
+
end
|
241
|
+
|
242
|
+
it 'saves only the results from the filter' do
|
243
|
+
records[0].should_not_receive(:save)
|
244
|
+
records[2].should_not_receive(:save)
|
245
|
+
records[1].should_receive(:save).exactly(3).times
|
246
|
+
|
247
|
+
transformer_with_filters(replacing_filter).transform(transform_status)
|
248
|
+
end
|
249
|
+
end
|
205
250
|
end
|
206
251
|
end
|
207
252
|
end
|
@@ -0,0 +1,97 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module NcsNavigator::Warehouse::Transformers
|
4
|
+
describe Filters do
|
5
|
+
let(:filter_one) { StubFilter.new('one') }
|
6
|
+
let(:filter_two) { StubFilter.new('two') }
|
7
|
+
let(:filter_three) { StubFilter.new('three') }
|
8
|
+
|
9
|
+
describe '#initialize' do
|
10
|
+
it 'sets the #filters attribute' do
|
11
|
+
Filters.new([filter_two, filter_one]).filters.should == [filter_two, filter_one]
|
12
|
+
end
|
13
|
+
|
14
|
+
it 'rejects objects that do not have a call method' do
|
15
|
+
lambda { Filters.new([filter_three, Object.new]) }.
|
16
|
+
should raise_error(/Filter 1 \(Object\) does not have a call method/)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
describe '#call' do
|
21
|
+
describe 'with some filters' do
|
22
|
+
let(:filters) { Filters.new([filter_one, filter_two, filter_three]) }
|
23
|
+
|
24
|
+
it 'feeds the result from the each into the next' do
|
25
|
+
filter_one.should_receive(:call).with([:foo]).and_return([:foo, :bar])
|
26
|
+
filter_two.should_receive(:call).with([:foo, :bar]).and_return([:bar])
|
27
|
+
filter_three.should_receive(:call).with([:bar]).and_return([:quux])
|
28
|
+
|
29
|
+
filters.call([:foo]).should == [:quux]
|
30
|
+
end
|
31
|
+
|
32
|
+
it 'treats a nil return as []' do
|
33
|
+
filter_one.should_receive(:call).with([:foo]).and_return(nil)
|
34
|
+
filter_two.should_receive(:call).with([]).and_return([:bar])
|
35
|
+
|
36
|
+
filters.call([:foo])
|
37
|
+
end
|
38
|
+
|
39
|
+
it 'treats false as a value' do
|
40
|
+
filter_one.should_receive(:call).with([false])
|
41
|
+
|
42
|
+
filters.call(false)
|
43
|
+
end
|
44
|
+
|
45
|
+
it 'wraps a single input value in an array' do
|
46
|
+
filter_one.should_receive(:call).with([:foo])
|
47
|
+
|
48
|
+
filters.call(:foo)
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'with no filters' do
|
53
|
+
let(:filters) { Filters.new([]) }
|
54
|
+
|
55
|
+
it 'returns the input' do
|
56
|
+
filters.call([:foo]).should == [:foo]
|
57
|
+
end
|
58
|
+
|
59
|
+
it 'normalizes nil to []' do
|
60
|
+
filters.call(nil).should == []
|
61
|
+
end
|
62
|
+
|
63
|
+
it 'wraps a single input value in an array' do
|
64
|
+
filters.call(:bar).should == [:bar]
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
describe 'enumerableness' do
|
70
|
+
let(:filters) { Filters.new([filter_one, filter_two, filter_three]) }
|
71
|
+
|
72
|
+
it 'is Enumerable' do
|
73
|
+
Filters.ancestors.should include(::Enumerable)
|
74
|
+
end
|
75
|
+
|
76
|
+
it 'delegates #each to the filter list' do
|
77
|
+
filters.collect(&:name).should == %w(one two three)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
class StubFilter
|
82
|
+
attr_reader :name
|
83
|
+
|
84
|
+
def initialize(name)
|
85
|
+
@name = name
|
86
|
+
end
|
87
|
+
|
88
|
+
def call(records)
|
89
|
+
records
|
90
|
+
end
|
91
|
+
|
92
|
+
def inspect
|
93
|
+
"#<StubFilter #{name.inspect}>"
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|