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.
Files changed (708) hide show
  1. data/.rvmrc +1 -1
  2. data/.yardopts +0 -1
  3. data/CHANGELOG.md +26 -0
  4. data/Rakefile +1 -1
  5. data/generated_models/ncs_navigator/warehouse/models/two_point_one.rb +563 -0
  6. data/generated_models/ncs_navigator/warehouse/models/two_point_one/address.rb +101 -0
  7. data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit.rb +365 -0
  8. data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_2.rb +359 -0
  9. data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_baby_name.rb +47 -0
  10. data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_baby_name_2.rb +47 -0
  11. data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_decorate_room.rb +29 -0
  12. data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_decorate_room_2.rb +32 -0
  13. data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_li.rb +374 -0
  14. data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_li_baby_name.rb +47 -0
  15. data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_li_decorate_room.rb +32 -0
  16. data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_li_renovate_room.rb +32 -0
  17. data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_renovate_room.rb +29 -0
  18. data/generated_models/ncs_navigator/warehouse/models/two_point_one/birth_visit_renovate_room_2.rb +32 -0
  19. data/generated_models/ncs_navigator/warehouse/models/two_point_one/contact.rb +77 -0
  20. data/generated_models/ncs_navigator/warehouse/models/two_point_one/drf_therm_verification.rb +50 -0
  21. data/generated_models/ncs_navigator/warehouse/models/two_point_one/dwelling_unit.rb +53 -0
  22. data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother.rb +347 -0
  23. data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_cond.rb +29 -0
  24. data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_detail.rb +50 -0
  25. data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_habits.rb +164 -0
  26. data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_lice.rb +29 -0
  27. data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_mold.rb +32 -0
  28. data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_otc.rb +47 -0
  29. data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_pet_type.rb +32 -0
  30. data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_prescr.rb +47 -0
  31. data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_renovate_room.rb +32 -0
  32. data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_room_mold.rb +32 -0
  33. data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_saq.rb +257 -0
  34. data/generated_models/ncs_navigator/warehouse/models/two_point_one/eighteen_mth_mother_suppl.rb +47 -0
  35. data/generated_models/ncs_navigator/warehouse/models/two_point_one/email.rb +74 -0
  36. data/generated_models/ncs_navigator/warehouse/models/two_point_one/env_equipment.rb +47 -0
  37. data/generated_models/ncs_navigator/warehouse/models/two_point_one/env_equipment_prob_log.rb +50 -0
  38. data/generated_models/ncs_navigator/warehouse/models/two_point_one/event.rb +68 -0
  39. data/generated_models/ncs_navigator/warehouse/models/two_point_one/father_pv1.rb +374 -0
  40. data/generated_models/ncs_navigator/warehouse/models/two_point_one/father_pv1_2.rb +380 -0
  41. data/generated_models/ncs_navigator/warehouse/models/two_point_one/father_pv1_cancer.rb +29 -0
  42. data/generated_models/ncs_navigator/warehouse/models/two_point_one/father_pv1_cancer_2.rb +29 -0
  43. data/generated_models/ncs_navigator/warehouse/models/two_point_one/father_pv1_educ.rb +29 -0
  44. data/generated_models/ncs_navigator/warehouse/models/two_point_one/father_pv1_race.rb +29 -0
  45. data/generated_models/ncs_navigator/warehouse/models/two_point_one/father_pv1_race_2.rb +32 -0
  46. data/generated_models/ncs_navigator/warehouse/models/two_point_one/household_enumeration.rb +239 -0
  47. data/generated_models/ncs_navigator/warehouse/models/two_point_one/household_enumeration_age_elig.rb +38 -0
  48. data/generated_models/ncs_navigator/warehouse/models/two_point_one/household_enumeration_hidden_du.rb +50 -0
  49. data/generated_models/ncs_navigator/warehouse/models/two_point_one/household_enumeration_pregnant.rb +38 -0
  50. data/generated_models/ncs_navigator/warehouse/models/two_point_one/household_inventory.rb +203 -0
  51. data/generated_models/ncs_navigator/warehouse/models/two_point_one/household_inventory_age.rb +35 -0
  52. data/generated_models/ncs_navigator/warehouse/models/two_point_one/household_inventory_age_elig.rb +35 -0
  53. data/generated_models/ncs_navigator/warehouse/models/two_point_one/household_unit.rb +53 -0
  54. data/generated_models/ncs_navigator/warehouse/models/two_point_one/incident.rb +98 -0
  55. data/generated_models/ncs_navigator/warehouse/models/two_point_one/incident_media.rb +35 -0
  56. data/generated_models/ncs_navigator/warehouse/models/two_point_one/incident_unanticipated.rb +29 -0
  57. data/generated_models/ncs_navigator/warehouse/models/two_point_one/institution.rb +68 -0
  58. data/generated_models/ncs_navigator/warehouse/models/two_point_one/instrument.rb +74 -0
  59. data/generated_models/ncs_navigator/warehouse/models/two_point_one/internet_usage.rb +92 -0
  60. data/generated_models/ncs_navigator/warehouse/models/two_point_one/internet_usage_participate.rb +29 -0
  61. data/generated_models/ncs_navigator/warehouse/models/two_point_one/link_contact.rb +41 -0
  62. data/generated_models/ncs_navigator/warehouse/models/two_point_one/link_household_dwelling.rb +38 -0
  63. data/generated_models/ncs_navigator/warehouse/models/two_point_one/link_person_household.rb +38 -0
  64. data/generated_models/ncs_navigator/warehouse/models/two_point_one/link_person_institute.rb +32 -0
  65. data/generated_models/ncs_navigator/warehouse/models/two_point_one/link_person_participant.rb +38 -0
  66. data/generated_models/ncs_navigator/warehouse/models/two_point_one/link_person_provider.rb +38 -0
  67. data/generated_models/ncs_navigator/warehouse/models/two_point_one/listing_unit.rb +38 -0
  68. data/generated_models/ncs_navigator/warehouse/models/two_point_one/low_high_script.rb +119 -0
  69. data/generated_models/ncs_navigator/warehouse/models/two_point_one/nine_mth_mother.rb +62 -0
  70. data/generated_models/ncs_navigator/warehouse/models/two_point_one/nine_mth_mother_detail.rb +143 -0
  71. data/generated_models/ncs_navigator/warehouse/models/two_point_one/non_interview_rpt.rb +128 -0
  72. data/generated_models/ncs_navigator/warehouse/models/two_point_one/non_interview_rpt_dutype.rb +32 -0
  73. data/generated_models/ncs_navigator/warehouse/models/two_point_one/non_interview_rpt_noaccess.rb +32 -0
  74. data/generated_models/ncs_navigator/warehouse/models/two_point_one/non_interview_rpt_refusal.rb +32 -0
  75. data/generated_models/ncs_navigator/warehouse/models/two_point_one/non_interview_rpt_vacant.rb +32 -0
  76. data/generated_models/ncs_navigator/warehouse/models/two_point_one/outreach.rb +98 -0
  77. data/generated_models/ncs_navigator/warehouse/models/two_point_one/outreach_eval.rb +32 -0
  78. data/generated_models/ncs_navigator/warehouse/models/two_point_one/outreach_lang2.rb +29 -0
  79. data/generated_models/ncs_navigator/warehouse/models/two_point_one/outreach_race.rb +32 -0
  80. data/generated_models/ncs_navigator/warehouse/models/two_point_one/outreach_staff.rb +29 -0
  81. data/generated_models/ncs_navigator/warehouse/models/two_point_one/outreach_target.rb +32 -0
  82. data/generated_models/ncs_navigator/warehouse/models/two_point_one/participant.rb +62 -0
  83. data/generated_models/ncs_navigator/warehouse/models/two_point_one/participant_auth.rb +44 -0
  84. data/generated_models/ncs_navigator/warehouse/models/two_point_one/participant_consent.rb +86 -0
  85. data/generated_models/ncs_navigator/warehouse/models/two_point_one/participant_consent_sample.rb +35 -0
  86. data/generated_models/ncs_navigator/warehouse/models/two_point_one/participant_rvis.rb +74 -0
  87. data/generated_models/ncs_navigator/warehouse/models/two_point_one/participant_vis_consent.rb +53 -0
  88. data/generated_models/ncs_navigator/warehouse/models/two_point_one/pb_recruitment.rb +275 -0
  89. data/generated_models/ncs_navigator/warehouse/models/two_point_one/pb_recruitment_2.rb +275 -0
  90. data/generated_models/ncs_navigator/warehouse/models/two_point_one/pb_recruitment_info_source.rb +32 -0
  91. data/generated_models/ncs_navigator/warehouse/models/two_point_one/pb_recruitment_info_source_2.rb +29 -0
  92. data/generated_models/ncs_navigator/warehouse/models/two_point_one/pb_recruitment_prov_source.rb +32 -0
  93. data/generated_models/ncs_navigator/warehouse/models/two_point_one/pb_recruitment_prov_source_2.rb +29 -0
  94. data/generated_models/ncs_navigator/warehouse/models/two_point_one/pb_recruitment_prov_svc.rb +32 -0
  95. data/generated_models/ncs_navigator/warehouse/models/two_point_one/pb_recruitment_prov_svc_2.rb +32 -0
  96. data/generated_models/ncs_navigator/warehouse/models/two_point_one/person.rb +113 -0
  97. data/generated_models/ncs_navigator/warehouse/models/two_point_one/person_race.rb +32 -0
  98. data/generated_models/ncs_navigator/warehouse/models/two_point_one/ppg_cati.rb +98 -0
  99. data/generated_models/ncs_navigator/warehouse/models/two_point_one/ppg_details.rb +41 -0
  100. data/generated_models/ncs_navigator/warehouse/models/two_point_one/ppg_saq.rb +92 -0
  101. data/generated_models/ncs_navigator/warehouse/models/two_point_one/ppg_status_history.rb +47 -0
  102. data/generated_models/ncs_navigator/warehouse/models/two_point_one/pre_preg.rb +422 -0
  103. data/generated_models/ncs_navigator/warehouse/models/two_point_one/pre_preg_cool.rb +32 -0
  104. data/generated_models/ncs_navigator/warehouse/models/two_point_one/pre_preg_heat2.rb +32 -0
  105. data/generated_models/ncs_navigator/warehouse/models/two_point_one/pre_preg_pdecorate_room.rb +32 -0
  106. data/generated_models/ncs_navigator/warehouse/models/two_point_one/pre_preg_prenovate_room.rb +32 -0
  107. data/generated_models/ncs_navigator/warehouse/models/two_point_one/pre_preg_room_mold.rb +32 -0
  108. data/generated_models/ncs_navigator/warehouse/models/two_point_one/pre_preg_saq.rb +116 -0
  109. data/generated_models/ncs_navigator/warehouse/models/two_point_one/pre_preg_sp_race.rb +32 -0
  110. data/generated_models/ncs_navigator/warehouse/models/two_point_one/prec_therm_cert.rb +41 -0
  111. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_eh.rb +350 -0
  112. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_eh_2.rb +362 -0
  113. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_eh_know_ncs.rb +29 -0
  114. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_eh_know_ncs_2.rb +32 -0
  115. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_eh_race.rb +29 -0
  116. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_eh_race_2.rb +32 -0
  117. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_hi.rb +371 -0
  118. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_hi_2.rb +380 -0
  119. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_hi_know_ncs.rb +29 -0
  120. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_hi_know_ncs_2.rb +32 -0
  121. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_hi_race.rb +29 -0
  122. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_hi_race_2.rb +32 -0
  123. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_pb.rb +371 -0
  124. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_pb_2.rb +380 -0
  125. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_pb_know_ncs.rb +29 -0
  126. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_pb_know_ncs_2.rb +32 -0
  127. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_pb_race.rb +29 -0
  128. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_screen_pb_race_2.rb +32 -0
  129. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1.rb +521 -0
  130. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_2.rb +497 -0
  131. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_commute.rb +29 -0
  132. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_commute_2.rb +32 -0
  133. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_cool.rb +29 -0
  134. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_cool_2.rb +32 -0
  135. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_diagnose_2.rb +29 -0
  136. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_diagnose_2_2.rb +29 -0
  137. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_heat2.rb +29 -0
  138. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_heat2_2.rb +32 -0
  139. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_local_trav.rb +29 -0
  140. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_local_trav_2.rb +32 -0
  141. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_nonenglish2_2.rb +32 -0
  142. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_pdecorate_room.rb +29 -0
  143. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_pdecorate_room_2.rb +32 -0
  144. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_pet_type.rb +29 -0
  145. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_pet_type_2.rb +32 -0
  146. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_prenovate2_room.rb +29 -0
  147. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_prenovate_room.rb +29 -0
  148. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_prenovate_room_2.rb +32 -0
  149. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_room_mold.rb +29 -0
  150. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_room_mold_2.rb +32 -0
  151. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_saq.rb +188 -0
  152. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_saq_2.rb +233 -0
  153. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_saq_3.rb +236 -0
  154. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_sp_race.rb +29 -0
  155. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_1_sp_race_2.rb +32 -0
  156. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2.rb +452 -0
  157. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_2.rb +440 -0
  158. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_cool.rb +29 -0
  159. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_cool_2.rb +32 -0
  160. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_diagnose_2.rb +29 -0
  161. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_diagnose_2_2.rb +32 -0
  162. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_heat2.rb +29 -0
  163. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_heat2_2.rb +32 -0
  164. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_pdecorate2_room.rb +29 -0
  165. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_pdecorate2_room_2.rb +32 -0
  166. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_prenovate_room.rb +29 -0
  167. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_prenovate_room_2.rb +32 -0
  168. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_room_mold.rb +29 -0
  169. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_room_mold_2.rb +32 -0
  170. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_saq.rb +116 -0
  171. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_2_saq_2.rb +116 -0
  172. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_li.rb +350 -0
  173. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_li_2.rb +350 -0
  174. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_li_cool.rb +29 -0
  175. data/generated_models/ncs_navigator/warehouse/models/two_point_one/preg_visit_li_cool_2.rb +32 -0
  176. data/generated_models/ncs_navigator/warehouse/models/two_point_one/provider.rb +62 -0
  177. data/generated_models/ncs_navigator/warehouse/models/two_point_one/provider_role.rb +32 -0
  178. data/generated_models/ncs_navigator/warehouse/models/two_point_one/psu.rb +29 -0
  179. data/generated_models/ncs_navigator/warehouse/models/two_point_one/ref_freezer_verification.rb +50 -0
  180. data/generated_models/ncs_navigator/warehouse/models/two_point_one/sample_receipt_confirm.rb +53 -0
  181. data/generated_models/ncs_navigator/warehouse/models/two_point_one/sample_receipt_store.rb +65 -0
  182. data/generated_models/ncs_navigator/warehouse/models/two_point_one/sample_shipping.rb +53 -0
  183. data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_mother.rb +278 -0
  184. data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_mother_detail.rb +266 -0
  185. data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_mother_pet.rb +32 -0
  186. data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_saq.rb +218 -0
  187. data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_saq_2.rb +218 -0
  188. data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_saq_formula_type.rb +29 -0
  189. data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_saq_formula_type_2.rb +29 -0
  190. data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_saq_supp.rb +32 -0
  191. data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_saq_supp_2.rb +32 -0
  192. data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_saq_water.rb +29 -0
  193. data/generated_models/ncs_navigator/warehouse/models/two_point_one/six_mth_saq_water_2.rb +29 -0
  194. data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_blood.rb +194 -0
  195. data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_blood_draw.rb +29 -0
  196. data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_blood_hemolyze.rb +29 -0
  197. data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_blood_tube.rb +38 -0
  198. data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_blood_tube_comments.rb +29 -0
  199. data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_cord_blood.rb +110 -0
  200. data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_cord_blood_2.rb +110 -0
  201. data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_cord_blood_specimen.rb +29 -0
  202. data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_cord_blood_specimen_2.rb +35 -0
  203. data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_equipment.rb +38 -0
  204. data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_pickup.rb +47 -0
  205. data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_receipt.rb +80 -0
  206. data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_shipping.rb +56 -0
  207. data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_spsc_info.rb +26 -0
  208. data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_storage.rb +62 -0
  209. data/generated_models/ncs_navigator/warehouse/models/two_point_one/spec_urine.rb +110 -0
  210. data/generated_models/ncs_navigator/warehouse/models/two_point_one/srsc_info.rb +26 -0
  211. data/generated_models/ncs_navigator/warehouse/models/two_point_one/ssu.rb +29 -0
  212. data/generated_models/ncs_navigator/warehouse/models/two_point_one/staff.rb +65 -0
  213. data/generated_models/ncs_navigator/warehouse/models/two_point_one/staff_cert_training.rb +47 -0
  214. data/generated_models/ncs_navigator/warehouse/models/two_point_one/staff_exp_data_cllctn_tasks.rb +44 -0
  215. data/generated_models/ncs_navigator/warehouse/models/two_point_one/staff_exp_mngmnt_tasks.rb +38 -0
  216. data/generated_models/ncs_navigator/warehouse/models/two_point_one/staff_language.rb +32 -0
  217. data/generated_models/ncs_navigator/warehouse/models/two_point_one/staff_validation.rb +38 -0
  218. data/generated_models/ncs_navigator/warehouse/models/two_point_one/staff_weekly_expense.rb +44 -0
  219. data/generated_models/ncs_navigator/warehouse/models/two_point_one/study_center.rb +26 -0
  220. data/generated_models/ncs_navigator/warehouse/models/two_point_one/subsample_doc.rb +29 -0
  221. data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twf.rb +152 -0
  222. data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twf_blank_collected.rb +29 -0
  223. data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twf_dup_collected.rb +29 -0
  224. data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twf_dup_filled.rb +29 -0
  225. data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twf_n_collected.rb +29 -0
  226. data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twf_reason_filled.rb +29 -0
  227. data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twf_reason_filled2.rb +29 -0
  228. data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twf_sample.rb +32 -0
  229. data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twf_subsamples.rb +29 -0
  230. data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twq.rb +143 -0
  231. data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twq_blank_collected.rb +29 -0
  232. data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twq_dup_collected.rb +29 -0
  233. data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twq_dup_filled.rb +29 -0
  234. data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twq_n_collected.rb +29 -0
  235. data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twq_reason_filled.rb +29 -0
  236. data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twq_reason_filled2.rb +29 -0
  237. data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twq_sample.rb +32 -0
  238. data/generated_models/ncs_navigator/warehouse/models/two_point_one/tap_water_twq_subsamples.rb +29 -0
  239. data/generated_models/ncs_navigator/warehouse/models/two_point_one/telephone.rb +83 -0
  240. data/generated_models/ncs_navigator/warehouse/models/two_point_one/three_mth_mother.rb +89 -0
  241. data/generated_models/ncs_navigator/warehouse/models/two_point_one/three_mth_mother_child_detail.rb +59 -0
  242. data/generated_models/ncs_navigator/warehouse/models/two_point_one/three_mth_mother_child_habits.rb +185 -0
  243. data/generated_models/ncs_navigator/warehouse/models/two_point_one/three_mth_mother_race.rb +32 -0
  244. data/generated_models/ncs_navigator/warehouse/models/two_point_one/trh_meter_calibration.rb +77 -0
  245. data/generated_models/ncs_navigator/warehouse/models/two_point_one/tsu.rb +29 -0
  246. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_mother.rb +299 -0
  247. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_mother_detail.rb +302 -0
  248. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_mother_lice.rb +29 -0
  249. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_mother_renovate_room.rb +32 -0
  250. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_mother_room_mold.rb +32 -0
  251. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_saq.rb +293 -0
  252. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_saq_2.rb +293 -0
  253. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_saq_formula_brand.rb +32 -0
  254. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_saq_formula_brand_2.rb +32 -0
  255. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_saq_formula_type.rb +29 -0
  256. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_saq_formula_type_2.rb +29 -0
  257. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_saq_supplement.rb +32 -0
  258. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_saq_supplement_2.rb +32 -0
  259. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_saq_water.rb +29 -0
  260. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twelve_mth_saq_water_2.rb +32 -0
  261. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_mother.rb +347 -0
  262. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_mother_cond.rb +29 -0
  263. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_mother_detail.rb +50 -0
  264. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_mother_habits.rb +194 -0
  265. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_mother_mold.rb +32 -0
  266. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_mother_otc.rb +47 -0
  267. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_mother_prescr.rb +47 -0
  268. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_mother_suppl.rb +47 -0
  269. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_pet_type.rb +32 -0
  270. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_renovate_room.rb +32 -0
  271. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_room_mold.rb +32 -0
  272. data/generated_models/ncs_navigator/warehouse/models/two_point_one/twenty_four_mth_saq.rb +242 -0
  273. data/generated_models/ncs_navigator/warehouse/models/two_point_one/vacuum_bag.rb +131 -0
  274. data/generated_models/ncs_navigator/warehouse/models/two_point_one/vacuum_bag_outside.rb +32 -0
  275. data/generated_models/ncs_navigator/warehouse/models/two_point_one/validation_ins.rb +233 -0
  276. data/generated_models/ncs_navigator/warehouse/models/two_point_two.rb +681 -0
  277. data/generated_models/ncs_navigator/warehouse/models/two_point_two/address.rb +101 -0
  278. data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit.rb +365 -0
  279. data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_2.rb +359 -0
  280. data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_baby_name.rb +47 -0
  281. data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_baby_name_2.rb +50 -0
  282. data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_decorate_room.rb +29 -0
  283. data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_decorate_room_2.rb +32 -0
  284. data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_li.rb +374 -0
  285. data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_li_baby_name.rb +47 -0
  286. data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_li_decorate_room.rb +32 -0
  287. data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_li_renovate_room.rb +32 -0
  288. data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_renovate_room.rb +29 -0
  289. data/generated_models/ncs_navigator/warehouse/models/two_point_two/birth_visit_renovate_room_2.rb +32 -0
  290. data/generated_models/ncs_navigator/warehouse/models/two_point_two/contact.rb +77 -0
  291. data/generated_models/ncs_navigator/warehouse/models/two_point_two/drf_therm_verification.rb +50 -0
  292. data/generated_models/ncs_navigator/warehouse/models/two_point_two/dwelling_unit.rb +53 -0
  293. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother.rb +350 -0
  294. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_2.rb +350 -0
  295. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_cond.rb +29 -0
  296. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_detail.rb +50 -0
  297. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_detail_2.rb +50 -0
  298. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_habits.rb +164 -0
  299. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_habits_2.rb +173 -0
  300. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_lice.rb +29 -0
  301. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_lice_2.rb +29 -0
  302. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_mold.rb +32 -0
  303. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_mold_2.rb +32 -0
  304. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_otc.rb +47 -0
  305. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_otc_2.rb +47 -0
  306. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_pet_type.rb +32 -0
  307. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_pet_type_2.rb +32 -0
  308. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_prescr.rb +47 -0
  309. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_prescr_2.rb +47 -0
  310. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_renovate_room.rb +32 -0
  311. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_renovate_room_2.rb +32 -0
  312. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_room_mold.rb +32 -0
  313. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_room_mold_2.rb +32 -0
  314. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_saq.rb +260 -0
  315. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_suppl.rb +47 -0
  316. data/generated_models/ncs_navigator/warehouse/models/two_point_two/eighteen_mth_mother_suppl_2.rb +47 -0
  317. data/generated_models/ncs_navigator/warehouse/models/two_point_two/email.rb +74 -0
  318. data/generated_models/ncs_navigator/warehouse/models/two_point_two/env_equipment.rb +47 -0
  319. data/generated_models/ncs_navigator/warehouse/models/two_point_two/env_equipment_prob_log.rb +50 -0
  320. data/generated_models/ncs_navigator/warehouse/models/two_point_two/event.rb +68 -0
  321. data/generated_models/ncs_navigator/warehouse/models/two_point_two/father_pv1.rb +374 -0
  322. data/generated_models/ncs_navigator/warehouse/models/two_point_two/father_pv1_2.rb +380 -0
  323. data/generated_models/ncs_navigator/warehouse/models/two_point_two/father_pv1_cancer.rb +29 -0
  324. data/generated_models/ncs_navigator/warehouse/models/two_point_two/father_pv1_cancer_2.rb +29 -0
  325. data/generated_models/ncs_navigator/warehouse/models/two_point_two/father_pv1_educ.rb +29 -0
  326. data/generated_models/ncs_navigator/warehouse/models/two_point_two/father_pv1_race.rb +29 -0
  327. data/generated_models/ncs_navigator/warehouse/models/two_point_two/father_pv1_race_2.rb +32 -0
  328. data/generated_models/ncs_navigator/warehouse/models/two_point_two/household_enumeration.rb +239 -0
  329. data/generated_models/ncs_navigator/warehouse/models/two_point_two/household_enumeration_age_elig.rb +38 -0
  330. data/generated_models/ncs_navigator/warehouse/models/two_point_two/household_enumeration_hidden_du.rb +50 -0
  331. data/generated_models/ncs_navigator/warehouse/models/two_point_two/household_enumeration_pregnant.rb +38 -0
  332. data/generated_models/ncs_navigator/warehouse/models/two_point_two/household_inventory.rb +203 -0
  333. data/generated_models/ncs_navigator/warehouse/models/two_point_two/household_inventory_age.rb +35 -0
  334. data/generated_models/ncs_navigator/warehouse/models/two_point_two/household_inventory_age_elig.rb +35 -0
  335. data/generated_models/ncs_navigator/warehouse/models/two_point_two/household_unit.rb +53 -0
  336. data/generated_models/ncs_navigator/warehouse/models/two_point_two/incident.rb +98 -0
  337. data/generated_models/ncs_navigator/warehouse/models/two_point_two/incident_media.rb +35 -0
  338. data/generated_models/ncs_navigator/warehouse/models/two_point_two/incident_unanticipated.rb +29 -0
  339. data/generated_models/ncs_navigator/warehouse/models/two_point_two/institution.rb +68 -0
  340. data/generated_models/ncs_navigator/warehouse/models/two_point_two/instrument.rb +74 -0
  341. data/generated_models/ncs_navigator/warehouse/models/two_point_two/internet_usage.rb +92 -0
  342. data/generated_models/ncs_navigator/warehouse/models/two_point_two/internet_usage_participate.rb +29 -0
  343. data/generated_models/ncs_navigator/warehouse/models/two_point_two/link_contact.rb +41 -0
  344. data/generated_models/ncs_navigator/warehouse/models/two_point_two/link_household_dwelling.rb +38 -0
  345. data/generated_models/ncs_navigator/warehouse/models/two_point_two/link_person_household.rb +38 -0
  346. data/generated_models/ncs_navigator/warehouse/models/two_point_two/link_person_institute.rb +38 -0
  347. data/generated_models/ncs_navigator/warehouse/models/two_point_two/link_person_participant.rb +38 -0
  348. data/generated_models/ncs_navigator/warehouse/models/two_point_two/link_person_provider.rb +38 -0
  349. data/generated_models/ncs_navigator/warehouse/models/two_point_two/listing_unit.rb +38 -0
  350. data/generated_models/ncs_navigator/warehouse/models/two_point_two/low_high_script.rb +119 -0
  351. data/generated_models/ncs_navigator/warehouse/models/two_point_two/nine_mth_mother.rb +65 -0
  352. data/generated_models/ncs_navigator/warehouse/models/two_point_two/nine_mth_mother_detail.rb +143 -0
  353. data/generated_models/ncs_navigator/warehouse/models/two_point_two/non_interview_rpt.rb +128 -0
  354. data/generated_models/ncs_navigator/warehouse/models/two_point_two/non_interview_rpt_dutype.rb +32 -0
  355. data/generated_models/ncs_navigator/warehouse/models/two_point_two/non_interview_rpt_noaccess.rb +32 -0
  356. data/generated_models/ncs_navigator/warehouse/models/two_point_two/non_interview_rpt_refusal.rb +32 -0
  357. data/generated_models/ncs_navigator/warehouse/models/two_point_two/non_interview_rpt_vacant.rb +32 -0
  358. data/generated_models/ncs_navigator/warehouse/models/two_point_two/outreach.rb +98 -0
  359. data/generated_models/ncs_navigator/warehouse/models/two_point_two/outreach_eval.rb +32 -0
  360. data/generated_models/ncs_navigator/warehouse/models/two_point_two/outreach_lang2.rb +29 -0
  361. data/generated_models/ncs_navigator/warehouse/models/two_point_two/outreach_race.rb +32 -0
  362. data/generated_models/ncs_navigator/warehouse/models/two_point_two/outreach_staff.rb +29 -0
  363. data/generated_models/ncs_navigator/warehouse/models/two_point_two/outreach_target.rb +32 -0
  364. data/generated_models/ncs_navigator/warehouse/models/two_point_two/participant.rb +62 -0
  365. data/generated_models/ncs_navigator/warehouse/models/two_point_two/participant_auth.rb +44 -0
  366. data/generated_models/ncs_navigator/warehouse/models/two_point_two/participant_consent.rb +86 -0
  367. data/generated_models/ncs_navigator/warehouse/models/two_point_two/participant_consent_sample.rb +35 -0
  368. data/generated_models/ncs_navigator/warehouse/models/two_point_two/participant_rvis.rb +74 -0
  369. data/generated_models/ncs_navigator/warehouse/models/two_point_two/participant_vis_consent.rb +53 -0
  370. data/generated_models/ncs_navigator/warehouse/models/two_point_two/pb_recruitment.rb +275 -0
  371. data/generated_models/ncs_navigator/warehouse/models/two_point_two/pb_recruitment_2.rb +275 -0
  372. data/generated_models/ncs_navigator/warehouse/models/two_point_two/pb_recruitment_info_source.rb +32 -0
  373. data/generated_models/ncs_navigator/warehouse/models/two_point_two/pb_recruitment_info_source_2.rb +29 -0
  374. data/generated_models/ncs_navigator/warehouse/models/two_point_two/pb_recruitment_prov_source.rb +32 -0
  375. data/generated_models/ncs_navigator/warehouse/models/two_point_two/pb_recruitment_prov_source_2.rb +29 -0
  376. data/generated_models/ncs_navigator/warehouse/models/two_point_two/pb_recruitment_prov_svc.rb +32 -0
  377. data/generated_models/ncs_navigator/warehouse/models/two_point_two/pb_recruitment_prov_svc_2.rb +32 -0
  378. data/generated_models/ncs_navigator/warehouse/models/two_point_two/person.rb +113 -0
  379. data/generated_models/ncs_navigator/warehouse/models/two_point_two/person_race.rb +32 -0
  380. data/generated_models/ncs_navigator/warehouse/models/two_point_two/ppg_cati.rb +98 -0
  381. data/generated_models/ncs_navigator/warehouse/models/two_point_two/ppg_details.rb +41 -0
  382. data/generated_models/ncs_navigator/warehouse/models/two_point_two/ppg_saq.rb +92 -0
  383. data/generated_models/ncs_navigator/warehouse/models/two_point_two/ppg_status_history.rb +47 -0
  384. data/generated_models/ncs_navigator/warehouse/models/two_point_two/pre_preg.rb +422 -0
  385. data/generated_models/ncs_navigator/warehouse/models/two_point_two/pre_preg_cool.rb +32 -0
  386. data/generated_models/ncs_navigator/warehouse/models/two_point_two/pre_preg_heat2.rb +32 -0
  387. data/generated_models/ncs_navigator/warehouse/models/two_point_two/pre_preg_pdecorate_room.rb +32 -0
  388. data/generated_models/ncs_navigator/warehouse/models/two_point_two/pre_preg_prenovate_room.rb +32 -0
  389. data/generated_models/ncs_navigator/warehouse/models/two_point_two/pre_preg_room_mold.rb +32 -0
  390. data/generated_models/ncs_navigator/warehouse/models/two_point_two/pre_preg_saq.rb +116 -0
  391. data/generated_models/ncs_navigator/warehouse/models/two_point_two/pre_preg_sp_race.rb +32 -0
  392. data/generated_models/ncs_navigator/warehouse/models/two_point_two/prec_therm_cert.rb +41 -0
  393. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_eh.rb +350 -0
  394. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_eh_2.rb +362 -0
  395. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_eh_know_ncs.rb +29 -0
  396. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_eh_know_ncs_2.rb +32 -0
  397. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_eh_race.rb +29 -0
  398. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_eh_race_2.rb +32 -0
  399. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_hi.rb +371 -0
  400. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_hi_2.rb +380 -0
  401. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_hi_know_ncs.rb +29 -0
  402. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_hi_know_ncs_2.rb +32 -0
  403. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_hi_race.rb +29 -0
  404. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_hi_race_2.rb +32 -0
  405. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_pb.rb +371 -0
  406. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_pb_2.rb +380 -0
  407. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_pb_know_ncs.rb +29 -0
  408. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_pb_know_ncs_2.rb +32 -0
  409. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_pb_race.rb +29 -0
  410. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_screen_pb_race_2.rb +32 -0
  411. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1.rb +521 -0
  412. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_2.rb +497 -0
  413. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_commute.rb +29 -0
  414. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_commute_2.rb +32 -0
  415. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_cool.rb +29 -0
  416. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_cool_2.rb +32 -0
  417. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_diagnose_2.rb +29 -0
  418. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_diagnose_2_2.rb +29 -0
  419. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_heat2.rb +29 -0
  420. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_heat2_2.rb +32 -0
  421. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_local_trav.rb +29 -0
  422. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_local_trav_2.rb +32 -0
  423. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_nonenglish2_2.rb +32 -0
  424. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_pdecorate_room.rb +29 -0
  425. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_pdecorate_room_2.rb +32 -0
  426. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_pet_type.rb +29 -0
  427. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_pet_type_2.rb +32 -0
  428. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_prenovate2_room.rb +29 -0
  429. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_prenovate_room.rb +29 -0
  430. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_prenovate_room_2.rb +32 -0
  431. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_room_mold.rb +29 -0
  432. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_room_mold_2.rb +32 -0
  433. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_saq.rb +188 -0
  434. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_saq_2.rb +233 -0
  435. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_saq_3.rb +236 -0
  436. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_sp_race.rb +29 -0
  437. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_1_sp_race_2.rb +32 -0
  438. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2.rb +452 -0
  439. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_2.rb +440 -0
  440. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_cool.rb +29 -0
  441. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_cool_2.rb +32 -0
  442. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_diagnose_2.rb +29 -0
  443. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_diagnose_2_2.rb +32 -0
  444. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_heat2.rb +29 -0
  445. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_heat2_2.rb +32 -0
  446. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_pdecorate2_room.rb +29 -0
  447. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_pdecorate2_room_2.rb +32 -0
  448. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_prenovate_room.rb +29 -0
  449. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_prenovate_room_2.rb +32 -0
  450. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_room_mold.rb +29 -0
  451. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_room_mold_2.rb +32 -0
  452. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_saq.rb +116 -0
  453. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_saq_2.rb +116 -0
  454. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_2_saq_3.rb +116 -0
  455. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_li.rb +350 -0
  456. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_li_2.rb +350 -0
  457. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_li_cool.rb +29 -0
  458. data/generated_models/ncs_navigator/warehouse/models/two_point_two/preg_visit_li_cool_2.rb +32 -0
  459. data/generated_models/ncs_navigator/warehouse/models/two_point_two/provider.rb +62 -0
  460. data/generated_models/ncs_navigator/warehouse/models/two_point_two/provider_role.rb +32 -0
  461. data/generated_models/ncs_navigator/warehouse/models/two_point_two/psu.rb +29 -0
  462. data/generated_models/ncs_navigator/warehouse/models/two_point_two/ref_freezer_verification.rb +62 -0
  463. data/generated_models/ncs_navigator/warehouse/models/two_point_two/sample_dist.rb +74 -0
  464. data/generated_models/ncs_navigator/warehouse/models/two_point_two/sample_dist_samp.rb +50 -0
  465. data/generated_models/ncs_navigator/warehouse/models/two_point_two/sample_receipt_confirm.rb +53 -0
  466. data/generated_models/ncs_navigator/warehouse/models/two_point_two/sample_receipt_store.rb +65 -0
  467. data/generated_models/ncs_navigator/warehouse/models/two_point_two/sample_shipping.rb +53 -0
  468. data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_mother.rb +281 -0
  469. data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_mother_detail.rb +266 -0
  470. data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_mother_pet.rb +32 -0
  471. data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_saq.rb +218 -0
  472. data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_saq_2.rb +221 -0
  473. data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_saq_formula_type.rb +29 -0
  474. data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_saq_formula_type_2.rb +29 -0
  475. data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_saq_supp.rb +32 -0
  476. data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_saq_supp_2.rb +32 -0
  477. data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_saq_water.rb +29 -0
  478. data/generated_models/ncs_navigator/warehouse/models/two_point_two/six_mth_saq_water_2.rb +29 -0
  479. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_blood.rb +194 -0
  480. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_blood_2.rb +197 -0
  481. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_blood_draw.rb +29 -0
  482. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_blood_draw_2.rb +29 -0
  483. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_blood_hemolyze.rb +29 -0
  484. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_blood_hemolyze_2.rb +29 -0
  485. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_blood_tube.rb +38 -0
  486. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_blood_tube_2.rb +38 -0
  487. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_blood_tube_comments.rb +29 -0
  488. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_blood_tube_comments_2.rb +29 -0
  489. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_cord_blood.rb +110 -0
  490. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_cord_blood_2.rb +110 -0
  491. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_cord_blood_3.rb +122 -0
  492. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_cord_blood_specimen.rb +29 -0
  493. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_cord_blood_specimen_2.rb +35 -0
  494. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_cord_blood_specimen_3.rb +35 -0
  495. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_equipment.rb +38 -0
  496. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_pickup.rb +47 -0
  497. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_receipt.rb +80 -0
  498. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_shipping.rb +56 -0
  499. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_spsc_info.rb +26 -0
  500. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_storage.rb +62 -0
  501. data/generated_models/ncs_navigator/warehouse/models/two_point_two/spec_urine.rb +110 -0
  502. data/generated_models/ncs_navigator/warehouse/models/two_point_two/srsc_info.rb +26 -0
  503. data/generated_models/ncs_navigator/warehouse/models/two_point_two/ssu.rb +29 -0
  504. data/generated_models/ncs_navigator/warehouse/models/two_point_two/staff.rb +65 -0
  505. data/generated_models/ncs_navigator/warehouse/models/two_point_two/staff_cert_training.rb +47 -0
  506. data/generated_models/ncs_navigator/warehouse/models/two_point_two/staff_exp_data_cllctn_tasks.rb +44 -0
  507. data/generated_models/ncs_navigator/warehouse/models/two_point_two/staff_exp_mngmnt_tasks.rb +38 -0
  508. data/generated_models/ncs_navigator/warehouse/models/two_point_two/staff_language.rb +32 -0
  509. data/generated_models/ncs_navigator/warehouse/models/two_point_two/staff_validation.rb +38 -0
  510. data/generated_models/ncs_navigator/warehouse/models/two_point_two/staff_weekly_expense.rb +44 -0
  511. data/generated_models/ncs_navigator/warehouse/models/two_point_two/study_center.rb +26 -0
  512. data/generated_models/ncs_navigator/warehouse/models/two_point_two/subsample_doc.rb +29 -0
  513. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf.rb +152 -0
  514. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_2.rb +155 -0
  515. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_blank_collected.rb +29 -0
  516. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_blank_collected_2.rb +29 -0
  517. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_dup_collected.rb +29 -0
  518. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_dup_collected_2.rb +29 -0
  519. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_dup_filled.rb +29 -0
  520. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_dup_filled_2.rb +29 -0
  521. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_n_collected.rb +29 -0
  522. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_n_collected_2.rb +29 -0
  523. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_reason_filled.rb +29 -0
  524. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_reason_filled2.rb +29 -0
  525. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_reason_filled2_2.rb +29 -0
  526. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_reason_filled_2.rb +29 -0
  527. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_sample.rb +32 -0
  528. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_sample_2.rb +32 -0
  529. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_saq.rb +98 -0
  530. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_saq_eat.rb +29 -0
  531. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_saq_prob.rb +32 -0
  532. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_subsamples.rb +29 -0
  533. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twf_subsamples_2.rb +29 -0
  534. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq.rb +143 -0
  535. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_2.rb +146 -0
  536. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_blank_collected.rb +29 -0
  537. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_blank_collected_2.rb +29 -0
  538. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_dup_collected.rb +29 -0
  539. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_dup_collected_2.rb +29 -0
  540. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_dup_filled.rb +29 -0
  541. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_dup_filled_2.rb +29 -0
  542. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_n_collected.rb +29 -0
  543. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_n_collected_2.rb +29 -0
  544. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_reason_filled.rb +29 -0
  545. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_reason_filled2.rb +29 -0
  546. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_reason_filled2_2.rb +29 -0
  547. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_reason_filled_2.rb +29 -0
  548. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_sample.rb +32 -0
  549. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_sample_2.rb +32 -0
  550. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_saq.rb +98 -0
  551. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_saq_prob.rb +32 -0
  552. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_subsamples.rb +29 -0
  553. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tap_water_twq_subsamples_2.rb +29 -0
  554. data/generated_models/ncs_navigator/warehouse/models/two_point_two/telephone.rb +83 -0
  555. data/generated_models/ncs_navigator/warehouse/models/two_point_two/three_mth_mother.rb +92 -0
  556. data/generated_models/ncs_navigator/warehouse/models/two_point_two/three_mth_mother_child_detail.rb +59 -0
  557. data/generated_models/ncs_navigator/warehouse/models/two_point_two/three_mth_mother_child_habits.rb +185 -0
  558. data/generated_models/ncs_navigator/warehouse/models/two_point_two/three_mth_mother_race.rb +32 -0
  559. data/generated_models/ncs_navigator/warehouse/models/two_point_two/trh_meter_calibration.rb +77 -0
  560. data/generated_models/ncs_navigator/warehouse/models/two_point_two/tsu.rb +29 -0
  561. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_mother.rb +302 -0
  562. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_mother_detail.rb +302 -0
  563. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_mother_lice.rb +29 -0
  564. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_mother_renovate_room.rb +32 -0
  565. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_mother_room_mold.rb +32 -0
  566. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_saq.rb +293 -0
  567. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_saq_2.rb +296 -0
  568. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_saq_formula_brand.rb +32 -0
  569. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_saq_formula_brand_2.rb +32 -0
  570. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_saq_formula_type.rb +29 -0
  571. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_saq_formula_type_2.rb +29 -0
  572. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_saq_supplement.rb +32 -0
  573. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_saq_supplement_2.rb +32 -0
  574. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_saq_water.rb +29 -0
  575. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twelve_mth_saq_water_2.rb +32 -0
  576. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother.rb +350 -0
  577. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_2.rb +353 -0
  578. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_cond.rb +29 -0
  579. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_detail.rb +50 -0
  580. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_detail_2.rb +50 -0
  581. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_habits.rb +194 -0
  582. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_habits_2.rb +200 -0
  583. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_mold.rb +32 -0
  584. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_mold_2.rb +32 -0
  585. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_otc.rb +47 -0
  586. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_otc_2.rb +47 -0
  587. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_prescr.rb +47 -0
  588. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_prescr_2.rb +47 -0
  589. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_suppl.rb +47 -0
  590. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_mother_suppl_2.rb +47 -0
  591. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_pet_type.rb +32 -0
  592. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_pet_type_2.rb +32 -0
  593. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_renovate_room.rb +32 -0
  594. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_renovate_room_2.rb +32 -0
  595. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_room_mold.rb +32 -0
  596. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_room_mold_2.rb +32 -0
  597. data/generated_models/ncs_navigator/warehouse/models/two_point_two/twenty_four_mth_saq.rb +245 -0
  598. data/generated_models/ncs_navigator/warehouse/models/two_point_two/vacuum_bag.rb +131 -0
  599. data/generated_models/ncs_navigator/warehouse/models/two_point_two/vacuum_bag_2.rb +137 -0
  600. data/generated_models/ncs_navigator/warehouse/models/two_point_two/vacuum_bag_outside.rb +32 -0
  601. data/generated_models/ncs_navigator/warehouse/models/two_point_two/vacuum_bag_outside_2.rb +32 -0
  602. data/generated_models/ncs_navigator/warehouse/models/two_point_two/vacuum_bag_saq.rb +89 -0
  603. data/generated_models/ncs_navigator/warehouse/models/two_point_two/vacuum_bag_saq_outside.rb +32 -0
  604. data/generated_models/ncs_navigator/warehouse/models/two_point_two/vacuum_bag_saq_prob.rb +32 -0
  605. data/generated_models/ncs_navigator/warehouse/models/two_point_two/validation_ins.rb +233 -0
  606. data/generated_models/ncs_navigator/warehouse/models/two_point_zero.rb +53 -53
  607. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/birth_visit_2.rb +1 -1
  608. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/birth_visit_baby_name_2.rb +2 -2
  609. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/birth_visit_decorate_room_2.rb +2 -2
  610. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/birth_visit_renovate_room_2.rb +2 -2
  611. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/pb_recruitment_2.rb +1 -1
  612. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/pb_recruitment_info_source_2.rb +2 -2
  613. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/pb_recruitment_prov_source_2.rb +2 -2
  614. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/pb_recruitment_prov_svc_2.rb +2 -2
  615. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_screen_eh_2.rb +1 -1
  616. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_screen_eh_know_ncs_2.rb +2 -2
  617. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_screen_eh_race_2.rb +2 -2
  618. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_screen_hi_2.rb +1 -1
  619. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_screen_hi_know_ncs_2.rb +2 -2
  620. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_screen_hi_race_2.rb +2 -2
  621. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_screen_pb_2.rb +1 -1
  622. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_screen_pb_know_ncs_2.rb +2 -2
  623. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_screen_pb_race_2.rb +2 -2
  624. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1.rb +1 -1
  625. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_2.rb +1 -1
  626. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_commute.rb +1 -1
  627. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_commute_2.rb +2 -2
  628. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_cool.rb +1 -1
  629. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_cool_2.rb +2 -2
  630. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_diagnose_2.rb +2 -2
  631. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_diagnose_2_2.rb +2 -2
  632. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_heat2.rb +1 -1
  633. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_heat2_2.rb +2 -2
  634. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_local_trav.rb +1 -1
  635. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_local_trav_2.rb +2 -2
  636. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_nonenglish2_2.rb +2 -2
  637. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_pdecorate_room.rb +1 -1
  638. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_pdecorate_room_2.rb +2 -2
  639. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_pet_type.rb +1 -1
  640. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_pet_type_2.rb +2 -2
  641. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_prenovate2_room.rb +1 -1
  642. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_prenovate_room.rb +1 -1
  643. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_prenovate_room_2.rb +2 -2
  644. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_room_mold.rb +1 -1
  645. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_room_mold_2.rb +2 -2
  646. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_saq_2.rb +1 -1
  647. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_sp_race.rb +1 -1
  648. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_1_sp_race_2.rb +2 -2
  649. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2.rb +1 -1
  650. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_2.rb +1 -1
  651. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_cool.rb +1 -1
  652. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_cool_2.rb +2 -2
  653. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_diagnose_2.rb +2 -2
  654. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_diagnose_2_2.rb +2 -2
  655. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_heat2.rb +1 -1
  656. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_heat2_2.rb +2 -2
  657. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_pdecorate2_room.rb +1 -1
  658. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_pdecorate2_room_2.rb +2 -2
  659. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_prenovate_room.rb +1 -1
  660. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_prenovate_room_2.rb +2 -2
  661. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_room_mold.rb +1 -1
  662. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_room_mold_2.rb +2 -2
  663. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_2_saq_2.rb +1 -1
  664. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_li_2.rb +1 -1
  665. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/preg_visit_li_cool_2.rb +2 -2
  666. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/six_mth_saq_2.rb +1 -1
  667. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/six_mth_saq_formula_type_2.rb +2 -2
  668. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/six_mth_saq_supp_2.rb +2 -2
  669. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/six_mth_saq_water_2.rb +2 -2
  670. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/twelve_mth_saq_2.rb +1 -1
  671. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/twelve_mth_saq_formula_brand_2.rb +2 -2
  672. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/twelve_mth_saq_formula_type_2.rb +2 -2
  673. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/twelve_mth_saq_supplement_2.rb +2 -2
  674. data/generated_models/ncs_navigator/warehouse/models/two_point_zero/twelve_mth_saq_water_2.rb +2 -2
  675. data/lib/ncs_navigator/warehouse/cli.rb +33 -0
  676. data/lib/ncs_navigator/warehouse/configuration/file_evaluator.rb +9 -0
  677. data/lib/ncs_navigator/warehouse/table_modeler/mdes_ext.rb +6 -1
  678. data/lib/ncs_navigator/warehouse/transform_load.rb +6 -0
  679. data/lib/ncs_navigator/warehouse/transformers.rb +11 -5
  680. data/lib/ncs_navigator/warehouse/transformers/apply_global_values_filter.rb +63 -0
  681. data/lib/ncs_navigator/warehouse/transformers/coded_as_missing_filter.rb +91 -0
  682. data/lib/ncs_navigator/warehouse/transformers/database.rb +1 -1
  683. data/lib/ncs_navigator/warehouse/transformers/enum_transformer.rb +34 -15
  684. data/lib/ncs_navigator/warehouse/transformers/filters.rb +66 -0
  685. data/lib/ncs_navigator/warehouse/transformers/no_blank_foreign_keys_filter.rb +29 -0
  686. data/lib/ncs_navigator/warehouse/transformers/no_ssu_outreach_all_ssus_filter.rb +102 -0
  687. data/lib/ncs_navigator/warehouse/transformers/no_ssu_outreach_placeholder_filter.rb +61 -0
  688. data/lib/ncs_navigator/warehouse/transformers/vdr_xml.rb +7 -4
  689. data/lib/ncs_navigator/warehouse/transformers/vdr_xml/reader.rb +1 -13
  690. data/lib/ncs_navigator/warehouse/version.rb +1 -1
  691. data/ncs_mdes_warehouse.gemspec +1 -1
  692. data/spec/ncs_navigator/warehouse/configuration_spec.rb +16 -0
  693. data/spec/ncs_navigator/warehouse/models_spec.rb +13 -0
  694. data/spec/ncs_navigator/warehouse/table_modeler_spec.rb +7 -1
  695. data/spec/ncs_navigator/warehouse/transformers/apply_global_values_filter_spec.rb +44 -0
  696. data/spec/ncs_navigator/warehouse/transformers/coded_as_missing_filter_spec.rb +68 -0
  697. data/spec/ncs_navigator/warehouse/transformers/database_spec.rb +9 -1
  698. data/spec/ncs_navigator/warehouse/transformers/enum_transformer_spec.rb +72 -27
  699. data/spec/ncs_navigator/warehouse/transformers/filters_spec.rb +97 -0
  700. data/spec/ncs_navigator/warehouse/transformers/no_blank_foreign_keys_filter_spec.rb +29 -0
  701. data/spec/ncs_navigator/warehouse/transformers/no_ssu_outreach_all_ssus_filter_spec.rb +166 -0
  702. data/spec/ncs_navigator/warehouse/transformers/no_ssu_outreach_placeholder_filter_spec.rb +60 -0
  703. data/spec/ncs_navigator/warehouse/transformers/sampling_units_spec.rb +5 -4
  704. data/spec/ncs_navigator/warehouse/transformers/vdr_xml/reader_spec.rb +2 -32
  705. data/spec/ncs_navigator/warehouse/transformers/vdr_xml_spec.rb +7 -2
  706. data/spec/spec_helper.rb +18 -4
  707. data/spec/test_samples.csv +1 -0
  708. 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
- rec = build_current_instance
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)
@@ -1,5 +1,5 @@
1
1
  module NcsNavigator
2
2
  module Warehouse
3
- VERSION = '0.5.0'
3
+ VERSION = '0.6.0'
4
4
  end
5
5
  end
@@ -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.5'
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::GenerationalTableau1.
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 { enumerator_def.create_transformer(configuration, :repository => :alpha) }
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