Skip to content
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

#13183 Add New Influenza Disease Types and Modify Display for SORMAS-… #13188

Merged
merged 2 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions sormas-api/src/main/java/de/symeda/sormas/api/Disease.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ public enum Disease
YAWS_ENDEMIC_SYPHILIS(true, false, false, true, false, 0, true, false, false),
MATERNAL_DEATHS(true, false, false, true, false, 0, true, false, false),
PERINATAL_DEATHS(true, false, false, true, false, 0, true, false, false),
INFLUENZA_A(true, false, true, false, false, 0, true, false, false),
INFLUENZA_B(true, false, true, false, false, 0, true, false, false),
INFLUENZA(true, true, true, false, false, 0, true, false, false),
INFLUENZA_A(false, false, true, false, false, 0, true, false, false),
INFLUENZA_B(false, false, true, false, false, 0, true, false, false),
H_METAPNEUMOVIRUS(true, false, true, false, false, 0, true, false, false),
RESPIRATORY_SYNCYTIAL_VIRUS(true, false, true, false, false, 0, true, false, false),
PARAINFLUENZA_1_4(true, false, true, false, false, 0, true, false, false),
Expand Down
1 change: 1 addition & 0 deletions sormas-api/src/main/resources/enum.properties
Original file line number Diff line number Diff line change
Expand Up @@ -501,6 +501,7 @@ Disease.YAWS_ENDEMIC_SYPHILIS = Yaws and Endemic Syphilis
Disease.MATERNAL_DEATHS = Maternal Deaths
Disease.PERINATAL_DEATHS = Perinatal Deaths
Disease.CORONAVIRUS = COVID-19
Disease.INFLUENZA=Influenza
Disease.INFLUENZA_A = Influenza A
Disease.INFLUENZA_B = Influenza B
Disease.H_METAPNEUMOVIRUS = H.metapneumovirus
Expand Down
13 changes: 13 additions & 0 deletions sormas-backend/src/main/resources/sql/sormas_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -13698,4 +13698,17 @@ CREATE TRIGGER delete_history_trigger
ALTER TABLE documenttemplates_history OWNER TO sormas_user;

INSERT INTO schema_version (version_number, comment, upgradeneeded) VALUES (553, 'Add "Disease" Attribute to Document Templates for Filtering #13160', true);

-- 2024-11-18 Add New Influenza Disease Types and Modify Display for SORMAS-LuxembourgAdd #13183
INSERT INTO customizableenumvalue(id, uuid, changedate, creationdate, datatype, value, caption, diseases, properties)
VALUES (nextval('entity_seq'), generate_base32_uuid(), now(), now(), 'DISEASE_VARIANT', 'A', 'Type A',
'INFLUENZA', jsonb_build_object('hasDetails', true));
INSERT INTO customizableenumvalue(id, uuid, changedate, creationdate, datatype, value, caption, diseases)
VALUES (nextval('entity_seq'), generate_base32_uuid(), now(), now(), 'DISEASE_VARIANT', 'B', 'Type B',
'INFLUENZA');
INSERT INTO customizableenumvalue(id, uuid, changedate, creationdate, datatype, value, caption, diseases, properties)
VALUES (nextval('entity_seq'), generate_base32_uuid(), now(), now(), 'DISEASE_VARIANT', 'AB', 'Type A+B',
'INFLUENZA', jsonb_build_object('hasDetails', true));

INSERT INTO schema_version (version_number, comment) VALUES (554, 'Add New Influenza Disease Types and Modify Display for SORMAS-LuxembourgAdd #13183');
-- *** Insert new sql commands BEFORE this line. Remember to always consider _history tables. ***
Loading