From 06b63bc88113e82b0160b7e88710979b9d20908b Mon Sep 17 00:00:00 2001 From: mozzy11 Date: Mon, 3 Feb 2025 21:25:32 +0300 Subject: [PATCH] revert formating liquibase --- pom.xml | 2 +- src/main/resources/liquibase/2.0.x.x/base.xml | 19 +- .../liquibase/2.0.x.x/convert_id_types.xml | 86 +- .../liquibase/2.0.x.x/default_test.xml | 23 +- .../liquibase/2.0.x.x/fhir_data_export.xml | 110 +- .../liquibase/2.0.x.x/patient_contact.xml | 81 +- .../2.0.x.x/validation_site_information.xml | 22 +- .../liquibase/2.1.x.x/admin_menu_clean.xml | 23 +- .../2.1.x.x/barcode_label_info_alter.xml | 20 +- src/main/resources/liquibase/2.1.x.x/base.xml | 32 +- .../2.1.x.x/client_notifications.xml | 167 +- .../2.1.x.x/external_connections.xml | 225 +- .../2.1.x.x/fix_migration_issues.xml | 68 +- .../2.1.x.x/lab_director_signature.xml | 134 +- .../2.1.x.x/locator_form_integration.xml | 55 +- .../2.1.x.x/patient_status_report_menu.xml | 43 +- .../sample_batch_entry_module_permission.xml | 43 +- .../liquibase/2.1.x.x/sample_nature.xml | 170 +- .../2.1.x.x/user_manual_translation.xml | 45 +- src/main/resources/liquibase/2.2.x.x/base.xml | 10 +- .../liquibase/2.2.x.x/email_sms_expansion.xml | 232 +- .../2.3.x.x/accession_sequencing.xml | 50 +- .../2.3.x.x/accession_validation.xml | 96 +- .../2.3.x.x/accession_validation_range.xml | 36 +- .../accession_validation_range_access.xml | 37 +- .../liquibase/2.3.x.x/analyzer_experiment.xml | 83 +- src/main/resources/liquibase/2.3.x.x/base.xml | 38 +- .../2.3.x.x/contact_tracing_fields.xml | 104 +- .../liquibase/2.3.x.x/in_lab_tests.xml | 31 +- .../liquibase/2.3.x.x/minor_fixes.xml | 89 +- .../liquibase/2.3.x.x/national_id_config.xml | 83 +- .../resources/liquibase/2.3.x.x/new_tests.xml | 3416 ++++------ .../liquibase/2.3.x.x/referral_results.xml | 57 +- .../liquibase/2.3.x.x/results_range.xml | 116 +- .../2.3.x.x/user_url_permissions.xml | 499 +- .../liquibase/2.3.x.x/uuid_columns.xml | 128 +- src/main/resources/liquibase/2.4.x.x/base.xml | 10 +- .../liquibase/2.4.x.x/remove_roles.xml | 20 +- .../2.5.x.x/barcode_additional_info.xml | 101 +- src/main/resources/liquibase/2.5.x.x/base.xml | 10 +- .../2.6.x.x/add_lab_roles_map_table.xml | 196 +- .../add_menu_study_electronic_order.xml | 146 +- .../liquibase/2.6.x.x/add_order_priority.xml | 182 +- .../add_retroci_sampletype_test_element.xml | 526 +- .../2.6.x.x/add_user_filter_permision.xml | 69 +- .../liquibase/2.6.x.x/address_line.xml | 109 +- src/main/resources/liquibase/2.6.x.x/base.xml | 54 +- .../2.6.x.x/data_resource_retroci.xml | 36 +- .../disable_menu_reports_export_valid.xml | 33 +- .../2.6.x.x/eorder_search_enhancements.xml | 22 +- .../liquibase/2.6.x.x/fix_sequences.xml | 23 +- .../liquibase/2.6.x.x/geographical_unit.xml | 137 +- .../liquibase/2.6.x.x/localization.xml | 206 +- .../resources/liquibase/2.6.x.x/method.xml | 363 +- .../resources/liquibase/2.6.x.x/provider.xml | 75 +- .../liquibase/2.6.x.x/remove_do_suffix.xml | 22 +- .../liquibase/2.6.x.x/reporting_range.xml | 54 +- .../liquibase/2.6.x.x/statistics_report.xml | 51 +- .../2.6.x.x/update_global_admin_role.xml | 339 +- .../2.6.x.x/update_non_conformity_roles.xml | 90 +- .../liquibase/2.6.x.x/update_roles.xml | 420 +- .../2.7.x.x/activate_result_modifer_role.xml | 68 +- .../liquibase/2.7.x.x/add_TB_menu.xml | 650 +- .../2.7.x.x/add_admin_default_roles.xml | 204 +- .../2.7.x.x/add_analyser_import_role.xml | 115 +- .../liquibase/2.7.x.x/add_dept_org_type.xml | 43 +- .../2.7.x.x/add_electronic_rejection.xml | 66 +- .../liquibase/2.7.x.x/add_hpv_testing.xml | 992 ++- .../liquibase/2.7.x.x/add_loinc_code.xml | 49 +- .../liquibase/2.7.x.x/add_patient_upid.xml | 34 +- .../add_psc_sampletype_test_element.xml | 108 +- .../liquibase/2.7.x.x/add_recency_testing.xml | 318 +- .../2.7.x.x/add_tb_dictionary_infos.xml | 346 +- .../2.7.x.x/add_tb_observation_type.xml | 35 +- .../liquibase/2.7.x.x/add_tb_samples.xml | 909 ++- .../liquibase/2.7.x.x/add_tb_tests.xml | 1741 ++---- .../2.7.x.x/add_validation_by_date.xml | 80 +- src/main/resources/liquibase/2.7.x.x/base.xml | 75 +- .../liquibase/2.7.x.x/critical_range.xml | 54 +- .../liquibase/2.7.x.x/crtical_range.xml | 103 +- .../2.7.x.x/extend_person_state_column.xml | 26 +- .../2.7.x.x/fix_database_bugs_retroc.xml | 1040 ++- .../liquibase/2.7.x.x/fix_person_table.xml | 29 +- .../2.7.x.x/rename_test_for_csv_export.xml | 37 +- .../liquibase/2.7.x.x/site_information.xml | 97 +- .../2.7.x.x/support_reject_sample.xml | 194 +- ...d_antimicrobial_resistance_test_column.xml | 77 +- src/main/resources/liquibase/2.8.x.x/base.xml | 59 +- .../liquibase/2.8.x.x/calculated_value.xml | 340 +- .../resources/liquibase/2.8.x.x/cytology.xml | 700 +-- .../2.8.x.x/desynchronous_objects.xml | 35 +- .../2.8.x.x/enable_client_registry_search.xml | 50 +- .../2.8.x.x/immunohistochemistry.xml | 5555 ++++++++--------- .../2.8.x.x/lab_number_alphanum_update.xml | 120 +- .../liquibase/2.8.x.x/landing_page_config.xml | 49 +- .../resources/liquibase/2.8.x.x/loinc.xml | 149 +- src/main/resources/liquibase/2.8.x.x/menu.xml | 752 +-- .../resources/liquibase/2.8.x.x/method.xml | 31 +- .../2.8.x.x/notification_subscriptions.xml | 57 +- .../liquibase/2.8.x.x/notifications.xml | 52 +- .../liquibase/2.8.x.x/panel_item_fix.xml | 39 +- .../resources/liquibase/2.8.x.x/pathology.xml | 1353 ++-- .../liquibase/2.8.x.x/reflex_rule.xml | 261 +- .../2.8.x.x/rename_test_for_csv_export.xml | 37 +- .../2.8.x.x/sample_program_audit_trail.xml | 82 +- .../liquibase/2.8.x.x/sample_types.xml | 1691 ++--- .../2.8.x.x/update_default_setting.xml | 212 +- src/main/resources/liquibase/3.1.x.x/base.xml | 8 +- .../liquibase/3.1.x.x/panel_loinc.xml | 36 +- .../resources/liquibase/base-changelog.xml | 26 +- 110 files changed, 12374 insertions(+), 16577 deletions(-) diff --git a/pom.xml b/pom.xml index 339c27fd88..1eda0a68b7 100644 --- a/pom.xml +++ b/pom.xml @@ -703,7 +703,7 @@ src/main/resources/hibernate/**/*.xml - src/main/resources/liquibase/**/*.xml + src/test/resources/**/*.xml pom.xml diff --git a/src/main/resources/liquibase/2.0.x.x/base.xml b/src/main/resources/liquibase/2.0.x.x/base.xml index 758c55ad6d..c349756e40 100644 --- a/src/main/resources/liquibase/2.0.x.x/base.xml +++ b/src/main/resources/liquibase/2.0.x.x/base.xml @@ -1,15 +1,14 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - + + + + + diff --git a/src/main/resources/liquibase/2.0.x.x/convert_id_types.xml b/src/main/resources/liquibase/2.0.x.x/convert_id_types.xml index 6f63723348..bcc52c773b 100644 --- a/src/main/resources/liquibase/2.0.x.x/convert_id_types.xml +++ b/src/main/resources/liquibase/2.0.x.x/convert_id_types.xml @@ -1,47 +1,47 @@ - - - modify login_user as an example - - - - - - - - - - - - - - - - - modify gender as a second example - - - - - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + modify login_user as an example + + + + + + + + + + + + + + + + + modify gender as a second example + + + + + + + + + diff --git a/src/main/resources/liquibase/2.0.x.x/default_test.xml b/src/main/resources/liquibase/2.0.x.x/default_test.xml index 698884b48c..8ca7f8b096 100644 --- a/src/main/resources/liquibase/2.0.x.x/default_test.xml +++ b/src/main/resources/liquibase/2.0.x.x/default_test.xml @@ -1,18 +1,19 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - add lastupdated to site informations without to stop a bug + + add lastupdated to site informations without to stop a bug - - - - + + + + - + diff --git a/src/main/resources/liquibase/2.0.x.x/fhir_data_export.xml b/src/main/resources/liquibase/2.0.x.x/fhir_data_export.xml index 47feb310a6..54dfd2cfe1 100644 --- a/src/main/resources/liquibase/2.0.x.x/fhir_data_export.xml +++ b/src/main/resources/liquibase/2.0.x.x/fhir_data_export.xml @@ -1,65 +1,65 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - add functionality for fhir data export + + add functionality for fhir data export - - - - - - - - - - - + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - + diff --git a/src/main/resources/liquibase/2.0.x.x/patient_contact.xml b/src/main/resources/liquibase/2.0.x.x/patient_contact.xml index e42082ec68..4f4e0bdb50 100644 --- a/src/main/resources/liquibase/2.0.x.x/patient_contact.xml +++ b/src/main/resources/liquibase/2.0.x.x/patient_contact.xml @@ -1,49 +1,44 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - + + + SELECT count(*) FROM clinlims.reference_tables WHERE name = 'PATIENT_CONTACT' + + + + + + + + + + name='PATIENT_CONTACT' + + + - SELECT count(*) FROM - clinlims.reference_tables WHERE name = 'PATIENT_CONTACT' - - - - - - - - - - - name='PATIENT_CONTACT' - - - - - - - - - - - create patient contact table - - - - - - - - - - + + + + + + + create patient contact table + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.0.x.x/validation_site_information.xml b/src/main/resources/liquibase/2.0.x.x/validation_site_information.xml index 1cf3b62b06..db6b090863 100644 --- a/src/main/resources/liquibase/2.0.x.x/validation_site_information.xml +++ b/src/main/resources/liquibase/2.0.x.x/validation_site_information.xml @@ -1,18 +1,18 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - add lastupdated to site informations without to stop a bug + + add lastupdated to site informations without to stop a bug - - + + - + diff --git a/src/main/resources/liquibase/2.1.x.x/admin_menu_clean.xml b/src/main/resources/liquibase/2.1.x.x/admin_menu_clean.xml index 24c73520ef..5ae524ed97 100644 --- a/src/main/resources/liquibase/2.1.x.x/admin_menu_clean.xml +++ b/src/main/resources/liquibase/2.1.x.x/admin_menu_clean.xml @@ -1,18 +1,17 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - element_id = 'menu_administration_test_management' OR - element_id = 'menu_administration_report_management' - - - + + + + element_id = 'menu_administration_test_management' OR element_id = 'menu_administration_report_management' + + + diff --git a/src/main/resources/liquibase/2.1.x.x/barcode_label_info_alter.xml b/src/main/resources/liquibase/2.1.x.x/barcode_label_info_alter.xml index d2d4257295..f9fa706adb 100644 --- a/src/main/resources/liquibase/2.1.x.x/barcode_label_info_alter.xml +++ b/src/main/resources/liquibase/2.1.x.x/barcode_label_info_alter.xml @@ -1,15 +1,15 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - increase barcode_label_info.code length to handle code.x - - + + increase barcode_label_info.code length to handle code.x + + diff --git a/src/main/resources/liquibase/2.1.x.x/base.xml b/src/main/resources/liquibase/2.1.x.x/base.xml index 407e365a61..1213cebb2c 100644 --- a/src/main/resources/liquibase/2.1.x.x/base.xml +++ b/src/main/resources/liquibase/2.1.x.x/base.xml @@ -1,22 +1,20 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - - - - - - - + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.1.x.x/client_notifications.xml b/src/main/resources/liquibase/2.1.x.x/client_notifications.xml index 1bac71f064..326f48213c 100644 --- a/src/main/resources/liquibase/2.1.x.x/client_notifications.xml +++ b/src/main/resources/liquibase/2.1.x.x/client_notifications.xml @@ -1,94 +1,89 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.1.x.x/external_connections.xml b/src/main/resources/liquibase/2.1.x.x/external_connections.xml index 98cbd3d9b2..42069a8e11 100644 --- a/src/main/resources/liquibase/2.1.x.x/external_connections.xml +++ b/src/main/resources/liquibase/2.1.x.x/external_connections.xml @@ -1,125 +1,118 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + diff --git a/src/main/resources/liquibase/2.1.x.x/fix_migration_issues.xml b/src/main/resources/liquibase/2.1.x.x/fix_migration_issues.xml index 73469df0eb..07b9537802 100644 --- a/src/main/resources/liquibase/2.1.x.x/fix_migration_issues.xml +++ b/src/main/resources/liquibase/2.1.x.x/fix_migration_issues.xml @@ -1,54 +1,40 @@ - - - Update next value for observation_history_type_seq after - database migration - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + Update next value for observation_history_type_seq after database migration + SELECT setval('clinlims.observation_history_type_seq', CAST ((SELECT coalesce(MAX(id),0) FROM clinlims.observation_history_type) AS BIGINT) + 1); - - - - - - Update localisation english label - - - + + + + Update localisation english label + update clinlims.localization set english = 'Serum' where english = 'Sérum'; - - - - - - - - - Update localisation english label - - - + + + + + + + Update localisation english label + alter table clinlims.system_role drop constraint role_parent_role_fk,add constraint role_parent_role_fk foreign key (grouping_parent) references clinlims.system_role (id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE; - - - - + + diff --git a/src/main/resources/liquibase/2.1.x.x/lab_director_signature.xml b/src/main/resources/liquibase/2.1.x.x/lab_director_signature.xml index 2017f3aa61..c343a2f230 100644 --- a/src/main/resources/liquibase/2.1.x.x/lab_director_signature.xml +++ b/src/main/resources/liquibase/2.1.x.x/lab_director_signature.xml @@ -1,81 +1,67 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - + - - - - SELECT count(*) FROM - clinlims.site_information WHERE name = 'labDirectorSignature' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - name='labDirectorSignature' - - - name='labDirectorName' - - - name='labDirectorTitle' - - - + + + SELECT count(*) FROM clinlims.site_information WHERE name = 'labDirectorSignature' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + name='labDirectorSignature' + + + name='labDirectorName' + + + name='labDirectorTitle' + + + diff --git a/src/main/resources/liquibase/2.1.x.x/locator_form_integration.xml b/src/main/resources/liquibase/2.1.x.x/locator_form_integration.xml index 07a827dcc7..7b9a21ca3b 100644 --- a/src/main/resources/liquibase/2.1.x.x/locator_form_integration.xml +++ b/src/main/resources/liquibase/2.1.x.x/locator_form_integration.xml @@ -1,37 +1,32 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - + - - - - SELECT count(*) FROM - clinlims.status_of_sample WHERE status_type = 'EXTERNAL_ORDER' AND - name = 'NonConforming' - - - - - - - - - - - - - - - status_type = 'EXTERNAL_ORDER' AND name = 'NonConforming' - - - + + + SELECT count(*) FROM clinlims.status_of_sample WHERE status_type = 'EXTERNAL_ORDER' AND name = 'NonConforming' + + + + + + + + + + + + + + status_type = 'EXTERNAL_ORDER' AND name = 'NonConforming' + + + diff --git a/src/main/resources/liquibase/2.1.x.x/patient_status_report_menu.xml b/src/main/resources/liquibase/2.1.x.x/patient_status_report_menu.xml index 15c88c3442..786bcdf949 100644 --- a/src/main/resources/liquibase/2.1.x.x/patient_status_report_menu.xml +++ b/src/main/resources/liquibase/2.1.x.x/patient_status_report_menu.xml @@ -1,29 +1,28 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - 8:cb336fddcbe6d69638ab52fccc2b510b - - - element_id in - ('menu_reports_status_patient.vreduit','menu_reports_status_patient.classique') - - - + + 8:cb336fddcbe6d69638ab52fccc2b510b + + + element_id in ('menu_reports_status_patient.vreduit','menu_reports_status_patient.classique') + + + - - - - - element_id='menu_reports_status_patient' - - - + + + + + element_id='menu_reports_status_patient' + + + diff --git a/src/main/resources/liquibase/2.1.x.x/sample_batch_entry_module_permission.xml b/src/main/resources/liquibase/2.1.x.x/sample_batch_entry_module_permission.xml index 688105c9ba..a7e6aaa786 100644 --- a/src/main/resources/liquibase/2.1.x.x/sample_batch_entry_module_permission.xml +++ b/src/main/resources/liquibase/2.1.x.x/sample_batch_entry_module_permission.xml @@ -1,30 +1,25 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - SELECT count(*) FROM - clinlims.system_module_url WHERE url_path = - '/SamplePatientEntryBatch' - - - - - - - - - - url_path='/SamplePatientEntryBatch' - - - + + + SELECT count(*) FROM clinlims.system_module_url WHERE url_path = '/SamplePatientEntryBatch' + + + + + + + + + url_path='/SamplePatientEntryBatch' + + + diff --git a/src/main/resources/liquibase/2.1.x.x/sample_nature.xml b/src/main/resources/liquibase/2.1.x.x/sample_nature.xml index 77e41ef64e..934344062b 100644 --- a/src/main/resources/liquibase/2.1.x.x/sample_nature.xml +++ b/src/main/resources/liquibase/2.1.x.x/sample_nature.xml @@ -1,100 +1,84 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - + - - - - SELECT count(*) FROM - clinlims.dictionary_category WHERE name = 'specimen nature' - - - - - - - - - - - - - - - - - - name='specimen nature' - - - type_name='sampleNature' - - - - - - - SELECT count(*) FROM - clinlims.dictionary WHERE dict_entry = 'Ante mortum' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - dict_entry='Ante mortum' - - - dict_entry='Post mortum' - - - dict_entry='Environmental' - - - + + + SELECT count(*) FROM clinlims.dictionary_category WHERE name = 'specimen nature' + + + + + + + + + + + + + + + + + name='specimen nature' + + + type_name='sampleNature' + + + + + + SELECT count(*) FROM clinlims.dictionary WHERE dict_entry = 'Ante mortum' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dict_entry='Ante mortum' + + + dict_entry='Post mortum' + + + dict_entry='Environmental' + + + diff --git a/src/main/resources/liquibase/2.1.x.x/user_manual_translation.xml b/src/main/resources/liquibase/2.1.x.x/user_manual_translation.xml index 089ced241b..8197f6ad53 100644 --- a/src/main/resources/liquibase/2.1.x.x/user_manual_translation.xml +++ b/src/main/resources/liquibase/2.1.x.x/user_manual_translation.xml @@ -1,31 +1,26 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - + - - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_help_user_manual' AND action_url = - '/docs/UserManual' - - - - - element_id = 'menu_help_user_manual' - - - - - element_id = 'menu_help_user_manual' - - - + + + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_help_user_manual' AND action_url = '/docs/UserManual' + + + + element_id = 'menu_help_user_manual' + + + + + element_id = 'menu_help_user_manual' + + + diff --git a/src/main/resources/liquibase/2.2.x.x/base.xml b/src/main/resources/liquibase/2.2.x.x/base.xml index 577b4b09b1..8427d9129f 100644 --- a/src/main/resources/liquibase/2.2.x.x/base.xml +++ b/src/main/resources/liquibase/2.2.x.x/base.xml @@ -1,10 +1,10 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - + diff --git a/src/main/resources/liquibase/2.2.x.x/email_sms_expansion.xml b/src/main/resources/liquibase/2.2.x.x/email_sms_expansion.xml index 3971bd248f..845db83508 100644 --- a/src/main/resources/liquibase/2.2.x.x/email_sms_expansion.xml +++ b/src/main/resources/liquibase/2.2.x.x/email_sms_expansion.xml @@ -1,134 +1,134 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - - + + + + + + - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - + + - + - - - + + + - + - - - - - - + + + + + + - + diff --git a/src/main/resources/liquibase/2.3.x.x/accession_sequencing.xml b/src/main/resources/liquibase/2.3.x.x/accession_sequencing.xml index cd9a2592f7..7131f7b5b2 100644 --- a/src/main/resources/liquibase/2.3.x.x/accession_sequencing.xml +++ b/src/main/resources/liquibase/2.3.x.x/accession_sequencing.xml @@ -1,30 +1,30 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - - - table for tracking accession number generation - - - - - - - - - - + + + + + + + table for tracking accession number generation + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.3.x.x/accession_validation.xml b/src/main/resources/liquibase/2.3.x.x/accession_validation.xml index 58c0b9514c..8a8b8faedb 100644 --- a/src/main/resources/liquibase/2.3.x.x/accession_validation.xml +++ b/src/main/resources/liquibase/2.3.x.x/accession_validation.xml @@ -1,63 +1,55 @@ - - - - - SELECT count(*) FROM - clinlims.system_module_url WHERE url_path = '/AccessionValidation' - - - - - - - - - - - - - - - - - - - - - - - - - - select count(*) from clinlims.menu - where element_id = 'menu_accession_validation'; - - - - Insert in Validation by search by accession - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + SELECT count(*) FROM + clinlims.system_module_url WHERE url_path = '/AccessionValidation' + + + + + + + + + + + + + + + + + + + + + + + + select count(*) from clinlims.menu + where element_id = 'menu_accession_validation'; + + + Insert in Validation by search by accession + INSERT INTO clinlims.menu(id, parent_id, presentation_order, element_id, action_url, click_action, display_key, tool_tip_key, new_window, is_active) VALUES (nextval('clinlims.menu_seq'),(select id from clinlims.menu where element_id='menu_resultvalidation'),20,'menu_accession_validation','/AccessionValidation.do',default,'menu.accession.validation','tooltip.accession.validation',default,default); - - - - + + diff --git a/src/main/resources/liquibase/2.3.x.x/accession_validation_range.xml b/src/main/resources/liquibase/2.3.x.x/accession_validation_range.xml index dc45562e3a..ad2d863b3c 100644 --- a/src/main/resources/liquibase/2.3.x.x/accession_validation_range.xml +++ b/src/main/resources/liquibase/2.3.x.x/accession_validation_range.xml @@ -1,22 +1,18 @@ - - - - - select count(*) from clinlims.menu - where element_id = 'menu_accession_validation_range'; - - - - Insert in Validation by search by accession range - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + select count(*) from clinlims.menu + where element_id = 'menu_accession_validation_range'; + + + Insert in Validation by search by accession range + INSERT INTO clinlims.menu(id, parent_id, presentation_order, element_id, action_url, click_action, display_key, tool_tip_key, new_window, is_active) @@ -29,10 +25,8 @@ default, 'menu.accession.validation.range', 'tooltip.accession.validation.range',default,default); - - - - + + diff --git a/src/main/resources/liquibase/2.3.x.x/accession_validation_range_access.xml b/src/main/resources/liquibase/2.3.x.x/accession_validation_range_access.xml index bdcedfdcb2..f94d3f0e37 100644 --- a/src/main/resources/liquibase/2.3.x.x/accession_validation_range_access.xml +++ b/src/main/resources/liquibase/2.3.x.x/accession_validation_range_access.xml @@ -1,26 +1,23 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - + + + SELECT count(*) FROM + clinlims.system_module_url WHERE url_path = '/AccessionValidationRange' + + + + + + + - SELECT count(*) FROM - clinlims.system_module_url WHERE url_path = - '/AccessionValidationRange' - - - - - - - - - - + diff --git a/src/main/resources/liquibase/2.3.x.x/analyzer_experiment.xml b/src/main/resources/liquibase/2.3.x.x/analyzer_experiment.xml index 7f79f7361f..20b802d53c 100644 --- a/src/main/resources/liquibase/2.3.x.x/analyzer_experiment.xml +++ b/src/main/resources/liquibase/2.3.x.x/analyzer_experiment.xml @@ -1,49 +1,52 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - - + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - + + + + - - - + + + diff --git a/src/main/resources/liquibase/2.3.x.x/base.xml b/src/main/resources/liquibase/2.3.x.x/base.xml index 70bd242125..e446d40f29 100644 --- a/src/main/resources/liquibase/2.3.x.x/base.xml +++ b/src/main/resources/liquibase/2.3.x.x/base.xml @@ -1,25 +1,23 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - - - - - - - - - - + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.3.x.x/contact_tracing_fields.xml b/src/main/resources/liquibase/2.3.x.x/contact_tracing_fields.xml index 04c8b98df8..319a34277b 100644 --- a/src/main/resources/liquibase/2.3.x.x/contact_tracing_fields.xml +++ b/src/main/resources/liquibase/2.3.x.x/contact_tracing_fields.xml @@ -1,60 +1,52 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.site_information WHERE name = 'contactTracingEnabled' - - - - - - - - - - - - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + + + + + + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.site_information WHERE name = 'contactTracingEnabled' + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.3.x.x/in_lab_tests.xml b/src/main/resources/liquibase/2.3.x.x/in_lab_tests.xml index 44216794d8..5bec13fa59 100644 --- a/src/main/resources/liquibase/2.3.x.x/in_lab_tests.xml +++ b/src/main/resources/liquibase/2.3.x.x/in_lab_tests.xml @@ -1,22 +1,21 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - + - - - - - - - - - - + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.3.x.x/minor_fixes.xml b/src/main/resources/liquibase/2.3.x.x/minor_fixes.xml index 0011507a64..967360c680 100644 --- a/src/main/resources/liquibase/2.3.x.x/minor_fixes.xml +++ b/src/main/resources/liquibase/2.3.x.x/minor_fixes.xml @@ -1,49 +1,48 @@ - - - - - - - SELECT count(*) FROM - clinlims.site_information WHERE name = 'non-conformity signature' - - - - name='non-conformity signature' - - - - - - - - - SELECT count(*) FROM - clinlims.login_user WHERE last_updated is null - - - - - - last_updated is null - - - - - - - min_age != 'infinity' - - - - max_age != 'infinity' - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + + SELECT count(*) FROM clinlims.site_information WHERE name = 'non-conformity signature' + + + name='non-conformity signature' + + + + + + + + SELECT count(*) FROM clinlims.login_user WHERE last_updated is null + + + + + last_updated is null + + + + + + + min_age != 'infinity' + + + + max_age != 'infinity' + + diff --git a/src/main/resources/liquibase/2.3.x.x/national_id_config.xml b/src/main/resources/liquibase/2.3.x.x/national_id_config.xml index 684e8d51a7..6c1a464c6f 100644 --- a/src/main/resources/liquibase/2.3.x.x/national_id_config.xml +++ b/src/main/resources/liquibase/2.3.x.x/national_id_config.xml @@ -1,53 +1,42 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - + - - - - SELECT count(*) FROM - clinlims.site_information WHERE name = 'National ID required' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + SELECT count(*) FROM clinlims.site_information WHERE name = 'National ID required' + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.3.x.x/new_tests.xml b/src/main/resources/liquibase/2.3.x.x/new_tests.xml index 1f50b8a318..6c800cc808 100644 --- a/src/main/resources/liquibase/2.3.x.x/new_tests.xml +++ b/src/main/resources/liquibase/2.3.x.x/new_tests.xml @@ -1,125 +1,84 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - + - - - - + + update clinlims.localization set english = 'COVID-19 PCR', french = 'COVID-19 PCR' where description = 'test name' and english in ('Covid PCR', 'Covid(PCR)'); - - - - + + - - - - + + update localization set english = 'SARS-CoV-2 RNA by qRT-PCR', french = 'SARS-CoV-2 RNA by qRT-PCR' where description = 'test report name' and english in ( 'Covid PCR', 'Covid(PCR)'); - - - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE english = 'Respiratory Swab' - - + + + + + SELECT count(*) FROM clinlims.localization WHERE english = 'Respiratory Swab' + - - + INSERT INTO clinlims.localization( id, description, english, french, lastupdated) VALUES (nextval('localization_seq'),'type of sample name','Respiratory Swab','Respiratory Swab', now()); - - + + - + + + SELECT count(*) FROM clinlims.localization WHERE english = 'Fluid' + - - - - SELECT count(*) FROM - clinlims.localization WHERE english = 'Fluid' - - - - - - + INSERT INTO clinlims.localization( id, description, english, french, lastupdated) VALUES (nextval('localization_seq'),'type of sample name','Fluid','Fluid', now()); - - - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE english = 'Sputum' + + - + + + SELECT count(*) FROM clinlims.localization WHERE english = 'Sputum' + - - - + INSERT INTO clinlims.localization( id, description, english, french, lastupdated) VALUES (nextval('localization_seq'),'type of sample name','Sputum','Sputum', now()); - - - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE english = 'COVID-19 PCR' + + - + + + SELECT count(*) FROM clinlims.localization WHERE english = 'COVID-19 PCR' + - - - + INSERT INTO clinlims.localization( id, description, english, french, lastupdated) VALUES (nextval('localization_seq'),'test name','COVID-19 PCR','COVID-19 PCR', now()), (nextval('localization_seq'),'test report name','SARS-CoV-2 RNA by qRT-PCR','SARS-CoV-2 RNA by qRT-PCR', now()); - - - - - - - + + - SELECT count(*) FROM clinlims.test - WHERE description = 'COVIDPCR(Respiratory Swab)' + + + SELECT count(*) FROM clinlims.test WHERE description = 'COVIDPCR(Respiratory Swab)' + - - - - - + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, sticker_req_flag, is_active, active_begin, active_end, is_reportable, time_holding, time_wait, time_ta_average, time_ta_warning, time_ta_max, label_qty, lastupdated, label_id, test_trailer_id, test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable, guid, name_localization_id, reporting_name_localization_id, default_test_result_id, notify_results) @@ -128,130 +87,82 @@ (select id from localization where description = 'test name' and english = 'COVID-19 PCR' limit 1), (select id from localization where description = 'test report name' and english = 'SARS-CoV-2 RNA by qRT-PCR' limit 1), null,'f'); - - - - - - - + + - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Respiratory Swab' + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Respiratory Swab' + - - - - - + INSERT into clinlims.type_of_sample (id, description, domain, lastupdated, local_abbrev, is_active, sort_order, name_localization_id, display_key) VALUES (nextval('type_of_sample_seq') , 'Respiratory Swab', 'H', now(), 'Resp Swab', 't', 0 , (select id from localization where english = 'Respiratory Swab' limit 1), 'Sample.type.Swab'); - - - - + + - - + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Respiratory Swab' + - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Respiratory Swab' - - - - - - + UPDATE clinlims.type_of_sample SET local_abbrev = 'Resp Swab' WHERE description = 'Respiratory Swab'; - - - - - - - - - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = 'COVIDPCR(Respiratory - Swab)') - - + + + + + SELECT count(*) FROM clinlims.sampletype_test WHERE test_id = + (select id from clinlims.test where description = 'COVIDPCR(Respiratory Swab)') + - - + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), (select id from type_of_sample where description = 'Respiratory Swab' limit 1), (select id from test where description = 'COVIDPCR(Respiratory Swab)'), 'f'); - - + + - + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'COVIDPCR(Respiratory Swab)') + - - - - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = 'COVIDPCR(Respiratory - Swab)') - - - - - - + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'COVIDPCR(Respiratory Swab)'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = 'COVIDPCR(Respiratory - Swab)') + + - + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'COVIDPCR(Respiratory Swab)') + - - - + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES (nextval('test_result_seq'), (select id from test where description = 'COVIDPCR(Respiratory Swab)'), null,null,'N',null,null,null,null,now(),null,1,'f','t','f'); - - - - - - - - - SELECT count(*) FROM clinlims.test - WHERE description = 'COVIDPCR(Sputum)' + + - + + + SELECT count(*) FROM clinlims.test WHERE description = 'COVIDPCR(Sputum)' + - - - + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, sticker_req_flag, is_active, active_begin, active_end, is_reportable, time_holding, time_wait, time_ta_average, time_ta_warning, time_ta_max, label_qty, lastupdated, label_id, test_trailer_id, test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable, guid, name_localization_id, reporting_name_localization_id, default_test_result_id, notify_results) VALUES (nextval('test_seq'),null,null,'COVIDPCR(Sputum)','94500-6',null,null,'Y',null,null,'N',null,null,null,null,null,null,now(),null,null,136,null,null,'COVIDPCR',1,'COVIDPCR','t', @@ -259,109 +170,71 @@ (select id from localization where description = 'test name' and english = 'COVID-19 PCR' limit 1), (select id from localization where description = 'test report name' and english = 'SARS-CoV-2 RNA by qRT-PCR' limit 1), null,'f'); - - - - - - - + + - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Sputum' + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Sputum' + - - - - - + INSERT into clinlims.type_of_sample( id, description, domain, lastupdated, local_abbrev, is_active, sort_order, name_localization_id, display_key) VALUES (nextval('type_of_sample_seq') , 'Sputum', 'H', now(), 'Sputum', 't', 0 , (select id from localization where english = 'Sputum' limit 1), 'Sample.type.Sputum'); - - - - - - - + + - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = 'COVIDPCR(Sputum)') + + + SELECT count(*) FROM clinlims.sampletype_test WHERE test_id = + (select id from clinlims.test where description = 'COVIDPCR(Sputum)') + - - - - - + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), (select id from type_of_sample where description = 'Sputum' limit 1), (select id from test where description = 'COVIDPCR(Sputum)'), 'f'); - - - - + + - - + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'COVIDPCR(Sputum)') + - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = 'COVIDPCR(Sputum)') - - - - - - + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'COVIDPCR(Sputum)'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = 'COVIDPCR(Sputum)') - - + + + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'COVIDPCR(Sputum)') + - - + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES (nextval('test_result_seq'), (select id from test where description = 'COVIDPCR(Sputum)'), null,null,'N',null,null,null,null,now(),null,1,'f','t','f'); - - + + - + + + SELECT count(*) FROM clinlims.test WHERE description = 'COVIDPCR(Fluid)' + - - - - SELECT count(*) FROM clinlims.test - WHERE description = 'COVIDPCR(Fluid)' - - - - - - + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, sticker_req_flag, is_active, active_begin, active_end, is_reportable, time_holding, time_wait, time_ta_average, time_ta_warning, time_ta_max, label_qty, lastupdated, label_id, test_trailer_id, test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable, guid, name_localization_id, reporting_name_localization_id, default_test_result_id, notify_results) VALUES (nextval('test_seq'),null,null,'COVIDPCR(Fluid)','94500-6',null,null,'Y',null,null,'N',null,null,null,null,null,null,now(),null,null,136,null,null,'COVIDPCR',1,'COVIDPCR','t', @@ -369,110 +242,71 @@ (select id from localization where description = 'test name' and english = 'COVID-19 PCR' limit 1), (select id from localization where description = 'test report name' and english = 'SARS-CoV-2 RNA by qRT-PCR' limit 1), null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Fluid' + + - + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Fluid' + - - - + INSERT into clinlims.type_of_sample( id, description, domain, lastupdated, local_abbrev, is_active, sort_order, name_localization_id, display_key) VALUES (nextval('type_of_sample_seq') , 'Fluid', 'H', now(), 'Fluid', 't', 0 , (select id from localization where english = 'Fluid' limit 1), 'Sample.type.Fluid'); - - - - - - - - - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = 'COVIDPCR(Fluid)') + + - + + + SELECT count(*) FROM clinlims.sampletype_test WHERE test_id = + (select id from clinlims.test where description = 'COVIDPCR(Fluid)') + - - - + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), (select id from type_of_sample where description = 'Fluid' limit 1), (select id from test where description = 'COVIDPCR(Fluid)'), 'f'); - - - - - - - + + - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = 'COVIDPCR(Fluid)') + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'COVIDPCR(Fluid)') + - - - - - + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'COVIDPCR(Fluid)'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - - - - + + - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = 'COVIDPCR(Fluid)') + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'COVIDPCR(Fluid)') + - - - - - + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES (nextval('test_result_seq'), (select id from test where description = 'COVIDPCR(Fluid)'), null,null,'N',null,null,null,null,now(),null,1,'f','t','f'); - - - - + + - - + + + SELECT count(*) FROM clinlims.dictionary WHERE dict_entry = 'IgM DETECTED' + - SELECT count(*) FROM - clinlims.dictionary WHERE dict_entry = 'IgM DETECTED' - - - - - - - + INSERT INTO clinlims.dictionary(id,is_active,dict_entry,lastupdated,local_abbrev,dictionary_category_id,display_key,sort_order,name_localization_id) VALUES (nextval('dictionary_seq'),'Y','IgM DETECTED',now(),'IgM DETECTED', @@ -512,44 +346,30 @@ (nextval('dictionary_seq'),'Y','Invalid',now(),'Invalid', (select id from dictionary_category where name = 'Haiti Lab'), 'dictionary.result.Invalid',54430,null); - - - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE english = 'COVID-19 ANTIBODY IgM' - - + + + + + SELECT count(*) FROM clinlims.localization WHERE english = 'COVID-19 ANTIBODY IgM' + - - + INSERT INTO clinlims.localization( id, description, english, french, lastupdated) VALUES (nextval('localization_seq'),'test name','COVID-19 ANTIBODY IgM','COVID-19 ANITBODY IgM', now()), (nextval('localization_seq'),'test report name','IgM to SARS-CoV-2 by EIA or LFA','IgM to SARS-CoV-2 by EIA or LFA', now()); - - + + - + - + + SELECT count(*) FROM clinlims.test WHERE description = 'COVID-19ANTIBODYIgM(Serum)' + - - - SELECT count(*) FROM clinlims.test - WHERE description = 'COVID-19ANTIBODYIgM(Serum)' - - - - - - + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, sticker_req_flag, is_active, active_begin, active_end, is_reportable, time_holding, time_wait, time_ta_average, time_ta_warning, time_ta_max, label_qty, lastupdated, label_id, test_trailer_id, test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable, guid, name_localization_id, reporting_name_localization_id, default_test_result_id, notify_results) VALUES (nextval('test_seq'),null,null,'COVID-19ANTIBODYIgM(Serum)','94500-6',null,null,'Y',null,null,'N',null,null,null,null,null,null,now(),null,null,136,null,null,'COVIDPCR',1,'COVIDPCR','t', @@ -557,92 +377,58 @@ (select id from localization where description = 'test name' and english = 'COVID-19 ANTIBODY IgM' limit 1), (select id from localization where description = 'test report name' and english = 'IgM to SARS-CoV-2 by EIA or LFA' limit 1), null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Serum' + + - + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Serum' + - - - + INSERT into type_of_sample( id, description, domain, lastupdated, local_abbrev, is_active, sort_order, name_localization_id, display_key) VALUES (nextval('type_of_sample_seq') , 'Serum', 'H', now(), 'Serum', 't', 0 , (select id from localization where english = 'Serum' limit 1), 'Sample.type.Serum'); - - - - - - - - - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = - 'COVID-19ANTIBODYIgM(Serum)') + + - + + + SELECT count(*) FROM clinlims.sampletype_test WHERE test_id = + (select id from clinlims.test where description = 'COVID-19ANTIBODYIgM(Serum)') + - - - + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), (select id from type_of_sample where description = 'Serum' limit 1), (select id from test where description = 'COVID-19ANTIBODYIgM(Serum)'), 'f'); - - - - - - - + + - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = - 'COVID-19ANTIBODYIgM(Serum)') + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'COVID-19ANTIBODYIgM(Serum)') + - - - - - + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'COVID-19ANTIBODYIgM(Serum)'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - - - - + + - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = - 'COVID-19ANTIBODYIgM(Serum)') + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'COVID-19ANTIBODYIgM(Serum)') + - - - - - + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES (nextval('test_result_seq'), @@ -663,22 +449,15 @@ (select id from dictionary where dict_entry = 'Invalid' limit 1), null,null,null,now(),null,1,'f','t','f'); - - - - + + - - + + + SELECT count(*) FROM clinlims.test WHERE description = 'COVID-19ANTIBODYIgM(Plasma)' + - SELECT count(*) FROM clinlims.test - WHERE description = 'COVID-19ANTIBODYIgM(Plasma)' - - - - - - + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, sticker_req_flag, is_active, active_begin, active_end, is_reportable, time_holding, time_wait, time_ta_average, time_ta_warning, time_ta_max, label_qty, lastupdated, label_id, test_trailer_id, test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable, guid, name_localization_id, reporting_name_localization_id, default_test_result_id, notify_results) VALUES (nextval('test_seq'),null,null,'COVID-19ANTIBODYIgM(Plasma)','94500-6',null,null,'Y',null,null,'N',null,null,null,null,null,null,now(),null,null,136,null,null,'COVIDPCR',1,'COVIDPCR','t', @@ -686,92 +465,58 @@ (select id from localization where description = 'test name' and english = 'COVID-19 ANTIBODY IgM' limit 1), (select id from localization where description = 'test report name' and english = 'IgM to SARS-CoV-2 by EIA or LFA' limit 1), null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Plasma' - - + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Plasma' + - - + INSERT into type_of_sample( id, description, domain, lastupdated, local_abbrev, is_active, sort_order, name_localization_id, display_key ) VALUES (nextval('type_of_sample_seq') , 'Plasma', 'H', now(), 'Plasma', 't', 0 , (select id from localization where english = 'Plasma' limit 1), 'Sample.type.Plasma'); - - + + - + + + SELECT count(*) FROM clinlims.sampletype_test WHERE test_id = + (select id from clinlims.test where description = 'COVID-19ANTIBODYIgM(Plasma)') + - - - - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = - 'COVID-19ANTIBODYIgM(Plasma)') - - - - - - + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), (select id from type_of_sample where description = 'Plasma' limit 1), (select id from test where description = 'COVID-19ANTIBODYIgM(Plasma)'), 'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = - 'COVID-19ANTIBODYIgM(Plasma)') + + - + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'COVID-19ANTIBODYIgM(Plasma)') + - - - + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'COVID-19ANTIBODYIgM(Plasma)'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = - 'COVID-19ANTIBODYIgM(Plasma)') + + - + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'COVID-19ANTIBODYIgM(Plasma)') + - - - + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES (nextval('test_result_seq'), @@ -790,43 +535,29 @@ (select id from dictionary where dict_entry = 'Invalid' limit 1), null,null,null,now(),null,1,'f','t','f'); - - - - - - - + + - SELECT count(*) FROM - clinlims.localization WHERE english = 'COVID-19 ANTIBODY IgG' + + + SELECT count(*) FROM clinlims.localization WHERE english = 'COVID-19 ANTIBODY IgG' + - - - - - + INSERT INTO clinlims.localization( id, description, english, french, lastupdated) VALUES (nextval('localization_seq'),'test name','COVID-19 ANTIBODY IgG','COVID-19 ANITBODY IgG', now()), (nextval('localization_seq'),'test report name','IgG to SARS-CoV-2 by EIA or LFA','IgG to SARS-CoV-2 by EIA or LFA', now()); - - - - - - - + + - SELECT count(*) FROM clinlims.test - WHERE description = 'COVID-19ANTIBODYIgG(Serum)' + + + SELECT count(*) FROM clinlims.test WHERE description = 'COVID-19ANTIBODYIgG(Serum)' + - - - - - + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, sticker_req_flag, is_active, active_begin, active_end, is_reportable, time_holding, time_wait, time_ta_average, time_ta_warning, time_ta_max, label_qty, lastupdated, label_id, test_trailer_id, test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable, guid, name_localization_id, reporting_name_localization_id, default_test_result_id, notify_results) VALUES (nextval('test_seq'),null,null,'COVID-19ANTIBODYIgG(Serum)','94500-6',null,null,'Y',null,null,'N',null,null,null,null,null,null,now(),null,null,136,null,null,'COVIDPCR',1,'COVIDPCR','t', @@ -834,72 +565,45 @@ (select id from localization where description = 'test name' and english = 'COVID-19 ANTIBODY IgG' limit 1), (select id from localization where description = 'test report name' and english = 'IgG to SARS-CoV-2 by EIA or LFA' limit 1), null,'f'); - - - - + + - - + + + SELECT count(*) FROM clinlims.sampletype_test WHERE test_id = + (select id from clinlims.test where description = 'COVID-19ANTIBODYIgG(Serum)') + - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = - 'COVID-19ANTIBODYIgG(Serum)') - - - - - - + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), (select id from type_of_sample where description = 'Serum' limit 1), (select id from test where description = 'COVID-19ANTIBODYIgG(Serum)'), 'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = - 'COVID-19ANTIBODYIgG(Serum)') - - + + + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'COVID-19ANTIBODYIgG(Serum)') + - - + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'COVID-19ANTIBODYIgG(Serum)'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - + + - + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'COVID-19ANTIBODYIgG(Serum)') + - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = - 'COVID-19ANTIBODYIgG(Serum)') - - - - - - + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES (nextval('test_result_seq'), @@ -918,22 +622,15 @@ (select id from dictionary where dict_entry = 'Invalid' limit 1), null,null,null,now(),null,1,'f','t','f'); - - - - - - - - - SELECT count(*) FROM clinlims.test - WHERE description = 'COVID-19ANTIBODYIgG(Plasma)' + + - + + + SELECT count(*) FROM clinlims.test WHERE description = 'COVID-19ANTIBODYIgG(Plasma)' + - - - + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, sticker_req_flag, is_active, active_begin, active_end, is_reportable, time_holding, time_wait, time_ta_average, time_ta_warning, time_ta_max, label_qty, lastupdated, label_id, test_trailer_id, test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable, guid, name_localization_id, reporting_name_localization_id, default_test_result_id, notify_results) VALUES (nextval('test_seq'),null,null,'COVID-19ANTIBODYIgG(Plasma)','94500-6',null,null,'Y',null,null,'N',null,null,null,null,null,null,now(),null,null,136,null,null,'COVIDPCR',1,'COVIDPCR','t', @@ -941,72 +638,45 @@ (select id from localization where description = 'test name' and english = 'COVID-19 ANTIBODY IgG' limit 1), (select id from localization where description = 'test report name' and english = 'IgG to SARS-CoV-2 by EIA or LFA' limit 1), null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = - 'COVID-19ANTIBODYIgG(Plasma)') + + - + + + SELECT count(*) FROM clinlims.sampletype_test WHERE test_id = + (select id from clinlims.test where description = 'COVID-19ANTIBODYIgG(Plasma)') + - - - + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), (select id from type_of_sample where description = 'Plasma' limit 1), (select id from test where description = 'COVID-19ANTIBODYIgG(Plasma)'), 'f'); - - - - - - - + + - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = - 'COVID-19ANTIBODYIgG(Plasma)') + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'COVID-19ANTIBODYIgG(Plasma)') + - - - - - + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'COVID-19ANTIBODYIgG(Plasma)'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - - - - + + - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = - 'COVID-19ANTIBODYIgG(Plasma)') + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'COVID-19ANTIBODYIgG(Plasma)') + - - - - - + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES (nextval('test_result_seq'), @@ -1025,43 +695,29 @@ (select id from dictionary where dict_entry = 'Invalid' limit 1), null,null,null,now(),null,1,'f','t','f'); - - - - + + - - + + + SELECT count(*) FROM clinlims.localization WHERE english = 'DENGUE PCR' + - SELECT count(*) FROM - clinlims.localization WHERE english = 'DENGUE PCR' - - - - - - + INSERT INTO clinlims.localization( id, description, english, french, lastupdated) VALUES (nextval('localization_seq'),'test name','DENGUE PCR','DENGUE PCR', now()), (nextval('localization_seq'),'test report name','Dengue virus RNA by qRT-PCR','Dengue virus RNA by qRT-PCR', now()); - - - - - - - - - SELECT count(*) FROM clinlims.test - WHERE description = 'DENGUEPCR(Serum)' - - + + + + + SELECT count(*) FROM clinlims.test WHERE description = 'DENGUEPCR(Serum)' + - - + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, sticker_req_flag, is_active, active_begin, active_end, is_reportable, time_holding, time_wait, time_ta_average, time_ta_warning, time_ta_max, label_qty, lastupdated, label_id, test_trailer_id, test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable, guid, name_localization_id, reporting_name_localization_id, default_test_result_id, notify_results) VALUES (nextval('test_seq'),null,null,'DENGUEPCR(Serum)','94500-6',null,null,'Y',null,null,'N',null,null,null,null,null,null,now(),null,null,136,null,null,'DENGUEPCR',1,'DENGUEPCR','t', @@ -1069,69 +725,45 @@ (select id from localization where description = 'test name' and english = 'DENGUE PCR' limit 1), (select id from localization where description = 'test report name' and english = 'Dengue virus RNA by qRT-PCR' limit 1), null,'f'); - - + + - + + + SELECT count(*) FROM clinlims.sampletype_test WHERE test_id = + (select id from clinlims.test where description = 'DENGUEPCR(Serum)') + - - - - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = 'DENGUEPCR(Serum)') - - - - - - + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), (select id from type_of_sample where description = 'Serum' limit 1), (select id from test where description = 'DENGUEPCR(Serum)'), 'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = 'DENGUEPCR(Serum)') + + - + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'DENGUEPCR(Serum)') + - - - + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'DENGUEPCR(Serum)'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = 'DENGUEPCR(Serum)') + + - + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'DENGUEPCR(Serum)') + - - - + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES (nextval('test_result_seq'), @@ -1160,22 +792,15 @@ (select id from dictionary where dict_entry = 'Invalid' limit 1), null,null,null,now(),null,1,'f','t','f'); - - - - - - - + + - SELECT count(*) FROM clinlims.test - WHERE description = 'DENGUEPCR(Plasma)' + + + SELECT count(*) FROM clinlims.test WHERE description = 'DENGUEPCR(Plasma)' + - - - - - + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, sticker_req_flag, is_active, active_begin, active_end, is_reportable, time_holding, time_wait, time_ta_average, time_ta_warning, time_ta_max, label_qty, lastupdated, label_id, test_trailer_id, test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable, guid, name_localization_id, reporting_name_localization_id, default_test_result_id, notify_results) VALUES (nextval('test_seq'),null,null,'DENGUEPCR(Plasma)','94500-6',null,null,'Y',null,null,'N',null,null,null,null,null,null,now(),null,null,136,null,null,'DENGUEPCR',1,'DENGUEPCR','t', @@ -1183,69 +808,45 @@ (select id from localization where description = 'test name' and english = 'DENGUE PCR' limit 1), (select id from localization where description = 'test report name' and english = 'Dengue virus RNA by qRT-PCR' limit 1), null,'f'); - - - - - - - + + - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = 'DENGUEPCR(Plasma)') + + + SELECT count(*) FROM clinlims.sampletype_test WHERE test_id = + (select id from clinlims.test where description = 'DENGUEPCR(Plasma)') + - - - - - + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), (select id from type_of_sample where description = 'Plasma' limit 1), (select id from test where description = 'DENGUEPCR(Plasma)'), 'f'); - - - - + + - - + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'DENGUEPCR(Plasma)') + - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = 'DENGUEPCR(Plasma)') - - - - - - + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'DENGUEPCR(Plasma)'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = 'DENGUEPCR(Plasma)') - - + + + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'DENGUEPCR(Plasma)') + - - + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES (nextval('test_result_seq'), @@ -1274,22 +875,15 @@ (select id from dictionary where dict_entry = 'Invalid' limit 1), null,null,null,now(),null,1,'f','t','f'); - - + + - + + + SELECT count(*) FROM clinlims.test WHERE description = 'DENGUEPCR(DBS)' + - - - - SELECT count(*) FROM clinlims.test - WHERE description = 'DENGUEPCR(DBS)' - - - - - - + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, sticker_req_flag, is_active, active_begin, active_end, is_reportable, time_holding, time_wait, time_ta_average, time_ta_warning, time_ta_max, label_qty, lastupdated, label_id, test_trailer_id, test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable, guid, name_localization_id, reporting_name_localization_id, default_test_result_id, notify_results) VALUES (nextval('test_seq'),null,null,'DENGUEPCR(DBS)','94500-6',null,null,'Y',null,null,'N',null,null,null,null,null,null,now(),null,null,136,null,null,'DENGUEPCR',1,'DENGUEPCR','t', @@ -1297,89 +891,58 @@ (select id from localization where description = 'test name' and english = 'DENGUE PCR' limit 1), (select id from localization where description = 'test report name' and english = 'Dengue virus RNA by qRT-PCR' limit 1), null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'DBS' + + - + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'DBS' + - - - + INSERT into type_of_sample( id, description, domain, lastupdated, local_abbrev, is_active, sort_order, name_localization_id, display_key ) VALUES (nextval('type_of_sample_seq') , 'DBS', 'H', now(), 'DBS', 't', 0 , (select id from localization where english = 'DBS' limit 1), 'Sample.type.DBS'); - - - - - - - - - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = 'DENGUEPCR(DBS)') + + - + + + SELECT count(*) FROM clinlims.sampletype_test WHERE test_id = + (select id from clinlims.test where description = 'DENGUEPCR(DBS)') + - - - + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), (select id from type_of_sample where description = 'DBS' limit 1), (select id from test where description = 'DENGUEPCR(DBS)'), 'f'); - - - - - - - + + - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = 'DENGUEPCR(DBS)') + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'DENGUEPCR(DBS)') + - - - - - + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'DENGUEPCR(DBS)'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - - - - + + - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = 'DENGUEPCR(DBS)') + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'DENGUEPCR(DBS)') + - - - - - + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES (nextval('test_result_seq'), @@ -1408,43 +971,29 @@ (select id from dictionary where dict_entry = 'Invalid' limit 1), null,null,null,now(),null,1,'f','t','f'); - - - - + + - - + + + SELECT count(*) FROM clinlims.localization WHERE english = 'HIV INFANT VIRAL LOAD' + - SELECT count(*) FROM - clinlims.localization WHERE english = 'HIV INFANT VIRAL LOAD' - - - - - - + INSERT INTO clinlims.localization( id, description, english, french, lastupdated) VALUES (nextval('localization_seq'),'test name','HIV INFANT VIRAL LOAD','HIV INFANT VIRAL LOAD', now()), (nextval('localization_seq'),'test report name','HIV-1 DNA by qRT-PCR','HIV-1 DNA by qRT-PCR', now()); - - - - - - - - - SELECT count(*) FROM clinlims.test - WHERE description = 'HIVINFANTVIRALLOAD(Serum)' - - + + + + + SELECT count(*) FROM clinlims.test WHERE description = 'HIVINFANTVIRALLOAD(Serum)' + - - + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, sticker_req_flag, is_active, active_begin, active_end, is_reportable, time_holding, time_wait, time_ta_average, time_ta_warning, time_ta_max, label_qty, lastupdated, label_id, test_trailer_id, test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable, guid, name_localization_id, reporting_name_localization_id, default_test_result_id, notify_results) VALUES (nextval('test_seq'),null,null,'HIVINFANTVIRALLOAD(Serum)','94500-6',null,null,'Y',null,null,'N',null,null,null,null,null,null,now(),null,null,136,null,null,'HIVINFANTVIRALLOAD',1,'HIVINFANTVIRALLOAD','t', @@ -1452,72 +1001,45 @@ (select id from localization where description = 'test name' and english = 'HIV INFANT VIRAL LOAD' limit 1), (select id from localization where description = 'test report name' and english = 'HIV-1 DNA by qRT-PCR' limit 1), null,'f'); - - + + - + + + SELECT count(*) FROM clinlims.sampletype_test WHERE test_id = + (select id from clinlims.test where description = 'HIVINFANTVIRALLOAD(Serum)') + - - - - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = - 'HIVINFANTVIRALLOAD(Serum)') - - - - - - + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), (select id from type_of_sample where description = 'Serum' limit 1), (select id from test where description = 'HIVINFANTVIRALLOAD(Serum)'), 'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = - 'HIVINFANTVIRALLOAD(Serum)') + + - + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'HIVINFANTVIRALLOAD(Serum)') + - - - + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'HIVINFANTVIRALLOAD(Serum)'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = - 'HIVINFANTVIRALLOAD(Serum)') + + - + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'HIVINFANTVIRALLOAD(Serum)') + - - - + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES (nextval('test_result_seq'), @@ -1544,22 +1066,15 @@ (select id from dictionary where dict_entry = 'Invalid' limit 1), null,null,null,now(),null,1,'f','t','f'); - - - - - - - + + - SELECT count(*) FROM clinlims.test - WHERE description = 'HIVINFANTVIRALLOAD(Plasma)' + + + SELECT count(*) FROM clinlims.test WHERE description = 'HIVINFANTVIRALLOAD(Plasma)' + - - - - - + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, sticker_req_flag, is_active, active_begin, active_end, is_reportable, time_holding, time_wait, time_ta_average, time_ta_warning, time_ta_max, label_qty, lastupdated, label_id, test_trailer_id, test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable, guid, name_localization_id, reporting_name_localization_id, default_test_result_id, notify_results) VALUES (nextval('test_seq'),null,null,'HIVINFANTVIRALLOAD(Plasma)','94500-6',null,null,'Y',null,null,'N',null,null,null,null,null,null,now(),null,null,136,null,null,'HIVINFANTVIRALLOAD',1,'HIVINFANTVIRALLOAD','t', @@ -1567,93 +1082,58 @@ (select id from localization where description = 'test name' and english = 'HIV INFANT VIRAL LOAD' limit 1), (select id from localization where description = 'test report name' and english = 'HIV INFANT VIRAL LOAD' limit 1), null,'f'); - - - - - - - + + - SELECT count(*) FROM clinlims.test - WHERE description = 'HIVINFANTVIRALLOAD(Plasma)' AND - reporting_name_localization_id IS NULL + + + SELECT count(*) FROM clinlims.test WHERE description = 'HIVINFANTVIRALLOAD(Plasma)' AND reporting_name_localization_id IS NULL + - - - - - + UPDATE clinlims.test SET reporting_name_localization_id = (select id from localization where description = 'test report name' and english = 'HIV-1 DNA by qRT-PCR' limit 1) WHERE description = 'HIVINFANTVIRALLOAD(Plasma)'; - - - - + + - - + + + SELECT count(*) FROM clinlims.sampletype_test WHERE test_id = + (select id from clinlims.test where description = 'HIVINFANTVIRALLOAD(Plasma)') + - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = - 'HIVINFANTVIRALLOAD(Plasma)') - - - - - - + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), (select id from type_of_sample where description = 'Plasma' limit 1), (select id from test where description = 'HIVINFANTVIRALLOAD(Plasma)'), 'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = - 'HIVINFANTVIRALLOAD(Plasma)') - - + + + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'HIVINFANTVIRALLOAD(Plasma)') + - - + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'HIVINFANTVIRALLOAD(Plasma)'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - + + - + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'HIVINFANTVIRALLOAD(Plasma)') + - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = - 'HIVINFANTVIRALLOAD(Plasma)') - - - - - - + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES (nextval('test_result_seq'), @@ -1680,22 +1160,15 @@ (select id from dictionary where dict_entry = 'Invalid' limit 1), null,null,null,now(),null,1,'f','t','f'); - - - - - - - - - SELECT count(*) FROM clinlims.test - WHERE description = 'HIVINFANTVIRALLOAD(DBS)' + + - + + + SELECT count(*) FROM clinlims.test WHERE description = 'HIVINFANTVIRALLOAD(DBS)' + - - - + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, sticker_req_flag, is_active, active_begin, active_end, is_reportable, time_holding, time_wait, time_ta_average, time_ta_warning, time_ta_max, label_qty, lastupdated, label_id, test_trailer_id, test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable, guid, name_localization_id, reporting_name_localization_id, default_test_result_id, notify_results) VALUES (nextval('test_seq'),null,null,'HIVINFANTVIRALLOAD(DBS)','94500-6',null,null,'Y',null,null,'N',null,null,null,null,null,null,now(),null,null,136,null,null,'HIVINFANTVIRALLOAD',1,'HIVINFANTVIRALLOAD','t', @@ -1703,92 +1176,57 @@ (select id from localization where description = 'test name' and english = 'HIV INFANT VIRAL LOAD' limit 1), (select id from localization where description = 'test report name' and english = 'HIV INFANT VIRAL LOAD' limit 1), null,'f'); - - - - - - - - - SELECT count(*) FROM clinlims.test - WHERE description = 'HIVINFANTVIRALLOAD(DBS)' AND - reporting_name_localization_id IS NULL + + - + + + SELECT count(*) FROM clinlims.test WHERE description = 'HIVINFANTVIRALLOAD(DBS)' AND reporting_name_localization_id IS NULL + - - - + UPDATE clinlims.test SET reporting_name_localization_id = (select id from localization where description = 'test report name' and english = 'HIV-1 DNA by qRT-PCR' limit 1) WHERE description = 'HIVINFANTVIRALLOAD(DBS)'; - - - - - - - + + - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = - 'HIVINFANTVIRALLOAD(DBS)') + + + SELECT count(*) FROM clinlims.sampletype_test WHERE test_id = + (select id from clinlims.test where description = 'HIVINFANTVIRALLOAD(DBS)') + - - - - - + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), (select id from type_of_sample where description = 'DBS' limit 1), (select id from test where description = 'HIVINFANTVIRALLOAD(DBS)'), 'f'); - - - - - - - + + - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = - 'HIVINFANTVIRALLOAD(DBS)') + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'HIVINFANTVIRALLOAD(DBS)') + - - - - - + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'HIVINFANTVIRALLOAD(DBS)'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - + + - - + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'HIVINFANTVIRALLOAD(DBS)') + - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = - 'HIVINFANTVIRALLOAD(DBS)') - - - - - - + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES (nextval('test_result_seq'), @@ -1815,43 +1253,29 @@ (select id from dictionary where dict_entry = 'Invalid' limit 1), null,null,null,now(),null,1,'f','t','f'); - - - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE english = 'HIV VIRAL LOAD' - - + + + + + SELECT count(*) FROM clinlims.localization WHERE english = 'HIV VIRAL LOAD' + - - + INSERT INTO clinlims.localization( id, description, english, french, lastupdated) VALUES (nextval('localization_seq'),'test name','HIV VIRAL LOAD','HIV VIRAL LOAD', now()), (nextval('localization_seq'),'test report name','HIV-1 RNA by qRT-PCR','HIV-1 RNA by qRT-PCR', now()); - - + + - + + + SELECT count(*) FROM clinlims.test WHERE description = 'HIVVIRALLOAD(Serum)' + - - - - SELECT count(*) FROM clinlims.test - WHERE description = 'HIVVIRALLOAD(Serum)' - - - - - - + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, sticker_req_flag, is_active, active_begin, active_end, is_reportable, time_holding, time_wait, time_ta_average, time_ta_warning, time_ta_max, label_qty, lastupdated, label_id, test_trailer_id, test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable, guid, name_localization_id, reporting_name_localization_id, default_test_result_id, notify_results) VALUES (nextval('test_seq'),null,null,'HIVVIRALLOAD(Serum)','94500-6',null,null,'Y',null,null,'N',null,null,null,null,null,null,now(),null,null,136,null,null,'HIVVIRALLOAD',1,'HIVVIRALLOAD','t', @@ -1859,91 +1283,60 @@ (select id from localization where description = 'test name' and english = 'HIV VIRAL LOAD' limit 1), (select id from localization where description = 'test report name' and english = 'HIV-1 RNA by qRT-PCR' limit 1), null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = 'HIVVIRALLOAD(Serum)') + + - + + + SELECT count(*) FROM clinlims.sampletype_test WHERE test_id = + (select id from clinlims.test where description = 'HIVVIRALLOAD(Serum)') + - - - + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), (select id from type_of_sample where description = 'Serum' limit 1), (select id from test where description = 'HIVVIRALLOAD(Serum)'), 'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = 'HIVVIRALLOAD(Serum)') + + - + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'HIVVIRALLOAD(Serum)') + - - - + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'HIVVIRALLOAD(Serum)'), 4,0,'Infinity',null,'40',10000000,'-Infinity','Infinity',now(),null,'f'); - - - - - - - + + - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = 'HIVVIRALLOAD(Serum)') + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'HIVVIRALLOAD(Serum)') + - - - - - + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES (nextval('test_result_seq'), (select id from test where description = 'HIVVIRALLOAD(Serum)'), null,null,'N',null,2,null,null,now(),null,1,'f','t','f'); - - - - - - - + + - SELECT count(*) FROM clinlims.test - WHERE description = 'HIVVIRALLOAD(Plasma)' + + + SELECT count(*) FROM clinlims.test WHERE description = 'HIVVIRALLOAD(Plasma)' + - - - - - + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, sticker_req_flag, is_active, active_begin, active_end, is_reportable, time_holding, time_wait, time_ta_average, time_ta_warning, time_ta_max, label_qty, lastupdated, label_id, test_trailer_id, test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable, guid, name_localization_id, reporting_name_localization_id, default_test_result_id, notify_results) VALUES (nextval('test_seq'),null,null,'HIVVIRALLOAD(Plasma)','94500-6',null,null,'Y',null,null,'N',null,null,null,null,null,null,now(),null,null,136,null,null,'HIVVIRALLOAD',1,'HIVVIRALLOAD','t', @@ -1951,92 +1344,61 @@ (select id from localization where description = 'test name' and english = 'HIV VIRAL LOAD' limit 1), (select id from localization where description = 'test report name' and english = 'HIV-1 RNA by qRT-PCR' limit 1), null,'f'); - - - - + + - - + + + SELECT count(*) FROM clinlims.sampletype_test WHERE test_id = + (select id from clinlims.test where description = 'HIVVIRALLOAD(Plasma)') + - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = 'HIVVIRALLOAD(Plasma)') - - - - - - + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), (select id from type_of_sample where description = 'Plasma' limit 1), (select id from test where description = 'HIVVIRALLOAD(Plasma)'), 'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = 'HIVVIRALLOAD(Plasma)') - - + + + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'HIVVIRALLOAD(Plasma)') + - - + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'HIVVIRALLOAD(Plasma)'), 4,0,'Infinity',null,'40',10000000,'-Infinity','Infinity',now(),null,'f'); - - + + - + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'HIVVIRALLOAD(Plasma)') + - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = 'HIVVIRALLOAD(Plasma)') - - - - - - + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES (nextval('test_result_seq'), (select id from test where description = 'HIVVIRALLOAD(Plasma)'), null,null,'N',null,2,null,null,now(),null,1,'f','t','f'); - - - - - - - - + + - SELECT count(*) FROM clinlims.test - WHERE description = 'HIVVIRALLOAD(DBS)' - + + + SELECT count(*) FROM clinlims.test WHERE description = 'HIVVIRALLOAD(DBS)' + - - - + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, sticker_req_flag, is_active, active_begin, active_end, is_reportable, time_holding, time_wait, time_ta_average, time_ta_warning, time_ta_max, label_qty, lastupdated, label_id, test_trailer_id, test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable, guid, name_localization_id, reporting_name_localization_id, default_test_result_id, notify_results) VALUES (nextval('test_seq'),null,null,'HIVVIRALLOAD(DBS)','94500-6',null,null,'Y',null,null,'N',null,null,null,null,null,null,now(),null,null,136,null,null,'HIVVIRALLOAD',1,'HIVVIRALLOAD','t', @@ -2044,112 +1406,74 @@ (select id from localization where description = 'test name' and english = 'HIV VIRAL LOAD' limit 1), (select id from localization where description = 'test report name' and english = 'HIV-1 RNA by qRT-PCR' limit 1), null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = 'HIVVIRALLOAD(DBS)') + + - + + + SELECT count(*) FROM clinlims.sampletype_test WHERE test_id = + (select id from clinlims.test where description = 'HIVVIRALLOAD(DBS)') + - - - + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), (select id from type_of_sample where description = 'DBS' limit 1), (select id from test where description = 'HIVVIRALLOAD(DBS)'), 'f'); - - - - - - - + + - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = 'HIVVIRALLOAD(DBS)') + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'HIVVIRALLOAD(DBS)') + - - - - - + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'HIVVIRALLOAD(DBS)'), 4,0,'Infinity',null,'40',10000000,'-Infinity','Infinity',now(),null,'f'); - - - - - - - + + - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = 'HIVVIRALLOAD(DBS)') + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'HIVVIRALLOAD(DBS)') + - - - - - + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES (nextval('test_result_seq'), (select id from test where description = 'HIVVIRALLOAD(DBS)'), null,null,'N',null,2,null,null,now(),null,1,'f','t','f'); - - - - + + - - + + + SELECT count(*) FROM clinlims.localization WHERE english = 'HEPATITIS C VIRAL LOAD' + - SELECT count(*) FROM - clinlims.localization WHERE english = 'HEPATITIS C VIRAL LOAD' - - - - - - + INSERT INTO clinlims.localization( id, description, english, french, lastupdated) VALUES (nextval('localization_seq'),'test name','HEPATITIS C VIRAL LOAD','HEPATITIS C VIRAL LOAD', now()), (nextval('localization_seq'),'test report name','HCV RNA by qRT-PCR','HCV RNA by qRT-PCR', now()); - - - - - - - - - SELECT count(*) FROM clinlims.test - WHERE description = 'HEPATITISCVIRALLOAD(Serum)' - - + + + + + SELECT count(*) FROM clinlims.test WHERE description = 'HEPATITISCVIRALLOAD(Serum)' + - - + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, sticker_req_flag, is_active, active_begin, active_end, is_reportable, time_holding, time_wait, time_ta_average, time_ta_warning, time_ta_max, label_qty, lastupdated, label_id, test_trailer_id, test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable, guid, name_localization_id, reporting_name_localization_id, default_test_result_id, notify_results) VALUES (nextval('test_seq'),null,null,'HEPATITISCVIRALLOAD(Serum)','94500-6',null,null,'Y',null,null,'N',null,null,null,null,null,null,now(),null,null,136,null,null,'HEPATITISCVIRALLOAD',1,'HEPATITISCVIRALLOAD','t', @@ -2157,93 +1481,59 @@ (select id from localization where description = 'test name' and english = 'HEPATITIS C VIRAL LOAD' limit 1), (select id from localization where description = 'test report name' and english = 'HCV RNA by qRT-PCR' limit 1), null,'f'); - - + + - + + + SELECT count(*) FROM clinlims.sampletype_test WHERE test_id = + (select id from clinlims.test where description = 'HEPATITISCVIRALLOAD(Serum)') + - - - - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = - 'HEPATITISCVIRALLOAD(Serum)') - - - - - - + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), (select id from type_of_sample where description = 'Serum' limit 1), (select id from test where description = 'HEPATITISCVIRALLOAD(Serum)'), 'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = - 'HEPATITISCVIRALLOAD(Serum)') + + - + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'HEPATITISCVIRALLOAD(Serum)') + - - - + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'HEPATITISCVIRALLOAD(Serum)'), 4,0,'Infinity',null,'10',10000000,'-Infinity','Infinity',now(),null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = - 'HEPATITISCVIRALLOAD(Serum)') + + - + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'HEPATITISCVIRALLOAD(Serum)') + - - - + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES (nextval('test_result_seq'), (select id from test where description = 'HEPATITISCVIRALLOAD(Serum)'), null,null,'N',null,2,null,null,now(),null,1,'f','t','f'); - - - - - - - + + - SELECT count(*) FROM clinlims.test - WHERE description = 'HEPATITISCVIRALLOAD(Plasma)' + + + SELECT count(*) FROM clinlims.test WHERE description = 'HEPATITISCVIRALLOAD(Plasma)' + - - - - - + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, sticker_req_flag, is_active, active_begin, active_end, is_reportable, time_holding, time_wait, time_ta_average, time_ta_warning, time_ta_max, label_qty, lastupdated, label_id, test_trailer_id, test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable, guid, name_localization_id, reporting_name_localization_id, default_test_result_id, notify_results) VALUES (nextval('test_seq'),null,null,'HEPATITISCVIRALLOAD(Plasma)','94500-6',null,null,'Y',null,null,'N',null,null,null,null,null,null,now(),null,null,136,null,null,'HEPATITISCVIRALLOAD',1,'HEPATITISCVIRALLOAD','t', @@ -2251,114 +1541,73 @@ (select id from localization where description = 'test name' and english = 'HEPATITIS C VIRAL LOAD' limit 1), (select id from localization where description = 'test report name' and english = 'HCV RNA by qRT-PCR' limit 1), null,'f'); - - - - - - - + + - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = - 'HEPATITISCVIRALLOAD(Plasma)') + + + SELECT count(*) FROM clinlims.sampletype_test WHERE test_id = + (select id from clinlims.test where description = 'HEPATITISCVIRALLOAD(Plasma)') + - - - - - + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), (select id from type_of_sample where description = 'Plasma' limit 1), (select id from test where description = 'HEPATITISCVIRALLOAD(Plasma)'), 'f'); - - - - + + - - + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'HEPATITISCVIRALLOAD(Plasma)') + - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = - 'HEPATITISCVIRALLOAD(Plasma)') - - - - - - + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'HEPATITISCVIRALLOAD(Plasma)'), 4,0,'Infinity',null,'10',10000000,'-Infinity','Infinity',now(),null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = - 'HEPATITISCVIRALLOAD(Plasma)') - - + + + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'HEPATITISCVIRALLOAD(Plasma)') + - - + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES (nextval('test_result_seq'), (select id from test where description = 'HEPATITISCVIRALLOAD(Plasma)'), null,null,'N',null,2,null,null,now(),null,1,'f','t','f'); - - + + - + + + SELECT count(*) FROM clinlims.localization WHERE english = 'HEPATITIS B VIRAL LOAD' + - - - - SELECT count(*) FROM - clinlims.localization WHERE english = 'HEPATITIS B VIRAL LOAD' - - - - - - + INSERT INTO clinlims.localization( id, description, english, french, lastupdated) VALUES (nextval('localization_seq'),'test name','HEPATITIS B VIRAL LOAD','HEPATITIS B VIRAL LOAD', now()), (nextval('localization_seq'),'test report name','HBV RNA by qRT-PCR','HBV RNA by qRT-PCR', now()); - - - - - - - - - SELECT count(*) FROM clinlims.test - WHERE description = 'HEPATITISBVIRALLOAD(Serum)' + + - + + + SELECT count(*) FROM clinlims.test WHERE description = 'HEPATITISBVIRALLOAD(Serum)' + - - - + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, sticker_req_flag, is_active, active_begin, active_end, is_reportable, time_holding, time_wait, time_ta_average, time_ta_warning, time_ta_max, label_qty, lastupdated, label_id, test_trailer_id, test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable, guid, name_localization_id, reporting_name_localization_id, default_test_result_id, notify_results) VALUES (nextval('test_seq'),null,null,'HEPATITISBVIRALLOAD(Serum)','94500-6',null,null,'Y',null,null,'N',null,null,null,null,null,null,now(),null,null,136,null,null,'HEPATITISBVIRALLOAD',1,'HEPATITISBVIRALLOAD','t', @@ -2366,93 +1615,59 @@ (select id from localization where description = 'test name' and english = 'HEPATITIS B VIRAL LOAD' limit 1), (select id from localization where description = 'test report name' and english = 'HBV RNA by qRT-PCR' limit 1), null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = - 'HEPATITISBVIRALLOAD(Serum)') + + - + + + SELECT count(*) FROM clinlims.sampletype_test WHERE test_id = + (select id from clinlims.test where description = 'HEPATITISBVIRALLOAD(Serum)') + - - - + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), (select id from type_of_sample where description = 'Serum' limit 1), (select id from test where description = 'HEPATITISBVIRALLOAD(Serum)'), 'f'); - - - - - - - + + - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = - 'HEPATITISBVIRALLOAD(Serum)') + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'HEPATITISBVIRALLOAD(Serum)') + - - - - - + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'HEPATITISBVIRALLOAD(Serum)'), 4,0,'Infinity',null,'10',10000000,'-Infinity','Infinity',now(),null,'f'); - - - - - - - + + - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = - 'HEPATITISBVIRALLOAD(Serum)') + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'HEPATITISBVIRALLOAD(Serum)') + - - - - - + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES (nextval('test_result_seq'), (select id from test where description = 'HEPATITISBVIRALLOAD(Serum)'), null,null,'N',null,2,null,null,now(),null,1,'f','t','f'); - - - - + + - - + + + SELECT count(*) FROM clinlims.test WHERE description = 'HEPATITISBVIRALLOAD(Plasma)' + - SELECT count(*) FROM clinlims.test - WHERE description = 'HEPATITISBVIRALLOAD(Plasma)' - - - - - - + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, sticker_req_flag, is_active, active_begin, active_end, is_reportable, time_holding, time_wait, time_ta_average, time_ta_warning, time_ta_max, label_qty, lastupdated, label_id, test_trailer_id, test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable, guid, name_localization_id, reporting_name_localization_id, default_test_result_id, notify_results) VALUES (nextval('test_seq'),null,null,'HEPATITISBVIRALLOAD(Plasma)','94500-6',null,null,'Y',null,null,'N',null,null,null,null,null,null,now(),null,null,136,null,null,'HEPATITISBVIRALLOAD',1,'HEPATITISBVIRALLOAD','t', @@ -2460,94 +1675,59 @@ (select id from localization where description = 'test name' and english = 'HEPATITIS B VIRAL LOAD' limit 1), (select id from localization where description = 'test report name' and english = 'HBV RNA by qRT-PCR' limit 1), null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = - 'HEPATITISBVIRALLOAD(Plasma)') - - + + + + + SELECT count(*) FROM clinlims.sampletype_test WHERE test_id = + (select id from clinlims.test where description = 'HEPATITISBVIRALLOAD(Plasma)') + - - + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), (select id from type_of_sample where description = 'Plasma' limit 1), (select id from test where description = 'HEPATITISBVIRALLOAD(Plasma)'), 'f'); - - + + - + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'HEPATITISBVIRALLOAD(Plasma)') + - - - - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = - 'HEPATITISBVIRALLOAD(Plasma)') - - - - - - + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'HEPATITISBVIRALLOAD(Plasma)'), 4,0,'Infinity',null,'10',10000000,'-Infinity','Infinity',now(),null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = - 'HEPATITISBVIRALLOAD(Plasma)') + + - + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'HEPATITISBVIRALLOAD(Plasma)') + - - - + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES (nextval('test_result_seq'), (select id from test where description = 'HEPATITISBVIRALLOAD(Plasma)'), null,null,'N',null,2,null,null,now(),null,1,'f','t','f'); - - - - - - - - - SELECT count(*) FROM - clinlims.dictionary WHERE dict_entry = 'SARS-COV-2 RNA NOT DETECTED' - + + - + + + SELECT count(*) FROM clinlims.dictionary WHERE dict_entry = 'SARS-COV-2 RNA NOT DETECTED' + - - - + INSERT INTO clinlims.dictionary(id,is_active,dict_entry,lastupdated,local_abbrev,dictionary_category_id,display_key,sort_order,name_localization_id) VALUES (nextval('dictionary_seq'),'Y','SARS-COV-2 RNA NOT DETECTED',now(),'SARS-COV-2 RNA NOT DETECTED', @@ -2560,638 +1740,434 @@ (nextval('dictionary_seq'),'Y','RETEST - INCONCLUSIVE',now(),'RETEST - INCONCLUSIVE', (select id from dictionary_category where name = 'Haiti Lab'), 'dictionary.result.sarscov2Inconclusive',54530,null); - - - - - - - - - - SELECT count(*) - FROM - clinlims.test_result - WHERE tst_rslt_type = 'N' - AND test_id = (select - id from test where description = - 'COVIDPCR(Respiratory Swab)' limit - 1) - - - - - DELETE FROM clinlims.test_result - WHERE - tst_rslt_type = 'N' AND test_id - = (select id from test where - description = 'COVIDPCR(Respiratory - Swab)' limit 1); - - INSERT INTO - clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) - VALUES - (nextval('test_result_seq'), - (select id from test where - description = 'COVIDPCR(Respiratory Swab)' limit - 1), - null,null,'D', - (select id from dictionary where dict_entry = 'SARS-COV-2 RNA NOT - DETECTED' - limit 1), - null,null,null,now(),null,1,'f','t','f'), - (nextval('test_result_seq'), - (select id from test where description = - 'COVIDPCR(Respiratory Swab)' limit - 1), - null,null,'D', - (select id from - dictionary where dict_entry = 'SARS-CoV-2 RNA DETECTED' - limit 1), - null,null,null,now(),null,1,'f','t','f'), - (nextval('test_result_seq'), - (select id from test where description = - 'COVIDPCR(Respiratory Swab)' limit - 1), - null,null,'D', - (select id from - dictionary where dict_entry = 'RETEST - INCONCLUSIVE' limit - 1), - null,null,null,now(),null,1,'f','t','f'), - (nextval('test_result_seq'), - (select id from test where description = - 'COVIDPCR(Respiratory Swab)' limit - 1), - null,null,'D', - (select id from - dictionary where dict_entry = 'Invalid' limit 1), - null,null,null,now(),null,1,'f','t','f'); - - UPDATE clinlims.test t - SET - default_test_result_id = ( - SELECT tr.id - FROM clinlims.test_result tr - WHERE CAST (tr.value as NUMERIC) in ( - SELECT d.id FROM - clinlims.dictionary d - WHERE d.dict_entry = 'SARS-COV-2 RNA NOT - DETECTED' - ) - AND tr.test_id = t.id - ) - WHERE description = - 'COVIDPCR(Respiratory Swab)'; - - UPDATE clinlims.result_limits rl - SET - normal_dictionary_id = ( - SELECT d.id FROM clinlims.dictionary d - WHERE - d.dict_entry = 'SARS-COV-2 RNA NOT DETECTED' - ) - WHERE rl.test_id in ( - SELECT id FROM clinlims.test - WHERE description = 'COVIDPCR(Respiratory - Swab)' - ); - - - - - - - - - - SELECT count(*) - FROM - clinlims.test_result - WHERE tst_rslt_type = 'N' - AND test_id = (select - id from test where description = - 'COVIDPCR(Sputum)' limit 1) - - - - - DELETE FROM clinlims.test_result - WHERE - tst_rslt_type = 'N' AND test_id - = (select id from test where - description = 'COVIDPCR(Sputum)' limit - 1); - - INSERT INTO - clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) - VALUES - (nextval('test_result_seq'), - (select id from test where - description = 'COVIDPCR(Sputum)' limit 1), - null,null,'D', - (select id - from dictionary where dict_entry = 'SARS-COV-2 RNA NOT DETECTED' - limit 1), - null,null,null,now(),null,1,'f','t','f'), - (nextval('test_result_seq'), - (select id from test where description = - 'COVIDPCR(Sputum)' limit 1), - null,null,'D', - (select id from dictionary - where dict_entry = 'SARS-CoV-2 RNA DETECTED' - limit 1), - null,null,null,now(),null,1,'f','t','f'), - (nextval('test_result_seq'), - (select id from test where description = - 'COVIDPCR(Sputum)' limit 1), - null,null,'D', - (select id from dictionary - where dict_entry = 'RETEST - INCONCLUSIVE' limit - 1), - null,null,null,now(),null,1,'f','t','f'), - (nextval('test_result_seq'), - (select id from test where description = - 'COVIDPCR(Sputum)' limit 1), - null,null,'D', - (select id from dictionary - where dict_entry = 'Invalid' limit 1), - null,null,null,now(),null,1,'f','t','f'); - - UPDATE clinlims.test t - SET - default_test_result_id = ( - SELECT tr.id - FROM clinlims.test_result tr - WHERE CAST (tr.value as NUMERIC) in ( - SELECT d.id FROM - clinlims.dictionary d - WHERE d.dict_entry = 'SARS-COV-2 RNA NOT - DETECTED' - ) - AND tr.test_id = t.id - ) - WHERE description = - 'COVIDPCR(Sputum)'; - - UPDATE clinlims.result_limits rl - SET - normal_dictionary_id = ( - SELECT d.id FROM clinlims.dictionary d - WHERE - d.dict_entry = 'SARS-COV-2 RNA NOT DETECTED' - ) - WHERE rl.test_id in ( - SELECT id FROM clinlims.test - WHERE description = 'COVIDPCR(Sputum)' - ); - - - - - - - - - - SELECT count(*) - FROM - clinlims.test_result - WHERE tst_rslt_type = 'N' - AND test_id = (select - id from test where description = - 'COVIDPCR(Fluid)' limit 1) - - - - - DELETE FROM clinlims.test_result - WHERE - tst_rslt_type = 'N' AND test_id - = (select id from test where - description = 'COVIDPCR(Fluid)' limit 1); - INSERT INTO - clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) - VALUES - (nextval('test_result_seq'), - (select id from test where - description = 'COVIDPCR(Fluid)' limit 1), - null,null,'D', - (select id - from dictionary where dict_entry = 'SARS-COV-2 RNA NOT DETECTED' - limit 1), - null,null,null,now(),null,1,'f','t','f'), - (nextval('test_result_seq'), - (select id from test where description = - 'COVIDPCR(Fluid)' limit 1), - null,null,'D', - (select id from dictionary - where dict_entry = 'SARS-CoV-2 RNA DETECTED' - limit 1), - null,null,null,now(),null,1,'f','t','f'), - (nextval('test_result_seq'), - (select id from test where description = - 'COVIDPCR(Fluid)' limit 1), - null,null,'D', - (select id from dictionary - where dict_entry = 'RETEST - INCONCLUSIVE' limit - 1), - null,null,null,now(),null,1,'f','t','f'), - (nextval('test_result_seq'), - (select id from test where description = - 'COVIDPCR(Fluid)' limit 1), - null,null,'D', - (select id from dictionary - where dict_entry = 'Invalid' limit 1), - null,null,null,now(),null,1,'f','t','f'); - - UPDATE clinlims.test t - SET - default_test_result_id = ( - SELECT tr.id - FROM clinlims.test_result tr - WHERE CAST (tr.value as NUMERIC) in ( - SELECT d.id FROM - clinlims.dictionary d - WHERE d.dict_entry = 'SARS-COV-2 RNA NOT - DETECTED' - ) - AND tr.test_id = t.id - ) - WHERE description = - 'COVIDPCR(Fluid)'; - - UPDATE clinlims.result_limits rl - SET - normal_dictionary_id = ( - SELECT d.id FROM clinlims.dictionary d - WHERE - d.dict_entry = 'SARS-COV-2 RNA NOT DETECTED' - ) - WHERE rl.test_id in ( - SELECT id FROM clinlims.test - WHERE description = 'COVIDPCR(Fluid)' - ); - - - - - - - - - - SELECT count(*) - FROM clinlims.test t - WHERE description = 'COVID-19ANTIBODYIgM(Serum)' - AND - default_test_result_id is NULL - - - - - UPDATE clinlims.test t - SET - default_test_result_id = ( - SELECT tr.id - FROM - clinlims.test_result tr - WHERE CAST (tr.value as NUMERIC) in ( - SELECT - d.id FROM - clinlims.dictionary d - WHERE d.dict_entry = 'IgM NOT DETECTED' - ) - AND - tr.test_id = t.id - ) - WHERE description = - 'COVID-19ANTIBODYIgM(Serum)'; - - UPDATE clinlims.result_limits rl - SET - normal_dictionary_id = ( - SELECT - d.id FROM clinlims.dictionary d - WHERE - d.dict_entry = 'IgM NOT - DETECTED' - ) - WHERE rl.test_id in ( - SELECT id FROM - clinlims.test - WHERE - description = 'COVID-19ANTIBODYIgM(Serum)' - ); - - - - - - - - - - SELECT count(*) - FROM clinlims.test t - WHERE description = 'COVID-19ANTIBODYIgM(Plasma)' - AND - default_test_result_id is NULL - - - - - UPDATE clinlims.test t - SET - default_test_result_id = ( - SELECT tr.id - FROM - clinlims.test_result tr - WHERE CAST (tr.value as NUMERIC) in ( - SELECT - d.id FROM - clinlims.dictionary d - WHERE d.dict_entry = 'IgM NOT DETECTED' - ) - AND - tr.test_id = t.id - ) - WHERE description = - 'COVID-19ANTIBODYIgM(Plasma)'; - - UPDATE clinlims.result_limits rl - SET - normal_dictionary_id = ( - SELECT - d.id FROM clinlims.dictionary d - WHERE - d.dict_entry = 'IgM NOT - DETECTED' - ) - WHERE rl.test_id in ( - SELECT id FROM - clinlims.test - WHERE - description = 'COVID-19ANTIBODYIgM(Plasma)' - ); - - - - - - - - - - SELECT count(*) - FROM clinlims.test t - WHERE description = 'COVID-19ANTIBODYIgG(Serum)' - AND - default_test_result_id is NULL - - - - - UPDATE clinlims.test t - SET - default_test_result_id = ( - SELECT tr.id - FROM - clinlims.test_result tr - WHERE CAST (tr.value as NUMERIC) in ( - SELECT - d.id FROM - clinlims.dictionary d - WHERE d.dict_entry = 'IgG NOT DETECTED' - ) - AND - tr.test_id = t.id - ) - WHERE description = - 'COVID-19ANTIBODYIgG(Serum)'; - - UPDATE clinlims.result_limits rl - SET - normal_dictionary_id = ( - SELECT - d.id FROM clinlims.dictionary d - WHERE - d.dict_entry = 'IgG NOT - DETECTED' - ) - WHERE rl.test_id in ( - SELECT id FROM - clinlims.test - WHERE - description = 'COVID-19ANTIBODYIgG(Serum)' - ); - - - - - - - - - - SELECT count(*) - FROM clinlims.test t - WHERE description = 'COVID-19ANTIBODYIgG(Plasma)' - AND - default_test_result_id is NULL - - - - - UPDATE clinlims.test t - SET - default_test_result_id = ( - SELECT tr.id - FROM - clinlims.test_result tr - WHERE CAST (tr.value as NUMERIC) in ( - SELECT - d.id FROM - clinlims.dictionary d - WHERE d.dict_entry = 'IgG NOT DETECTED' - ) - AND - tr.test_id = t.id - ) - WHERE description = - 'COVID-19ANTIBODYIgG(Plasma)'; - - UPDATE clinlims.result_limits rl - SET - normal_dictionary_id = ( - SELECT - d.id FROM clinlims.dictionary d - WHERE - d.dict_entry = 'IgG NOT - DETECTED' - ) - WHERE rl.test_id in ( - SELECT id FROM - clinlims.test - WHERE - description = 'COVID-19ANTIBODYIgG(Plasma)' - ); - - - - - - - - - - SELECT count(*) - FROM clinlims.test - WHERE description like 'COVID-19ANTIBODYIgG(%)' - AND loinc = '94547-7' - - - - - - UPDATE clinlims.test - SET loinc = '94547-7' - WHERE description like - 'COVID-19ANTIBODYIgG(%)' - - - - - - - - - - SELECT count(*) - FROM clinlims.test - WHERE description like 'COVID-19ANTIBODYIgM(%)' - AND loinc = '94547-7' - - - - - - + + + + + + + SELECT count(*) + FROM clinlims.test_result + WHERE tst_rslt_type = 'N' + AND test_id = (select id from test where description = 'COVIDPCR(Respiratory Swab)' limit 1) + + + + DELETE FROM clinlims.test_result + WHERE tst_rslt_type = 'N' AND test_id = (select id from test where description = 'COVIDPCR(Respiratory Swab)' limit 1); + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) + VALUES + (nextval('test_result_seq'), + (select id from test where description = 'COVIDPCR(Respiratory Swab)' limit 1), + null,null,'D', + (select id from dictionary where dict_entry = 'SARS-COV-2 RNA NOT DETECTED' limit 1), + null,null,null,now(),null,1,'f','t','f'), + (nextval('test_result_seq'), + (select id from test where description = 'COVIDPCR(Respiratory Swab)' limit 1), + null,null,'D', + (select id from dictionary where dict_entry = 'SARS-CoV-2 RNA DETECTED' limit 1), + null,null,null,now(),null,1,'f','t','f'), + (nextval('test_result_seq'), + (select id from test where description = 'COVIDPCR(Respiratory Swab)' limit 1), + null,null,'D', + (select id from dictionary where dict_entry = 'RETEST - INCONCLUSIVE' limit 1), + null,null,null,now(),null,1,'f','t','f'), + (nextval('test_result_seq'), + (select id from test where description = 'COVIDPCR(Respiratory Swab)' limit 1), + null,null,'D', + (select id from dictionary where dict_entry = 'Invalid' limit 1), + null,null,null,now(),null,1,'f','t','f'); + + UPDATE clinlims.test t + SET default_test_result_id = ( + SELECT tr.id + FROM clinlims.test_result tr + WHERE CAST (tr.value as NUMERIC) in ( + SELECT d.id FROM clinlims.dictionary d + WHERE d.dict_entry = 'SARS-COV-2 RNA NOT DETECTED' + ) + AND tr.test_id = t.id + ) + WHERE description = 'COVIDPCR(Respiratory Swab)'; + + UPDATE clinlims.result_limits rl + SET normal_dictionary_id = ( + SELECT d.id FROM clinlims.dictionary d + WHERE d.dict_entry = 'SARS-COV-2 RNA NOT DETECTED' + ) + WHERE rl.test_id in ( + SELECT id FROM clinlims.test + WHERE description = 'COVIDPCR(Respiratory Swab)' + ); + + + + + + + SELECT count(*) + FROM clinlims.test_result + WHERE tst_rslt_type = 'N' + AND test_id = (select id from test where description = 'COVIDPCR(Sputum)' limit 1) + + + + DELETE FROM clinlims.test_result + WHERE tst_rslt_type = 'N' AND test_id = (select id from test where description = 'COVIDPCR(Sputum)' limit 1); + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) + VALUES + (nextval('test_result_seq'), + (select id from test where description = 'COVIDPCR(Sputum)' limit 1), + null,null,'D', + (select id from dictionary where dict_entry = 'SARS-COV-2 RNA NOT DETECTED' limit 1), + null,null,null,now(),null,1,'f','t','f'), + (nextval('test_result_seq'), + (select id from test where description = 'COVIDPCR(Sputum)' limit 1), + null,null,'D', + (select id from dictionary where dict_entry = 'SARS-CoV-2 RNA DETECTED' limit 1), + null,null,null,now(),null,1,'f','t','f'), + (nextval('test_result_seq'), + (select id from test where description = 'COVIDPCR(Sputum)' limit 1), + null,null,'D', + (select id from dictionary where dict_entry = 'RETEST - INCONCLUSIVE' limit 1), + null,null,null,now(),null,1,'f','t','f'), + (nextval('test_result_seq'), + (select id from test where description = 'COVIDPCR(Sputum)' limit 1), + null,null,'D', + (select id from dictionary where dict_entry = 'Invalid' limit 1), + null,null,null,now(),null,1,'f','t','f'); + + UPDATE clinlims.test t + SET default_test_result_id = ( + SELECT tr.id + FROM clinlims.test_result tr + WHERE CAST (tr.value as NUMERIC) in ( + SELECT d.id FROM clinlims.dictionary d + WHERE d.dict_entry = 'SARS-COV-2 RNA NOT DETECTED' + ) + AND tr.test_id = t.id + ) + WHERE description = 'COVIDPCR(Sputum)'; + + UPDATE clinlims.result_limits rl + SET normal_dictionary_id = ( + SELECT d.id FROM clinlims.dictionary d + WHERE d.dict_entry = 'SARS-COV-2 RNA NOT DETECTED' + ) + WHERE rl.test_id in ( + SELECT id FROM clinlims.test + WHERE description = 'COVIDPCR(Sputum)' + ); + + + + + + + SELECT count(*) + FROM clinlims.test_result + WHERE tst_rslt_type = 'N' + AND test_id = (select id from test where description = 'COVIDPCR(Fluid)' limit 1) + + + + DELETE FROM clinlims.test_result + WHERE tst_rslt_type = 'N' AND test_id = (select id from test where description = 'COVIDPCR(Fluid)' limit 1); + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) + VALUES + (nextval('test_result_seq'), + (select id from test where description = 'COVIDPCR(Fluid)' limit 1), + null,null,'D', + (select id from dictionary where dict_entry = 'SARS-COV-2 RNA NOT DETECTED' limit 1), + null,null,null,now(),null,1,'f','t','f'), + (nextval('test_result_seq'), + (select id from test where description = 'COVIDPCR(Fluid)' limit 1), + null,null,'D', + (select id from dictionary where dict_entry = 'SARS-CoV-2 RNA DETECTED' limit 1), + null,null,null,now(),null,1,'f','t','f'), + (nextval('test_result_seq'), + (select id from test where description = 'COVIDPCR(Fluid)' limit 1), + null,null,'D', + (select id from dictionary where dict_entry = 'RETEST - INCONCLUSIVE' limit 1), + null,null,null,now(),null,1,'f','t','f'), + (nextval('test_result_seq'), + (select id from test where description = 'COVIDPCR(Fluid)' limit 1), + null,null,'D', + (select id from dictionary where dict_entry = 'Invalid' limit 1), + null,null,null,now(),null,1,'f','t','f'); + + UPDATE clinlims.test t + SET default_test_result_id = ( + SELECT tr.id + FROM clinlims.test_result tr + WHERE CAST (tr.value as NUMERIC) in ( + SELECT d.id FROM clinlims.dictionary d + WHERE d.dict_entry = 'SARS-COV-2 RNA NOT DETECTED' + ) + AND tr.test_id = t.id + ) + WHERE description = 'COVIDPCR(Fluid)'; + + UPDATE clinlims.result_limits rl + SET normal_dictionary_id = ( + SELECT d.id FROM clinlims.dictionary d + WHERE d.dict_entry = 'SARS-COV-2 RNA NOT DETECTED' + ) + WHERE rl.test_id in ( + SELECT id FROM clinlims.test + WHERE description = 'COVIDPCR(Fluid)' + ); + + + + + + + SELECT count(*) + FROM clinlims.test t + WHERE description = 'COVID-19ANTIBODYIgM(Serum)' + AND default_test_result_id is NULL + + + + UPDATE clinlims.test t + SET default_test_result_id = ( + SELECT tr.id + FROM clinlims.test_result tr + WHERE CAST (tr.value as NUMERIC) in ( + SELECT d.id FROM clinlims.dictionary d + WHERE d.dict_entry = 'IgM NOT DETECTED' + ) + AND tr.test_id = t.id + ) + WHERE description = 'COVID-19ANTIBODYIgM(Serum)'; + + UPDATE clinlims.result_limits rl + SET normal_dictionary_id = ( + SELECT d.id FROM clinlims.dictionary d + WHERE d.dict_entry = 'IgM NOT DETECTED' + ) + WHERE rl.test_id in ( + SELECT id FROM clinlims.test + WHERE description = 'COVID-19ANTIBODYIgM(Serum)' + ); + + + + + + + SELECT count(*) + FROM clinlims.test t + WHERE description = 'COVID-19ANTIBODYIgM(Plasma)' + AND default_test_result_id is NULL + + + + UPDATE clinlims.test t + SET default_test_result_id = ( + SELECT tr.id + FROM clinlims.test_result tr + WHERE CAST (tr.value as NUMERIC) in ( + SELECT d.id FROM clinlims.dictionary d + WHERE d.dict_entry = 'IgM NOT DETECTED' + ) + AND tr.test_id = t.id + ) + WHERE description = 'COVID-19ANTIBODYIgM(Plasma)'; + + UPDATE clinlims.result_limits rl + SET normal_dictionary_id = ( + SELECT d.id FROM clinlims.dictionary d + WHERE d.dict_entry = 'IgM NOT DETECTED' + ) + WHERE rl.test_id in ( + SELECT id FROM clinlims.test + WHERE description = 'COVID-19ANTIBODYIgM(Plasma)' + ); + + + + + + + SELECT count(*) + FROM clinlims.test t + WHERE description = 'COVID-19ANTIBODYIgG(Serum)' + AND default_test_result_id is NULL + + + + UPDATE clinlims.test t + SET default_test_result_id = ( + SELECT tr.id + FROM clinlims.test_result tr + WHERE CAST (tr.value as NUMERIC) in ( + SELECT d.id FROM clinlims.dictionary d + WHERE d.dict_entry = 'IgG NOT DETECTED' + ) + AND tr.test_id = t.id + ) + WHERE description = 'COVID-19ANTIBODYIgG(Serum)'; + + UPDATE clinlims.result_limits rl + SET normal_dictionary_id = ( + SELECT d.id FROM clinlims.dictionary d + WHERE d.dict_entry = 'IgG NOT DETECTED' + ) + WHERE rl.test_id in ( + SELECT id FROM clinlims.test + WHERE description = 'COVID-19ANTIBODYIgG(Serum)' + ); + + + + + + + SELECT count(*) + FROM clinlims.test t + WHERE description = 'COVID-19ANTIBODYIgG(Plasma)' + AND default_test_result_id is NULL + + + + UPDATE clinlims.test t + SET default_test_result_id = ( + SELECT tr.id + FROM clinlims.test_result tr + WHERE CAST (tr.value as NUMERIC) in ( + SELECT d.id FROM clinlims.dictionary d + WHERE d.dict_entry = 'IgG NOT DETECTED' + ) + AND tr.test_id = t.id + ) + WHERE description = 'COVID-19ANTIBODYIgG(Plasma)'; + + UPDATE clinlims.result_limits rl + SET normal_dictionary_id = ( + SELECT d.id FROM clinlims.dictionary d + WHERE d.dict_entry = 'IgG NOT DETECTED' + ) + WHERE rl.test_id in ( + SELECT id FROM clinlims.test + WHERE description = 'COVID-19ANTIBODYIgG(Plasma)' + ); + + + + + + + SELECT count(*) + FROM clinlims.test + WHERE description like 'COVID-19ANTIBODYIgG(%)' + AND loinc = '94547-7' + + + UPDATE clinlims.test SET loinc = '94547-7' + WHERE description like 'COVID-19ANTIBODYIgG(%)' + + + + + + + SELECT count(*) + FROM clinlims.test WHERE description like 'COVID-19ANTIBODYIgM(%)' - - - - - - - - - - SELECT count(*) - FROM clinlims.test - WHERE description like 'DENGUEPCR(%)' - AND loinc = '7855-0' - - - - - - + AND loinc = '94547-7' + + + + UPDATE clinlims.test + SET loinc = '94547-7' + WHERE description like 'COVID-19ANTIBODYIgM(%)' + + + + + + + SELECT count(*) + FROM clinlims.test + WHERE description like 'DENGUEPCR(%)' + AND loinc = '7855-0' + + + UPDATE clinlims.test SET loinc = '7855-0' WHERE description like 'DENGUEPCR(%)' - - - - - - - - - - SELECT count(*) - FROM clinlims.test - WHERE description like 'HIVVIRALLOAD(%)' - AND loinc = '10351-5' - - - - - - + + + + + + + SELECT count(*) + FROM clinlims.test + WHERE description like 'HIVVIRALLOAD(%)' + AND loinc = '10351-5' + + + UPDATE clinlims.test SET loinc = '10351-5' WHERE description like 'HIVVIRALLOAD(%)' - - - - - - - - - - SELECT count(*) - FROM clinlims.test - WHERE description like 'HEPATITISCVIRALLOAD(%)' - AND loinc = '11011-4' - - - - - - + + + + + + + SELECT count(*) + FROM clinlims.test + WHERE description like 'HEPATITISCVIRALLOAD(%)' + AND loinc = '11011-4' + + + UPDATE clinlims.test SET loinc = '11011-4' WHERE description like 'HEPATITISCVIRALLOAD(%)' - - - - - - - - - - SELECT count(*) - FROM clinlims.test - WHERE description like 'HEPATITISBVIRALLOAD(%)' - AND loinc = '29615-2' - - - - - - + + + + + + + SELECT count(*) + FROM clinlims.test + WHERE description like 'HEPATITISBVIRALLOAD(%)' + AND loinc = '29615-2' + + + UPDATE clinlims.test SET loinc = '29615-2' WHERE description like 'HEPATITISBVIRALLOAD(%)' - - - - - - - - - - SELECT count(*) - FROM clinlims.test - WHERE description like 'HIVINFANTVIRALLOAD(%)' - AND loinc = '' - - - - - - + + + + + + + SELECT count(*) + FROM clinlims.test + WHERE description like 'HIVINFANTVIRALLOAD(%)' + AND loinc = '' + + + UPDATE clinlims.test SET loinc = '' WHERE description like 'HIVINFANTVIRALLOAD(%)' - - - - + + diff --git a/src/main/resources/liquibase/2.3.x.x/referral_results.xml b/src/main/resources/liquibase/2.3.x.x/referral_results.xml index 498163f2ed..7d3bbcd69a 100644 --- a/src/main/resources/liquibase/2.3.x.x/referral_results.xml +++ b/src/main/resources/liquibase/2.3.x.x/referral_results.xml @@ -1,33 +1,36 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - - - - - - - - canceled = false - - - - canceled = true - - - - result_recieved_date is NULL AND canceled = false - - + + + + + + + + + + + + canceled = false + + + + canceled = true + + + + result_recieved_date is NULL AND canceled = false + + diff --git a/src/main/resources/liquibase/2.3.x.x/results_range.xml b/src/main/resources/liquibase/2.3.x.x/results_range.xml index ea52206db0..f29e041369 100644 --- a/src/main/resources/liquibase/2.3.x.x/results_range.xml +++ b/src/main/resources/liquibase/2.3.x.x/results_range.xml @@ -1,67 +1,61 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - + + + SELECT count(*) FROM + clinlims.system_module_url WHERE url_path = '/RangeResults' + + + + + + + + + + + + + + + + + + + + + + + + + + + + - SELECT count(*) FROM - clinlims.system_module_url WHERE url_path = '/RangeResults' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - select count(*) from clinlims.menu - where element_id = 'menu_results_range'; - - - - Insert in Results by search by accession range - - - + + + select count(*) from clinlims.menu + where element_id = 'menu_results_range'; + + + Insert in Results by search by accession range + INSERT INTO clinlims.menu(id, parent_id, presentation_order, element_id, action_url, click_action, display_key, tool_tip_key, new_window, is_active) @@ -70,10 +64,8 @@ element_id='menu_results_search'),3,'menu_results_range','/RangeResults.do',default,'menu.results.range','tooltip.results.range',default,default); UPDATE clinlims.menu SET presentation_order = 4 WHERE element_id = 'menu_results_status'; - - - - + + diff --git a/src/main/resources/liquibase/2.3.x.x/user_url_permissions.xml b/src/main/resources/liquibase/2.3.x.x/user_url_permissions.xml index 9cc382f172..ee605da970 100644 --- a/src/main/resources/liquibase/2.3.x.x/user_url_permissions.xml +++ b/src/main/resources/liquibase/2.3.x.x/user_url_permissions.xml @@ -1,268 +1,239 @@ - - - - - SELECT count(*) FROM - clinlims.system_module_url WHERE url_path = '/TestModifyEntry' - - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.system_module_url WHERE url_path = '/BarcodeConfiguration' - - - - - - - - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.system_module_url WHERE url_path = '/ReportConfiguration' - - - - - - - - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.system_module_url WHERE url_path = '/BatchTestReassignment' - - - - - - - - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.system_module_url WHERE url_path = - '/ExternalConnectionsMenu' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.system_module_url WHERE url_path = - '/ValidationConfigurationMenu' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.system_module_url WHERE url_path = '/ListPlugins' - - - - - - - - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.system_module WHERE name = 'ReportCovid' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + SELECT count(*) FROM clinlims.system_module_url WHERE url_path = '/TestModifyEntry' + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.system_module_url WHERE url_path = '/BarcodeConfiguration' + + + + + + + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.system_module_url WHERE url_path = '/ReportConfiguration' + + + + + + + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.system_module_url WHERE url_path = '/BatchTestReassignment' + + + + + + + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.system_module_url WHERE url_path = '/ExternalConnectionsMenu' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.system_module_url WHERE url_path = '/ValidationConfigurationMenu' + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.system_module_url WHERE url_path = '/ListPlugins' + + + + + + + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.system_module WHERE name = 'ReportCovid' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.3.x.x/uuid_columns.xml b/src/main/resources/liquibase/2.3.x.x/uuid_columns.xml index 05eb0d1fe7..bf559cfb0d 100644 --- a/src/main/resources/liquibase/2.3.x.x/uuid_columns.xml +++ b/src/main/resources/liquibase/2.3.x.x/uuid_columns.xml @@ -1,74 +1,74 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - + + + + + + + diff --git a/src/main/resources/liquibase/2.4.x.x/base.xml b/src/main/resources/liquibase/2.4.x.x/base.xml index 43fb183652..f525e2304a 100644 --- a/src/main/resources/liquibase/2.4.x.x/base.xml +++ b/src/main/resources/liquibase/2.4.x.x/base.xml @@ -1,10 +1,10 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - + diff --git a/src/main/resources/liquibase/2.4.x.x/remove_roles.xml b/src/main/resources/liquibase/2.4.x.x/remove_roles.xml index 868c9bfd34..96684bf484 100644 --- a/src/main/resources/liquibase/2.4.x.x/remove_roles.xml +++ b/src/main/resources/liquibase/2.4.x.x/remove_roles.xml @@ -1,15 +1,15 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - remove 'automatic' roles - - name LIKE '%automatic%' - - + + remove 'automatic' roles + + name LIKE '%automatic%' + + diff --git a/src/main/resources/liquibase/2.5.x.x/barcode_additional_info.xml b/src/main/resources/liquibase/2.5.x.x/barcode_additional_info.xml index 8131129dff..288eebe824 100644 --- a/src/main/resources/liquibase/2.5.x.x/barcode_additional_info.xml +++ b/src/main/resources/liquibase/2.5.x.x/barcode_additional_info.xml @@ -1,58 +1,55 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - specify max vs deafult for barcode site info - - - name = 'numOrderLabels' - - - - name = 'numSpecimenLabels' - - - - name = 'numAliquotLabels' - + + specify max vs deafult for barcode site info + + + name = 'numOrderLabels' + + + + name = 'numSpecimenLabels' + + + + name = 'numAliquotLabels' + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.5.x.x/base.xml b/src/main/resources/liquibase/2.5.x.x/base.xml index 8c52520b63..c04371a9c1 100644 --- a/src/main/resources/liquibase/2.5.x.x/base.xml +++ b/src/main/resources/liquibase/2.5.x.x/base.xml @@ -1,10 +1,10 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - + diff --git a/src/main/resources/liquibase/2.6.x.x/add_lab_roles_map_table.xml b/src/main/resources/liquibase/2.6.x.x/add_lab_roles_map_table.xml index 14571678b6..e28db5726c 100644 --- a/src/main/resources/liquibase/2.6.x.x/add_lab_roles_map_table.xml +++ b/src/main/resources/liquibase/2.6.x.x/add_lab_roles_map_table.xml @@ -1,110 +1,98 @@ - - - - - - - - Creating user_lab_unit_roles table - - - - - - - - - - - - - - - - - Creating lab_unit_role_map table - - - - - - - - - - - - - - - - - - Creating lab_roles table - - - - - - - - - - - - - - - - - Creating lab_unit_roles table - - - - - - - - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + + + + Creating user_lab_unit_roles table + + + + + + + + + + + + + + + + + Creating lab_unit_role_map table + + + + + + + + + + + + + + + + + + Creating lab_roles table + + + + + + + + + + + + + + + + + Creating lab_unit_roles table + + + + + + + + + + + + - - - - - - - - + + + + + + ALTER TABLE clinlims.lab_unit_roles DROP CONSTRAINT user_lab_unit_role_map_fk; ALTER TABLE clinlims.lab_unit_roles ADD CONSTRAINT user_lab_unit_role_map_fk FOREIGN KEY (lab_unit_role_map_id) REFERENCES clinlims.lab_unit_role_map(lab_unit_role_map_id) ON DELETE CASCADE ON UPDATE CASCADE; - - - - + + diff --git a/src/main/resources/liquibase/2.6.x.x/add_menu_study_electronic_order.xml b/src/main/resources/liquibase/2.6.x.x/add_menu_study_electronic_order.xml index 87b08eeb3a..ccde701268 100644 --- a/src/main/resources/liquibase/2.6.x.x/add_menu_study_electronic_order.xml +++ b/src/main/resources/liquibase/2.6.x.x/add_menu_study_electronic_order.xml @@ -1,87 +1,67 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_study_sample_eorder' - - - Add menu entry for study electronic orders - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.system_module WHERE name = 'StudyElectronicOrderView' - - - Add a module for study electronic orders - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = - 'StudyElectronicOrderView' - - - - Add roles for Study Electronic Order - - - - - - - - - - - - - - + + + + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_study_sample_eorder' + + Add menu entry for study electronic orders + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.system_module WHERE name = 'StudyElectronicOrderView' + + Add a module for study electronic orders + + + + + + + + + + + + + + + SELECT COUNT(*) FROM clinlims.system_role WHERE name = 'Reception' + + + SELECT COUNT(*) FROM clinlims.system_module WHERE name = 'StudyElectronicOrderView' + + + Add roles for Study Electronic Order + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.6.x.x/add_order_priority.xml b/src/main/resources/liquibase/2.6.x.x/add_order_priority.xml index 81fda3c577..576c7dac66 100644 --- a/src/main/resources/liquibase/2.6.x.x/add_order_priority.xml +++ b/src/main/resources/liquibase/2.6.x.x/add_order_priority.xml @@ -1,110 +1,78 @@ - - - - - - - - add Priority column to sample table - - - - - - - - - - - - add Priority column to electronic_order table - - - - - - - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_workplan_priority' - - - add Option 'By Priority' to the WorkPlan menu - - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.system_module_url smu WHERE - smu.system_module_id = (SELECT - sm.id FROM clinlims.system_module sm - WHERE sm.name ='Workplan') AND - smu.url_path = '/WorkPlanByPriority' - - - - update Results Role to have Acces to WorkPlan By Priority Tab - - - - - - - - - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = - 'menu_workplan_priority' - - - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = - 'menu_workplan_priority' AND action_url = - '/WorkPlanByPriority?type=priority' - - - - update correct WorkPlanByPriority action url - - - element_id='menu_workplan_priority' - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + + + + add Priority column to sample table + + + + + + + + + + + + add Priority column to electronic_order table + + + + + + + + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_workplan_priority' + + add Option 'By Priority' to the WorkPlan menu + + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.system_module_url smu WHERE smu.system_module_id = (SELECT sm.id FROM clinlims.system_module sm WHERE sm.name ='Workplan') AND smu.url_path = '/WorkPlanByPriority' + + + update Results Role to have Acces to WorkPlan By Priority Tab + + + + + + + + + + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_workplan_priority' + + + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_workplan_priority' AND action_url = '/WorkPlanByPriority?type=priority' + + + update correct WorkPlanByPriority action url + + + element_id='menu_workplan_priority' + + diff --git a/src/main/resources/liquibase/2.6.x.x/add_retroci_sampletype_test_element.xml b/src/main/resources/liquibase/2.6.x.x/add_retroci_sampletype_test_element.xml index 22ca55f909..0cdf42adfe 100644 --- a/src/main/resources/liquibase/2.6.x.x/add_retroci_sampletype_test_element.xml +++ b/src/main/resources/liquibase/2.6.x.x/add_retroci_sampletype_test_element.xml @@ -1,312 +1,222 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Dry Tube' - - - Add elements to map retroci tests to sampletype 'Dry Tube' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'EDTA Tube' - - - Add elements to map retroci tests to sampletype 'EDTA Tube' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Dry Tube' + + Add elements to map retroci tests to sampletype 'Dry Tube' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'EDTA Tube' + + Add elements to map retroci tests to sampletype 'EDTA Tube' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.6.x.x/add_user_filter_permision.xml b/src/main/resources/liquibase/2.6.x.x/add_user_filter_permision.xml index b6cb157307..cc6c0e791b 100644 --- a/src/main/resources/liquibase/2.6.x.x/add_user_filter_permision.xml +++ b/src/main/resources/liquibase/2.6.x.x/add_user_filter_permision.xml @@ -1,43 +1,32 @@ - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Global - Administrator' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = 'SystemUser' - - - - Add User-Filter Permisons - - - - - - - - - - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + SELECT COUNT(*) FROM clinlims.system_role WHERE name = 'Global Administrator' + + + SELECT COUNT(*) FROM clinlims.system_module WHERE name = 'SystemUser' + + + Add User-Filter Permisons + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.6.x.x/address_line.xml b/src/main/resources/liquibase/2.6.x.x/address_line.xml index 26d4e4727c..7e9473d1f3 100644 --- a/src/main/resources/liquibase/2.6.x.x/address_line.xml +++ b/src/main/resources/liquibase/2.6.x.x/address_line.xml @@ -1,66 +1,57 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - + - - 8:f0a5a2d50b1a1db52b1ee22e9165294a - - - SELECT count(*) FROM - clinlims.site_information WHERE name = 'Address line 1 label' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + 8:f0a5a2d50b1a1db52b1ee22e9165294a + + SELECT count(*) FROM clinlims.site_information WHERE name = 'Address line 1 label' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.6.x.x/base.xml b/src/main/resources/liquibase/2.6.x.x/base.xml index 18d8487746..5d17c183cf 100644 --- a/src/main/resources/liquibase/2.6.x.x/base.xml +++ b/src/main/resources/liquibase/2.6.x.x/base.xml @@ -1,34 +1,28 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.6.x.x/data_resource_retroci.xml b/src/main/resources/liquibase/2.6.x.x/data_resource_retroci.xml index f61d6cbdd6..21365ff690 100644 --- a/src/main/resources/liquibase/2.6.x.x/data_resource_retroci.xml +++ b/src/main/resources/liquibase/2.6.x.x/data_resource_retroci.xml @@ -1,22 +1,20 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - - - create data_resource table and map tables in RetroCI database - - - + + + + + + + create data_resource table and map tables in RetroCI database + CREATE TABLE clinlims.data_resource ( "id" NUMERIC (20), "name" VARCHAR (20), @@ -42,9 +40,7 @@ "data_resource_id" NUMERIC (20), PRIMARY KEY ("id") ); - - - - + + diff --git a/src/main/resources/liquibase/2.6.x.x/disable_menu_reports_export_valid.xml b/src/main/resources/liquibase/2.6.x.x/disable_menu_reports_export_valid.xml index 3e87aec394..9a3c73fc7d 100644 --- a/src/main/resources/liquibase/2.6.x.x/disable_menu_reports_export_valid.xml +++ b/src/main/resources/liquibase/2.6.x.x/disable_menu_reports_export_valid.xml @@ -1,23 +1,20 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_reports_export_valid' - - - Disable menu option for export study valid result - - - element_id = 'menu_reports_export_valid' - - + + + + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_reports_export_valid' + + Disable menu option for export study valid result + + + element_id = 'menu_reports_export_valid' + + diff --git a/src/main/resources/liquibase/2.6.x.x/eorder_search_enhancements.xml b/src/main/resources/liquibase/2.6.x.x/eorder_search_enhancements.xml index 6a8cb33955..a878dc3305 100644 --- a/src/main/resources/liquibase/2.6.x.x/eorder_search_enhancements.xml +++ b/src/main/resources/liquibase/2.6.x.x/eorder_search_enhancements.xml @@ -1,15 +1,13 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - create indices on older tables - - - + + create indices on older tables + CREATE INDEX IF NOT EXISTS e_order_external_id_idx on clinlims.electronic_order ( external_id ); @@ -31,10 +29,8 @@ CREATE INDEX IF NOT EXISTS patient_identity_patient_id_idx on clinlims.patient_identity ( patient_id ); - - - + - + diff --git a/src/main/resources/liquibase/2.6.x.x/fix_sequences.xml b/src/main/resources/liquibase/2.6.x.x/fix_sequences.xml index 7bc6295c42..59e9ccbf0b 100644 --- a/src/main/resources/liquibase/2.6.x.x/fix_sequences.xml +++ b/src/main/resources/liquibase/2.6.x.x/fix_sequences.xml @@ -1,16 +1,13 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - Set all sequences to the max value that their tables are - currently at - - - + + Set all sequences to the max value that their tables are currently at + SELECT setval('clinlims.action_seq', CAST ((SELECT coalesce(MAX(id),0) FROM clinlims.action) AS BIGINT) + 1); SELECT setval('clinlims.address_part_seq', CAST ((SELECT coalesce(MAX(id),0) FROM clinlims.address_part) AS BIGINT) + 1); SELECT setval('clinlims.analysis_notification_config_seq', CAST ((SELECT coalesce(MAX(id),0) FROM clinlims.analysis_notification_config) AS BIGINT) + 1); @@ -137,10 +134,8 @@ SELECT setval('clinlims.unit_of_measure_seq', CAST ((SELECT coalesce(MAX(id),0) FROM clinlims.unit_of_measure) AS BIGINT) + 1); SELECT setval('clinlims.external_connection_authentication_data_seq', CAST ((SELECT coalesce(MAX(a.id),0) FROM (SELECT id FROM clinlims.basic_authentication_data UNION SELECT id FROM clinlims.certificate_authentication_data) AS a) AS BIGINT) + 1); SELECT setval('clinlims.system_user_module_seq', CAST ((SELECT coalesce(MAX(a.id),0) FROM (SELECT id FROM clinlims.system_user_module UNION SELECT id FROM clinlims.system_role_module) AS a) AS BIGINT) + 1); - - - + - + diff --git a/src/main/resources/liquibase/2.6.x.x/geographical_unit.xml b/src/main/resources/liquibase/2.6.x.x/geographical_unit.xml index fddecb5870..4fc699fcb9 100644 --- a/src/main/resources/liquibase/2.6.x.x/geographical_unit.xml +++ b/src/main/resources/liquibase/2.6.x.x/geographical_unit.xml @@ -1,82 +1,63 @@ - - - - - - 8:f41594bce075c4f423f54cf8b0c67d83 - - - SELECT count(*) FROM - clinlims.site_information WHERE name = 'Geographic Unit 1 (EG: - Region ) Label' - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 8:d0eed534f8421378388b6c61b7325708 - - - SELECT count(*) FROM - clinlims.site_information WHERE name = 'restrictFreeTextMethodEntry' - - - - - - - - - - - - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + + 8:f41594bce075c4f423f54cf8b0c67d83 + + SELECT count(*) FROM clinlims.site_information WHERE name = 'Geographic Unit 1 (EG: Region ) Label' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 8:d0eed534f8421378388b6c61b7325708 + + SELECT count(*) FROM clinlims.site_information WHERE name = 'restrictFreeTextMethodEntry' + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.6.x.x/localization.xml b/src/main/resources/liquibase/2.6.x.x/localization.xml index 4a1db0170e..c0ef9c7d9c 100644 --- a/src/main/resources/liquibase/2.6.x.x/localization.xml +++ b/src/main/resources/liquibase/2.6.x.x/localization.xml @@ -1,111 +1,109 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - 8:8e37fd2d0295b9fd826c6f8bb67eac08 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + 8:8e37fd2d0295b9fd826c6f8bb67eac08 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/src/main/resources/liquibase/2.6.x.x/method.xml b/src/main/resources/liquibase/2.6.x.x/method.xml index 528023b1f1..a724eb276f 100644 --- a/src/main/resources/liquibase/2.6.x.x/method.xml +++ b/src/main/resources/liquibase/2.6.x.x/method.xml @@ -1,201 +1,186 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - + - - 8:9c2b9384cf23d4b2a1dfcba623ac719e + + 8:9c2b9384cf23d4b2a1dfcba623ac719e - - - - - is_active = 'Y' - - + + + + + is_active = 'Y' + + - - 8:362965b0de717133dbb4aba5201339fd - - - - - - - - - + + 8:362965b0de717133dbb4aba5201339fd + + + + + + + + + - - 8:a45e876c8019488694f6de348c326f5f - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + 8:a45e876c8019488694f6de348c326f5f + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.6.x.x/provider.xml b/src/main/resources/liquibase/2.6.x.x/provider.xml index dc476f29a1..ea8a299169 100644 --- a/src/main/resources/liquibase/2.6.x.x/provider.xml +++ b/src/main/resources/liquibase/2.6.x.x/provider.xml @@ -1,45 +1,36 @@ - - - - - - - add active column to provider - - - - - - - - SELECT count(*) FROM - clinlims.site_information WHERE name = - 'restrictFreeTextProviderEntry' - - - - - - - - - - - - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + + + add active column to provider + + + + + + + SELECT count(*) FROM clinlims.site_information WHERE name = 'restrictFreeTextProviderEntry' + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.6.x.x/remove_do_suffix.xml b/src/main/resources/liquibase/2.6.x.x/remove_do_suffix.xml index beff802d15..9a0e0862c1 100644 --- a/src/main/resources/liquibase/2.6.x.x/remove_do_suffix.xml +++ b/src/main/resources/liquibase/2.6.x.x/remove_do_suffix.xml @@ -1,20 +1,16 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - remove all .do suffixes - - - + + remove all .do suffixes + UPDATE clinlims.menu SET action_url = REPLACE(action_url, '.do', ''); - - - + - + diff --git a/src/main/resources/liquibase/2.6.x.x/reporting_range.xml b/src/main/resources/liquibase/2.6.x.x/reporting_range.xml index be9e6b6c1d..76fa0f7db4 100644 --- a/src/main/resources/liquibase/2.6.x.x/reporting_range.xml +++ b/src/main/resources/liquibase/2.6.x.x/reporting_range.xml @@ -1,36 +1,32 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.6.x.x/statistics_report.xml b/src/main/resources/liquibase/2.6.x.x/statistics_report.xml index 78e10c3b95..b272ec8d7e 100644 --- a/src/main/resources/liquibase/2.6.x.x/statistics_report.xml +++ b/src/main/resources/liquibase/2.6.x.x/statistics_report.xml @@ -1,33 +1,26 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_reports_aggregate_statistics' - - - Add Statistics report to the Aggregate Reports menu - - - - - - - - - - - - + + + + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_reports_aggregate_statistics' + + Add Statistics report to the Aggregate Reports menu + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.6.x.x/update_global_admin_role.xml b/src/main/resources/liquibase/2.6.x.x/update_global_admin_role.xml index 394881f9c3..c02529cc94 100644 --- a/src/main/resources/liquibase/2.6.x.x/update_global_admin_role.xml +++ b/src/main/resources/liquibase/2.6.x.x/update_global_admin_role.xml @@ -1,193 +1,152 @@ - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Global - Administrator' - - - - update Global Administrator Roles to have Acees to Test - Catalogue Management - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + SELECT COUNT(*) FROM clinlims.system_role WHERE name = 'Global Administrator' + + + update Global Administrator Roles to have Acees to Test Catalogue Management + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.6.x.x/update_non_conformity_roles.xml b/src/main/resources/liquibase/2.6.x.x/update_non_conformity_roles.xml index 3657f6e2a3..5331ef52f2 100644 --- a/src/main/resources/liquibase/2.6.x.x/update_non_conformity_roles.xml +++ b/src/main/resources/liquibase/2.6.x.x/update_non_conformity_roles.xml @@ -1,57 +1,39 @@ - - - - - - SELECT COUNT(*) FROM - clinlims.system_role_module srm WHERE - srm.system_role_id = (select - sr.id FROM clinlims.system_role sr - WHERE sr.name = 'Validation') AND - srm.system_module_id = (SELECT - sm.id FROM clinlims.system_module sm - WHERE sm.name = - 'NonConformity') - - - - update Validation, Results and Reception Roles to have Acces - to Non Conformity Tab - - - - - - - - - - - - - - - - - - - - - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + SELECT COUNT(*) FROM clinlims.system_role_module srm WHERE srm.system_role_id = (select sr.id FROM clinlims.system_role sr WHERE sr.name = 'Validation') AND srm.system_module_id = (SELECT sm.id FROM clinlims.system_module sm WHERE sm.name = 'NonConformity') + + + update Validation, Results and Reception Roles to have Acces to Non Conformity Tab + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.6.x.x/update_roles.xml b/src/main/resources/liquibase/2.6.x.x/update_roles.xml index e04dfd3bf5..18611c88b7 100644 --- a/src/main/resources/liquibase/2.6.x.x/update_roles.xml +++ b/src/main/resources/liquibase/2.6.x.x/update_roles.xml @@ -1,194 +1,184 @@ - - 8:a977b14a1ce877e468544e1fd2976968 - - - - - - SELECT COUNT(*) FROM - clinlims.system_role - - - - - update existing roles and Create new ones - - - - - - - - - - - - - - - - - - - - - - - - id=1 - - - - - id=2 - - - - id=:value - - - - - - - - id=:value - - - - - - - - id=:value - - - - - - - - id=:value - - - - - - - id=:value - - - - - - - id=:value - - - - - - - id=:value - - - - - - - id=:value - - - - - - - id=:value - - - - - - - id=:value - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - update Recetion Role - - - - id=:value - - - - - - - - - - - select count(*) from - clinlims.system_role - where name = 'Reception'; - - - - - select count(*) from - clinlims.system_role - where name = 'Lab Unit Roles' limit 1; - - - - update roles for RetroCI context - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + 8:a977b14a1ce877e468544e1fd2976968 + + + + + SELECT COUNT(*) FROM + clinlims.system_role + + + + update existing roles and Create new ones + + + + + + + + + + + + + + + + + + + + + + + + id=1 + + + + + id=2 + + + + id=:value + + + + + + + + id=:value + + + + + + + + id=:value + + + + + + + + id=:value + + + + + + + id=:value + + + + + + + id=:value + + + + + + + id=:value + + + + + + + id=:value + + + + + + + id=:value + + + + + + + id=:value + + + + + + + + + + SELECT COUNT(*) FROM + clinlims.system_role WHERE name = 'Reception' + + + update Recetion Role + + + + id=:value + + + + + + + + + + select count(*) from + clinlims.system_role + where name = 'Reception'; + + + select count(*) from + clinlims.system_role + where name = 'Lab Unit Roles' limit 1; + + + update roles for RetroCI context + insert into clinlims.system_role values(nextval('clinlims.system_role_seq'),'Reception','Sample entry and patient management.',FALSE,(select id from clinlims.system_role @@ -203,33 +193,25 @@ clinlims.system_role where name = 'Global Roles') where name = 'Audit Trail'; - - - - - - - - - - select count(*) from - clinlims.system_role - where name = 'Reception'; - - - - - select count(*) from - clinlims.system_role - where name = 'Lab Unit Roles' limit 1; - - - - Add role Reception if missing - - - + + + + + + + select count(*) from + clinlims.system_role + where name = 'Reception'; + + + select count(*) from + clinlims.system_role + where name = 'Lab Unit Roles' limit 1; + + + Add role Reception if missing + insert into clinlims.system_role values(nextval('clinlims.system_role_seq'),'Reception','Sample entry and patient management.',FALSE,(select id from clinlims.system_role @@ -244,8 +226,6 @@ clinlims.system_role where name = 'Global Roles') where name = 'Audit Trail'; - - - - + + diff --git a/src/main/resources/liquibase/2.7.x.x/activate_result_modifer_role.xml b/src/main/resources/liquibase/2.7.x.x/activate_result_modifer_role.xml index 4fd68ef476..4bf5ae1b2c 100644 --- a/src/main/resources/liquibase/2.7.x.x/activate_result_modifer_role.xml +++ b/src/main/resources/liquibase/2.7.x.x/activate_result_modifer_role.xml @@ -1,39 +1,35 @@ - - - - - - select count(*) from - clinlims.system_role - where name = 'Results modifier' limit 1; - - - - - select count(*) from - clinlims.system_role - where name = 'Lab Unit Roles' limit 1; - - - - - - - - id=:value - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + select count(*) from + clinlims.system_role + where name = 'Results modifier' limit 1; + + + select count(*) from + clinlims.system_role + where name = 'Lab Unit Roles' limit 1; + + + + + + + id=:value + + + + + diff --git a/src/main/resources/liquibase/2.7.x.x/add_TB_menu.xml b/src/main/resources/liquibase/2.7.x.x/add_TB_menu.xml index fcb3cdaeeb..b66d5c059d 100644 --- a/src/main/resources/liquibase/2.7.x.x/add_TB_menu.xml +++ b/src/main/resources/liquibase/2.7.x.x/add_TB_menu.xml @@ -1,383 +1,275 @@ - - - - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_microbiology' - - - Add menu entry for microbiology - - - - - - - - - - - - - - - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_microbiology_tb' - - - Add menu entry for microbiology - - - - - - - - - - - - - - - - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_microbiology_classic' - - - Add menu entry for microbiology - - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.system_module WHERE name = 'MicrobiologyTBView' - - - Add a module for microbiology TB - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = - 'MicrobiologyTBView' - - - - Add roles for Microbiology - - - - - - - - - - - - - - - - - - - - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_report_microbiology' - - - Add menu entry for microbiology report - - - - - - - - - - - - - - - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_tb_report' - - - Add menu entry for tb report - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = - 'MicrobiologyTBView' - - - - Add roles for Microbiology - - - - - - - - - - - - - - - - - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_report_microbiology_classic' - - - Add menu entry for microbiology - - - - - - - - - - - - - - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_tb_report' - - - - - id=:value - - - - - - - - - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_tb_report' - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_tb_patient_report' - - - Add menu entry for tb report - - - - - - - - - - - - - - - - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_tb_report' - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_tb_result_export' - - - Add menu entry for tb report - - - - - - - - - - - - - - - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_tb_report' - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_tb_order_report' - - - Add menu entry for tb report - - - - - - - - - - - - - - - - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_tb_order_report' - - - - - id=:value - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_microbiology' + + Add menu entry for microbiology + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_microbiology_tb' + + Add menu entry for microbiology + + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_microbiology_classic' + + Add menu entry for microbiology + + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.system_module WHERE name = 'MicrobiologyTBView' + + Add a module for microbiology TB + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM clinlims.system_role WHERE name = 'Reception' + + + SELECT COUNT(*) FROM clinlims.system_module WHERE name = 'MicrobiologyTBView' + + + Add roles for Microbiology + + + + + + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_report_microbiology' + + Add menu entry for microbiology report + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_tb_report' + + Add menu entry for tb report + + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM clinlims.system_role WHERE name = 'Reception' + + + SELECT COUNT(*) FROM clinlims.system_module WHERE name = 'MicrobiologyTBView' + + + Add roles for Microbiology + + + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_report_microbiology_classic' + + Add menu entry for microbiology + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_tb_report' + + + + id=:value + + + + + + + + + + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_tb_report' + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_tb_patient_report' + + Add menu entry for tb report + + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_tb_report' + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_tb_result_export' + + Add menu entry for tb report + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_tb_report' + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_tb_order_report' + + Add menu entry for tb report + + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_tb_order_report' + + + + id=:value + + + + + diff --git a/src/main/resources/liquibase/2.7.x.x/add_admin_default_roles.xml b/src/main/resources/liquibase/2.7.x.x/add_admin_default_roles.xml index b95e76b1d0..3618d02321 100644 --- a/src/main/resources/liquibase/2.7.x.x/add_admin_default_roles.xml +++ b/src/main/resources/liquibase/2.7.x.x/add_admin_default_roles.xml @@ -1,123 +1,87 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - - - SELECT COUNT(*) FROM - clinlims.user_lab_unit_roles ul WHERE ul.system_user_id = (SELECT - su.id FROM - clinlims.system_user su WHERE su.login_name = 'admin') - - - - Add default Lab Unit Roles to admin User - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - system_user_role WHERE system_user_id = (SELECT id - FROM system_user - WHERE login_name = 'admin') - - - - Add default Global Roles to admin User - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + SELECT COUNT(*) FROM + clinlims.user_lab_unit_roles ul WHERE ul.system_user_id = (SELECT su.id FROM clinlims.system_user su WHERE su.login_name = 'admin') + + + Add default Lab Unit Roles to admin User + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM system_user_role WHERE system_user_id = (SELECT id FROM system_user WHERE login_name = 'admin') + + + Add default Global Roles to admin User + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.7.x.x/add_analyser_import_role.xml b/src/main/resources/liquibase/2.7.x.x/add_analyser_import_role.xml index 917caa7500..b193f3915c 100644 --- a/src/main/resources/liquibase/2.7.x.x/add_analyser_import_role.xml +++ b/src/main/resources/liquibase/2.7.x.x/add_analyser_import_role.xml @@ -1,68 +1,53 @@ - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Analyser Import' - - - - Create Analyser Import Role - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = 'AnalyzerResults' - limit 1 - - - - Attach importAnalyzer url path to Analyzer result module - - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + SELECT COUNT(*) FROM clinlims.system_role WHERE name = 'Analyser Import' + + + Create Analyser Import Role + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM clinlims.system_module WHERE name = 'AnalyzerResults' limit 1 + + + Attach importAnalyzer url path to Analyzer result module + + + + + + diff --git a/src/main/resources/liquibase/2.7.x.x/add_dept_org_type.xml b/src/main/resources/liquibase/2.7.x.x/add_dept_org_type.xml index 5728ad9051..d5a3716945 100644 --- a/src/main/resources/liquibase/2.7.x.x/add_dept_org_type.xml +++ b/src/main/resources/liquibase/2.7.x.x/add_dept_org_type.xml @@ -1,27 +1,22 @@ - - - - - - SELECT count(*) FROM - clinlims.organization_type WHERE short_name = 'dept' - - - Add dept as one of the default Organization Types - - - - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + SELECT count(*) FROM clinlims.organization_type WHERE short_name = 'dept' + + Add dept as one of the default Organization Types + + + + + + + + diff --git a/src/main/resources/liquibase/2.7.x.x/add_electronic_rejection.xml b/src/main/resources/liquibase/2.7.x.x/add_electronic_rejection.xml index 624ddac00f..63a88d3967 100644 --- a/src/main/resources/liquibase/2.7.x.x/add_electronic_rejection.xml +++ b/src/main/resources/liquibase/2.7.x.x/add_electronic_rejection.xml @@ -1,36 +1,38 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.7.x.x/add_hpv_testing.xml b/src/main/resources/liquibase/2.7.x.x/add_hpv_testing.xml index 6e4b62acc7..5e7e453371 100644 --- a/src/main/resources/liquibase/2.7.x.x/add_hpv_testing.xml +++ b/src/main/resources/liquibase/2.7.x.x/add_hpv_testing.xml @@ -1,45 +1,38 @@ - - - - - - SELECT count(*) FROM - clinlims.project - WHERE name = 'HPV Testing' - - - - Add entry for HPV testing - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE french = 'HPV 16' - - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + SELECT count(*) FROM + clinlims.project + WHERE name = 'HPV Testing' + + + Add entry for HPV testing + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.localization WHERE french = 'HPV 16' + + + INSERT INTO clinlims.localization(id, description, english, french, lastupdated) VALUES (nextval('localization_seq'),'test name','HPV 16','HPV 16', now()); INSERT INTO clinlims.localization(id, description, english, french, lastupdated) @@ -70,65 +63,45 @@ INSERT INTO clinlims.localization(id, description, english, french, lastupdated) VALUES (nextval('localization_seq'),'test report name','HPV P5','HPV P5',now()); - - - - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE description = 'Prélèvement - cervico-vaginal' - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Prélèvement - cervico-vaginal' - - - - - - - - - - - - - - - - - SELECT count(*) FROM clinlims.test - WHERE description = 'HPV 16' - - - - - - + + + + + + + SELECT count(*) FROM clinlims.localization WHERE description = 'Prélèvement cervico-vaginal' + + + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Prélèvement cervico-vaginal' + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.test WHERE description = 'HPV 16' + + + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, @@ -320,319 +293,186 @@ description = 'test report name' and english = 'HPV P5' limit 1), null,'f'); ; - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Prélèvement - cervico-vaginal' - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Prélèvement - cervico-vaginal' - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Prélèvement - cervico-vaginal' - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Prélèvement - cervico-vaginal' - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Prélèvement - cervico-vaginal' - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Prélèvement - cervico-vaginal' - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Prélèvement - cervico-vaginal' - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.result_limits WHERE test_id =(select id from - clinlims.test - where description = 'HPV 16') - - - - - - + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Prélèvement cervico-vaginal' + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Prélèvement cervico-vaginal' + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Prélèvement cervico-vaginal' + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Prélèvement cervico-vaginal' + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Prélèvement cervico-vaginal' + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Prélèvement cervico-vaginal' + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Prélèvement cervico-vaginal' + + + + + + + + + + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id =(select id from clinlims.test where description = 'HPV 16') + + + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id,min_age, max_age, gender, low_normal,high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id,always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'HPV 16'),4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = (select id - from clinlims.test - where description = 'HPV 18') - - - - - - + + + + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = (select id from clinlims.test where description = 'HPV 18') + + + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id,min_age, max_age, gender, low_normal,high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id,always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'HPV 18'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = (select id - from clinlims.test - where description = 'Autre HPV HR') - - - - - - + + + + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = (select id from clinlims.test where description = 'Autre HPV HR') + + + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id,min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'Autre HPV HR'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = (select id - from clinlims.test - where description = 'HPV 18_45') - - - - - - + + + + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = (select id from clinlims.test where description = 'HPV 18_45') + + + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id,min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'HPV 18_45'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = (select id - from clinlims.test - where description = 'HPV P3') - - - - - - + + + + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = (select id from clinlims.test where description = 'HPV P3') + + + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id,min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'HPV P3'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = (select id - from clinlims.test - where description = 'HPV P4') - - - - - - + + + + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = (select id from clinlims.test where description = 'HPV P4') + + + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id,min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'HPV P4'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = (select id - from clinlims.test - where description = 'HPV P5') - - - - - - + + + + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = (select id from clinlims.test where description = 'HPV P5') + + + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id,min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES (nextval('result_limits_seq'), (select id from test where description = 'HPV P5'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'HPV 16') - - - - - - + + + + + + SELECT count(*) FROM clinlims.test_result WHERE test_id =(select id from clinlims.test + where description = 'HPV 16') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated, scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) @@ -651,23 +491,16 @@ null,null,'D', (select id from dictionary where display_key = 'dictionary.result.Negatif' limit 1), null,null,null,now(),null,2,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'HPV 18') - - - - - - + + + + + SELECT count(*) FROM clinlims.test_result WHERE test_id =(select id from clinlims.test + where description = 'HPV 18') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated, scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) @@ -686,23 +519,16 @@ null,null,'D', (select id from dictionary where display_key = 'dictionary.result.Negatif' limit 1), null,null,null,now(),null,2,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Autre HPV HR') - - - - - - + + + + + SELECT count(*) FROM clinlims.test_result WHERE test_id =(select id from clinlims.test + where description = 'Autre HPV HR') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated, scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) @@ -720,23 +546,16 @@ (select id from test where description = 'Autre HPV HR'), null,null,'D', (select id from dictionary where display_key = 'dictionary.result.Negatif' limit 1), null,null,null,now(),null,2,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'HPV 18_45') - - - - - - + + + + + SELECT count(*) FROM clinlims.test_result WHERE test_id =(select id from clinlims.test + where description = 'HPV 18_45') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated, scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) @@ -754,23 +573,16 @@ (select id from test where description = 'HPV 18_45'), null,null,'D', (select id from dictionary where display_key = 'dictionary.result.Negatif' limit 1), null,null,null,now(),null,2,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'HPV P3') - - - - - - + + + + + SELECT count(*) FROM clinlims.test_result WHERE test_id =(select id from clinlims.test + where description = 'HPV P3') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated, scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) @@ -788,23 +600,15 @@ (select id from test where description = 'HPV P3'), null,null,'D', (select id from dictionary where display_key = 'dictionary.result.Negatif' limit 1), null,null,null,now(),null,2,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'HPV P4') - - - - - - + + + + + SELECT count(*) FROM clinlims.test_result WHERE test_id =(select id from clinlims.test + where description = 'HPV P4') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated, scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) @@ -822,23 +626,15 @@ (select id from test where description = 'HPV P4'), null,null,'D', (select id from dictionary where display_key = 'dictionary.result.Negatif' limit 1), null,null,null,now(),null,2,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'HPV P5') - - - - - - + + + + + SELECT count(*) FROM clinlims.test_result WHERE test_id =(select id from clinlims.test + where description = 'HPV P5') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated, scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) @@ -856,62 +652,41 @@ (select id from test where description = 'HPV P5'), null,null,'D', (select id from dictionary where display_key = 'dictionary.result.Negatif' limit 1), null,null,null,now(),null,2,'f','t','f'); - - - - - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE description = 'HPV HR' - - - - - - - - - - - - - - SELECT count(*) FROM panel WHERE - name ='HPV HR' - - - - - - + + + + + + + + SELECT count(*) FROM clinlims.localization WHERE description = 'HPV HR' + + + + + + + + + + + + SELECT count(*) FROM panel WHERE name ='HPV HR' + + + INSERT INTO clinlims.panel(id,name,description,lastupdated,sort_order,is_active,name_localization_id) VALUES (nextval('panel_seq'), 'HPV HR','HPV HR', now(), 100,'Y', (select id from clinlims.localization where french ='HPV HR' limit 1)); - - - - - - - - - SELECT count(*) FROM panel WHERE - name ='HPV HR' LIMIT 1 - - - - - - + + + + + + SELECT count(*) FROM panel WHERE name ='HPV HR' LIMIT 1 + + + INSERT INTO clinlims.panel_item(id,panel_id,lastupdated,test_id) VALUES (nextval('panel_item_seq'),(select id from clinlims.panel where name ='HPV HR' limit 1),now(),(select id from clinlims.test where name ='HPV 16' limit 1)), @@ -927,95 +702,60 @@ name ='HPV P5' limit 1)), (nextval('panel_item_seq'),(select id from clinlims.panel where name ='HPV HR' limit 1),now(),(select id from clinlims.test where name ='HPV 18_45' limit 1)); - - - - - - - - - SELECT count(*) FROM panel WHERE - name ='HPV HR' LIMIT 1 - - - - - SELECT count(*) FROM type_of_sample - WHERE description ='Prélèvement - cervico-vaginal' LIMIT 1 - - - - - - + + + + + + SELECT count(*) FROM panel WHERE name ='HPV HR' LIMIT 1 + + + SELECT count(*) FROM type_of_sample WHERE description ='Prélèvement cervico-vaginal' LIMIT 1 + + + INSERT INTO clinlims.sampletype_panel(id,sample_type_id,panel_id) VALUES (nextval('sample_type_panel_seq'),(select id from clinlims.type_of_sample where description ='Prélèvement cervico-vaginal' limit 1), (select id from clinlims.panel where name ='HPV HR' limit 1)); - - - - - - - - - - SELECT count(*) FROM - clinlims.observation_history_type WHERE type_name = - 'hpvSamplingMethod' - - - - - - + + + + + + + SELECT count(*) FROM clinlims.observation_history_type WHERE type_name = 'hpvSamplingMethod' + + + INSERT INTO clinlims.observation_history_type(id, type_name, description,lastupdated) VALUES (nextval('observation_history_type_seq'),'hpvSamplingMethod','Sampling Method for HPV sample',now()); - - - - - - - - - SELECT count(*) FROM - clinlims.dictionary_category WHERE description = 'HPV Sampling - Method' - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.dictionary_category WHERE description = 'HPV Sampling - Method' limit 1 - - - SELECT count(*) FROM - clinlims.dictionary WHERE dict_entry = 'Auto Sampling' - - - - - + + + + + + SELECT count(*) FROM + clinlims.dictionary_category WHERE description = 'HPV Sampling Method' + + + + + + + + + + + + + + + SELECT count(*) FROM + clinlims.dictionary_category WHERE description = 'HPV Sampling Method' limit 1 + SELECT count(*) FROM + clinlims.dictionary WHERE dict_entry = 'Auto Sampling' + + INSERT INTO clinlims.dictionary(id,is_active,dict_entry,lastupdated,local_abbrev,dictionary_category_id,display_key,sort_order,name_localization_id) VALUES @@ -1023,9 +763,7 @@ 'dictionary.hpv.auto.sampling',55000,null), (nextval('dictionary_seq'),'Y','Health Worker Sampling',now(),'HWSamp',(select id from clinlims.dictionary_category where description = 'HPV Sampling Method' limit 1), 'dictionary.hpv.hw.sampling',55001,null); - - - - + + diff --git a/src/main/resources/liquibase/2.7.x.x/add_loinc_code.xml b/src/main/resources/liquibase/2.7.x.x/add_loinc_code.xml index 1aea806485..5b68a10866 100644 --- a/src/main/resources/liquibase/2.7.x.x/add_loinc_code.xml +++ b/src/main/resources/liquibase/2.7.x.x/add_loinc_code.xml @@ -1,28 +1,27 @@ - - - - - - select count(*) from - clinlims.test - where name = 'Viral Load' limit 1; - - - - - - id=:value - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + select count(*) from + clinlims.test + where name = 'Viral Load' limit 1; + + + + + id=:value + + + + + diff --git a/src/main/resources/liquibase/2.7.x.x/add_patient_upid.xml b/src/main/resources/liquibase/2.7.x.x/add_patient_upid.xml index 2470bef436..77268b7967 100644 --- a/src/main/resources/liquibase/2.7.x.x/add_patient_upid.xml +++ b/src/main/resources/liquibase/2.7.x.x/add_patient_upid.xml @@ -1,21 +1,21 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - - - - - - - - + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.7.x.x/add_psc_sampletype_test_element.xml b/src/main/resources/liquibase/2.7.x.x/add_psc_sampletype_test_element.xml index d5e5ade13f..5aa700480a 100644 --- a/src/main/resources/liquibase/2.7.x.x/add_psc_sampletype_test_element.xml +++ b/src/main/resources/liquibase/2.7.x.x/add_psc_sampletype_test_element.xml @@ -1,65 +1,47 @@ - - - - - - SELECT count(*) FROM - clinlims.localization WHERE description = 'PSC' - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'PSC' - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'PSC' - - - - - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + SELECT count(*) FROM clinlims.localization WHERE description = 'PSC' + + + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'PSC' + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'PSC' + + + + + + + + diff --git a/src/main/resources/liquibase/2.7.x.x/add_recency_testing.xml b/src/main/resources/liquibase/2.7.x.x/add_recency_testing.xml index 75cf1608c1..7af738ce1b 100644 --- a/src/main/resources/liquibase/2.7.x.x/add_recency_testing.xml +++ b/src/main/resources/liquibase/2.7.x.x/add_recency_testing.xml @@ -1,44 +1,38 @@ - - - - - - SELECT count(*) FROM - clinlims.project - WHERE name = 'Recency Testing' - - - - Add entry for recency testing - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE french = 'Asante HIV-1 Rapid Recency' - - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + SELECT count(*) FROM + clinlims.project + WHERE name = 'Recency Testing' + + + Add entry for recency testing + + + + + + + + + + + + + SELECT count(*) FROM + clinlims.localization WHERE french = 'Asante HIV-1 Rapid Recency' + + + INSERT INTO clinlims.localization( id, description, english, french, lastupdated) @@ -51,24 +45,17 @@ VALUES (nextval('localization_seq'),'test report name','Rapid Test for Recent infection','Test Rapide pour Infection Récente', now()); - - + + - + + + SELECT count(*) FROM + clinlims.dictionary WHERE dict_entry = 'Long-Term' + - - - - SELECT count(*) FROM - clinlims.dictionary WHERE dict_entry = 'Long-Term' - - - - - - - + INSERT INTO clinlims.dictionary(id,is_active,dict_entry,lastupdated,local_abbrev,dictionary_category_id,display_key,sort_order,name_localization_id) VALUES @@ -80,23 +67,17 @@ 'dictionary.recency.result.Inconclusive',55000,null), (nextval('dictionary_seq'),'Y','Invalid',now(),'Invalid',null, 'dictionary.recency.result.Invalid',55000,null); - - - - - - - - - SELECT count(*) FROM clinlims.test - WHERE description = 'Asante HIV-1 Rapid Recency(Plasma)' - - - - - - + + + + + + SELECT count(*) FROM clinlims.test + WHERE description = 'Asante HIV-1 Rapid Recency(Plasma)' + + + INSERT INTO clinlims.test( id, method_id, uom_id, description, loinc, reporting_description, @@ -148,25 +129,18 @@ (select id from localization where description = 'test report name' and english = 'Rapid Test for Recent infection' limit 1), null,'f'); - - - - - - - - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = 'Asante HIV-1 Rapid - Recency(Plasma)') - - - - - - + + + + + SELECT count(*) FROM + clinlims.sampletype_test WHERE test_id = + (select id from + clinlims.test where description = 'Asante HIV-1 Rapid Recency(Plasma)') + + + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), @@ -176,25 +150,18 @@ (select id from test where description = 'Asante HIV-1 Rapid Recency(Plasma)'), 'f'); - - - - - - - - SELECT count(*) FROM - clinlims.sampletype_test WHERE test_id = - (select id from - clinlims.test where description = 'Asante HIV-1 Rapid - Recency(Serum)') - - - - - - + + + + + SELECT count(*) FROM + clinlims.sampletype_test WHERE test_id = + (select id from + clinlims.test where description = 'Asante HIV-1 Rapid Recency(Serum)') + + + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id, is_panel) VALUES (nextval('sample_type_test_seq'), @@ -204,25 +171,19 @@ (select id from test where description = 'Asante HIV-1 Rapid Recency(Serum)'), 'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = 'Asante HIV-1 Rapid Recency(Plasma)') - - - - - - + + + + + + SELECT count(*) FROM + clinlims.result_limits WHERE test_id = + (select id from clinlims.test + where description = 'Asante HIV-1 Rapid Recency(Plasma)') + + + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, @@ -234,25 +195,19 @@ test where description = 'Asante HIV-1 Rapid Recency(Plasma)'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = 'Asante HIV-1 Rapid Recency(Serum)') - - - - - - + + + + + + SELECT count(*) FROM + clinlims.result_limits WHERE test_id = + (select id from clinlims.test + where description = 'Asante HIV-1 Rapid Recency(Serum)') + + + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id, min_age, max_age, gender, low_normal, @@ -264,25 +219,19 @@ test where description = 'Asante HIV-1 Rapid Recency(Serum)'), 4,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = 'Asante HIV-1 Rapid Recency(Serum)') - - - - - - + + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id = + (select id from clinlims.test + where description = 'Asante HIV-1 Rapid Recency(Serum)') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES @@ -302,25 +251,16 @@ (nextval('test_result_seq'),(select id from test where description ='Asante HIV-1 Rapid Recency(Serum)'), null,null,'D', (select id from dictionary where dict_entry = 'Invalid' limit 1),null,null,null,now(),null,4,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id = - (select id from clinlims.test - where description = 'Asante HIV-1 Rapid - Recency(Plasma)') - - - - - - + + + + + SELECT count(*) FROM clinlims.test_result WHERE test_id = + (select id from clinlims.test where description = 'Asante HIV-1 Rapid Recency(Plasma)') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order,is_quantifiable,is_active,is_normal) VALUES @@ -340,9 +280,7 @@ (nextval('test_result_seq'),(select id from test where description ='Asante HIV-1 Rapid Recency(Plasma)'), null,null,'D', (select id from dictionary where dict_entry = 'Invalid' limit 1),null,null,null,now(),null,4,'f','t','f'); - - - - + + diff --git a/src/main/resources/liquibase/2.7.x.x/add_tb_dictionary_infos.xml b/src/main/resources/liquibase/2.7.x.x/add_tb_dictionary_infos.xml index b244ea4feb..f754f7fc42 100644 --- a/src/main/resources/liquibase/2.7.x.x/add_tb_dictionary_infos.xml +++ b/src/main/resources/liquibase/2.7.x.x/add_tb_dictionary_infos.xml @@ -1,120 +1,99 @@ - - - - - - SELECT count(*) FROM - clinlims.dictionary_category WHERE description = 'TB Order Reasons' - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.dictionary_category WHERE description = 'TB Diagnostic - Reasons' - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.dictionary_category WHERE description = 'TB Followup - Reasons' - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.dictionary_category WHERE description = 'TB Analysis - Methods' - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.dictionary_category WHERE description = 'TB Sample Aspects' - - - - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.dictionary_category WHERE description = 'TB Order Reasons' - limit 1 - - - SELECT count(*) FROM - clinlims.dictionary WHERE dict_entry = 'Diagnostic' - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + SELECT count(*) FROM + clinlims.dictionary_category WHERE description = 'TB Order Reasons' + + + + + + + + + + + + + SELECT count(*) FROM + clinlims.dictionary_category WHERE description = 'TB Diagnostic Reasons' + + + + + + + + + + + + + SELECT count(*) FROM + clinlims.dictionary_category WHERE description = 'TB Followup Reasons' + + + + + + + + + + + + + SELECT count(*) FROM + clinlims.dictionary_category WHERE description = 'TB Analysis Methods' + + + + + + + + + + + + + SELECT count(*) FROM + clinlims.dictionary_category WHERE description = 'TB Sample Aspects' + + + + + + + + + + + + + + + + + + SELECT count(*) FROM + clinlims.dictionary_category WHERE description = 'TB Order Reasons' limit 1 + SELECT count(*) FROM + clinlims.dictionary WHERE dict_entry = 'Diagnostic' + + INSERT INTO clinlims.dictionary(id,is_active,dict_entry,lastupdated,local_abbrev,dictionary_category_id,display_key,sort_order,name_localization_id) VALUES @@ -122,27 +101,17 @@ 'dictionary.tb.order.diagnostic',55000,null), (nextval('dictionary_seq'),'Y','Follow up',now(),'Followup',(select id from clinlims.dictionary_category where description = 'TB Order Reasons' limit 1), 'dictionary.tb.order.followup',55000,null); - - - - - - - - - SELECT count(*) FROM - clinlims.dictionary_category WHERE description = 'TB Diagnostic - Reasons' limit 1 - - - SELECT count(*) FROM - clinlims.dictionary WHERE dict_entry = 'Cas présumé jamais traité' - - - - - + + + + + + SELECT count(*) FROM + clinlims.dictionary_category WHERE description = 'TB Diagnostic Reasons' limit 1 + SELECT count(*) FROM + clinlims.dictionary WHERE dict_entry = 'Cas présumé jamais traité' + + INSERT INTO clinlims.dictionary(id,is_active,dict_entry,lastupdated,local_abbrev,dictionary_category_id,display_key,sort_order,name_localization_id) VALUES @@ -156,28 +125,17 @@ 'dictionary.tb.order.resumption',60004,null), (nextval('dictionary_seq'),'Y','Frottis positif à M2',now(),'positifM2',(select id from clinlims.dictionary_category where description = 'TB Diagnostic Reasons' limit 1), 'dictionary.tb.order.smear_positivem2',60005,null); - - - - - - - - - SELECT count(*) FROM - clinlims.dictionary_category WHERE description = 'TB Followup - Reasons' limit 1 - - - SELECT count(*) FROM - clinlims.dictionary WHERE dict_entry = 'Examen de suivi 1ère ligne - (TB Sensible)' - - - - - + + + + + + SELECT count(*) FROM + clinlims.dictionary_category WHERE description = 'TB Followup Reasons' limit 1 + SELECT count(*) FROM + clinlims.dictionary WHERE dict_entry = 'Examen de suivi 1ère ligne (TB Sensible)' + + INSERT INTO clinlims.dictionary(id,is_active,dict_entry,lastupdated,local_abbrev,dictionary_category_id,display_key,sort_order,name_localization_id) VALUES @@ -185,27 +143,17 @@ 'dictionary.tb.followup.line1',60001,null), (nextval('dictionary_seq'),'Y','Examen de suivi 2ième ligne (TB/RR ; TBXDR)',now(),'TB Line2',(select id from clinlims.dictionary_category where description = 'TB Followup Reasons' limit 1), 'dictionary.tb.followup.line2',60002,null); - - - - - - - - - SELECT count(*) FROM - clinlims.dictionary_category WHERE description = 'TB Analysis - Methods' limit 1 - - - SELECT count(*) FROM - clinlims.dictionary WHERE dict_entry = 'Diagnostic moléculaire TB' - - - - - + + + + + + SELECT count(*) FROM + clinlims.dictionary_category WHERE description = 'TB Analysis Methods' limit 1 + SELECT count(*) FROM + clinlims.dictionary WHERE dict_entry = 'Diagnostic moléculaire TB' + + INSERT INTO clinlims.dictionary(id,is_active,dict_entry,lastupdated,local_abbrev,dictionary_category_id,display_key,sort_order,name_localization_id) VALUES @@ -221,27 +169,17 @@ 'dictionary.tb.lpa_tests',60005,null), (nextval('dictionary_seq'),'Y','Tests de sensibilité phénotypique',now(),'PhenoTests',(select id from clinlims.dictionary_category where description = 'TB Analysis Methods' limit 1), 'dictionary.tb.phenotypic_tests',60006,null); - - - - - - - - - SELECT count(*) FROM - clinlims.dictionary_category WHERE description = 'TB Sample Aspects' - limit 1 - - - SELECT count(*) FROM - clinlims.dictionary WHERE dict_entry = 'Muco-purulent' - - - - - + + + + + + SELECT count(*) FROM + clinlims.dictionary_category WHERE description = 'TB Sample Aspects' limit 1 + SELECT count(*) FROM + clinlims.dictionary WHERE dict_entry = 'Muco-purulent' + + INSERT INTO clinlims.dictionary(id,is_active,dict_entry,lastupdated,local_abbrev,dictionary_category_id,display_key,sort_order,name_localization_id) VALUES @@ -251,8 +189,6 @@ 'dictionary.tb.aspect.salivary',60002,null), (nextval('dictionary_seq'),'Y','Sanglant',now(),'Sanglant',(select id from clinlims.dictionary_category where description = 'TB Sample Aspects' limit 1), 'dictionary.tb.aspect.bloody',60003,null); - - - - - + + + diff --git a/src/main/resources/liquibase/2.7.x.x/add_tb_observation_type.xml b/src/main/resources/liquibase/2.7.x.x/add_tb_observation_type.xml index 61494a6a0a..8eef4eff88 100644 --- a/src/main/resources/liquibase/2.7.x.x/add_tb_observation_type.xml +++ b/src/main/resources/liquibase/2.7.x.x/add_tb_observation_type.xml @@ -1,23 +1,18 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - SELECT count(*) FROM - clinlims.observation_history_type WHERE type_name = 'TbOrderReason' - - - - - - + + + + SELECT count(*) FROM clinlims.observation_history_type WHERE type_name = 'TbOrderReason' + + + INSERT INTO clinlims.observation_history_type(id, type_name, description,lastupdated) VALUES (nextval('observation_history_type_seq'),'TbOrderReason','Reason for TB order',now()), (nextval('observation_history_type_seq'),'TbDiagnosticReason','Reason for a TB Patient Diagnostic',now()), @@ -26,9 +21,7 @@ (nextval('observation_history_type_seq'),'TbSampleAspects','Aspects for a TB sample',now()), (nextval('observation_history_type_seq'),'TbFollowupReasonPeriodLine1','Period for a the TB Patient followup 1st Line',now()), (nextval('observation_history_type_seq'),'TbFollowupReasonPeriodLine2','Period for a the TB Patient followup 2nd Line',now()); - - - - + + diff --git a/src/main/resources/liquibase/2.7.x.x/add_tb_samples.xml b/src/main/resources/liquibase/2.7.x.x/add_tb_samples.xml index ad86bb8512..b7c5e9b6c4 100644 --- a/src/main/resources/liquibase/2.7.x.x/add_tb_samples.xml +++ b/src/main/resources/liquibase/2.7.x.x/add_tb_samples.xml @@ -1,515 +1,400 @@ - - - - - - SELECT count(*) FROM - clinlims.localization WHERE french = 'Sputum' - - - - - - french='Sputum' - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE french = 'Crachat' - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE french = 'Liquide pleural' - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE french = 'LCR' - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE french = 'Pus ganglionnaires' - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE french = 'Liquide d’ascite' - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE french = 'Liquide articulaire' - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE french = 'Liquide de ponction - péricardique' - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE french = 'Selles' - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE french = 'Urines' - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE french = 'Liquide d’aspiration - gastrique' - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE french = 'Liquide d’aspiration - broncho-alvéolaire' - - - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Sputum' OR description - = 'Crachat' - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Liquide pleural' - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'LCR' - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Pus ganglionnaires' - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Liquide d’ascite' - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Liquide articulaire' - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Liquide de ponction - péricardique' - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Selles' - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description in ('Urines','Urine') - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description ='Liquide d’aspiration - gastrique' - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description ='Liquide d’aspiration - broncho-alvéolaire' - - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.localization WHERE french = 'Tuberculose' - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.test_section WHERE name ='TB' - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.test_section WHERE name ='TB' limit 1 - - - - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + SELECT count(*) FROM + clinlims.localization WHERE french = 'Sputum' + + + + + french='Sputum' + + + + + + SELECT count(*) FROM + clinlims.localization WHERE french = 'Crachat' + + + + + + + + + + + + + SELECT count(*) FROM + clinlims.localization WHERE french = 'Liquide pleural' + + + + + + + + + + + + + SELECT count(*) FROM + clinlims.localization WHERE french = 'LCR' + + + + + + + + + + + + + SELECT count(*) FROM + clinlims.localization WHERE french = 'Pus ganglionnaires' + + + + + + + + + + + + + SELECT count(*) FROM + clinlims.localization WHERE french = 'Liquide d’ascite' + + + + + + + + + + + + + SELECT count(*) FROM + clinlims.localization WHERE french = 'Liquide articulaire' + + + + + + + + + + + + + SELECT count(*) FROM + clinlims.localization WHERE french = 'Liquide de ponction péricardique' + + + + + + + + + + + + + SELECT count(*) FROM + clinlims.localization WHERE french = 'Selles' + + + + + + + + + + + + + SELECT count(*) FROM + clinlims.localization WHERE french = 'Urines' + + + + + + + + + + + + + SELECT count(*) FROM + clinlims.localization WHERE french = 'Liquide d’aspiration gastrique' + + + + + + + + + + + + + SELECT count(*) FROM + clinlims.localization WHERE french = 'Liquide d’aspiration broncho-alvéolaire' + + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Sputum' OR description = 'Crachat' + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Liquide pleural' + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'LCR' + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Pus ganglionnaires' + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Liquide d’ascite' + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Liquide articulaire' + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Liquide de ponction péricardique' + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Selles' + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description in ('Urines','Urine') + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description ='Liquide d’aspiration gastrique' + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description ='Liquide d’aspiration broncho-alvéolaire' + + + + + + + + + + + + + + + + SELECT count(*) FROM + clinlims.localization WHERE french = 'Tuberculose' + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.test_section WHERE name ='TB' + + + + + + + + + + + + + + + SELECT count(*) FROM + clinlims.test_section WHERE name ='TB' limit 1 + + + + + + + diff --git a/src/main/resources/liquibase/2.7.x.x/add_tb_tests.xml b/src/main/resources/liquibase/2.7.x.x/add_tb_tests.xml index fbc3aad1e7..a206343442 100644 --- a/src/main/resources/liquibase/2.7.x.x/add_tb_tests.xml +++ b/src/main/resources/liquibase/2.7.x.x/add_tb_tests.xml @@ -1,23 +1,18 @@ - - - - - - SELECT count(*) FROM - clinlims.localization WHERE french = 'GeneXpert MTB/RIF' - - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + SELECT count(*) FROM clinlims.localization WHERE french = 'GeneXpert MTB/RIF' + + + INSERT INTO clinlims.localization(id, description, english,french, lastupdated) VALUES (nextval('localization_seq'),'test name','GeneXpert MTB/RIF','GeneXpert MTB/RIF',now()), (nextval('localization_seq'),'test name','TB LAMP','TB LAMP',now()), @@ -83,24 +78,16 @@ (nextval('localization_seq'),'test report name','Bedaquilline','Bedaquilline',now()), (nextval('localization_seq'),'test report name','Delamanide','Delamanide',now()), (nextval('localization_seq'),'test report name','TB LAM urinaire','TB LAM urinaire',now()); - - - - - - - - - SELECT count(*) FROM - clinlims.dictionary WHERE dict_entry = 'MTB non détecté' - - - + + + + + SELECT count(*) FROM + clinlims.dictionary WHERE dict_entry = 'MTB non détecté' + - - + INSERT INTO clinlims.dictionary(id,is_active,dict_entry,lastupdated,local_abbrev,dictionary_category_id,display_key,sort_order,name_localization_id) VALUES @@ -140,23 +127,15 @@ 'dictionary.tb.result.culture_res',80017,null), (nextval('dictionary_seq'),'Y','Sensible',now(),'Sensible',null, 'dictionary.tb.result.culture_sens',80018,null); - - - - - - - - - SELECT count(*) FROM clinlims.test - WHERE description = 'GeneXpert MTB/RIF' - - - - - - + + + + + + SELECT count(*) FROM clinlims.test WHERE description = 'GeneXpert MTB/RIF' + + + INSERT INTO clinlims.test(id, method_id, uom_id, description,loinc, reporting_description,sticker_req_flag, is_active,active_begin, active_end, is_reportable, time_holding, time_wait,time_ta_average, time_ta_warning,time_ta_max, label_qty, lastupdated,label_id, test_trailer_id,test_section_id, scriptlet_id, test_format_id, local_code, sort_order, name, orderable,guid,name_localization_id, reporting_name_localization_id,default_test_result_id, notify_results) @@ -311,23 +290,15 @@ null,null,'TB LAM urinaire',1,'TB LAM urinaire','t','f41361dc-1c51-4684-a42d-5ec34435a387', (select id from localization where description = 'test name' and french = 'TB LAM urinaire' limit 1), (select id from localization where description = 'test report name' and french = 'TB LAM urinaire' limit 1),null,'f'); - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Sputum' OR description - = 'Crachat limit 1' - - - - - - + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Sputum' OR description = 'Crachat limit 1' + + + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id,is_panel) VALUES (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'Sputum' OR description = 'Crachat' limit 1), @@ -390,23 +361,15 @@ (select id from test where description = 'Delamanide'),'f'), (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'Sputum' OR description = 'Crachat' limit 1), (select id from test where description = 'TB LAM urinaire'),'f'); - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Liquide pleural' limit - 1 - - - - - - + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Liquide pleural' limit 1 + + + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id,is_panel) VALUES (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'Liquide pleural' limit 1), @@ -469,22 +432,15 @@ (select id from test where description = 'Delamanide'),'f'), (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'Liquide pleural' limit 1), (select id from test where description = 'TB LAM urinaire'),'f'); - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'LCR' limit 1 - - - - - - + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'LCR' limit 1 + + + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id,is_panel) VALUES (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'LCR' limit 1), @@ -547,23 +503,15 @@ (select id from test where description = 'Delamanide'),'f'), (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'LCR' limit 1), (select id from test where description = 'TB LAM urinaire'),'f'); - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Pus ganglionnaires' - limit 1 - - - - - - + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Pus ganglionnaires' limit 1 + + + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id,is_panel) VALUES (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'Pus ganglionnaires' limit 1), @@ -626,23 +574,15 @@ (select id from test where description = 'Delamanide'),'f'), (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'Pus ganglionnaires' limit 1), (select id from test where description = 'TB LAM urinaire'),'f'); - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Liquide d’ascite' limit - 1 - - - - - - + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Liquide d’ascite' limit 1 + + + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id,is_panel) VALUES (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'Liquide d’ascite' limit 1), @@ -705,23 +645,15 @@ (select id from test where description = 'Delamanide'),'f'), (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'Liquide d’ascite' limit 1), (select id from test where description = 'TB LAM urinaire'),'f'); - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Liquide articulaire' - limit 1 - - - - - - + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Liquide articulaire' limit 1 + + + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id,is_panel) VALUES (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'Liquide articulaire' limit 1), @@ -784,23 +716,15 @@ (select id from test where description = 'Delamanide'),'f'), (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'Liquide articulaire' limit 1), (select id from test where description = 'TB LAM urinaire'),'f'); - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Liquide de ponction - péricardique' limit 1 - - - - - - + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Liquide de ponction péricardique' limit 1 + + + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id,is_panel) VALUES (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'Liquide de ponction péricardique' limit 1), @@ -863,22 +787,15 @@ (select id from test where description = 'Delamanide'),'f'), (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'Liquide de ponction péricardique' limit 1), (select id from test where description = 'TB LAM urinaire'),'f'); - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Selles' limit 1 - - - - - - + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Selles' limit 1 + + + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id,is_panel) VALUES (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'Selles' limit 1), @@ -941,22 +858,15 @@ (select id from test where description = 'Delamanide'),'f'), (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'Selles' limit 1), (select id from test where description = 'TB LAM urinaire'),'f'); - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Urines' limit 1 - - - - - - + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Urines' limit 1 + + + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id,is_panel) VALUES (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'Urines' limit 1), @@ -1019,23 +929,15 @@ (select id from test where description = 'Delamanide'),'f'), (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'Urines' limit 1), (select id from test where description = 'TB LAM urinaire'),'f'); - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Liquide d’aspiration - gastrique' limit 1 - - - - - - + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Liquide d’aspiration gastrique' limit 1 + + + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id,is_panel) VALUES (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'Liquide d’aspiration gastrique' limit 1), @@ -1098,23 +1000,15 @@ (select id from test where description = 'Delamanide'),'f'), (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'Liquide d’aspiration gastrique' limit 1), (select id from test where description = 'TB LAM urinaire'),'f'); - - - - - - - - SELECT count(*) FROM - clinlims.type_of_sample WHERE description = 'Liquide d’aspiration - broncho-alvéolaire' limit 1 - - - - - - + + + + + SELECT count(*) FROM clinlims.type_of_sample WHERE description = 'Liquide d’aspiration broncho-alvéolaire' limit 1 + + + INSERT into clinlims.sampletype_test(id, sample_type_id, test_id,is_panel) VALUES (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'Liquide d’aspiration broncho-alvéolaire' limit 1), @@ -1177,24 +1071,15 @@ (select id from test where description = 'Delamanide'),'f'), (nextval('sample_type_test_seq'),(select id from type_of_sample where description = 'Liquide d’aspiration broncho-alvéolaire' limit 1), (select id from test where description = 'TB LAM urinaire'),'f'); - - - - - - - - SELECT count(*) FROM - clinlims.result_limits WHERE test_id = - (select id from clinlims.test - where description = 'GeneXpert MTB/RIF') - - - - - - + + + + + SELECT count(*) FROM clinlims.result_limits WHERE test_id = + (select id from clinlims.test where description = 'GeneXpert MTB/RIF') + + + INSERT INTO clinlims.result_limits(id, test_id, test_result_type_id,min_age, max_age, gender, low_normal, high_normal, low_valid, high_valid, lastupdated, normal_dictionary_id, always_validate) VALUES @@ -1262,23 +1147,15 @@ 2,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'), (nextval('result_limits_seq'),(select id from test where description = 'TB LAM urinaire'), 2,0,'Infinity',null,'-Infinity','Infinity','-Infinity','Infinity',now(),null,'f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'GeneXpert MTB/RIF') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'GeneXpert MTB/RIF') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1296,23 +1173,15 @@ (select id from dictionary where dict_entry = 'Invalide' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'GeneXpert MTB/RIF'), null,null,'D', (select id from dictionary where dict_entry = 'Pas de résultat' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'TB LAMP') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'TB LAMP') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1320,23 +1189,15 @@ (select id from dictionary where dict_entry = 'MTB non détecté' limit 1), null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'TB LAMP'), null,null,'D', (select id from dictionary where dict_entry = 'MTB détecté' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Bacilloscopie Auramine') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Bacilloscopie Auramine') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1350,23 +1211,15 @@ (select id from dictionary where dict_entry = 'Positif Rare BAAR' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Bacilloscopie Auramine'),null,null,'D', (select id from dictionary where dict_entry = 'Négatif' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Bacilloscopie Ziehl-Neelsen') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Bacilloscopie Ziehl-Neelsen') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1380,23 +1233,15 @@ (select id from dictionary where dict_entry = 'Positif Rare BAAR' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Bacilloscopie Ziehl-Neelsen'),null,null,'D', (select id from dictionary where dict_entry = 'Négatif' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Culture Milieu LJ') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Culture Milieu LJ') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1406,23 +1251,15 @@ (select id from dictionary where dict_entry = 'Culture négative' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Culture Milieu LJ'),null,null,'D', (select id from dictionary where dict_entry = 'Culture positive' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Culture Milieu MGIT') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Culture Milieu MGIT') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1432,23 +1269,15 @@ (select id from dictionary where dict_entry = 'Culture négative' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Culture Milieu MGIT'),null,null,'D', (select id from dictionary where dict_entry = 'Culture positive' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Rifampicine') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Rifampicine') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1456,23 +1285,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Rifampicine'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Isoniazide') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Isoniazide') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1480,23 +1301,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Isoniazide'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Fluoroquinolone') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Fluoroquinolone') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1504,23 +1317,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Fluoroquinolone'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Injectable') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Injectable') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1528,23 +1333,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Injectable'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Pyrazinamide') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Pyrazinamide') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1552,23 +1349,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Pyrazinamide'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Ethambutol') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Ethambutol') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1576,23 +1365,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Ethambutol'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Capreomicine') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Capreomicine') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1600,23 +1381,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Capreomicine'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Teridizone') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Teridizone') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1624,23 +1397,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Teridizone'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Kanamycine') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Kanamycine') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1648,23 +1413,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Kanamycine'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Imipenem') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Imipenem') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1672,23 +1429,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Imipenem'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Streptomicine') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Streptomicine') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1696,23 +1445,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Streptomicine'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Ethionamide') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Ethionamide') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1720,23 +1461,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Ethionamide'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Prothionamide') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Prothionamide') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1744,23 +1477,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Prothionamide'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Cyclosérine') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Cyclosérine') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1768,23 +1493,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Cyclosérine'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Linezolid') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Linezolid') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1792,23 +1509,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Linezolid'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Moxifloxacine') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Moxifloxacine') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1816,23 +1525,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Moxifloxacine'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Clofazimine') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Clofazimine') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1840,23 +1541,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Clofazimine'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Levofloxacine') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Levofloxacine') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1864,23 +1557,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Levofloxacine'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'PAS') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'PAS') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1888,23 +1573,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'PAS'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Imipénème-Cilastatine') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Imipénème-Cilastatine') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1912,23 +1589,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Imipénème-Cilastatine'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Meropenem') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Meropenem') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1936,23 +1605,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Meropenem'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Bedaquilline') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Bedaquilline') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1960,23 +1621,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Bedaquilline'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'Delamanide') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'Delamanide') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -1984,23 +1637,15 @@ (select id from dictionary where dict_entry = 'Resistant' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'Delamanide'),null,null,'D', (select id from dictionary where dict_entry = 'Sensible' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - SELECT count(*) FROM - clinlims.test_result WHERE test_id =(select id from clinlims.test - where description = 'TB LAM urinaire') - - - - - - + + + + + SELECT count(*) FROM + clinlims.test_result WHERE test_id =(select id from clinlims.test where description = 'TB LAM urinaire') + + + INSERT INTO clinlims.test_result(id,test_id,result_group,flags,tst_rslt_type,value,significant_digits,quant_limit,cont_level,lastupdated,scriptlet_id,sort_order, is_quantifiable,is_active,is_normal) VALUES @@ -2008,60 +1653,52 @@ (select id from dictionary where dict_entry = 'Positif' limit 1),null,null,null,now(),null,1,'f','t','f'), (nextval('test_result_seq'), (select id from test where description = 'TB LAM urinaire'),null,null,'D', (select id from dictionary where dict_entry = 'Négatif' limit 1),null,null,null,now(),null,1,'f','t','f'); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT count(*) FROM dictionary - WHERE dict_entry ='Diagnostic moléculaire - TB' LIMIT 1 - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT count(*) FROM dictionary WHERE dict_entry ='Diagnostic moléculaire TB' LIMIT 1 + + + INSERT INTO clinlims.tb_method_test(id,method_id,test_id,is_active) VALUES (nextval('tb_method_test_seq'), (select id from dictionary where dict_entry ='Diagnostic moléculaire TB' limit 1), @@ -2069,25 +1706,18 @@ (nextval('tb_method_test_seq'), (select id from dictionary where dict_entry ='Diagnostic moléculaire TB' limit 1), (select id from test where name ='TB LAMP' limit 1),'Y'); - - - - - - - - - - - SELECT count(*) FROM dictionary - WHERE dict_entry ='Microscopie TB' LIMIT 1 - - - - - - + + + + + + + + SELECT count(*) FROM dictionary WHERE dict_entry ='Microscopie TB' LIMIT 1 + + + INSERT INTO clinlims.tb_method_test(id,method_id,test_id,is_active) VALUES (nextval('tb_method_test_seq'), (select id from dictionary where dict_entry ='Microscopie TB' limit 1), @@ -2095,25 +1725,18 @@ (nextval('tb_method_test_seq'), (select id from dictionary where dict_entry ='Microscopie TB' limit 1), (select id from test where name ='Bacilloscopie Ziehl-Neelsen' limit 1),'Y'); - - - - - - - - - - - SELECT count(*) FROM dictionary - WHERE dict_entry ='Culture TB' LIMIT 1 - - - - - - + + + + + + + + SELECT count(*) FROM dictionary WHERE dict_entry ='Culture TB' LIMIT 1 + + + INSERT INTO clinlims.tb_method_test(id,method_id,test_id,is_active) VALUES (nextval('tb_method_test_seq'), (select id from dictionary where dict_entry ='Culture TB' limit 1), @@ -2121,50 +1744,34 @@ (nextval('tb_method_test_seq'), (select id from dictionary where dict_entry ='Culture TB' limit 1), (select id from test where name ='Culture Milieu MGIT' limit 1),'Y'); - - - - - - - - - - - SELECT count(*) FROM dictionary - WHERE dict_entry ='Diagnostic - Immunologique TB' LIMIT 1 - - - - - - + + + + + + + + SELECT count(*) FROM dictionary WHERE dict_entry ='Diagnostic Immunologique TB' LIMIT 1 + + + INSERT INTO clinlims.tb_method_test(id,method_id,test_id,is_active) VALUES (nextval('tb_method_test_seq'), (select id from dictionary where dict_entry ='Diagnostic Immunologique TB' limit 1), (select id from test where name ='TB LAM urinaire' limit 1),'Y'); - - - - - - - - - - - SELECT count(*) FROM dictionary - WHERE dict_entry ='Tests de sensibilité - genotypique LPA' LIMIT 1 - - - - - - + + + + + + + + SELECT count(*) FROM dictionary WHERE dict_entry ='Tests de sensibilité genotypique LPA' LIMIT 1 + + + INSERT INTO clinlims.tb_method_test(id,method_id,test_id,is_active) VALUES (nextval('tb_method_test_seq'), (select id from dictionary where dict_entry ='Tests de sensibilité genotypique LPA' limit 1), @@ -2178,26 +1785,18 @@ (nextval('tb_method_test_seq'), (select id from dictionary where dict_entry ='Tests de sensibilité genotypique LPA' limit 1), (select id from test where name ='Injectable' limit 1),'Y'); - - - - - - - - - - - SELECT count(*) FROM dictionary - WHERE dict_entry ='Tests de sensibilité - phénotypique' LIMIT 1 - - - - - - + + + + + + + + SELECT count(*) FROM dictionary WHERE dict_entry ='Tests de sensibilité phénotypique' LIMIT 1 + + + INSERT INTO clinlims.tb_method_test(id,method_id,test_id,is_active) VALUES (nextval('tb_method_test_seq'), (select id from dictionary where dict_entry ='Tests de sensibilité phénotypique' limit 1), @@ -2262,25 +1861,18 @@ (nextval('tb_method_test_seq'), (select id from dictionary where dict_entry ='Tests de sensibilité phénotypique' limit 1), (select id from test where name ='Delamanide' limit 1),'Y'); - - - - - - - - - - - SELECT count(*) FROM panel WHERE - name ='MTBDRplus' - - - - - - + + + + + + + + SELECT count(*) FROM panel WHERE name ='MTBDRplus' + + + INSERT INTO clinlims.panel(id,name,description,lastupdated,sort_order,is_active,name_localization_id) VALUES (nextval('panel_seq'), 'MTBDRplus','MTBDRplus', now(), 51,'Y', (select id from clinlims.localization where french ='MTBDRplus' limit 1)), @@ -2290,72 +1882,50 @@ french ='Antibiogramme TB 1ere Ligne' limit 1)), (nextval('panel_seq'), 'Antibiogramme TB 2e Ligne','Antibiogramme TB 2e Ligne', now(), 54,'Y', (select id from clinlims.localization where french ='Antibiogramme TB 2e Ligne' limit 1)); - - - - - - - - - - - SELECT count(*) FROM panel WHERE - name ='MTBDRplus' LIMIT 1 - - - - - - + + + + + + + + SELECT count(*) FROM panel WHERE name ='MTBDRplus' LIMIT 1 + + + INSERT INTO clinlims.panel_item(id,panel_id,lastupdated,test_id) VALUES (nextval('panel_item_seq'),(select id from clinlims.panel where name ='MTBDRplus' limit 1),now(),(select id from clinlims.test where name ='Rifampicine' limit 1)), (nextval('panel_item_seq'),(select id from clinlims.panel where name ='MTBDRplus' limit 1),now(),(select id from clinlims.test where name ='Isoniazide' limit 1)); - - - - - - - - - - SELECT count(*) FROM panel WHERE - name ='MTBDRsl' LIMIT 1 - - - - - - + + + + + + + SELECT count(*) FROM panel WHERE name ='MTBDRsl' LIMIT 1 + + + INSERT INTO clinlims.panel_item(id,panel_id,lastupdated,test_id) VALUES (nextval('panel_item_seq'),(select id from clinlims.panel where name ='MTBDRsl' limit 1),now(),(select id from clinlims.test where name ='Fluoroquinolone' limit 1)), (nextval('panel_item_seq'),(select id from clinlims.panel where name ='MTBDRsl' limit 1),now(),(select id from clinlims.test where name ='Injectable' limit 1)); - - - - - - - - - - SELECT count(*) FROM panel WHERE - name ='Antibiogramme TB 1ere Ligne' LIMIT - 1 - - - - - - + + + + + + + SELECT count(*) FROM panel WHERE name ='Antibiogramme TB 1ere Ligne' LIMIT 1 + + + INSERT INTO clinlims.panel_item(id,panel_id,lastupdated,test_id) VALUES (nextval('panel_item_seq'),(select id from clinlims.panel where name ='Antibiogramme TB 1ere Ligne' limit 1),now(),(select id from clinlims.test where name ='Rifampicine' limit 1)), @@ -2365,24 +1935,17 @@ name ='Pyrazinamide' limit 1)), (nextval('panel_item_seq'),(select id from clinlims.panel where name ='Antibiogramme TB 1ere Ligne' limit 1),now(),(select id from clinlims.test where name ='Ethambutol' limit 1)); - - - - - - - - - - SELECT count(*) FROM panel WHERE - name ='Antibiogramme TB 2e Ligne' LIMIT 1 - - - - - - + + + + + + + SELECT count(*) FROM panel WHERE name ='Antibiogramme TB 2e Ligne' LIMIT 1 + + + INSERT INTO clinlims.panel_item(id,panel_id,lastupdated,test_id) VALUES (nextval('panel_item_seq'),(select id from clinlims.panel where name ='Antibiogramme TB 2e Ligne' limit 1),now(),(select id from clinlims.test where name ='Capreomicine' limit 1)), @@ -2420,79 +1983,67 @@ name ='Bedaquilline' limit 1)), (nextval('panel_item_seq'),(select id from clinlims.panel where name ='Antibiogramme TB 2e Ligne' limit 1),now(),(select id from clinlims.test where name ='Delamanide' limit 1)); - - - - + + - - - - - - - + + + + + ALTER TABLE clinlims.tb_method_test ALTER COLUMN method_id TYPE numeric(10) USING method_id::numeric; ALTER TABLE clinlims.tb_method_test ALTER COLUMN test_id TYPE numeric(10) USING test_id::numeric; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT count(*) FROM dictionary - WHERE dict_entry ='Tests de sensibilité - genotypique LPA' LIMIT 1 - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT count(*) FROM dictionary WHERE dict_entry ='Tests de sensibilité genotypique LPA' LIMIT 1 + + + INSERT INTO clinlims.tb_method_panel(id,method_id,panel_id,is_active) VALUES (nextval('tb_method_panel_seq'), (select id from dictionary where dict_entry ='Tests de sensibilité genotypique LPA' limit 1), @@ -2500,25 +2051,17 @@ (nextval('tb_method_panel_seq'), (select id from dictionary where dict_entry ='Tests de sensibilité genotypique LPA' limit 1), (select id from panel where name ='MTBDRsl' limit 1),'Y'); - - - - - - - - - - SELECT count(*) FROM dictionary - WHERE dict_entry ='Tests de sensibilité - phénotypique' LIMIT 1 - - - - - - + + + + + + + SELECT count(*) FROM dictionary WHERE dict_entry ='Tests de sensibilité phénotypique' LIMIT 1 + + + INSERT INTO clinlims.tb_method_panel(id,method_id,panel_id,is_active) VALUES (nextval('tb_method_panel_seq'), (select id from dictionary where dict_entry ='Tests de sensibilité phénotypique' limit 1), @@ -2526,9 +2069,7 @@ (nextval('tb_method_panel_seq'), (select id from dictionary where dict_entry ='Tests de sensibilité phénotypique' limit 1), (select id from panel where name ='Antibiogramme TB 2e Ligne' limit 1),'Y'); - - - - + + diff --git a/src/main/resources/liquibase/2.7.x.x/add_validation_by_date.xml b/src/main/resources/liquibase/2.7.x.x/add_validation_by_date.xml index a41bed76a5..173f6fc8eb 100644 --- a/src/main/resources/liquibase/2.7.x.x/add_validation_by_date.xml +++ b/src/main/resources/liquibase/2.7.x.x/add_validation_by_date.xml @@ -1,48 +1,40 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_resultvalidation_date' - - - Add Validation Search By Date to the Validation Tab menu - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.system_module_url WHERE url_path = - '/ResultValidationByTestDate' - - - - Add ResultValidationByTestDate module url to the - ResultsValidationGeneral module - - - - - - + + + + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_resultvalidation_date' + + Add Validation Search By Date to the Validation Tab menu + + + + + + + + + + + + + + + SELECT count(*) FROM + clinlims.system_module_url WHERE url_path = '/ResultValidationByTestDate' + + + Add ResultValidationByTestDate module url to the ResultsValidationGeneral module + + + + + + diff --git a/src/main/resources/liquibase/2.7.x.x/base.xml b/src/main/resources/liquibase/2.7.x.x/base.xml index 536702c988..0d32643ba1 100644 --- a/src/main/resources/liquibase/2.7.x.x/base.xml +++ b/src/main/resources/liquibase/2.7.x.x/base.xml @@ -1,53 +1,32 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.7.x.x/critical_range.xml b/src/main/resources/liquibase/2.7.x.x/critical_range.xml index dfbcc8560b..a7463e1662 100644 --- a/src/main/resources/liquibase/2.7.x.x/critical_range.xml +++ b/src/main/resources/liquibase/2.7.x.x/critical_range.xml @@ -1,33 +1,29 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.7.x.x/crtical_range.xml b/src/main/resources/liquibase/2.7.x.x/crtical_range.xml index 2355eafdc6..b1a6441a67 100644 --- a/src/main/resources/liquibase/2.7.x.x/crtical_range.xml +++ b/src/main/resources/liquibase/2.7.x.x/crtical_range.xml @@ -1,63 +1,54 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - + - - 8:d30ab032096adb6b489edac763c55588 + + 8:d30ab032096adb6b489edac763c55588 - - - - - - - - - + + + + + + + + + - - 8:e3dfc74dae964ba133a37ecb580a0d23 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + 8:e3dfc74dae964ba133a37ecb580a0d23 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.7.x.x/extend_person_state_column.xml b/src/main/resources/liquibase/2.7.x.x/extend_person_state_column.xml index 4dddfd2deb..3b5b63cfa3 100644 --- a/src/main/resources/liquibase/2.7.x.x/extend_person_state_column.xml +++ b/src/main/resources/liquibase/2.7.x.x/extend_person_state_column.xml @@ -1,18 +1,18 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - Extend patient state length - - + + + + + Extend patient state length + + diff --git a/src/main/resources/liquibase/2.7.x.x/fix_database_bugs_retroc.xml b/src/main/resources/liquibase/2.7.x.x/fix_database_bugs_retroc.xml index 7cb05c4393..cc84076460 100644 --- a/src/main/resources/liquibase/2.7.x.x/fix_database_bugs_retroc.xml +++ b/src/main/resources/liquibase/2.7.x.x/fix_database_bugs_retroc.xml @@ -1,559 +1,489 @@ - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = 'SamplePatientEntry' limit 1 - - - - Fix roles issues while migrating from OE9.1 to OE Global - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = 'SampleEntryByProject' limit 1 - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = 'SampleEntryByProject:initial' - limit 1 - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = 'SampleEntryByProject:verify' - limit 1 - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = 'SampleEdit' - limit 1 - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = 'SampleEdit:readwrite' - limit 1 - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = 'SampleEdit:readonly' - limit 1 - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = 'PrintBarcode' - limit 1 - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = 'PatientEntryByProject' - limit 1 - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = 'PatientEntryByProject:initial' - limit 1 - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = 'PatientEntryByProject:verify' - limit 1 - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = 'PatientEditByProject' - limit 1 - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = 'PatientEditByProject:readwrite' - limit 1 - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = 'PatientEditByProject:readonly' - limit 1 - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = 'SampleBatchEntry' - limit 1 - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = 'SampleBatchEntryOnDemand' - limit - 1 - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Reception' - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = 'SampleBatchEntryPrePrinted' - limit - 1 - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = - 'ResultValidation' - - - - Fix roles issues while migrating from OE9.1 to OE Global - - - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + + SELECT COUNT(*) FROM + clinlims.system_role WHERE name = 'Reception' + + + SELECT COUNT(*) FROM + clinlims.system_module WHERE name = 'SamplePatientEntry' limit 1 + + + Fix roles issues while migrating from OE9.1 to OE Global + + + + + + + + + + + + + + + SELECT COUNT(*) FROM + clinlims.system_role WHERE name = 'Reception' + + + SELECT COUNT(*) FROM + clinlims.system_module WHERE name = 'SampleEntryByProject' limit 1 + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM + clinlims.system_role WHERE name = 'Reception' + + + SELECT COUNT(*) FROM + clinlims.system_module WHERE name = 'SampleEntryByProject:initial' + limit 1 + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM + clinlims.system_role WHERE name = 'Reception' + + + SELECT COUNT(*) FROM + clinlims.system_module WHERE name = 'SampleEntryByProject:verify' + limit 1 + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM + clinlims.system_role WHERE name = 'Reception' + + + SELECT COUNT(*) FROM + clinlims.system_module WHERE name = 'SampleEdit' + limit 1 + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM + clinlims.system_role WHERE name = 'Reception' + + + SELECT COUNT(*) FROM + clinlims.system_module WHERE name = 'SampleEdit:readwrite' + limit 1 + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM + clinlims.system_role WHERE name = 'Reception' + + + SELECT COUNT(*) FROM + clinlims.system_module WHERE name = 'SampleEdit:readonly' + limit 1 + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM + clinlims.system_role WHERE name = 'Reception' + + + SELECT COUNT(*) FROM + clinlims.system_module WHERE name = 'PrintBarcode' + limit 1 + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM + clinlims.system_role WHERE name = 'Reception' + + + SELECT COUNT(*) FROM + clinlims.system_module WHERE name = 'PatientEntryByProject' + limit 1 + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM + clinlims.system_role WHERE name = 'Reception' + + + SELECT COUNT(*) FROM + clinlims.system_module WHERE name = 'PatientEntryByProject:initial' + limit 1 + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM + clinlims.system_role WHERE name = 'Reception' + + + SELECT COUNT(*) FROM + clinlims.system_module WHERE name = 'PatientEntryByProject:verify' + limit 1 + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM + clinlims.system_role WHERE name = 'Reception' + + + SELECT COUNT(*) FROM + clinlims.system_module WHERE name = 'PatientEditByProject' + limit 1 + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM + clinlims.system_role WHERE name = 'Reception' + + + SELECT COUNT(*) FROM + clinlims.system_module WHERE name = 'PatientEditByProject:readwrite' + limit 1 + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM + clinlims.system_role WHERE name = 'Reception' + + + SELECT COUNT(*) FROM + clinlims.system_module WHERE name = 'PatientEditByProject:readonly' + limit 1 + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM + clinlims.system_role WHERE name = 'Reception' + + + SELECT COUNT(*) FROM + clinlims.system_module WHERE name = 'SampleBatchEntry' + limit 1 + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM + clinlims.system_role WHERE name = 'Reception' + + + SELECT COUNT(*) FROM + clinlims.system_module WHERE name = 'SampleBatchEntryOnDemand' + limit + 1 + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM + clinlims.system_role WHERE name = 'Reception' + + + SELECT COUNT(*) FROM + clinlims.system_module WHERE name = 'SampleBatchEntryPrePrinted' + limit + 1 + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM + clinlims.system_module WHERE name = + 'ResultValidation' + + + Fix roles issues while migrating from OE9.1 to OE Global + + + + + + + diff --git a/src/main/resources/liquibase/2.7.x.x/fix_person_table.xml b/src/main/resources/liquibase/2.7.x.x/fix_person_table.xml index 8b47c22012..1c5f166f2a 100644 --- a/src/main/resources/liquibase/2.7.x.x/fix_person_table.xml +++ b/src/main/resources/liquibase/2.7.x.x/fix_person_table.xml @@ -1,20 +1,15 @@ - - - - - SELECT character_maximum_length - FROM information_schema.columns WHERE table_name='person' AND - column_name='state' - - - Increase size of the person.state column - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + SELECT character_maximum_length FROM information_schema.columns WHERE table_name='person' AND column_name='state' + + Increase size of the person.state column + + diff --git a/src/main/resources/liquibase/2.7.x.x/rename_test_for_csv_export.xml b/src/main/resources/liquibase/2.7.x.x/rename_test_for_csv_export.xml index dceb9d96d3..d66a86e8fc 100644 --- a/src/main/resources/liquibase/2.7.x.x/rename_test_for_csv_export.xml +++ b/src/main/resources/liquibase/2.7.x.x/rename_test_for_csv_export.xml @@ -1,26 +1,21 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - SELECT COUNT(*) FROM localization - WHERE french = 'Determine' AND english = - 'Murex' ; - - - - rename Murex/Determine to not collide with other Murex test - in CSV export - - - french = 'Determine' AND english = 'Murex' - - + + + + SELECT COUNT(*) FROM localization WHERE french = 'Determine' AND english = 'Murex' ; + + + rename Murex/Determine to not collide with other Murex test in CSV export + + + french = 'Determine' AND english = 'Murex' + + diff --git a/src/main/resources/liquibase/2.7.x.x/site_information.xml b/src/main/resources/liquibase/2.7.x.x/site_information.xml index a2780cf4b2..e054988166 100644 --- a/src/main/resources/liquibase/2.7.x.x/site_information.xml +++ b/src/main/resources/liquibase/2.7.x.x/site_information.xml @@ -1,58 +1,45 @@ - - - - SELECT count(*) FROM - clinlims.site_information WHERE name = 'validateAccessionNumber' - - - create validate accession number row in site information - - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.site_information WHERE name = 'customCriticalMessage' - - - create a custom critical message in site information - - - - - - - - - - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + SELECT count(*) FROM clinlims.site_information WHERE name = 'validateAccessionNumber' + + create validate accession number row in site information + + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.site_information WHERE name = 'customCriticalMessage' + + create a custom critical message in site information + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.7.x.x/support_reject_sample.xml b/src/main/resources/liquibase/2.7.x.x/support_reject_sample.xml index cea2f5889d..6c4d25e269 100644 --- a/src/main/resources/liquibase/2.7.x.x/support_reject_sample.xml +++ b/src/main/resources/liquibase/2.7.x.x/support_reject_sample.xml @@ -1,116 +1,84 @@ - - - - - - - - - - - add rejected column to sample_item table - - - - - - - - - - - - - SELECT COUNT(*) FROM - clinlims.status_of_sample WHERE name = 'Sample - Rejected' and - status_type = 'ANALYSIS' - - - - - SELECT COUNT(*) FROM - clinlims.status_of_sample WHERE name = 'Sample - Rejected' and - status_type = 'SAMPLE' - - - - Add sample rejected Analysis status - - - - - - - - - - - - - - - - - - - - - - - - SELECT count(*) FROM clinlims.menu - WHERE element_id = 'menu_reports_management_rejection' - - - Add Rejection report to the Reports Management menu - - - - - - - - - - - - - - - - - SELECT count(*) FROM - clinlims.dictionary WHERE dict_entry='Please submit another sample. - Need to re-test .' AND dictionary_category_id = (SELECT dc.id FROM - dictionary_category dc WHERE dc.name = 'resultRejectionReasons') - - - Remove 'Please submit another sample. Need to re-test .' From - the rejection Reasons - - - dict_entry='Please submit another sample. Need to re-test .' - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + + + + + + + add rejected column to sample_item table + + + + + + + + + + + + SELECT COUNT(*) FROM clinlims.status_of_sample WHERE name = 'Sample Rejected' and status_type = 'ANALYSIS' + + + SELECT COUNT(*) FROM clinlims.status_of_sample WHERE name = 'Sample Rejected' and status_type = 'SAMPLE' + + + Add sample rejected Analysis status + + + + + + + + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.menu WHERE element_id = 'menu_reports_management_rejection' + + Add Rejection report to the Reports Management menu + + + + + + + + + + + + + + + + SELECT count(*) FROM clinlims.dictionary WHERE dict_entry='Please submit another sample. Need to re-test .' AND dictionary_category_id = (SELECT dc.id FROM dictionary_category dc WHERE dc.name = 'resultRejectionReasons') + + Remove 'Please submit another sample. Need to re-test .' From the rejection Reasons + + + dict_entry='Please submit another sample. Need to re-test .' + + diff --git a/src/main/resources/liquibase/2.8.x.x/add_antimicrobial_resistance_test_column.xml b/src/main/resources/liquibase/2.8.x.x/add_antimicrobial_resistance_test_column.xml index 8d0d085f61..7bfb41181e 100644 --- a/src/main/resources/liquibase/2.8.x.x/add_antimicrobial_resistance_test_column.xml +++ b/src/main/resources/liquibase/2.8.x.x/add_antimicrobial_resistance_test_column.xml @@ -1,48 +1,41 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - - - - Add Antimicrobial Resistance column to test table - - - - + + + + + + + + Add Antimicrobial Resistance column to test table + + + + - - - - SELECT COUNT(*) FROM clinlims.menu - WHERE element_id = - 'menu_reports_whonet_export' - - - - Add menu entry for whonet export - - - - - - - - - - - - + + + SELECT COUNT(*) FROM clinlims.menu WHERE element_id = + 'menu_reports_whonet_export' + + Add menu entry for whonet export + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.8.x.x/base.xml b/src/main/resources/liquibase/2.8.x.x/base.xml index e7c7bec030..fbce73441b 100644 --- a/src/main/resources/liquibase/2.8.x.x/base.xml +++ b/src/main/resources/liquibase/2.8.x.x/base.xml @@ -1,40 +1,27 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.8.x.x/calculated_value.xml b/src/main/resources/liquibase/2.8.x.x/calculated_value.xml index 6cbdeee73d..17f564d57d 100644 --- a/src/main/resources/liquibase/2.8.x.x/calculated_value.xml +++ b/src/main/resources/liquibase/2.8.x.x/calculated_value.xml @@ -1,184 +1,162 @@ - - - - - - - create calculation table - - - - - - - - - - - - - - - - - - - - - - - - - - - create calculation_operation table - - - - - - - - - - - - - - - - - - - - - - - - create result_calculation table - - - - - - - - - - - - - - - - - - - - - create test_operations table - - - - - - - - - - - - - - create test_result_map table - - - - - - - - - - - - - - - - - add result_calculated Column to analysis table - - - - - - - - - - - - - - - - - - add note column to calculation table - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + + + create calculation table + + + + + + + + + + + + + + + + + + + + + + + + + + + create calculation_operation table + + + + + + + + + + + + + + + + + + + + + + + + create result_calculation table + + + + + + + + + + + + + + + + + + + + + create test_operations table + + + + + + + + + + + + + + create test_result_map table + + + + + + + + + + + + + + + + + add result_calculated Column to analysis table + + + + + + + + + + + + + + + + + + add note column to calculation table + + + + diff --git a/src/main/resources/liquibase/2.8.x.x/cytology.xml b/src/main/resources/liquibase/2.8.x.x/cytology.xml index abc510262e..40c8f244f2 100644 --- a/src/main/resources/liquibase/2.8.x.x/cytology.xml +++ b/src/main/resources/liquibase/2.8.x.x/cytology.xml @@ -1,391 +1,335 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - - - - create cytology_specimen_adequacy table - - - - - - - - - - - - - - - - - create cytology_specimen_adequacy_value table - - - - - - + + + + + + + + create cytology_specimen_adequacy table + + + + + + + + + + + + + + + + + create cytology_specimen_adequacy_value table + + + + + + - - - - - - - create cytology_sample table - - - - - - - - - - - - - - - - - - - + + + + + + + create cytology_sample table + + + + + + + + + + + + + + + + + + + - - - - - - - create cytology_slide table - - - - - - - - - - - - - - - - + + + + + + + create cytology_slide table + + + + + + + + + + + + + + + + + select count(*) from clinlims.test_section where name = 'Cytology'; + + + + + + + + + + + + + + + + + + + + - select count(*) from - clinlims.test_section where name = 'Cytology'; - + + + + + SELECT COUNT(*) FROM clinlims.system_role WHERE name = 'Cytopathologist' + + + Create Cytopathologist Role and permission for pages + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - + + + select count(*) from clinlims.dictionary_category where description = 'Cytology Specimen Adequacy - Satisfactory'; + + + adds Cytology adequacy in dictionary_category - - - + + + + + + + + + + + + + + + - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Cytopathologist' - + + + + + + + create cytology_diagnosis table + + + + + + + + + + + + + + + + create cytology_diagnosis_result_map table + + + + + + + + + + + + + - - Create Cytopathologist Role and permission for pages - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + add columns to the cytology_sample table + + + + + - - + + + select count(*) from clinlims.dictionary_category where name = 'cytology_epithelial_cell_abnomalit_squamous'; + + + adds Cytology Diagnosis Results in dictionary_category - select count(*) from - clinlims.dictionary_category where description = 'Cytology Specimen - Adequacy - Satisfactory'; - - - - adds Cytology adequacy in dictionary_category - - - - - - - - - - - - - - - - - - - - - - - - create cytology_diagnosis table - - - - - - - - - - - - - - - - create cytology_diagnosis_result_map table - - - - - - - - - - - - - - - - - - - - - add columns to the cytology_sample table - - - - - - - - - - select count(*) from - clinlims.dictionary_category where name = - 'cytology_epithelial_cell_abnomalit_squamous'; - - - - adds Cytology Diagnosis Results in dictionary_category - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - create cytology_report table - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + create cytology_report table + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.8.x.x/desynchronous_objects.xml b/src/main/resources/liquibase/2.8.x.x/desynchronous_objects.xml index aecaa68a4d..d36a55ed81 100644 --- a/src/main/resources/liquibase/2.8.x.x/desynchronous_objects.xml +++ b/src/main/resources/liquibase/2.8.x.x/desynchronous_objects.xml @@ -1,20 +1,21 @@ - - - - - - - create desynchronized column for provider - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + + + create desynchronized column for provider + + + + diff --git a/src/main/resources/liquibase/2.8.x.x/enable_client_registry_search.xml b/src/main/resources/liquibase/2.8.x.x/enable_client_registry_search.xml index 799ac2c537..0691ca4adf 100644 --- a/src/main/resources/liquibase/2.8.x.x/enable_client_registry_search.xml +++ b/src/main/resources/liquibase/2.8.x.x/enable_client_registry_search.xml @@ -1,32 +1,26 @@ - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + - - - - select count(*) from - clinlims.site_information where name = 'enableClientRegistry'; - - - - add Config to enable client registry search - - - - - - - - - - - - + + + select count(*) from clinlims.site_information where name = 'enableClientRegistry'; + + add Config to enable client registry search + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.8.x.x/immunohistochemistry.xml b/src/main/resources/liquibase/2.8.x.x/immunohistochemistry.xml index 9783aec6ed..a20496a00c 100644 --- a/src/main/resources/liquibase/2.8.x.x/immunohistochemistry.xml +++ b/src/main/resources/liquibase/2.8.x.x/immunohistochemistry.xml @@ -1,3102 +1,2475 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - + - - 8:ab895f74386ecc421575297f4641e78b - - - - - - create immunohistochemistry table - - - - - - - - - - - - - - - + + 8:ab895f74386ecc421575297f4641e78b + + + + + + create immunohistochemistry table + + + + + + + + + + + + + + + - - + + + select count(*) from clinlims.test_section where name = 'Immunohistochemistry'; + + Add Immunohistochemistry test section + + + + + + + + + + + + + + + + + + + - select count(*) from - clinlims.test_section where name = 'Immunohistochemistry'; - + + + + + + + create immunohistochemistry_report table + + + + + + + + + + + + + - - Add Immunohistochemistry test section - - - - - - - - - - - - - - - - - - - + + + + + + + add columns to the immunohistochemistry_sample table + + + + + + + + - - - - - - - create immunohistochemistry_report table - - - - - - - - - - - - - + + 8:08ff7e2e5eb4c04bd2b7f5bb869f5b14 + + select count(*) from clinlims.type_of_sample where description = 'Immunohistochemistry specimen'; + + add immunohistochemistry sample type info + + + + + + + + + + + + + + + + + - - - - - - - add columns to the immunohistochemistry_sample table - - - - - - - - + + 8:0fb458f9d4381982c866b642617489ba + + + select count(*) from clinlims.test where description = 'Anti-Pan Keratin'; + + + add immunohistochemistry test and sample type info + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select count(*) from clinlims.dictionary_category where name = 'ihc_breast_cancer_report_intensity'; + + + adds Breast Cancer Hormone Receptor Status Report Parameter Lists in dictionary_category - - 8:08ff7e2e5eb4c04bd2b7f5bb869f5b14 - - - select count(*) from - clinlims.type_of_sample where description = 'Immunohistochemistry - specimen'; - - - - add immunohistochemistry sample type info - - - - - - - - - - - - - - - - - - - - 8:0fb458f9d4381982c866b642617489ba - - - - select count(*) from clinlims.test - where description = 'Anti-Pan Keratin'; - - - - add immunohistochemistry test and sample type info - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - select count(*) from - clinlims.dictionary_category where name = - 'ihc_breast_cancer_report_intensity'; - - - - adds Breast Cancer Hormone Receptor Status Report Parameter - Lists in dictionary_category - - - - - - - - - - - - - - - - - - - - - - - - - - - select count(*) from - clinlims.dictionary where dict_entry = 'Strong'; - - - - add default IHC Intensity Options in Dictionary - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + select count(*) from clinlims.dictionary where dict_entry = 'Strong'; + + + add default IHC Intensity Options in Dictionary + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.8.x.x/lab_number_alphanum_update.xml b/src/main/resources/liquibase/2.8.x.x/lab_number_alphanum_update.xml index 617af6fc04..4882cbf497 100644 --- a/src/main/resources/liquibase/2.8.x.x/lab_number_alphanum_update.xml +++ b/src/main/resources/liquibase/2.8.x.x/lab_number_alphanum_update.xml @@ -1,75 +1,57 @@ - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + - - - - select count(*) from - clinlims.site_information where name = 'alphanumAccessionPrefix'; - - - - add alphanum lab number info - - - - - - - - - - - - - - - - - - - - - - - - - - - - - name = 'acessionFormat' - - - - - - select count(*) from - clinlims.site_information where name = 'acessionFormat' AND value = - 'SiteYearNum'; - - - - - - - name = 'acessionFormat' AND value = 'SiteYearNum' - - + + + select count(*) from clinlims.site_information where name = 'alphanumAccessionPrefix'; + + add alphanum lab number info + + + + + + + + + + + + + + + + + + + + + + + + + + + + + name = 'acessionFormat' + + + + + select count(*) from clinlims.site_information where name = 'acessionFormat' AND value = 'SiteYearNum'; + + + + + name = 'acessionFormat' AND value = 'SiteYearNum' + + diff --git a/src/main/resources/liquibase/2.8.x.x/landing_page_config.xml b/src/main/resources/liquibase/2.8.x.x/landing_page_config.xml index ac76916241..f9f8740299 100644 --- a/src/main/resources/liquibase/2.8.x.x/landing_page_config.xml +++ b/src/main/resources/liquibase/2.8.x.x/landing_page_config.xml @@ -1,31 +1,26 @@ - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + - - - - select count(*) from - clinlims.site_information where name = 'requireLabUnitAtLogin'; - - - - add Config to require Lab Unit At Login - - - - - - - - - - - - + + + select count(*) from clinlims.site_information where name = 'requireLabUnitAtLogin'; + + add Config to require Lab Unit At Login + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.8.x.x/loinc.xml b/src/main/resources/liquibase/2.8.x.x/loinc.xml index 6aaf50c340..a2a704baa9 100644 --- a/src/main/resources/liquibase/2.8.x.x/loinc.xml +++ b/src/main/resources/liquibase/2.8.x.x/loinc.xml @@ -1,81 +1,78 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - add loinc codes to many tests - - - name = 'White Blood Cells Count (WBC)' AND (loinc is null OR - loinc = '') - - - - name = 'Red Blood Cells Count (RBC)' AND (loinc is null OR - loinc = '') - - - - name = 'Hemoglobin' AND (loinc is null OR loinc = '') - - - - name = 'Hematocrit' AND (loinc is null OR loinc = '') - - - - name = 'Medium corpuscular volum' AND (loinc is null OR loinc - = '') - - - - name = 'Platelets' AND (loinc is null OR loinc = '') - - - - name = 'Neutrophiles' AND (loinc is null OR loinc = '') - - - - name = 'Neutrophiles (%)' AND (loinc is null OR loinc = '') - - - - name = 'Lymphocytes (Abs)' AND (loinc is null OR loinc = '') - - - - name = 'Lymphocytes (%)' AND (loinc is null OR loinc = '') - - - - name = 'Monocytes (Abs)' AND (loinc is null OR loinc = '') - - - - name = 'Monocytes (%)' AND (loinc is null OR loinc = '') - - - - name = 'Eosinophiles' AND (loinc is null OR loinc = '') - - - - name = 'Eosinophiles (%)' AND (loinc is null OR loinc = '') - - - - name = 'Basophiles' AND (loinc is null OR loinc = '') - - - - name = 'Basophiles (%)' AND (loinc is null OR loinc = '') - - + + + + add loinc codes to many tests + + + name = 'White Blood Cells Count (WBC)' AND (loinc is null OR loinc = '') + + + + name = 'Red Blood Cells Count (RBC)' AND (loinc is null OR loinc = '') + + + + name = 'Hemoglobin' AND (loinc is null OR loinc = '') + + + + name = 'Hematocrit' AND (loinc is null OR loinc = '') + + + + name = 'Medium corpuscular volum' AND (loinc is null OR loinc = '') + + + + name = 'Platelets' AND (loinc is null OR loinc = '') + + + + name = 'Neutrophiles' AND (loinc is null OR loinc = '') + + + + name = 'Neutrophiles (%)' AND (loinc is null OR loinc = '') + + + + name = 'Lymphocytes (Abs)' AND (loinc is null OR loinc = '') + + + + name = 'Lymphocytes (%)' AND (loinc is null OR loinc = '') + + + + name = 'Monocytes (Abs)' AND (loinc is null OR loinc = '') + + + + name = 'Monocytes (%)' AND (loinc is null OR loinc = '') + + + + name = 'Eosinophiles' AND (loinc is null OR loinc = '') + + + + name = 'Eosinophiles (%)' AND (loinc is null OR loinc = '') + + + + name = 'Basophiles' AND (loinc is null OR loinc = '') + + + + name = 'Basophiles (%)' AND (loinc is null OR loinc = '') + + diff --git a/src/main/resources/liquibase/2.8.x.x/menu.xml b/src/main/resources/liquibase/2.8.x.x/menu.xml index 9c61703ea2..fe8f4553b0 100644 --- a/src/main/resources/liquibase/2.8.x.x/menu.xml +++ b/src/main/resources/liquibase/2.8.x.x/menu.xml @@ -1,425 +1,337 @@ - - - - - - SELECT COUNT(*) FROM clinlims.menu - WHERE element_id = 'menu_billing' - - - - create billing tab menu option - - - - - - - - - - - - - - 8:620478311cf02d94f80878d0f8ab3a1b - - - - SELECT COUNT(*) FROM clinlims.menu - WHERE element_id = 'menu_nonconformity' - - - - update nonconform tab menu option - - - element_id IN ('menu_nonconformity', - 'menu_non_conforming_report', 'menu_non_conforming_view', - 'menu_non_conforming_view') - - - name='Non Conformity tab' - - - - - 8:ee04bcb56f3968937708c47b637e7149 - - - - SELECT COUNT(*) FROM clinlims.menu - WHERE element_id = 'menu_patient' - - - - update patient tab menu option - - - - - - - - - - - - - - element_id IN ('menu_patient_create') - - - - element_id IN ('menu_patient', 'menu_patient_add_or_edit', - 'menu_patient_study', 'menu_patient_create', - 'menu_patient_create_initial', 'menu_patient_create_double', - 'menu_patient_edit', 'menu_patient_consult') - - - name='Patient management tab' - - - - - - - - SELECT COUNT(*) FROM clinlims.menu - WHERE element_id = 'menu_sample_create' - - - - update study tab menu option - - - element_id IN ('menu_sample_create', - 'menu_sample_create_initial', 'menu_sample_create_double', - 'menu_sample_consult', 'menu_patient_create', - 'menu_patient_create_initial', 'menu_patient_create_double', - 'menu_patient_edit', 'menu_patient_consult', 'menu_reports_study', - 'menu_reports_patients', 'menu_reports_arv', - 'menu_reports_arv_initial1', 'menu_reports_arv_initial2', - 'menu_reports_arv_followup1', 'menu_reports_arv_followup2', - 'menu_reports_eid', 'menu_reports_eid_version1', - 'menu_reports_eid_version2', 'menu_reports_indeterminate', - 'menu_reports_indeterminate_version1', - 'menu_reports_indeterminate_version2', - 'menu_reports_indeterminate_location', 'menu_reports_special', - 'menu_reports_patient_collection', - 'menu_reports_patient_associated', 'menu_reports_indicator', - 'menu_reports_indicator_performance', - 'menu_reports_validation_backlog.study', - 'menu_reports_nonconformity.study', - 'menu_reports_nonconformity_date.study', - 'menu_reports_nonconformity_section.study', - 'menu_reports_nonconformity_notification.study', - 'menu_reports_followupRequired_ByLocation.study', - 'menu_reports_export', 'menu_reports_auditTrail.study', - 'menu_reports_arv_all', 'menu_reports_vl', - 'menu_reports_vl_version1', 'menu_reports_nonconformity.Labno', - 'menu_resultvalidation_study', 'menu_resultvalidation_immunology', - 'menu_resultvalidation_biochemistry', - 'menu_resultvalidation_serology', 'menu_resultvalidation_dnapcr', - 'menu_resultvalidation_virology', 'menu_resultvalidation_viralload', - 'menu_resultvalidation_genotyping') - - - name='Study Management tab' - - - - - delete unused menu option - - name='Data Submission' - - - name='Data Sub URL' - - - - - - - - SELECT COUNT(*) FROM clinlims.menu - WHERE element_id = 'menu_pathology' - - - - insert pathology tab menu option - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM clinlims.menu - WHERE element_id = 'menu_immunochem' - - - - insert immunochem tab menu option - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM clinlims.menu - WHERE element_id = 'menu_cytology' - - - - insert immunochem tab menu option - - - - - - - - - - - - - - - - - - - - - - - - update results search menu options - - - - - - - - - - - - - - parent_id=(SELECT id FROM clinlims.menu WHERE element_id = - 'menu_results_search') - - - element_id='menu_results_search' - - - - - update order of top level menu - - - element_id='menu_home' - - - - element_id='menu_sample' - - - - element_id='menu_patient' - - - - element_id='menu_nonconformity' - - - - element_id='menu_workplan' - - - - element_id='menu_pathology' - - - - element_id='menu_immunochem' - - - - element_id='menu_cytology' - - - - element_id='menu_results' - - - - element_id='menu_resultvalidation' - - - - element_id='menu_reports' - - - - element_id='menu_administration' - - - - element_id='menu_billing' - - - - element_id='menu_help' - - - - - update action url of report urls - - - element_id='menu_reports_routine' - - - - element_id='menu_reports_study' - - - - - update results search menu options - - element_id='menu_results_search_testdate' - - - - - add column to track if Menu shows up in old UI - - - - - - element_id in ('menu_billing', 'menu_patienthistory', - 'menu_pathology', 'menu_pathologydashboard', 'menu_immunochem', - 'menu_immunochemdashboard', 'menu_cytology', - 'menu_cytologydashboard', 'menu_results_search_testdate') - - - - - Update pathology menu to remove dashboard submenu and add - direct URL - - - element_id='menu_pathologydashboard' - - - - - element_id='menu_pathology' - - - - - Update cytology menu to remove dashboard submenu and add - direct URL - - element_id='menu_cytologydashboard' - - - - element_id='menu_cytology' - - - - - Update immunochemistry menu to remove dashboard submenu and - add direct URL - - element_id='menu_immunochemdashboard' - - - - element_id='menu_immunochem' - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + SELECT COUNT(*) FROM clinlims.menu WHERE element_id = 'menu_billing' + + + create billing tab menu option + + + + + + + + + + + + + + 8:620478311cf02d94f80878d0f8ab3a1b + + + SELECT COUNT(*) FROM clinlims.menu WHERE element_id = 'menu_nonconformity' + + + update nonconform tab menu option + + + element_id IN ('menu_nonconformity', 'menu_non_conforming_report', 'menu_non_conforming_view', 'menu_non_conforming_view') + + + name='Non Conformity tab' + + + + + 8:ee04bcb56f3968937708c47b637e7149 + + + SELECT COUNT(*) FROM clinlims.menu WHERE element_id = 'menu_patient' + + + update patient tab menu option + + + + + + + + + + + + + + element_id IN ('menu_patient_create') + + + + element_id IN ('menu_patient', 'menu_patient_add_or_edit', 'menu_patient_study', 'menu_patient_create', 'menu_patient_create_initial', 'menu_patient_create_double', 'menu_patient_edit', 'menu_patient_consult') + + + name='Patient management tab' + + + + + + + SELECT COUNT(*) FROM clinlims.menu WHERE element_id = 'menu_sample_create' + + + update study tab menu option + + + element_id IN ('menu_sample_create', 'menu_sample_create_initial', 'menu_sample_create_double', 'menu_sample_consult', 'menu_patient_create', 'menu_patient_create_initial', 'menu_patient_create_double', 'menu_patient_edit', 'menu_patient_consult', 'menu_reports_study', 'menu_reports_patients', 'menu_reports_arv', 'menu_reports_arv_initial1', 'menu_reports_arv_initial2', 'menu_reports_arv_followup1', 'menu_reports_arv_followup2', 'menu_reports_eid', 'menu_reports_eid_version1', 'menu_reports_eid_version2', 'menu_reports_indeterminate', 'menu_reports_indeterminate_version1', 'menu_reports_indeterminate_version2', 'menu_reports_indeterminate_location', 'menu_reports_special', 'menu_reports_patient_collection', 'menu_reports_patient_associated', 'menu_reports_indicator', 'menu_reports_indicator_performance', 'menu_reports_validation_backlog.study', 'menu_reports_nonconformity.study', 'menu_reports_nonconformity_date.study', 'menu_reports_nonconformity_section.study', 'menu_reports_nonconformity_notification.study', 'menu_reports_followupRequired_ByLocation.study', 'menu_reports_export', 'menu_reports_auditTrail.study', 'menu_reports_arv_all', 'menu_reports_vl', 'menu_reports_vl_version1', 'menu_reports_nonconformity.Labno', 'menu_resultvalidation_study', 'menu_resultvalidation_immunology', 'menu_resultvalidation_biochemistry', 'menu_resultvalidation_serology', 'menu_resultvalidation_dnapcr', 'menu_resultvalidation_virology', 'menu_resultvalidation_viralload', 'menu_resultvalidation_genotyping') + + + name='Study Management tab' + + + + + delete unused menu option + + name='Data Submission' + + + name='Data Sub URL' + + + + + + + SELECT COUNT(*) FROM clinlims.menu WHERE element_id = 'menu_pathology' + + + insert pathology tab menu option + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM clinlims.menu WHERE element_id = 'menu_immunochem' + + + insert immunochem tab menu option + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM clinlims.menu WHERE element_id = 'menu_cytology' + + + insert immunochem tab menu option + + + + + + + + + + + + + + + + + + + + + + + + update results search menu options + + + + + + + + + + + + + + parent_id=(SELECT id FROM clinlims.menu WHERE element_id = 'menu_results_search') + + + element_id='menu_results_search' + + + + + update order of top level menu + + + element_id='menu_home' + + + + element_id='menu_sample' + + + + element_id='menu_patient' + + + + element_id='menu_nonconformity' + + + + element_id='menu_workplan' + + + + element_id='menu_pathology' + + + + element_id='menu_immunochem' + + + + element_id='menu_cytology' + + + + element_id='menu_results' + + + + element_id='menu_resultvalidation' + + + + element_id='menu_reports' + + + + element_id='menu_administration' + + + + element_id='menu_billing' + + + + element_id='menu_help' + + + + + update action url of report urls + + + element_id='menu_reports_routine' + + + + element_id='menu_reports_study' + + + + + update results search menu options + + element_id='menu_results_search_testdate' + + + + + add column to track if Menu shows up in old UI + + + + + + element_id in ('menu_billing', 'menu_patienthistory', 'menu_pathology', 'menu_pathologydashboard', 'menu_immunochem', 'menu_immunochemdashboard', 'menu_cytology', 'menu_cytologydashboard', 'menu_results_search_testdate') + + + + + Update pathology menu to remove dashboard submenu and add direct URL + + + element_id='menu_pathologydashboard' + + + + + element_id='menu_pathology' + + + + + Update cytology menu to remove dashboard submenu and add direct URL + + element_id='menu_cytologydashboard' + + + + element_id='menu_cytology' + + + + + Update immunochemistry menu to remove dashboard submenu and add direct URL + + element_id='menu_immunochemdashboard' + + + + element_id='menu_immunochem' + + diff --git a/src/main/resources/liquibase/2.8.x.x/method.xml b/src/main/resources/liquibase/2.8.x.x/method.xml index 49f865eab1..b7e9654f91 100644 --- a/src/main/resources/liquibase/2.8.x.x/method.xml +++ b/src/main/resources/liquibase/2.8.x.x/method.xml @@ -1,21 +1,20 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - + - - - - - - - Add Method to analysis - - - - + + + + + + + Add Method to analysis + + + + diff --git a/src/main/resources/liquibase/2.8.x.x/notification_subscriptions.xml b/src/main/resources/liquibase/2.8.x.x/notification_subscriptions.xml index 2f0bd57783..c75c6ff2b1 100644 --- a/src/main/resources/liquibase/2.8.x.x/notification_subscriptions.xml +++ b/src/main/resources/liquibase/2.8.x.x/notification_subscriptions.xml @@ -1,33 +1,32 @@ - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - + + diff --git a/src/main/resources/liquibase/2.8.x.x/notifications.xml b/src/main/resources/liquibase/2.8.x.x/notifications.xml index 307a061da2..9f60f555bf 100644 --- a/src/main/resources/liquibase/2.8.x.x/notifications.xml +++ b/src/main/resources/liquibase/2.8.x.x/notifications.xml @@ -1,30 +1,30 @@ - + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - + + diff --git a/src/main/resources/liquibase/2.8.x.x/panel_item_fix.xml b/src/main/resources/liquibase/2.8.x.x/panel_item_fix.xml index 41696efa1b..487403a6bf 100644 --- a/src/main/resources/liquibase/2.8.x.x/panel_item_fix.xml +++ b/src/main/resources/liquibase/2.8.x.x/panel_item_fix.xml @@ -1,27 +1,22 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - - SELECT COUNT(*) FROM - clinlims.panel_item WHERE test_id NOT IN (SELECT id - FROM - clinlims.test) - - - - - remove panel items that test no longer exist in db - - test_id NOT IN (SELECT id FROM clinlims.test) - - + + + + + SELECT COUNT(*) FROM clinlims.panel_item WHERE test_id NOT IN (SELECT id FROM clinlims.test) + + + + remove panel items that test no longer exist in db + + test_id NOT IN (SELECT id FROM clinlims.test) + + diff --git a/src/main/resources/liquibase/2.8.x.x/pathology.xml b/src/main/resources/liquibase/2.8.x.x/pathology.xml index d68ecd4be3..c7e79df15a 100644 --- a/src/main/resources/liquibase/2.8.x.x/pathology.xml +++ b/src/main/resources/liquibase/2.8.x.x/pathology.xml @@ -1,726 +1,633 @@ - - - - - 8:eac63071615be9c32c03b86d7581a724 - - - - - SELECT COUNT(*) FROM - clinlims.system_role WHERE name = 'Pathologist' - - - - Create Pathologist Role and permission for pages - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 8:ab895f74386ecc421575297f4641e78b - - - - - - create pathology_sample table - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - create pathology_slide table - - - - - - - - - - - - - - - 8:db30ce3786f7fe7b51dbe0a521add066 - - - - - - create pathology_block table - - - - - - - - - - - - - - 8:22d5e9de87e5470c6339d61a9d3dbbb2 - - - select count(*) from - clinlims.dictionary_category where description = 'Pathology - - Techniques'; - - - - adds in dictionary_type - - - - - - - - - - - - - - - - - - - - - - - - - - 8:dcab853f5da450cfcf7bbf2d73b32e61 - - - select count(*) from - clinlims.dictionary where dict_entry = 'Haematoxylin and Eosin'; - - - - adds in dictionary - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 8:0338784daadfe387c31f8908862f6527 - - - - - - create pathology_conclusion table - - - - - - - - - - - - - - - 8:070091f25271aea6e563021fe959ec91 - - - - - - create pathology_request table - - - - - - - - - - - - - - - - 8:07fddd977980ec9ef2cdc6ca5b834c76 - - - - - - create pathology_technique table - - - - - - - - - - - - - - - 8:6a0c6def79318d1db9029350ac199aa8 - - - - - - - - - - - - 8:6f6b101b0516d89666917fbddca40094 - - - - - - - - - - - - - - - 8:6ea7ba511bcc261dc818d7fa2a2e57b8 - - - select count(*) from - clinlims.test_section where name = 'Pathology'; - - - - - - - - - - - - - - - - - - - - - - - - - 8:0f7785e668a69e7676ec4c50ec2c7f91 - - - select count(*) from - clinlims.program where name = 'Routine Testing'; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - add test_section_id column to the program table - - - - - - - - - - - - - create pathology_report table - - - - - - - - - - - - - - - - 8:0f174323c09cd2b45a5fc041d18f9c1f - - - select count(*) from clinlims.test - where description = 'Histopathology examination'; - - - - add pathology test info - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 8:0f174323c09cd2b45a5fc041d18f9c1f - - - select count(*) from - clinlims.type_of_sample where description = 'Histopathology - specimen'; - - - - add pathology test info - - - - - - - - - - - - - - - - - - - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + + + + 8:eac63071615be9c32c03b86d7581a724 + + + + SELECT COUNT(*) FROM clinlims.system_role WHERE name = 'Pathologist' + + + Create Pathologist Role and permission for pages + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 8:ab895f74386ecc421575297f4641e78b + + + + + + create pathology_sample table + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + create pathology_slide table + + + + + + + + + + + + + + + 8:db30ce3786f7fe7b51dbe0a521add066 + + + + + + create pathology_block table + + + + + + + + + + + + + + 8:22d5e9de87e5470c6339d61a9d3dbbb2 + + select count(*) from clinlims.dictionary_category where description = 'Pathology - Techniques'; + + + adds in dictionary_type + + + + + + + + + + + + + + + + + + + + + + + + + + 8:dcab853f5da450cfcf7bbf2d73b32e61 + + select count(*) from clinlims.dictionary where dict_entry = 'Haematoxylin and Eosin'; + + + adds in dictionary + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 8:0338784daadfe387c31f8908862f6527 + + + + + + create pathology_conclusion table + + + + + + + + + + + + + + + 8:070091f25271aea6e563021fe959ec91 + + + + + + create pathology_request table + + + + + + + + + + + + + + + + 8:07fddd977980ec9ef2cdc6ca5b834c76 + + + + + + create pathology_technique table + + + + + + + + + + + + + + + 8:6a0c6def79318d1db9029350ac199aa8 + + + + + + + + + + + + 8:6f6b101b0516d89666917fbddca40094 + + + + + + + + + + + + + + + 8:6ea7ba511bcc261dc818d7fa2a2e57b8 + + select count(*) from clinlims.test_section where name = 'Pathology'; + + + + + + + + + + + + + + + + + + + + + + + 8:0f7785e668a69e7676ec4c50ec2c7f91 + + select count(*) from clinlims.program where name = 'Routine Testing'; + + + + + + + + + + + + + + + + + + + + + + + + + + + + add test_section_id column to the program table + + + + + + + + + + + + + create pathology_report table + + + + + + + + + + + + + + + + 8:0f174323c09cd2b45a5fc041d18f9c1f + + select count(*) from clinlims.test where description = 'Histopathology examination'; + + add pathology test info + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 8:0f174323c09cd2b45a5fc041d18f9c1f + + select count(*) from clinlims.type_of_sample where description = 'Histopathology specimen'; + + add pathology test info + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.8.x.x/reflex_rule.xml b/src/main/resources/liquibase/2.8.x.x/reflex_rule.xml index 07adb77801..685aa665c0 100644 --- a/src/main/resources/liquibase/2.8.x.x/reflex_rule.xml +++ b/src/main/resources/liquibase/2.8.x.x/reflex_rule.xml @@ -1,140 +1,127 @@ - - 8:9844944289511738612313fb87d1e7cd - - - - - - create reflex_rule table - - - - - - - - - - - - - - - - - - - 8:3efa783f20de09d84c060757b166a812 - - - - - - create reflex_rule_action table - - - - - - - - - - - - - - - - - - - - - - - - 8:de5decf5688d5302521a51f7a26987e9 - - - - - - create reflex_rule_condition table - - - - - - - - - - - - - - - - - - - - - - - - - - - - add Non Dictionary Value Column to test_reflex table - - - - - - - - - - - - - - - add InternalNote and External Column to test_reflex table - - - - - - - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + + 8:9844944289511738612313fb87d1e7cd + + + + + + create reflex_rule table + + + + + + + + + + + + + + + + + + + 8:3efa783f20de09d84c060757b166a812 + + + + + + create reflex_rule_action table + + + + + + + + + + + + + + + + + + + + + + + + 8:de5decf5688d5302521a51f7a26987e9 + + + + + + create reflex_rule_condition table + + + + + + + + + + + + + + + + + + + + + + + + + + + + add Non Dictionary Value Column to test_reflex table + + + + + + + + + + + + + + + add InternalNote and External Column to test_reflex table + + + + + + + diff --git a/src/main/resources/liquibase/2.8.x.x/rename_test_for_csv_export.xml b/src/main/resources/liquibase/2.8.x.x/rename_test_for_csv_export.xml index dceb9d96d3..d66a86e8fc 100644 --- a/src/main/resources/liquibase/2.8.x.x/rename_test_for_csv_export.xml +++ b/src/main/resources/liquibase/2.8.x.x/rename_test_for_csv_export.xml @@ -1,26 +1,21 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - SELECT COUNT(*) FROM localization - WHERE french = 'Determine' AND english = - 'Murex' ; - - - - rename Murex/Determine to not collide with other Murex test - in CSV export - - - french = 'Determine' AND english = 'Murex' - - + + + + SELECT COUNT(*) FROM localization WHERE french = 'Determine' AND english = 'Murex' ; + + + rename Murex/Determine to not collide with other Murex test in CSV export + + + french = 'Determine' AND english = 'Murex' + + diff --git a/src/main/resources/liquibase/2.8.x.x/sample_program_audit_trail.xml b/src/main/resources/liquibase/2.8.x.x/sample_program_audit_trail.xml index 45a552eb4e..21e6d3d1de 100644 --- a/src/main/resources/liquibase/2.8.x.x/sample_program_audit_trail.xml +++ b/src/main/resources/liquibase/2.8.x.x/sample_program_audit_trail.xml @@ -1,49 +1,45 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - + - - - - SELECT COUNT(*) FROM - clinlims.reference_tables WHERE name - = 'PATHOLOGY_SAMPLE' - - - - Create program sample reference tables entries - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + SELECT COUNT(*) FROM clinlims.reference_tables WHERE name + = 'PATHOLOGY_SAMPLE' + + Create program sample reference tables entries + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.8.x.x/sample_types.xml b/src/main/resources/liquibase/2.8.x.x/sample_types.xml index 831738fcd8..78dba318c3 100644 --- a/src/main/resources/liquibase/2.8.x.x/sample_types.xml +++ b/src/main/resources/liquibase/2.8.x.x/sample_types.xml @@ -1,1040 +1,667 @@ - + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> + - - + + + select count(*) from clinlims.type_of_sample where description = 'Tissue antemortem'; + + add pathology test info + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select count(*) from clinlims.type_of_sample where local_abbrev = 'TAM'; + + + + + description='Tissue post mortem' + + - select count(*) from - clinlims.type_of_sample where description = 'Tissue antemortem'; - + + + + select count(*) + from clinlims.sampletype_test + where sample_type_id = ( select id from clinlims.type_of_sample where description = 'Tissue antemortem' LIMIT 1) + AND test_id = ( select id from clinlims.test where description = 'Anti-Pan Keratin' LIMIT 1) + ; + + + add immunohistochemistry tests to antemortem + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - add pathology test info - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - select count(*) from - clinlims.type_of_sample where local_abbrev = 'TAM'; - - - - - - - description='Tissue post mortem' - - - - - - - - select count(*) - from - clinlims.sampletype_test - where sample_type_id = ( select id from - clinlims.type_of_sample where - description = 'Tissue antemortem' LIMIT - 1) - AND test_id = ( select id from clinlims.test where description = - 'Anti-Pan Keratin' LIMIT 1) - ; - - - - add immunohistochemistry tests to antemortem - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - select count(*) - from - clinlims.sampletype_test - where sample_type_id = ( select id from - clinlims.type_of_sample where - description = 'Tissue post mortem' - LIMIT 1) - AND test_id = ( select id from clinlims.test where - description = - 'Anti-Pan Keratin' LIMIT 1) - ; - - - - add immunohistochemistry tests to post mortem - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + select count(*) + from clinlims.sampletype_test + where sample_type_id = ( select id from clinlims.type_of_sample where description = 'Tissue post mortem' LIMIT 1) + AND test_id = ( select id from clinlims.test where description = 'Anti-Pan Keratin' LIMIT 1) + ; + + + add immunohistochemistry tests to post mortem + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/liquibase/2.8.x.x/update_default_setting.xml b/src/main/resources/liquibase/2.8.x.x/update_default_setting.xml index ee670d9fa2..0e644b5051 100644 --- a/src/main/resources/liquibase/2.8.x.x/update_default_setting.xml +++ b/src/main/resources/liquibase/2.8.x.x/update_default_setting.xml @@ -1,127 +1,97 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog + http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - + + + + + + SELECT COUNT(*) FROM system_user_role WHERE system_user_id = (SELECT id FROM system_user WHERE login_name = 'admin') AND role_id = (SELECT id FROM system_role WHERE name = 'Cytopathologist') ; + + + Add default Program Global Roles to admin User + + + + + + + + + + + + select count(*) from clinlims.site_information where name = 'restrictFreeTextProviderEntry' AND description = 'should national ID be required on the patient entry screen'; + + + + + name = 'restrictFreeTextProviderEntry' AND description = 'should national ID be required on the patient entry screen' + + + + + + + SELECT COUNT(*) FROM clinlims.system_module WHERE name = 'Report:RoutineExport' + + + Create AdminReportPrint Module - - SELECT COUNT(*) FROM - system_user_role WHERE system_user_id = (SELECT id - FROM system_user - WHERE login_name = 'admin') AND role_id = (SELECT - id FROM system_role - WHERE name = 'Cytopathologist') ; - - - - Add default Program Global Roles to admin User - - - - - - - - - - - - - select count(*) from - clinlims.site_information where name = - 'restrictFreeTextProviderEntry' AND description = 'should national - ID be required on the patient entry screen'; - - - - - - - name = 'restrictFreeTextProviderEntry' AND description = - 'should national ID be required on the patient entry screen' - - - - - - - - SELECT COUNT(*) FROM - clinlims.system_module WHERE name = - 'Report:RoutineExport' - - - - Create AdminReportPrint Module - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SELECT COUNT(*) FROM clinlims.menu - WHERE action_url = - '/Report?type=routine&report=CISampleRoutineExport' AND - element_id = 'menu_reports_export_routine' ; - - - - update action url of Routine Export report - - - element_id='menu_reports_export_routine' - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SELECT COUNT(*) FROM clinlims.menu WHERE action_url = '/Report?type=routine&report=CISampleRoutineExport' AND element_id = 'menu_reports_export_routine' ; + + + update action url of Routine Export report + + + element_id='menu_reports_export_routine' + + diff --git a/src/main/resources/liquibase/3.1.x.x/base.xml b/src/main/resources/liquibase/3.1.x.x/base.xml index b142ebc8f4..d0fc67e425 100644 --- a/src/main/resources/liquibase/3.1.x.x/base.xml +++ b/src/main/resources/liquibase/3.1.x.x/base.xml @@ -1,8 +1,8 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - + diff --git a/src/main/resources/liquibase/3.1.x.x/panel_loinc.xml b/src/main/resources/liquibase/3.1.x.x/panel_loinc.xml index 68ae0fec9c..d3607c112e 100644 --- a/src/main/resources/liquibase/3.1.x.x/panel_loinc.xml +++ b/src/main/resources/liquibase/3.1.x.x/panel_loinc.xml @@ -1,20 +1,20 @@ - - - - 8:bc3102f55e943fbbb61b69324a5d6eb0 - - - - - - Adds loinc columns to panel - - - - + + + + 8:bc3102f55e943fbbb61b69324a5d6eb0 + + + + + + Adds loinc columns to panel + + + + diff --git a/src/main/resources/liquibase/base-changelog.xml b/src/main/resources/liquibase/base-changelog.xml index 63c00e2d5c..4a018ce791 100644 --- a/src/main/resources/liquibase/base-changelog.xml +++ b/src/main/resources/liquibase/base-changelog.xml @@ -1,18 +1,18 @@ + xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd"> - - - - - - - - - - + + + + + + + + + +