diff --git a/masterdata/configuration/liquibase/nursingTaskTypes.xml b/masterdata/configuration/liquibase/nursingTaskTypes.xml new file mode 100644 index 000000000..9d2f1934b --- /dev/null +++ b/masterdata/configuration/liquibase/nursingTaskTypes.xml @@ -0,0 +1,58 @@ + + + + + + + + SELECT COUNT(*) FROM concept where short_name='Nursing Activity System' and + description='Nursing Activity System Generated Task Type'; + + + SELECT COUNT(*) FROM concept_name where name ='Automated Nursing Tasks'; + + Add concept Nursing Activity System + insert into concept (retired, short_name, description, datatype_id, class_id, is_set, creator, date_created, + changed_by, date_changed, uuid) + values (0, 'Nursing Activity System', 'Nursing Activity System Generated Task Type', + (select concept_datatype_id from concept_datatype where name = 'Text'), + (select concept_class_id from concept_class where name = 'Misc'), + 0, 1, now(), 1, now(), uuid()); + + insert into concept_name (concept_id, name, locale, locale_preferred, creator, date_created, + concept_name_type, voided, uuid) + values ((select concept_id from concept where short_name='Nursing Activity System'), + 'Automated Nursing Tasks', 'en', 1, 1, now(), 'FULLY_SPECIFIED', 0, uuid()); + + + + + + + SELECT COUNT(*) FROM concept where short_name='Nursing Activity' and description='Nursing Activity Task Type'; + + + SELECT COUNT(*) FROM concept_name where name ='Manual Nursing Tasks'; + + + Add concept for Manual Nursing Tasks + + insert into concept (retired, short_name, description, datatype_id, class_id, is_set, creator, date_created, + changed_by, date_changed, uuid) + values (0, 'Nursing Activity', 'Nursing Activity Task Type', + (select concept_datatype_id from concept_datatype where name = 'Text'), + (select concept_class_id from concept_class where name = 'Misc'), + 0, 1, now(), 1, now(), uuid()); + + insert into concept_name (concept_id, name, locale, locale_preferred, creator, date_created, + concept_name_type, voided, uuid) + values ((select concept_id from concept where short_name='Nursing Activity'), + 'Manual Nursing Tasks', 'en', 1, 1, now(), 'FULLY_SPECIFIED', 0, uuid()); + + +