From 90778a0f1707c421897d80935ada1f4cd0d69a35 Mon Sep 17 00:00:00 2001 From: Rida Abou-Haidar Date: Wed, 27 Nov 2024 10:27:05 -0500 Subject: [PATCH] fixing errors --- SQL/0000-00-06-BiobankTables.sql | 15 ++++++++++++--- .../php/{BadRequest.php => badrequest.class.inc} | 0 2 files changed, 12 insertions(+), 3 deletions(-) rename modules/biobank/php/{BadRequest.php => badrequest.class.inc} (100%) diff --git a/SQL/0000-00-06-BiobankTables.sql b/SQL/0000-00-06-BiobankTables.sql index af9efd1d01f..9538bc11dc7 100644 --- a/SQL/0000-00-06-BiobankTables.sql +++ b/SQL/0000-00-06-BiobankTables.sql @@ -387,7 +387,16 @@ CREATE TABLE `biobank_container_shipment_rel` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; -- Insert units, processes, container status and shipment status -INSERT INTO `biobank_unit` VALUES (2,'mL'),(8,'piece'),(3,'x 10e6 cells'),(1,'µL'); +INSERT INTO `biobank_unit` VALUES (1,'mL'),(2,'µL'); +INSERT INTO `biobank_specimen_attribute_datatype` VALUES (1, 'text'),(2, 'number'),(3, 'date'),(4, 'time'),(5, 'boolean'); +INSERT INTO `biobank_specimen_protocol` VALUES (1, 'Blood Collection', 1, 1), (2, 'Blood Preparation', 2, 1), (3, 'Serum Collection', 1, 2); +INSERT INTO `biobank_specimen_type` VALUES (1,'Blood',0),(2,'Serum', 1); +INSERT INTO `biobank_specimen_type_unit_rel` VALUES (1, 1), (2, 2); +INSERT INTO `biobank_specimen_type_parent` VALUES (2, 1); +INSERT INTO `biobank_container_dimension` VALUES (1, 1, 1, 1, 1, 0, 0), (2, 10, 1, 10, 0, 1, 0), (3, 1, 0, 5, 0, 1, 0); +INSERT INTO `biobank_container_capacity` VALUES (1, 1, 1); +INSERT INTO `biobank_container_type` VALUES (1, 'Brand', 'Product Number 1', 'Vial', 1, 1, 1), (2, 'Brand', 'Product Number 2', 'Matrix Box', 0, null, 2), (3, 'Brand', 'Product Number 3', 'Rack', 0, null, 3); +INSERT INTO `biobank_specimen_type_container_type_rel` VALUES (1, 1), (2, 1); INSERT INTO `biobank_specimen_process` VALUES (2,'Analysis'),(1,'Collection'),(3,'Preparation'); -INSERT INTO `biobank_container_status` VALUES (1,'Available'),(4,'Discarded'),(3,'Dispensed'),(2,'Reserved'),(5,'Shipped'); -INSERT INTO `shipment_status` VALUES (10,'cancelled'),(1,'created'),(7,'received'),(13,'returned'),(4,'shipped'); +INSERT INTO `biobank_container_status` VALUES (1,'Available'),(4,'Discarded'),(3,'Dispensed'); +INSERT INTO `shipment_status` VALUES (1,'cancelled'),(2,'created'),(3,'received'),(4,'returned'),(5,'shipped'); diff --git a/modules/biobank/php/BadRequest.php b/modules/biobank/php/badrequest.class.inc similarity index 100% rename from modules/biobank/php/BadRequest.php rename to modules/biobank/php/badrequest.class.inc