-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[biobank] new module #9475
Open
HenriRabalais
wants to merge
16
commits into
aces:main
Choose a base branch
from
HenriRabalais:2024-11-18_biobankmodule
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[biobank] new module #9475
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
cfd881c
biobank module
ridz1208 9134deb
adding custom barcode generation
ridz1208 3642b3a
fix typo
ridz1208 4602e2d
trying to fix lint after adjustements
ridz1208 08a6696
fixing lint
ridz1208 156b19e
fixing lint
ridz1208 6296b4f
fixing lint
ridz1208 d3d499c
fixing lint
ridz1208 8aa0218
fixing lint
ridz1208 0e295ae
fixing lint
ridz1208 3406c63
fixed issues
ridz1208 0292427
Ignore js/ directory and remove it from version control
ridz1208 897680a
fixed issue
ridz1208 1fa1b9f
updated modal to include FormElement
ridz1208 257f039
removed nested forms
ridz1208 77dc340
reverted to aces/main modal
ridz1208 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
INSERT INTO modules (Name, Active) VALUES ('biobank', 'Y'); | ||
|
||
INSERT INTO `permissions` VALUES | ||
('biobank_specimen_view','View Specimen Data',(SELECT ID FROM modules WHERE Name='biobank'), 'View', '2'), | ||
('biobank_specimen_create','Create Specimens',(SELECT ID FROM modules WHERE Name='biobank'), 'Create', '2'), | ||
('biobank_specimen_edit','Edit Specimen Data',(SELECT ID FROM modules WHERE Name='biobank'), 'Edit', '2'), | ||
('biobank_container_view','View Container Data',(SELECT ID FROM modules WHERE Name='biobank'), 'View', '2'), | ||
('biobank_container_create','Create Containers',(SELECT ID FROM modules WHERE Name='biobank'), 'Create', '2'), | ||
('biobank_container_edit','Edit Container Data',(SELECT ID FROM modules WHERE Name='biobank'), 'Edit', '2'), | ||
('biobank_pool_view','View Pool Data',(SELECT ID FROM modules WHERE Name='biobank'), 'View', '2'), | ||
('biobank_pool_create','Create Pools',(SELECT ID FROM modules WHERE Name='biobank'), 'Create', '2'), | ||
('biobank_fullsiteaccess','Full Site Access',(SELECT ID FROM modules WHERE Name='biobank'), 'View', '2'), | ||
('biobank_fullprojectaccess','Full Project Access',(SELECT ID FROM modules WHERE Name='biobank'), 'View', '2'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
js/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# Biobank Module | ||
|
||
## Purpose | ||
The Biobank Module enables the management of biological specimens by providing functionalities for specimen tracking, container management, pooling, and shipment handling. It ensures standardized operations and maintains data integrity within the LORIS ecosystem. | ||
|
||
## Intended Users | ||
The primary users of the Biobank Module are: | ||
- Biobank Managers: Oversee the overall biobank operations, including specimen tracking and inventory management. | ||
- Laboratory Technicians: Handle the processing, storage, and preparation of biological specimens. | ||
- Researchers: Access and utilize specimens for various studies and experiments. | ||
- Site Coordinators: Ensure that specimens are correctly collected, processed, and integrated into the LORIS system across multiple sites. | ||
|
||
## Scope | ||
The Biobank Module facilitates the comprehensive management of biological specimens within the LORIS platform. Its functionalities include: | ||
|
||
- **Specimen Tracking:** Monitor the lifecycle of each specimen from collection to storage and shipment. | ||
- **Container Management:** Manage storage containers, including their types, capacities, and hierarchical relationships. | ||
- **Pooling:** Combine multiple specimens into pools for efficient processing and analysis. | ||
- **Shipment Handling:** Track the shipment of specimens, including logging shipment events and statuses. | ||
|
||
**NOT in scope:** | ||
|
||
- Automated quality control of specimens. | ||
- Integration with external laboratory information management systems (LIMS) beyond LORIS. | ||
|
||
## Permissions | ||
Access to the Biobank Module is controlled through specific permissions to ensure data security and appropriate access levels. | ||
|
||
| Permission Code | Description | Access Level | | ||
|-----------------------------------|------------------------------|---------------| | ||
| `biobank_specimen_view` | View Specimen Data | View | | ||
| `biobank_specimen_create` | Create Specimens | Create | | ||
| `biobank_specimen_edit` | Edit/Upload Specimen Data | Edit/Upload | | ||
| `biobank_container_view` | View Container Data | View | | ||
| `biobank_container_create` | Create Containers | Create | | ||
| `biobank_container_edit` | Edit Container Data | Edit | | ||
| `biobank_pool_view` | View Pool Data | View | | ||
| `biobank_pool_create` | Create Pools | Create | | ||
| `biobank_fullsiteaccess` | Full Site Access | View | | ||
| `biobank_fullprojectaccess` | Full Project Access | View | | ||
|
||
*Note: Ensure `Category` and `Access Level` align with your organization's permission schema.* | ||
|
||
## Configuration | ||
The module's functionality is supported by multiple configuration tables, each serving a specific purpose in managing specimens, containers, pools, and shipments. | ||
|
||
| Table | Configuration | Description | | ||
|---------------------------------------|-----------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| `biobank_specimen_type` | Specimen Types | **Defines various specimen types (e.g., Blood, RNA) and their relationships with parent specimen types via `biobank_specimen_type_parent`.** | | ||
| `biobank_container_capacity` | Container Capacity | **Defines the capacity of containers, specifying how many specimens each container can hold.** | | ||
| `biobank_container_dimension` | Container Dimensions | **Stores dimensional data of containers, including size and volume specifications.** | | ||
| `biobank_container_status` | Container Status | **Tracks the status of containers (e.g., Active, Inactive) to monitor their availability and usage.** | | ||
| `biobank_container_type` | Container Types | **Specifies types of containers used for storing specimens, linked to specimen types through `biobank_specimen_type_container_type_rel`.** | | ||
| `biobank_specimen_attribute` | Specimen Attributes | **Stores attributes related to specimens, such as concentration and quality metrics.** | | ||
| `biobank_specimen_attribute_datatype` | Specimen Attribute Datatypes | **Defines data types for specimen attributes to ensure consistent data entry and validation.** | | ||
| `biobank_specimen_protocol` | Specimen Protocols | **Associates specimens with specific collection and preparation protocols, ensuring standardized handling procedures.** | | ||
| `biobank_specimen_protocol_attribute_rel` | Specimen Protocol Attribute Relations | **Links specimen protocols to their attributes, maintaining data consistency and integrity.** | | ||
| `biobank_specimen_type_container_type_rel` | Specimen Type Container Type Relations | **Links specimen types to container types, ensuring appropriate container usage for each specimen type.** | | ||
| `biobank_specimen_type_parent` | Specimen Type Parent Relations | **Manages parent-child relationships between specimen types, allowing for hierarchical classification and organization.** | | ||
| `biobank_specimen_type_unit_rel` | Specimen Type Unit Relations | **Links specimen types to measurement units, ensuring consistent data entry for specimen measurements.** | | ||
| `biobank_unit` | Measurement Units | **Defines measurement units (e.g., µL, mL) used across the Biobank Module for consistent data entry and reporting.** | | ||
| `shipment_status` | Shipment Statuses | **Tracks the status of shipments (e.g., Pending, Shipped, Delivered) to monitor their progress and completion.** | | ||
| `shipment_type` | Shipment Types | **Defines different types of shipments (e.g., Internal, External) to categorize and manage shipping processes effectively.** | | ||
|
||
|
||
### Detailed Configuration Settings | ||
- **Specimen Types (`biobank_specimen_type`):** Defines various specimen types (e.g., Blood, RNA) and their relationships with parent specimen types via `biobank_specimen_type_parent`. | ||
|
||
- **Specimen Attributes (`biobank_specimen_attribute` & `biobank_specimen_attribute_datatype`):** Stores attributes related to specimens, such as concentration, quantification dates, and quality metrics. Data types are defined in `biobank_specimen_attribute_datatype`. | ||
|
||
- **Container Types (`biobank_container_type`):** Specifies types of containers used for storing specimens, linked to specimen types through `biobank_specimen_type_container_type_rel`. | ||
|
||
- **Measurement Units (`biobank_unit` & `biobank_specimen_type_unit_rel`):** Defines measurement units (e.g., µL, mL) and associates them with specimen types to ensure consistent data entry. | ||
|
||
- **Protocols (`biobank_specimen_protocol`):** Links specimens and pools to specific collection and preparation protocols, ensuring standardized handling procedures. | ||
|
||
- **Pools (`biobank_pool`):** Manages pools created from multiple specimens, allowing for efficient processing and aliquoting. | ||
|
||
- **Shipments (`shipment`, `shipment_log`, `shipment_status`, `shipment_type`):** Tracks the shipment of containers, including event logging for comprehensive tracking and accountability. | ||
|
||
- **Container Hierarchy (`biobank_container_parent`):** Manages parent-child relationships between containers to reflect storage hierarchies. | ||
|
||
- **Data Integrity (`biobank_specimen_protocol_attribute_rel`):** Ensures that specimen protocols are correctly linked to their attributes, maintaining data consistency. | ||
|
||
## Interactions with LORIS | ||
The Biobank Module integrates seamlessly with various components of the LORIS platform to enhance functionality and data management: | ||
|
||
- **Links:** Includes links to Session, Sites and Candidate modules. |
Binary file not shown.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The permissions ID is not necessary since this will be applied as an update patch.