ccls-ccls_engine 3.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.rdoc +182 -0
- data/app/models/abstract.rb +181 -0
- data/app/models/abstract_search.rb +50 -0
- data/app/models/abstract_validations.rb +324 -0
- data/app/models/address.rb +70 -0
- data/app/models/address_type.rb +15 -0
- data/app/models/addressing.rb +147 -0
- data/app/models/aliquot.rb +44 -0
- data/app/models/aliquot_sample_format.rb +13 -0
- data/app/models/analysis.rb +14 -0
- data/app/models/bc_request.rb +20 -0
- data/app/models/candidate_control.rb +101 -0
- data/app/models/context.rb +23 -0
- data/app/models/context_data_source.rb +4 -0
- data/app/models/county.rb +16 -0
- data/app/models/data_source.rb +24 -0
- data/app/models/diagnosis.rb +23 -0
- data/app/models/document_type.rb +16 -0
- data/app/models/document_version.rb +27 -0
- data/app/models/enrollment.rb +78 -0
- data/app/models/enrollment_validations.rb +167 -0
- data/app/models/follow_up.rb +16 -0
- data/app/models/follow_up_type.rb +18 -0
- data/app/models/gift_card.rb +22 -0
- data/app/models/gift_card_search.rb +137 -0
- data/app/models/home_exposure_response.rb +24 -0
- data/app/models/homex_outcome.rb +75 -0
- data/app/models/hospital.rb +22 -0
- data/app/models/icf_master_id.rb +30 -0
- data/app/models/icf_master_tracker.rb +217 -0
- data/app/models/icf_master_tracker_change.rb +9 -0
- data/app/models/icf_master_tracker_update.rb +50 -0
- data/app/models/ineligible_reason.rb +26 -0
- data/app/models/instrument.rb +26 -0
- data/app/models/instrument_type.rb +17 -0
- data/app/models/instrument_version.rb +28 -0
- data/app/models/interview.rb +122 -0
- data/app/models/interview_method.rb +17 -0
- data/app/models/interview_outcome.rb +16 -0
- data/app/models/language.rb +28 -0
- data/app/models/live_birth_data_update.rb +142 -0
- data/app/models/operational_event.rb +99 -0
- data/app/models/operational_event_type.rb +31 -0
- data/app/models/organization.rb +28 -0
- data/app/models/patient.rb +63 -0
- data/app/models/patient_validations.rb +118 -0
- data/app/models/person.rb +28 -0
- data/app/models/phone_number.rb +105 -0
- data/app/models/phone_type.rb +15 -0
- data/app/models/project.rb +39 -0
- data/app/models/project_outcome.rb +19 -0
- data/app/models/race.rb +31 -0
- data/app/models/refusal_reason.rb +23 -0
- data/app/models/sample.rb +168 -0
- data/app/models/sample_kit.rb +14 -0
- data/app/models/sample_outcome.rb +16 -0
- data/app/models/sample_temperature.rb +14 -0
- data/app/models/sample_type.rb +37 -0
- data/app/models/search.rb +195 -0
- data/app/models/section.rb +18 -0
- data/app/models/state.rb +25 -0
- data/app/models/study_subject.rb +237 -0
- data/app/models/study_subject_abstracts.rb +47 -0
- data/app/models/study_subject_addresses.rb +34 -0
- data/app/models/study_subject_associations.rb +38 -0
- data/app/models/study_subject_duplicates.rb +111 -0
- data/app/models/study_subject_enrollments.rb +17 -0
- data/app/models/study_subject_homex_outcome.rb +22 -0
- data/app/models/study_subject_identifier.rb +153 -0
- data/app/models/study_subject_interviews.rb +25 -0
- data/app/models/study_subject_languages.rb +21 -0
- data/app/models/study_subject_operational_events.rb +66 -0
- data/app/models/study_subject_patient.rb +177 -0
- data/app/models/study_subject_pii.rb +74 -0
- data/app/models/study_subject_races.rb +25 -0
- data/app/models/study_subject_search.rb +260 -0
- data/app/models/study_subject_validations.rb +116 -0
- data/app/models/subject_language.rb +11 -0
- data/app/models/subject_race.rb +11 -0
- data/app/models/subject_relationship.rb +21 -0
- data/app/models/subject_type.rb +22 -0
- data/app/models/tracing_status.rb +20 -0
- data/app/models/transfer.rb +40 -0
- data/app/models/unit.rb +14 -0
- data/app/models/vital_status.rb +19 -0
- data/app/models/zip_code.rb +36 -0
- data/config/abstract_fields.yml +1038 -0
- data/config/abstract_sections.yml +77 -0
- data/config/home_exposure_response_fields.yml +583 -0
- data/config/icf_master_tracker_update.yml +56 -0
- data/config/live_birth_data_update.yml +56 -0
- data/config/shared_use_db.yml +4 -0
- data/generators/ccls_engine/USAGE +2 -0
- data/generators/ccls_engine/ccls_engine_generator.rb +123 -0
- data/generators/ccls_engine/templates/autotest_ccls_engine.rb +3 -0
- data/generators/ccls_engine/templates/ccls_engine.rake +12 -0
- data/generators/ccls_engine/templates/fixtures/address_types.yml +30 -0
- data/generators/ccls_engine/templates/fixtures/context_data_sources.yml +54 -0
- data/generators/ccls_engine/templates/fixtures/contexts.yml +19 -0
- data/generators/ccls_engine/templates/fixtures/data_sources.yml +40 -0
- data/generators/ccls_engine/templates/fixtures/diagnoses.yml +40 -0
- data/generators/ccls_engine/templates/fixtures/document_types.yml +65 -0
- data/generators/ccls_engine/templates/fixtures/document_versions.csv +155 -0
- data/generators/ccls_engine/templates/fixtures/follow_up_types.yml +16 -0
- data/generators/ccls_engine/templates/fixtures/hospitals.yml +114 -0
- data/generators/ccls_engine/templates/fixtures/ineligible_reasons.yml +35 -0
- data/generators/ccls_engine/templates/fixtures/instrument_types.yml +26 -0
- data/generators/ccls_engine/templates/fixtures/instrument_versions.yml +22 -0
- data/generators/ccls_engine/templates/fixtures/instruments.yml +22 -0
- data/generators/ccls_engine/templates/fixtures/interview_methods.yml +30 -0
- data/generators/ccls_engine/templates/fixtures/interview_outcomes.yml +31 -0
- data/generators/ccls_engine/templates/fixtures/languages.yml +34 -0
- data/generators/ccls_engine/templates/fixtures/operational_event_types.yml +141 -0
- data/generators/ccls_engine/templates/fixtures/organizations.yml +198 -0
- data/generators/ccls_engine/templates/fixtures/people.yml +130 -0
- data/generators/ccls_engine/templates/fixtures/phone_types.yml +30 -0
- data/generators/ccls_engine/templates/fixtures/project_outcomes.yml +25 -0
- data/generators/ccls_engine/templates/fixtures/projects.yml +59 -0
- data/generators/ccls_engine/templates/fixtures/races.yml +52 -0
- data/generators/ccls_engine/templates/fixtures/refusal_reasons.yml +55 -0
- data/generators/ccls_engine/templates/fixtures/sample_outcomes.yml +36 -0
- data/generators/ccls_engine/templates/fixtures/sample_temperatures.yml +16 -0
- data/generators/ccls_engine/templates/fixtures/sample_types.yml +147 -0
- data/generators/ccls_engine/templates/fixtures/sections.yml +31 -0
- data/generators/ccls_engine/templates/fixtures/states.yml +363 -0
- data/generators/ccls_engine/templates/fixtures/subject_relationships.yml +46 -0
- data/generators/ccls_engine/templates/fixtures/subject_types.yml +30 -0
- data/generators/ccls_engine/templates/fixtures/tracing_statuses.yml +30 -0
- data/generators/ccls_engine/templates/fixtures/units.yml +13 -0
- data/generators/ccls_engine/templates/fixtures/vital_statuses.yml +28 -0
- data/generators/ccls_engine/templates/functional/roles_controller_test.rb +142 -0
- data/generators/ccls_engine/templates/functional/sessions_controller_test.rb +19 -0
- data/generators/ccls_engine/templates/functional/users_controller_test.rb +94 -0
- data/generators/ccls_engine/templates/images/sort_down.png +0 -0
- data/generators/ccls_engine/templates/images/sort_up.png +0 -0
- data/generators/ccls_engine/templates/initializer.rb +28 -0
- data/generators/ccls_engine/templates/javascripts/ccls_engine.js +24 -0
- data/generators/ccls_engine/templates/javascripts/jquery-ui.js +763 -0
- data/generators/ccls_engine/templates/javascripts/jquery.js +154 -0
- data/generators/ccls_engine/templates/javascripts/jrails.js +1 -0
- data/generators/ccls_engine/templates/migrations/create_user_invitations.rb +18 -0
- data/generators/ccls_engine/templates/migrations/create_users.rb +33 -0
- data/generators/ccls_engine/templates/migrations/drop_user_invitations.rb +18 -0
- data/generators/ccls_engine/templates/stylesheets/ccls_engine.css +180 -0
- data/generators/ccls_engine/templates/stylesheets/user.css +35 -0
- data/generators/ccls_engine/templates/stylesheets/users.css +23 -0
- data/generators/ccls_engine/templates/unit/core_extension_test.rb +18 -0
- data/generators/ccls_engine/templates/unit/role_test.rb +30 -0
- data/generators/ccls_engine/templates/unit/user_test.rb +321 -0
- data/lib/ccls-ccls_engine.rb +1 -0
- data/lib/ccls_engine.rb +135 -0
- data/lib/ccls_engine/action_view_extension.rb +3 -0
- data/lib/ccls_engine/action_view_extension/base.rb +53 -0
- data/lib/ccls_engine/action_view_extension/form_builder.rb +39 -0
- data/lib/ccls_engine/active_record_extension.rb +2 -0
- data/lib/ccls_engine/active_record_extension/base.rb +70 -0
- data/lib/ccls_engine/active_record_shared.rb +8 -0
- data/lib/ccls_engine/assertions.rb +69 -0
- data/lib/ccls_engine/autotest.rb +54 -0
- data/lib/ccls_engine/ccls_user.rb +117 -0
- data/lib/ccls_engine/core_extension.rb +14 -0
- data/lib/ccls_engine/date_and_time_formats.rb +30 -0
- data/lib/ccls_engine/factories.rb +880 -0
- data/lib/ccls_engine/factory_test_helper.rb +276 -0
- data/lib/ccls_engine/helper.rb +112 -0
- data/lib/ccls_engine/icf_master_tracker_update_test_helper.rb +121 -0
- data/lib/ccls_engine/live_birth_data_update_test_helper.rb +110 -0
- data/lib/ccls_engine/package_test_helper.rb +49 -0
- data/lib/ccls_engine/shared_database.rb +20 -0
- data/lib/ccls_engine/tasks.rb +1 -0
- data/lib/ccls_engine/test_tasks.rb +52 -0
- data/lib/ccls_engine/translation_table.rb +86 -0
- data/lib/shared_migration.rb +5 -0
- data/lib/surveyor/survey_extensions.rb +125 -0
- data/lib/tasks/application.rake +286 -0
- data/lib/tasks/calnet_authenticated.rake +6 -0
- data/lib/tasks/common_lib.rake +7 -0
- data/lib/tasks/database.rake +288 -0
- data/lib/tasks/documentation.rake +71 -0
- data/lib/tasks/homex_import.rake +723 -0
- data/lib/tasks/odms_import.rake +1116 -0
- data/lib/tasks/simply_authorized.rake +6 -0
- data/lib/tasks/ucb_ccls_engine_tasks.rake +4 -0
- data/lib/tasks/use_db.rake +4 -0
- data/rails/init.rb +4 -0
- data/test/unit/ccls/abstract_search_test.rb +150 -0
- data/test/unit/ccls/abstract_test.rb +674 -0
- data/test/unit/ccls/address_test.rb +155 -0
- data/test/unit/ccls/address_type_test.rb +25 -0
- data/test/unit/ccls/addressing_test.rb +466 -0
- data/test/unit/ccls/aliquot_sample_format_test.rb +20 -0
- data/test/unit/ccls/aliquot_test.rb +156 -0
- data/test/unit/ccls/analysis_test.rb +31 -0
- data/test/unit/ccls/bc_request_test.rb +43 -0
- data/test/unit/ccls/candidate_control_test.rb +712 -0
- data/test/unit/ccls/context_data_source_test.rb +26 -0
- data/test/unit/ccls/context_test.rb +40 -0
- data/test/unit/ccls/core_extension_test.rb +17 -0
- data/test/unit/ccls/county_test.rb +34 -0
- data/test/unit/ccls/data_source_test.rb +41 -0
- data/test/unit/ccls/diagnosis_test.rb +51 -0
- data/test/unit/ccls/document_type_test.rb +35 -0
- data/test/unit/ccls/document_version_test.rb +68 -0
- data/test/unit/ccls/enrollment_test.rb +575 -0
- data/test/unit/ccls/follow_up_test.rb +23 -0
- data/test/unit/ccls/follow_up_type_test.rb +34 -0
- data/test/unit/ccls/gift_card_search_test.rb +153 -0
- data/test/unit/ccls/gift_card_test.rb +40 -0
- data/test/unit/ccls/home_exposure_response_test.rb +83 -0
- data/test/unit/ccls/homex_outcome_test.rb +199 -0
- data/test/unit/ccls/hospital_test.rb +102 -0
- data/test/unit/ccls/icf_master_id_test.rb +30 -0
- data/test/unit/ccls/icf_master_tracker_change_test.rb +14 -0
- data/test/unit/ccls/icf_master_tracker_test.rb +132 -0
- data/test/unit/ccls/icf_master_tracker_update_test.rb +176 -0
- data/test/unit/ccls/ineligible_reason_test.rb +48 -0
- data/test/unit/ccls/instrument_test.rb +62 -0
- data/test/unit/ccls/instrument_type_test.rb +39 -0
- data/test/unit/ccls/instrument_version_test.rb +71 -0
- data/test/unit/ccls/interview_method_test.rb +44 -0
- data/test/unit/ccls/interview_outcome_test.rb +34 -0
- data/test/unit/ccls/interview_test.rb +298 -0
- data/test/unit/ccls/language_test.rb +47 -0
- data/test/unit/ccls/live_birth_data_update_test.rb +358 -0
- data/test/unit/ccls/operational_event_test.rb +187 -0
- data/test/unit/ccls/operational_event_type_test.rb +51 -0
- data/test/unit/ccls/organization_test.rb +64 -0
- data/test/unit/ccls/patient_test.rb +538 -0
- data/test/unit/ccls/person_test.rb +55 -0
- data/test/unit/ccls/phone_number_test.rb +244 -0
- data/test/unit/ccls/phone_type_test.rb +32 -0
- data/test/unit/ccls/project_outcome_test.rb +34 -0
- data/test/unit/ccls/project_test.rb +60 -0
- data/test/unit/ccls/race_test.rb +37 -0
- data/test/unit/ccls/refusal_reason_test.rb +52 -0
- data/test/unit/ccls/role_test.rb +26 -0
- data/test/unit/ccls/sample_kit_test.rb +35 -0
- data/test/unit/ccls/sample_outcome_test.rb +34 -0
- data/test/unit/ccls/sample_temperature_test.rb +25 -0
- data/test/unit/ccls/sample_test.rb +363 -0
- data/test/unit/ccls/sample_type_test.rb +58 -0
- data/test/unit/ccls/section_test.rb +34 -0
- data/test/unit/ccls/state_test.rb +31 -0
- data/test/unit/ccls/study_subject_abstracts_test.rb +115 -0
- data/test/unit/ccls/study_subject_addresses_test.rb +93 -0
- data/test/unit/ccls/study_subject_duplicates_test.rb +407 -0
- data/test/unit/ccls/study_subject_enrollments_test.rb +65 -0
- data/test/unit/ccls/study_subject_homex_outcome_test.rb +64 -0
- data/test/unit/ccls/study_subject_identifier_test.rb +439 -0
- data/test/unit/ccls/study_subject_interviews_test.rb +26 -0
- data/test/unit/ccls/study_subject_languages_test.rb +142 -0
- data/test/unit/ccls/study_subject_operational_events_test.rb +53 -0
- data/test/unit/ccls/study_subject_patient_test.rb +249 -0
- data/test/unit/ccls/study_subject_pii_test.rb +278 -0
- data/test/unit/ccls/study_subject_races_test.rb +203 -0
- data/test/unit/ccls/study_subject_search_test.rb +704 -0
- data/test/unit/ccls/study_subject_test.rb +770 -0
- data/test/unit/ccls/subject_language_test.rb +43 -0
- data/test/unit/ccls/subject_race_test.rb +35 -0
- data/test/unit/ccls/subject_relationship_test.rb +43 -0
- data/test/unit/ccls/subject_type_test.rb +40 -0
- data/test/unit/ccls/tracing_status_test.rb +32 -0
- data/test/unit/ccls/transfer_test.rb +81 -0
- data/test/unit/ccls/translation_table_test.rb +40 -0
- data/test/unit/ccls/unit_test.rb +21 -0
- data/test/unit/ccls/user_test.rb +156 -0
- data/test/unit/ccls/vital_status_test.rb +36 -0
- data/test/unit/ccls/zip_code_test.rb +55 -0
- 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
|
+
phone:
|
|
12
|
+
id: 1
|
|
13
|
+
key: phone
|
|
14
|
+
description: phone interview conducted by study interviewer
|
|
15
|
+
in_person:
|
|
16
|
+
id: 2
|
|
17
|
+
key: in_person
|
|
18
|
+
description: in person interview conducted by a study interviewer
|
|
19
|
+
self:
|
|
20
|
+
id: 3
|
|
21
|
+
key: self
|
|
22
|
+
description: self-administered instrument
|
|
23
|
+
other:
|
|
24
|
+
id: 4
|
|
25
|
+
key: other
|
|
26
|
+
description: some other data collection method
|
|
27
|
+
dk:
|
|
28
|
+
id: 5
|
|
29
|
+
key: dk
|
|
30
|
+
description: interview method unknown
|
|
@@ -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
|
+
complete:
|
|
13
|
+
id: 1
|
|
14
|
+
position: 1
|
|
15
|
+
key: complete
|
|
16
|
+
description: complete
|
|
17
|
+
incomplete:
|
|
18
|
+
id: 2
|
|
19
|
+
position: 2
|
|
20
|
+
key: incomplete
|
|
21
|
+
description: interview is incomplete
|
|
22
|
+
scheduled:
|
|
23
|
+
id: 3
|
|
24
|
+
position: 3
|
|
25
|
+
key: scheduled
|
|
26
|
+
description: interview has been scheduled
|
|
27
|
+
pending:
|
|
28
|
+
id: 4
|
|
29
|
+
position: 4
|
|
30
|
+
key: pending
|
|
31
|
+
description: pending
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
english:
|
|
12
|
+
id: 1
|
|
13
|
+
position: 1
|
|
14
|
+
key: english
|
|
15
|
+
code: 1
|
|
16
|
+
description: english
|
|
17
|
+
spanish:
|
|
18
|
+
id: 2
|
|
19
|
+
position: 2
|
|
20
|
+
key: spanish
|
|
21
|
+
code: 2
|
|
22
|
+
description: spanish
|
|
23
|
+
other:
|
|
24
|
+
id: 3
|
|
25
|
+
position: 3
|
|
26
|
+
key: other
|
|
27
|
+
code: 3
|
|
28
|
+
description: language other than english or spanish
|
|
29
|
+
dk:
|
|
30
|
+
id: 4
|
|
31
|
+
position: 4
|
|
32
|
+
key: unknown
|
|
33
|
+
code: 999
|
|
34
|
+
description: language unknown
|
|
@@ -0,0 +1,141 @@
|
|
|
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
|
+
intro:
|
|
12
|
+
id: 1
|
|
13
|
+
key: intro
|
|
14
|
+
event_category: correspondence
|
|
15
|
+
description: intro letter sent
|
|
16
|
+
scheduled:
|
|
17
|
+
id: 2
|
|
18
|
+
key: scheduled
|
|
19
|
+
event_category: interviews
|
|
20
|
+
description: interview scheduled with respondent
|
|
21
|
+
iv_complete:
|
|
22
|
+
id: 3
|
|
23
|
+
key: iv_complete
|
|
24
|
+
event_category: interviews
|
|
25
|
+
description: interview completed
|
|
26
|
+
kit_sent:
|
|
27
|
+
id: 4
|
|
28
|
+
key: kit_sent
|
|
29
|
+
event_category: samples
|
|
30
|
+
description: sample kit sent
|
|
31
|
+
sample_received:
|
|
32
|
+
id: 5
|
|
33
|
+
key: sample_received
|
|
34
|
+
event_category: samples
|
|
35
|
+
description: sample received by CCLS
|
|
36
|
+
sample_to_lab:
|
|
37
|
+
id: 6
|
|
38
|
+
key: sample_to_lab
|
|
39
|
+
event_category: samples
|
|
40
|
+
description: sample sent to lab
|
|
41
|
+
giftcard:
|
|
42
|
+
id: 7
|
|
43
|
+
key: giftcard
|
|
44
|
+
event_category: compensation
|
|
45
|
+
description: gift card issued
|
|
46
|
+
thankyou:
|
|
47
|
+
id: 8
|
|
48
|
+
key: thank_you
|
|
49
|
+
event_category: correspondence
|
|
50
|
+
description: thank you letter sent to respondent
|
|
51
|
+
completed:
|
|
52
|
+
id: 9
|
|
53
|
+
key: complete
|
|
54
|
+
event_category: completions
|
|
55
|
+
description: completed all study requirements
|
|
56
|
+
other:
|
|
57
|
+
id: 10
|
|
58
|
+
key: other
|
|
59
|
+
event_category: other
|
|
60
|
+
description: other event - please specify
|
|
61
|
+
sample_complete:
|
|
62
|
+
id: 11
|
|
63
|
+
key: sample_complete
|
|
64
|
+
event_category: completions
|
|
65
|
+
description: sample collection completed
|
|
66
|
+
subject_moved:
|
|
67
|
+
id: 12
|
|
68
|
+
key: subject_moved
|
|
69
|
+
event_category: operations
|
|
70
|
+
description: subject moved
|
|
71
|
+
reopened:
|
|
72
|
+
id: 13
|
|
73
|
+
key: reopened
|
|
74
|
+
event_category: completions
|
|
75
|
+
description: subject's enrollment re-opened (changed completed from 'yes')
|
|
76
|
+
ineligible:
|
|
77
|
+
id: 14
|
|
78
|
+
key: ineligible
|
|
79
|
+
event_category: enrollments
|
|
80
|
+
description: subject determined to be ineligible
|
|
81
|
+
BCRequest:
|
|
82
|
+
id: 15
|
|
83
|
+
key: bc_request_sent
|
|
84
|
+
event_category: operations
|
|
85
|
+
description: birth certificates request sent
|
|
86
|
+
BCReceived:
|
|
87
|
+
id: 16
|
|
88
|
+
key: bc_received
|
|
89
|
+
event_category: operations
|
|
90
|
+
description: birth certificate data received
|
|
91
|
+
RAF:
|
|
92
|
+
id: 17
|
|
93
|
+
key: raf_entered
|
|
94
|
+
event_category: recruitment
|
|
95
|
+
description: RAF entered into system
|
|
96
|
+
sentToICF:
|
|
97
|
+
id: 18
|
|
98
|
+
key: sentToICF
|
|
99
|
+
event_category: recruitment
|
|
100
|
+
description: Subject data was sent to ICF for recruitment and interview
|
|
101
|
+
ChangeContactInfo:
|
|
102
|
+
id: 19
|
|
103
|
+
key: ChangeContactInfo
|
|
104
|
+
event_category: operations
|
|
105
|
+
description: The subject's contact info has been changed
|
|
106
|
+
DuplicateCase:
|
|
107
|
+
id: 20
|
|
108
|
+
key: DuplicateCase
|
|
109
|
+
event_category: ascertainment
|
|
110
|
+
description: A new RAF was sent for an existing patient
|
|
111
|
+
newSubject:
|
|
112
|
+
id: 21
|
|
113
|
+
key: NewSubject
|
|
114
|
+
event_category: recruitment
|
|
115
|
+
description: New subject created by CCLS
|
|
116
|
+
subjectDied:
|
|
117
|
+
id: 22
|
|
118
|
+
key: subjectDied
|
|
119
|
+
event_category: operations
|
|
120
|
+
description: Subject has been reported as deceased.
|
|
121
|
+
consent:
|
|
122
|
+
id: 23
|
|
123
|
+
key: subjectConsents
|
|
124
|
+
event_category: recruitment
|
|
125
|
+
description: Subject has consented to participate
|
|
126
|
+
declines:
|
|
127
|
+
id: 24
|
|
128
|
+
key: subjectDeclines
|
|
129
|
+
event_category: recruitment
|
|
130
|
+
description: Subject has refused consent to participate
|
|
131
|
+
sentToSRC:
|
|
132
|
+
id: 25
|
|
133
|
+
key: sentToSRC
|
|
134
|
+
event_category: operations
|
|
135
|
+
description: Subject data was sent to SRC for recruitment and interview
|
|
136
|
+
screener:
|
|
137
|
+
id: 26
|
|
138
|
+
key: screener_complete
|
|
139
|
+
event_category: recruitment
|
|
140
|
+
description: ICF completed screening interview with respondent
|
|
141
|
+
|
|
@@ -0,0 +1,198 @@
|
|
|
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
|
+
CPMC:
|
|
12
|
+
id: 1
|
|
13
|
+
position: 1
|
|
14
|
+
key: CPMC
|
|
15
|
+
name: California Pacific Medical Center
|
|
16
|
+
person_id: 11
|
|
17
|
+
CHCC:
|
|
18
|
+
id: 2
|
|
19
|
+
position: 2
|
|
20
|
+
key: CHCC
|
|
21
|
+
name: Children's Hospital Central California
|
|
22
|
+
person_id: 3
|
|
23
|
+
CHLA:
|
|
24
|
+
id: 3
|
|
25
|
+
position: 3
|
|
26
|
+
key: CHLA
|
|
27
|
+
name: University of Southern California, Children's Hospital of Los Angeles
|
|
28
|
+
person_id: 17
|
|
29
|
+
CHOC:
|
|
30
|
+
id: 4
|
|
31
|
+
position: 4
|
|
32
|
+
key: CHOC
|
|
33
|
+
name: Children's Hospital Orange County
|
|
34
|
+
person_id: 15
|
|
35
|
+
CHOK:
|
|
36
|
+
id: 5
|
|
37
|
+
position: 5
|
|
38
|
+
key: CHOK
|
|
39
|
+
name: Children's Hospital Oakland
|
|
40
|
+
person_id: 6
|
|
41
|
+
CSMC:
|
|
42
|
+
id: 6
|
|
43
|
+
position: 6
|
|
44
|
+
key: CSMC
|
|
45
|
+
name: Cedars-Sinai Medical Center
|
|
46
|
+
person_id: 11
|
|
47
|
+
KPNC:
|
|
48
|
+
id: 7
|
|
49
|
+
position: 7
|
|
50
|
+
key: KPNC
|
|
51
|
+
name: Kaiser Permanente Medical Group (Northern California)
|
|
52
|
+
person_id: 10
|
|
53
|
+
KPSC:
|
|
54
|
+
id: 8
|
|
55
|
+
position: 8
|
|
56
|
+
key: KPSC
|
|
57
|
+
name: Kaiser Permanente Medical Group (Southern California)
|
|
58
|
+
person_id: 2
|
|
59
|
+
LPCH:
|
|
60
|
+
id: 9
|
|
61
|
+
position: 9
|
|
62
|
+
key: LPCH
|
|
63
|
+
name: Stanford University, Lucile Packard Children's Hospital
|
|
64
|
+
person_id: 4
|
|
65
|
+
MCHO:
|
|
66
|
+
id: 10
|
|
67
|
+
position: 10
|
|
68
|
+
key: MCHO
|
|
69
|
+
name: Long Beach Memorial Medical Center, Miller Children's Hospital
|
|
70
|
+
person_id: 7
|
|
71
|
+
RCSD:
|
|
72
|
+
id: 11
|
|
73
|
+
position: 11
|
|
74
|
+
key: RCSD
|
|
75
|
+
name: Rady Children's Hospital San Diego
|
|
76
|
+
person_id: 13
|
|
77
|
+
SUMH:
|
|
78
|
+
id: 12
|
|
79
|
+
position: 12
|
|
80
|
+
key: SUMH
|
|
81
|
+
name: Sutter Memorial Hospital
|
|
82
|
+
person_id: 9
|
|
83
|
+
UCDV:
|
|
84
|
+
id: 13
|
|
85
|
+
position: 13
|
|
86
|
+
key: UCDV
|
|
87
|
+
name: University of California, Davis
|
|
88
|
+
person_id: 5
|
|
89
|
+
UCLA:
|
|
90
|
+
id: 14
|
|
91
|
+
position: 14
|
|
92
|
+
key: UCLA
|
|
93
|
+
name: University of California, Los Angeles, Mattel Children's Hospital
|
|
94
|
+
person_id: 8
|
|
95
|
+
UCSF:
|
|
96
|
+
id: 15
|
|
97
|
+
position: 15
|
|
98
|
+
key: UCSF
|
|
99
|
+
name: University of California, San Francisco
|
|
100
|
+
person_id: 12
|
|
101
|
+
Smith:
|
|
102
|
+
id: 16
|
|
103
|
+
key: Smith
|
|
104
|
+
name: Smith Lab
|
|
105
|
+
person_id: 16
|
|
106
|
+
GEGL:
|
|
107
|
+
id: 17
|
|
108
|
+
key: GEGL
|
|
109
|
+
name: Barcellos Lab (GEGL)
|
|
110
|
+
person_id: 1
|
|
111
|
+
CalEPA:
|
|
112
|
+
id: 18
|
|
113
|
+
key: CalEPA
|
|
114
|
+
name: California EPA
|
|
115
|
+
CCLS:
|
|
116
|
+
id: 19
|
|
117
|
+
key: CCLS
|
|
118
|
+
name: California Childhood Leukemia Study (CCLS)
|
|
119
|
+
CDC:
|
|
120
|
+
id: 20
|
|
121
|
+
key: CDC
|
|
122
|
+
name: United States Center for Disease Control
|
|
123
|
+
Cottage:
|
|
124
|
+
id: 21
|
|
125
|
+
key: COT
|
|
126
|
+
name: Cottage Hospital
|
|
127
|
+
Anaheim:
|
|
128
|
+
id: 22
|
|
129
|
+
key: KPAna
|
|
130
|
+
name: Kaiser Anaheim
|
|
131
|
+
Downey:
|
|
132
|
+
id: 23
|
|
133
|
+
key: KPDow
|
|
134
|
+
name: Kaiser Downey
|
|
135
|
+
Fontana:
|
|
136
|
+
id: 24
|
|
137
|
+
key: KPFon
|
|
138
|
+
name: Kaiser Fontana
|
|
139
|
+
KPLA:
|
|
140
|
+
id: 25
|
|
141
|
+
key: KPLA
|
|
142
|
+
name: Kaiser Los Angeles
|
|
143
|
+
KPOak:
|
|
144
|
+
id: 26
|
|
145
|
+
key: KPOak
|
|
146
|
+
name: Kaiser Oakland
|
|
147
|
+
Roseville:
|
|
148
|
+
id: 27
|
|
149
|
+
key: KPRos
|
|
150
|
+
name: Kaiser Roseville
|
|
151
|
+
Sacramento:
|
|
152
|
+
id: 28
|
|
153
|
+
key: KPSac
|
|
154
|
+
name: Kaiser Sacramento
|
|
155
|
+
SanDiego:
|
|
156
|
+
id: 29
|
|
157
|
+
key: KPSD
|
|
158
|
+
name: Kaiser San Diego
|
|
159
|
+
SanFran:
|
|
160
|
+
id: 30
|
|
161
|
+
key: KPSF
|
|
162
|
+
name: Kaiser San Francisco
|
|
163
|
+
SantaClara:
|
|
164
|
+
id: 31
|
|
165
|
+
key: KPSCL
|
|
166
|
+
name: Kaiser Santa Clara
|
|
167
|
+
LomaLinda:
|
|
168
|
+
id: 32
|
|
169
|
+
key: Loma
|
|
170
|
+
name: Loma Linda Hospital
|
|
171
|
+
unspec:
|
|
172
|
+
id: 33
|
|
173
|
+
key: unspecified
|
|
174
|
+
name: Unspecified Organization/Hospital
|
|
175
|
+
other:
|
|
176
|
+
id: 34
|
|
177
|
+
key: other
|
|
178
|
+
name: other organization
|
|
179
|
+
bioreliance:
|
|
180
|
+
id: 35
|
|
181
|
+
key: bioreliance
|
|
182
|
+
name: BioReliance
|
|
183
|
+
westat:
|
|
184
|
+
id: 36
|
|
185
|
+
key: westat
|
|
186
|
+
name: Westat
|
|
187
|
+
legacy:
|
|
188
|
+
id: 777
|
|
189
|
+
key: legacy
|
|
190
|
+
name: legacy data transfer (no org info available)
|
|
191
|
+
na:
|
|
192
|
+
id: 888
|
|
193
|
+
key: n/a
|
|
194
|
+
name: not applicable
|
|
195
|
+
dk:
|
|
196
|
+
id: 999
|
|
197
|
+
key: dk
|
|
198
|
+
name: organization unknown
|
|
@@ -0,0 +1,130 @@
|
|
|
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
|
+
Barcellos:
|
|
12
|
+
id: 1
|
|
13
|
+
position: 18
|
|
14
|
+
last_name: Barcellos
|
|
15
|
+
first_name: Lisa
|
|
16
|
+
person_type_id: 2
|
|
17
|
+
Cooper:
|
|
18
|
+
id: 2
|
|
19
|
+
position: 19
|
|
20
|
+
last_name: Cooper
|
|
21
|
+
first_name: Robert
|
|
22
|
+
person_type_id: 1
|
|
23
|
+
Crouse:
|
|
24
|
+
id: 3
|
|
25
|
+
position: 3
|
|
26
|
+
last_name: Crouse
|
|
27
|
+
first_name: Vonda
|
|
28
|
+
person_type_id: 1
|
|
29
|
+
Dahl:
|
|
30
|
+
id: 4
|
|
31
|
+
position: 4
|
|
32
|
+
last_name: Dahl
|
|
33
|
+
first_name: Gary
|
|
34
|
+
person_type_id: 1
|
|
35
|
+
Ducore:
|
|
36
|
+
id: 5
|
|
37
|
+
position: 5
|
|
38
|
+
last_name: Ducore
|
|
39
|
+
first_name: Jonathan
|
|
40
|
+
person_type_id: 1
|
|
41
|
+
Feusner:
|
|
42
|
+
id: 6
|
|
43
|
+
position: 6
|
|
44
|
+
last_name: Feusner
|
|
45
|
+
first_name: Jim
|
|
46
|
+
person_type_id: 1
|
|
47
|
+
Finklestein:
|
|
48
|
+
id: 7
|
|
49
|
+
position: 7
|
|
50
|
+
last_name: Finklestein
|
|
51
|
+
first_name: Jerry
|
|
52
|
+
person_type_id: 1
|
|
53
|
+
Fu:
|
|
54
|
+
id: 8
|
|
55
|
+
position: 8
|
|
56
|
+
last_name: Fu
|
|
57
|
+
first_name: Cecelia
|
|
58
|
+
person_type_id: 1
|
|
59
|
+
Hsu:
|
|
60
|
+
id: 9
|
|
61
|
+
position: 9
|
|
62
|
+
last_name: Hsu
|
|
63
|
+
first_name: Saunders
|
|
64
|
+
person_type_id: 1
|
|
65
|
+
Kiley:
|
|
66
|
+
id: 10
|
|
67
|
+
position: 10
|
|
68
|
+
last_name: Kiley
|
|
69
|
+
first_name: Vincent
|
|
70
|
+
person_type_id: 1
|
|
71
|
+
LohL:
|
|
72
|
+
id: 11
|
|
73
|
+
position: 11
|
|
74
|
+
last_name: Loh
|
|
75
|
+
first_name: Louise
|
|
76
|
+
person_type_id: 1
|
|
77
|
+
LohM:
|
|
78
|
+
id: 12
|
|
79
|
+
position: 12
|
|
80
|
+
last_name: Loh
|
|
81
|
+
first_name: Mignon
|
|
82
|
+
person_type_id: 1
|
|
83
|
+
Roberts:
|
|
84
|
+
id: 13
|
|
85
|
+
position: 13
|
|
86
|
+
last_name: Roberts
|
|
87
|
+
first_name: William
|
|
88
|
+
person_type_id: 1
|
|
89
|
+
Selvin:
|
|
90
|
+
id: 14
|
|
91
|
+
position: 14
|
|
92
|
+
last_name: Selvin
|
|
93
|
+
first_name: Steve
|
|
94
|
+
person_type_id: 2
|
|
95
|
+
Sender:
|
|
96
|
+
id: 15
|
|
97
|
+
position: 15
|
|
98
|
+
last_name: Sender
|
|
99
|
+
first_name: Leonard
|
|
100
|
+
person_type_id: 1
|
|
101
|
+
Smith:
|
|
102
|
+
id: 16
|
|
103
|
+
position: 16
|
|
104
|
+
last_name: Smith
|
|
105
|
+
first_name: Martin
|
|
106
|
+
person_type_id: 2
|
|
107
|
+
Zomorodian:
|
|
108
|
+
id: 17
|
|
109
|
+
position: 17
|
|
110
|
+
last_name: Zomorodian
|
|
111
|
+
first_name: Toska
|
|
112
|
+
person_type_id: 1
|
|
113
|
+
Enzminger:
|
|
114
|
+
id: 18
|
|
115
|
+
position: 1
|
|
116
|
+
last_name: Anna
|
|
117
|
+
first_name: Enzminger
|
|
118
|
+
person_type_id: 3
|
|
119
|
+
Zomorodian:
|
|
120
|
+
id: 19
|
|
121
|
+
position: 2
|
|
122
|
+
last_name: Rosensweig
|
|
123
|
+
first_name: Ellen
|
|
124
|
+
person_type_id: 3
|
|
125
|
+
other:
|
|
126
|
+
id: 20
|
|
127
|
+
position: 18
|
|
128
|
+
last_name: Other
|
|
129
|
+
first_name: null
|
|
130
|
+
person_type_id: 3
|