Increase clinical_event.EVENT_TYPE size from 20 to 50 characters to a… #11698
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.
Title: Increase clinical_event.EVENT_TYPE column size to 50 characters to support longer event names (#11512)
Description:
This PR addresses the limitation of the EVENT_TYPE field in the clinical_event table being restricted to 20 characters. Users reported that this limits their ability to use descriptive event types like "Progressive Brain Metastasis".
The change increases the column size to VARCHAR(50) in the database schema to accommodate longer event names. This improves flexibility for clinical event data capture without affecting existing data constraints.
Details of changes:
Modified clinical_event table schema to change EVENT_TYPE from VARCHAR(20) to VARCHAR(50).
Ensured the change is backward-compatible and does not affect other components of the system.
For existing databases:
We need to create a new migration file or alter script that runs an ALTER TABLE statement like:
ALTER TABLE clinical_event MODIFY COLUMN EVENT_TYPE VARCHAR(50) NOT NULL;
Impact:
This change allows users to store more descriptive clinical event types and improves usability in clinical timelines or reports that use this data.