ccls-ccls_engine 3.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (269) hide show
  1. data/README.rdoc +182 -0
  2. data/app/models/abstract.rb +181 -0
  3. data/app/models/abstract_search.rb +50 -0
  4. data/app/models/abstract_validations.rb +324 -0
  5. data/app/models/address.rb +70 -0
  6. data/app/models/address_type.rb +15 -0
  7. data/app/models/addressing.rb +147 -0
  8. data/app/models/aliquot.rb +44 -0
  9. data/app/models/aliquot_sample_format.rb +13 -0
  10. data/app/models/analysis.rb +14 -0
  11. data/app/models/bc_request.rb +20 -0
  12. data/app/models/candidate_control.rb +101 -0
  13. data/app/models/context.rb +23 -0
  14. data/app/models/context_data_source.rb +4 -0
  15. data/app/models/county.rb +16 -0
  16. data/app/models/data_source.rb +24 -0
  17. data/app/models/diagnosis.rb +23 -0
  18. data/app/models/document_type.rb +16 -0
  19. data/app/models/document_version.rb +27 -0
  20. data/app/models/enrollment.rb +78 -0
  21. data/app/models/enrollment_validations.rb +167 -0
  22. data/app/models/follow_up.rb +16 -0
  23. data/app/models/follow_up_type.rb +18 -0
  24. data/app/models/gift_card.rb +22 -0
  25. data/app/models/gift_card_search.rb +137 -0
  26. data/app/models/home_exposure_response.rb +24 -0
  27. data/app/models/homex_outcome.rb +75 -0
  28. data/app/models/hospital.rb +22 -0
  29. data/app/models/icf_master_id.rb +30 -0
  30. data/app/models/icf_master_tracker.rb +217 -0
  31. data/app/models/icf_master_tracker_change.rb +9 -0
  32. data/app/models/icf_master_tracker_update.rb +50 -0
  33. data/app/models/ineligible_reason.rb +26 -0
  34. data/app/models/instrument.rb +26 -0
  35. data/app/models/instrument_type.rb +17 -0
  36. data/app/models/instrument_version.rb +28 -0
  37. data/app/models/interview.rb +122 -0
  38. data/app/models/interview_method.rb +17 -0
  39. data/app/models/interview_outcome.rb +16 -0
  40. data/app/models/language.rb +28 -0
  41. data/app/models/live_birth_data_update.rb +142 -0
  42. data/app/models/operational_event.rb +99 -0
  43. data/app/models/operational_event_type.rb +31 -0
  44. data/app/models/organization.rb +28 -0
  45. data/app/models/patient.rb +63 -0
  46. data/app/models/patient_validations.rb +118 -0
  47. data/app/models/person.rb +28 -0
  48. data/app/models/phone_number.rb +105 -0
  49. data/app/models/phone_type.rb +15 -0
  50. data/app/models/project.rb +39 -0
  51. data/app/models/project_outcome.rb +19 -0
  52. data/app/models/race.rb +31 -0
  53. data/app/models/refusal_reason.rb +23 -0
  54. data/app/models/sample.rb +168 -0
  55. data/app/models/sample_kit.rb +14 -0
  56. data/app/models/sample_outcome.rb +16 -0
  57. data/app/models/sample_temperature.rb +14 -0
  58. data/app/models/sample_type.rb +37 -0
  59. data/app/models/search.rb +195 -0
  60. data/app/models/section.rb +18 -0
  61. data/app/models/state.rb +25 -0
  62. data/app/models/study_subject.rb +237 -0
  63. data/app/models/study_subject_abstracts.rb +47 -0
  64. data/app/models/study_subject_addresses.rb +34 -0
  65. data/app/models/study_subject_associations.rb +38 -0
  66. data/app/models/study_subject_duplicates.rb +111 -0
  67. data/app/models/study_subject_enrollments.rb +17 -0
  68. data/app/models/study_subject_homex_outcome.rb +22 -0
  69. data/app/models/study_subject_identifier.rb +153 -0
  70. data/app/models/study_subject_interviews.rb +25 -0
  71. data/app/models/study_subject_languages.rb +21 -0
  72. data/app/models/study_subject_operational_events.rb +66 -0
  73. data/app/models/study_subject_patient.rb +177 -0
  74. data/app/models/study_subject_pii.rb +74 -0
  75. data/app/models/study_subject_races.rb +25 -0
  76. data/app/models/study_subject_search.rb +260 -0
  77. data/app/models/study_subject_validations.rb +116 -0
  78. data/app/models/subject_language.rb +11 -0
  79. data/app/models/subject_race.rb +11 -0
  80. data/app/models/subject_relationship.rb +21 -0
  81. data/app/models/subject_type.rb +22 -0
  82. data/app/models/tracing_status.rb +20 -0
  83. data/app/models/transfer.rb +40 -0
  84. data/app/models/unit.rb +14 -0
  85. data/app/models/vital_status.rb +19 -0
  86. data/app/models/zip_code.rb +36 -0
  87. data/config/abstract_fields.yml +1038 -0
  88. data/config/abstract_sections.yml +77 -0
  89. data/config/home_exposure_response_fields.yml +583 -0
  90. data/config/icf_master_tracker_update.yml +56 -0
  91. data/config/live_birth_data_update.yml +56 -0
  92. data/config/shared_use_db.yml +4 -0
  93. data/generators/ccls_engine/USAGE +2 -0
  94. data/generators/ccls_engine/ccls_engine_generator.rb +123 -0
  95. data/generators/ccls_engine/templates/autotest_ccls_engine.rb +3 -0
  96. data/generators/ccls_engine/templates/ccls_engine.rake +12 -0
  97. data/generators/ccls_engine/templates/fixtures/address_types.yml +30 -0
  98. data/generators/ccls_engine/templates/fixtures/context_data_sources.yml +54 -0
  99. data/generators/ccls_engine/templates/fixtures/contexts.yml +19 -0
  100. data/generators/ccls_engine/templates/fixtures/data_sources.yml +40 -0
  101. data/generators/ccls_engine/templates/fixtures/diagnoses.yml +40 -0
  102. data/generators/ccls_engine/templates/fixtures/document_types.yml +65 -0
  103. data/generators/ccls_engine/templates/fixtures/document_versions.csv +155 -0
  104. data/generators/ccls_engine/templates/fixtures/follow_up_types.yml +16 -0
  105. data/generators/ccls_engine/templates/fixtures/hospitals.yml +114 -0
  106. data/generators/ccls_engine/templates/fixtures/ineligible_reasons.yml +35 -0
  107. data/generators/ccls_engine/templates/fixtures/instrument_types.yml +26 -0
  108. data/generators/ccls_engine/templates/fixtures/instrument_versions.yml +22 -0
  109. data/generators/ccls_engine/templates/fixtures/instruments.yml +22 -0
  110. data/generators/ccls_engine/templates/fixtures/interview_methods.yml +30 -0
  111. data/generators/ccls_engine/templates/fixtures/interview_outcomes.yml +31 -0
  112. data/generators/ccls_engine/templates/fixtures/languages.yml +34 -0
  113. data/generators/ccls_engine/templates/fixtures/operational_event_types.yml +141 -0
  114. data/generators/ccls_engine/templates/fixtures/organizations.yml +198 -0
  115. data/generators/ccls_engine/templates/fixtures/people.yml +130 -0
  116. data/generators/ccls_engine/templates/fixtures/phone_types.yml +30 -0
  117. data/generators/ccls_engine/templates/fixtures/project_outcomes.yml +25 -0
  118. data/generators/ccls_engine/templates/fixtures/projects.yml +59 -0
  119. data/generators/ccls_engine/templates/fixtures/races.yml +52 -0
  120. data/generators/ccls_engine/templates/fixtures/refusal_reasons.yml +55 -0
  121. data/generators/ccls_engine/templates/fixtures/sample_outcomes.yml +36 -0
  122. data/generators/ccls_engine/templates/fixtures/sample_temperatures.yml +16 -0
  123. data/generators/ccls_engine/templates/fixtures/sample_types.yml +147 -0
  124. data/generators/ccls_engine/templates/fixtures/sections.yml +31 -0
  125. data/generators/ccls_engine/templates/fixtures/states.yml +363 -0
  126. data/generators/ccls_engine/templates/fixtures/subject_relationships.yml +46 -0
  127. data/generators/ccls_engine/templates/fixtures/subject_types.yml +30 -0
  128. data/generators/ccls_engine/templates/fixtures/tracing_statuses.yml +30 -0
  129. data/generators/ccls_engine/templates/fixtures/units.yml +13 -0
  130. data/generators/ccls_engine/templates/fixtures/vital_statuses.yml +28 -0
  131. data/generators/ccls_engine/templates/functional/roles_controller_test.rb +142 -0
  132. data/generators/ccls_engine/templates/functional/sessions_controller_test.rb +19 -0
  133. data/generators/ccls_engine/templates/functional/users_controller_test.rb +94 -0
  134. data/generators/ccls_engine/templates/images/sort_down.png +0 -0
  135. data/generators/ccls_engine/templates/images/sort_up.png +0 -0
  136. data/generators/ccls_engine/templates/initializer.rb +28 -0
  137. data/generators/ccls_engine/templates/javascripts/ccls_engine.js +24 -0
  138. data/generators/ccls_engine/templates/javascripts/jquery-ui.js +763 -0
  139. data/generators/ccls_engine/templates/javascripts/jquery.js +154 -0
  140. data/generators/ccls_engine/templates/javascripts/jrails.js +1 -0
  141. data/generators/ccls_engine/templates/migrations/create_user_invitations.rb +18 -0
  142. data/generators/ccls_engine/templates/migrations/create_users.rb +33 -0
  143. data/generators/ccls_engine/templates/migrations/drop_user_invitations.rb +18 -0
  144. data/generators/ccls_engine/templates/stylesheets/ccls_engine.css +180 -0
  145. data/generators/ccls_engine/templates/stylesheets/user.css +35 -0
  146. data/generators/ccls_engine/templates/stylesheets/users.css +23 -0
  147. data/generators/ccls_engine/templates/unit/core_extension_test.rb +18 -0
  148. data/generators/ccls_engine/templates/unit/role_test.rb +30 -0
  149. data/generators/ccls_engine/templates/unit/user_test.rb +321 -0
  150. data/lib/ccls-ccls_engine.rb +1 -0
  151. data/lib/ccls_engine.rb +135 -0
  152. data/lib/ccls_engine/action_view_extension.rb +3 -0
  153. data/lib/ccls_engine/action_view_extension/base.rb +53 -0
  154. data/lib/ccls_engine/action_view_extension/form_builder.rb +39 -0
  155. data/lib/ccls_engine/active_record_extension.rb +2 -0
  156. data/lib/ccls_engine/active_record_extension/base.rb +70 -0
  157. data/lib/ccls_engine/active_record_shared.rb +8 -0
  158. data/lib/ccls_engine/assertions.rb +69 -0
  159. data/lib/ccls_engine/autotest.rb +54 -0
  160. data/lib/ccls_engine/ccls_user.rb +117 -0
  161. data/lib/ccls_engine/core_extension.rb +14 -0
  162. data/lib/ccls_engine/date_and_time_formats.rb +30 -0
  163. data/lib/ccls_engine/factories.rb +880 -0
  164. data/lib/ccls_engine/factory_test_helper.rb +276 -0
  165. data/lib/ccls_engine/helper.rb +112 -0
  166. data/lib/ccls_engine/icf_master_tracker_update_test_helper.rb +121 -0
  167. data/lib/ccls_engine/live_birth_data_update_test_helper.rb +110 -0
  168. data/lib/ccls_engine/package_test_helper.rb +49 -0
  169. data/lib/ccls_engine/shared_database.rb +20 -0
  170. data/lib/ccls_engine/tasks.rb +1 -0
  171. data/lib/ccls_engine/test_tasks.rb +52 -0
  172. data/lib/ccls_engine/translation_table.rb +86 -0
  173. data/lib/shared_migration.rb +5 -0
  174. data/lib/surveyor/survey_extensions.rb +125 -0
  175. data/lib/tasks/application.rake +286 -0
  176. data/lib/tasks/calnet_authenticated.rake +6 -0
  177. data/lib/tasks/common_lib.rake +7 -0
  178. data/lib/tasks/database.rake +288 -0
  179. data/lib/tasks/documentation.rake +71 -0
  180. data/lib/tasks/homex_import.rake +723 -0
  181. data/lib/tasks/odms_import.rake +1116 -0
  182. data/lib/tasks/simply_authorized.rake +6 -0
  183. data/lib/tasks/ucb_ccls_engine_tasks.rake +4 -0
  184. data/lib/tasks/use_db.rake +4 -0
  185. data/rails/init.rb +4 -0
  186. data/test/unit/ccls/abstract_search_test.rb +150 -0
  187. data/test/unit/ccls/abstract_test.rb +674 -0
  188. data/test/unit/ccls/address_test.rb +155 -0
  189. data/test/unit/ccls/address_type_test.rb +25 -0
  190. data/test/unit/ccls/addressing_test.rb +466 -0
  191. data/test/unit/ccls/aliquot_sample_format_test.rb +20 -0
  192. data/test/unit/ccls/aliquot_test.rb +156 -0
  193. data/test/unit/ccls/analysis_test.rb +31 -0
  194. data/test/unit/ccls/bc_request_test.rb +43 -0
  195. data/test/unit/ccls/candidate_control_test.rb +712 -0
  196. data/test/unit/ccls/context_data_source_test.rb +26 -0
  197. data/test/unit/ccls/context_test.rb +40 -0
  198. data/test/unit/ccls/core_extension_test.rb +17 -0
  199. data/test/unit/ccls/county_test.rb +34 -0
  200. data/test/unit/ccls/data_source_test.rb +41 -0
  201. data/test/unit/ccls/diagnosis_test.rb +51 -0
  202. data/test/unit/ccls/document_type_test.rb +35 -0
  203. data/test/unit/ccls/document_version_test.rb +68 -0
  204. data/test/unit/ccls/enrollment_test.rb +575 -0
  205. data/test/unit/ccls/follow_up_test.rb +23 -0
  206. data/test/unit/ccls/follow_up_type_test.rb +34 -0
  207. data/test/unit/ccls/gift_card_search_test.rb +153 -0
  208. data/test/unit/ccls/gift_card_test.rb +40 -0
  209. data/test/unit/ccls/home_exposure_response_test.rb +83 -0
  210. data/test/unit/ccls/homex_outcome_test.rb +199 -0
  211. data/test/unit/ccls/hospital_test.rb +102 -0
  212. data/test/unit/ccls/icf_master_id_test.rb +30 -0
  213. data/test/unit/ccls/icf_master_tracker_change_test.rb +14 -0
  214. data/test/unit/ccls/icf_master_tracker_test.rb +132 -0
  215. data/test/unit/ccls/icf_master_tracker_update_test.rb +176 -0
  216. data/test/unit/ccls/ineligible_reason_test.rb +48 -0
  217. data/test/unit/ccls/instrument_test.rb +62 -0
  218. data/test/unit/ccls/instrument_type_test.rb +39 -0
  219. data/test/unit/ccls/instrument_version_test.rb +71 -0
  220. data/test/unit/ccls/interview_method_test.rb +44 -0
  221. data/test/unit/ccls/interview_outcome_test.rb +34 -0
  222. data/test/unit/ccls/interview_test.rb +298 -0
  223. data/test/unit/ccls/language_test.rb +47 -0
  224. data/test/unit/ccls/live_birth_data_update_test.rb +358 -0
  225. data/test/unit/ccls/operational_event_test.rb +187 -0
  226. data/test/unit/ccls/operational_event_type_test.rb +51 -0
  227. data/test/unit/ccls/organization_test.rb +64 -0
  228. data/test/unit/ccls/patient_test.rb +538 -0
  229. data/test/unit/ccls/person_test.rb +55 -0
  230. data/test/unit/ccls/phone_number_test.rb +244 -0
  231. data/test/unit/ccls/phone_type_test.rb +32 -0
  232. data/test/unit/ccls/project_outcome_test.rb +34 -0
  233. data/test/unit/ccls/project_test.rb +60 -0
  234. data/test/unit/ccls/race_test.rb +37 -0
  235. data/test/unit/ccls/refusal_reason_test.rb +52 -0
  236. data/test/unit/ccls/role_test.rb +26 -0
  237. data/test/unit/ccls/sample_kit_test.rb +35 -0
  238. data/test/unit/ccls/sample_outcome_test.rb +34 -0
  239. data/test/unit/ccls/sample_temperature_test.rb +25 -0
  240. data/test/unit/ccls/sample_test.rb +363 -0
  241. data/test/unit/ccls/sample_type_test.rb +58 -0
  242. data/test/unit/ccls/section_test.rb +34 -0
  243. data/test/unit/ccls/state_test.rb +31 -0
  244. data/test/unit/ccls/study_subject_abstracts_test.rb +115 -0
  245. data/test/unit/ccls/study_subject_addresses_test.rb +93 -0
  246. data/test/unit/ccls/study_subject_duplicates_test.rb +407 -0
  247. data/test/unit/ccls/study_subject_enrollments_test.rb +65 -0
  248. data/test/unit/ccls/study_subject_homex_outcome_test.rb +64 -0
  249. data/test/unit/ccls/study_subject_identifier_test.rb +439 -0
  250. data/test/unit/ccls/study_subject_interviews_test.rb +26 -0
  251. data/test/unit/ccls/study_subject_languages_test.rb +142 -0
  252. data/test/unit/ccls/study_subject_operational_events_test.rb +53 -0
  253. data/test/unit/ccls/study_subject_patient_test.rb +249 -0
  254. data/test/unit/ccls/study_subject_pii_test.rb +278 -0
  255. data/test/unit/ccls/study_subject_races_test.rb +203 -0
  256. data/test/unit/ccls/study_subject_search_test.rb +704 -0
  257. data/test/unit/ccls/study_subject_test.rb +770 -0
  258. data/test/unit/ccls/subject_language_test.rb +43 -0
  259. data/test/unit/ccls/subject_race_test.rb +35 -0
  260. data/test/unit/ccls/subject_relationship_test.rb +43 -0
  261. data/test/unit/ccls/subject_type_test.rb +40 -0
  262. data/test/unit/ccls/tracing_status_test.rb +32 -0
  263. data/test/unit/ccls/transfer_test.rb +81 -0
  264. data/test/unit/ccls/translation_table_test.rb +40 -0
  265. data/test/unit/ccls/unit_test.rb +21 -0
  266. data/test/unit/ccls/user_test.rb +156 -0
  267. data/test/unit/ccls/vital_status_test.rb +36 -0
  268. data/test/unit/ccls/zip_code_test.rb +55 -0
  269. metadata +633 -0
