Skip to content

Commit

Permalink
#13183 Add New Influenza Disease Types and Modify Display for SORMAS-…
Browse files Browse the repository at this point in the history
…Luxembourg
  • Loading branch information
Levente Gal committed Nov 19, 2024
1 parent 14977ab commit c805d29
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
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, true, 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
14 changes: 14 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,18 @@ 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', 'INFLUENZA_TYPE_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', 'INFLUENZA_TYPE_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', 'INFLUENZA_TYPE_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. ***

0 comments on commit c805d29

Please sign in to comment.