@@ -0,0 +1,30 @@
1
+ #
2
+ # Do not change id or key
3
+ # 'id' could be referenced by existing data
4
+ # 'key' is used in the rails code for searching
5
+ #
6
+ # Be Advised. Yaml fixture labels MUST BE UNIQUE.
7
+ # If a label is repeated, only the last one will exist.
8
+ #
9
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
10
+ #
11
+ home:
12
+ id: 1
13
+ position: 1
14
+ key: home
15
+ description: home
16
+ mobile:
17
+ id: 2
18
+ position: 2
19
+ key: mobile
20
+ description: mobile
21
+ work:
22
+ id: 3
23
+ position: 3
24
+ key: work
25
+ description: work
26
+ dk:
27
+ id: 4
28
+ position: 4
29
+ key: unknown
30
+ description: unknown
@@ -0,0 +1,25 @@
1
+ #
2
+ # Do not change id or key
3
+ # 'id' could be referenced by existing data
4
+ # 'key' is used in the rails code for searching
5
+ #
6
+ # Be Advised. Yaml fixture labels MUST BE UNIQUE.
7
+ # If a label is repeated, only the last one will exist.
8
+ #
9
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
10
+ #
11
+ complete:
12
+ id: 1
13
+ project_id: 1
14
+ key: complete
15
+ description: complete
16
+ closed:
17
+ id: 2
18
+ project_id: 1
19
+ key: closed
20
+ description: closed prior to completion
21
+ open:
22
+ id: 3
23
+ project_id: 1
24
+ key: open
25
+ description: open (pending)
@@ -0,0 +1,59 @@
1
+ #
2
+ # Do not change id or key
3
+ # 'id' could be referenced by existing data
4
+ # 'key' is used in the rails code for searching
5
+ #
6
+ # Be Advised. Yaml fixture labels MUST BE UNIQUE.
7
+ # If a label is repeated, only the last one will exist.
8
+ #
9
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
10
+ #
11
+ tier1:
12
+ id: 1
13
+ key: Tier_1
14
+ position: 5
15
+ description: CCLS Tier 1 study
16
+ tier2:
17
+ id: 2
18
+ key: Tier_2
19
+ position: 4
20
+ description: CCLS Tier 2 study
21
+ EMF:
22
+ id: 3
23
+ key: EMF
24
+ position: 3
25
+ description: EMF testing study
26
+ HomeExposures:
27
+ id: 4
28
+ key: HomeExposures
29
+ position: 2
30
+ description: Follow-up Home Exposure study
31
+ other:
32
+ id: 5
33
+ key: other
34
+ position: 6
35
+ description: Other
36
+ dk:
37
+ id: 6
38
+ # key: 999
39
+ key: dk
40
+ position: 8
41
+ description: "Don't Know"
42
+ nonspecific:
43
+ id: 7
44
+ key: non-specific
45
+ position: 7
46
+ description: Not project-specific
47
+ phase5:
48
+ id: 8
49
+ key: phase5
50
+ position: 1
51
+ description: Phase 5 of Tier 1
52
+ phase4:
53
+ id: 9
54
+ key: phase4
55
+ description: Phase 4 of Tier 1
56
+ ccls:
57
+ id: 10
58
+ key: ccls
59
+ description: General Participation in CCLS Study
@@ -0,0 +1,52 @@
1
+ #
2
+ # Do not change id or key
3
+ # 'id' could be referenced by existing data
4
+ # 'key' is used in the rails code for searching
5
+ #
6
+ # Be Advised. Yaml fixture labels MUST BE UNIQUE.
7
+ # If a label is repeated, only the last one will exist.
8
+ #
9
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
10
+ #
11
+ white:
12
+ id: 1
13
+ position: 1
14
+ key: white
15
+ code: 1
16
+ description: White, Non-Hispanic
17
+ black:
18
+ id: 2
19
+ position: 2
20
+ key: black
21
+ code: 2
22
+ description: Black / African American
23
+ nativeamerican:
24
+ id: 3
25
+ position: 3
26
+ key: nativeamerican
27
+ code: 3
28
+ description: Native American
29
+ asian:
30
+ id: 4
31
+ position: 4
32
+ key: asian
33
+ code: 4
34
+ description: Asian / Pacific Islander
35
+ other:
36
+ id: 5
37
+ position: 5
38
+ key: other
39
+ code: 7
40
+ description: Other
41
+ dk:
42
+ id: 6
43
+ position: 6
44
+ key: unknown
45
+ code: 999
46
+ description: Don't Know
47
+ refused:
48
+ id: 7
49
+ position: 7
50
+ key: refused
51
+ code: 888
52
+ description: Refused to state
@@ -0,0 +1,55 @@
1
+ #
2
+ # Do not change id or key
3
+ # 'id' could be referenced by existing data
4
+ # 'key' is used in the rails code for searching
5
+ #
6
+ # Be Advised. Yaml fixture labels MUST BE UNIQUE.
7
+ # If a label is repeated, only the last one will exist.
8
+ #
9
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
10
+ #
11
+ busy:
12
+ id: 1
13
+ position: 1
14
+ key: busy
15
+ description: too busy
16
+ problems:
17
+ id: 2
18
+ position: 2
19
+ key: problems
20
+ description: problems with the study
21
+ moving:
22
+ id: 3
23
+ position: 3
24
+ key: moving
25
+ description: subject is moving
26
+ enough:
27
+ id: 4
28
+ position: 4
29
+ key: enough
30
+ description: tier i/ii was enough
31
+ personal:
32
+ id: 5
33
+ position: 5
34
+ key: personal
35
+ description: personal issues
36
+ deceased:
37
+ id: 6
38
+ position: 6
39
+ key: deceased
40
+ description: subject child has died
41
+ other:
42
+ id: 7
43
+ position: 7
44
+ key: other
45
+ description: other reason for refusal
46
+ legacy:
47
+ id: 777
48
+ position: 9
49
+ key: legacy
50
+ description: legacy data import
51
+ refused:
52
+ id: 888
53
+ position: 8
54
+ key: refused
55
+ description: refused to state
@@ -0,0 +1,36 @@
1
+ #
2
+ # Do not change id or key
3
+ # 'id' could be referenced by existing data
4
+ # 'key' is used in the rails code for searching
5
+ #
6
+ # Be Advised. Yaml fixture labels MUST BE UNIQUE.
7
+ # If a label is repeated, only the last one will exist.
8
+ #
9
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
10
+ #
11
+
12
+ complete:
13
+ id: 1
14
+ position: 1
15
+ key: complete
16
+ description: complete
17
+ lab:
18
+ id: 2
19
+ position: 2
20
+ key: lab
21
+ description: to lab
22
+ received:
23
+ id: 3
24
+ position: 3
25
+ key: received
26
+ description: sample received
27
+ kit_sent:
28
+ id: 4
29
+ position: 4
30
+ key: sent
31
+ description: kit sent
32
+ pending:
33
+ id: 5
34
+ position: 5
35
+ key: pending
36
+ description: pending
@@ -0,0 +1,16 @@
1
+ roomtemp:
2
+ id: 1
3
+ key: roomtemp
4
+ description: room temperature
5
+ refrigerated:
6
+ id: 2
7
+ key: refrigerated
8
+ description: refrigerated
9
+ legacy:
10
+ id: 777
11
+ key: legacy
12
+ description: legacy data import
13
+ dk:
14
+ id: 999
15
+ key: dk
16
+ description: storage temperature unknown
@@ -0,0 +1,147 @@
1
+ #
2
+ # Do not change id or key
3
+ # 'id' could be referenced by existing data
4
+ # 'key' is used in the rails code for searching
5
+ #
6
+ # Be Advised. Yaml fixture labels MUST BE UNIQUE.
7
+ # If a label is repeated, only the last one will exist.
8
+ #
9
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
10
+ #
11
+ dust:
12
+ id: 1
13
+ key: 1
14
+ description: dust sample
15
+ blood:
16
+ id: 2
17
+ key: 2
18
+ description: blood sample
19
+ saliva:
20
+ id: 3
21
+ key: 3
22
+ description: saliva sample
23
+ buccal:
24
+ id: 4
25
+ key: 4
26
+ description: buccal cell sample
27
+ urine:
28
+ id: 5
29
+ key: 5
30
+ description: urine sample
31
+ air:
32
+ id: 6
33
+ key: 6
34
+ description: air sample
35
+ other:
36
+ id: 7
37
+ key: 7
38
+ description: other type of sample
39
+ dk:
40
+ id: 8
41
+ key: 999
42
+ description: unspecified sample type (don't know)
43
+ unspecifieddust:
44
+ id: 9
45
+ parent_id: 1
46
+ key: 9
47
+ description: unspecified dust sample type
48
+ vacuumbag:
49
+ id: 10
50
+ parent_id: 1
51
+ key: 10
52
+ description: vacuum bag
53
+ loose:
54
+ id: 11
55
+ parent_id: 1
56
+ key: 11
57
+ description: loose dust
58
+ otherdust:
59
+ id: 12
60
+ parent_id: 1
61
+ key: 12
62
+ description: other type of dust sample
63
+ unspecifiedblood:
64
+ id: 13
65
+ parent_id: 2
66
+ key: 13
67
+ description: unspecified blood sample type
68
+ ANB:
69
+ id: 14
70
+ parent_id: 2
71
+ key: 14
72
+ description: archive newborn blood
73
+ guthrie:
74
+ id: 15
75
+ parent_id: 2
76
+ key: 15
77
+ description: guthrie cards
78
+ otherblood:
79
+ id: 16
80
+ parent_id: 2
81
+ key: 16
82
+ description: other type of blood sample
83
+ unspecifiedsaliva:
84
+ id: 17
85
+ parent_id: 3
86
+ key: 17
87
+ description: unspecified saliva sample type
88
+ kit:
89
+ id: 18
90
+ parent_id: 3
91
+ key: 18
92
+ description: saliva kit (no brushes)
93
+ kitwithBrushes:
94
+ id: 19
95
+ parent_id: 3
96
+ key: 19
97
+ description: saliva kit (with brushes)
98
+ othersaliva:
99
+ id: 20
100
+ parent_id: 3
101
+ key: 20
102
+ description: other type of saliva sample
103
+ unspecifiedbuccal:
104
+ id: 21
105
+ parent_id: 4
106
+ key: 21
107
+ description: unspecified buccal sample type
108
+ cytobrush:
109
+ id: 22
110
+ parent_id: 4
111
+ key: 22
112
+ description: cytobrush
113
+ otherbuccal:
114
+ id: 23
115
+ parent_id: 4
116
+ key: 23
117
+ description: other type of buccal sample
118
+ unspecifiedurine:
119
+ id: 24
120
+ parent_id: 5
121
+ key: 24
122
+ description: unspecified urine sample type
123
+ otherurine:
124
+ id: 25
125
+ parent_id: 5
126
+ key: 25
127
+ description: other type of urine sample
128
+ unspecifiedair:
129
+ id: 26
130
+ parent_id: 6
131
+ key: 26
132
+ description: unspecified air sample type
133
+ otherair:
134
+ id: 27
135
+ parent_id: 6
136
+ key: 8
137
+ description: other type of air sample
138
+ otheractual:
139
+ id: 28
140
+ parent_id: 7
141
+ key: 28
142
+ description: other type of sample(actual)
143
+ dkactual:
144
+ id: 29
145
+ parent_id: 8
146
+ key: 29
147
+ description: unspecified sample type (don't know)(actual)
@@ -0,0 +1,31 @@
1
+ #
2
+ # Do not change id or key
3
+ # 'id' could be referenced by existing data
4
+ # 'key' is used in the rails code for searching
5
+ #
6
+ # Be Advised. Yaml fixture labels MUST BE UNIQUE.
7
+ # If a label is repeated, only the last one will exist.
8
+ #
9
+ # Read about fixtures at http://ar.rubyonrails.org/classes/Fixtures.html
10
+ #
11
+
12
+ main:
13
+ position: 1
14
+ key: Main
15
+ description: Main
16
+ subjects:
17
+ position: 2
18
+ key: Subjects
19
+ description: Subjects
20
+ interviews:
21
+ position: 3
22
+ key: Interviews
23
+ description: Interviews
24
+ samples:
25
+ position: 4
26
+ key: Samples
27
+ description: Samples
28
+ studies:
29
+ position: 5
30
+ key: Studies
31
+ description: Studies