Skip to content

Commit 99573d9

Browse files
committed
Fixed script to use relative parent id and added notice to adjust script to database
1 parent 397ef3c commit 99573d9

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

db/update/v3.3.0.sql

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,17 @@ SELECT MAX(id)
3131
INTO @largest_id
3232
FROM moPat.configuration;
3333

34+
-- Configuration may change with changing groups added. Please make sure this fits to your server config.
35+
-- Adjust configuration_group_id to fit to your FHIR config group. Copy the values for all available FHIR configs on the server
36+
-- You can find the ids with this query:
37+
-- SELECT id FROM moPat.configuration_group WHERE configuration_group.label_message_code LIKE '%FHIR';
38+
-- On a server with no additional config groups, the id should be 11
3439
INSERT INTO moPat.configuration (`id`, `type`, `configuration_group_id`, `parent`, `position`, `attribute`, `configuration_type`, `description_message_code`, `class`, `label_message_code`, `test_method`, `update_method`, `uuid`, `value`, `pattern`) VALUES
3540
(@largest_id + 1, 'GENERAL', 1, NULL, 16, 'imprintText', 'RICH_TEXT', 'configuration.description.imprint', 'GLOBAL', 'configuration.label.imprint', NULL, NULL, 'ff890137-bfb5-4e3a-a2a0-b51b7ff6b088', 'Universität Münster<br>Schlossplatz 2, 48149 Münster<br>Telephone: +49 (251) 83-0<br>Fax: +49 (251) 83-3 20 90<br>E-mail: verwaltung@uni-muenster.de<br><br>The University of Münster is a statutory body and an institution of the Land of North Rhine- Westphalia. It is represented by the Rector, Professor Dr. Johannes Wessels.<br><br>Turnover tax identification number: DE 126118759<br><br>Edited in accordance with §5 TMG by:<br>Univ.-Prof. Dr. rer. nat. Dominik Heider<br>Institute of Medical Informatics<br>Albert-Schweizer-Campus 1, Building A11<br>48149 Münster, Germany<br>Telephone: +49 (251) 83-55262<br>E-Mail:&nbsp;<a href="mailto:imi@uni-muenster.de" style="color: rgb(13, 110, 253);">imi@uni-muenster.de</a>', NULL),
3641
(@largest_id + 2, 'GENERAL', 11, NULL, 6, 'exportFHIRViaHL7v2', 'BOOLEAN', 'configuration.description.exportFHIRViaHL7v2', 'de.imi.mopat.io.impl.EncounterExporterTemplateFHIR', 'configuration.label.exportFHIRViaHL7v2', NULL, NULL, '08f48ba4-790b-47fa-9236-81956785bfda', false, NULL),
37-
(@largest_id + 3, 'GENERAL', 11, 87, 7, 'FHIRViaHL7v2Host', 'STRING', NULL, 'de.imi.mopat.io.impl.EncounterExporterTemplateFHIR', 'configuration.label.FHIRViaHL7v2Host', NULL, NULL, 'a32a5e14-6c7d-4922-ba31-4c1274c7717c', '', NULL),
38-
(@largest_id + 4, 'GENERAL', 11, 87, 8, 'FHIRViaHL7v2Port', 'INTEGER', NULL, 'de.imi.mopat.io.impl.EncounterExporterTemplateFHIR', 'configuration.label.FHIRViaHL7v2Port', NULL, NULL, '2393b1de-39d3-49a3-a2a8-dc0ab3c196e3', NULL, NULL),
39-
(@largest_id + 5, 'GENERAL', 11, 87, 9, 'FHIRViaHL7v2SendingFacility', 'STRING', NULL, 'de.imi.mopat.io.impl.EncounterExporterTemplateFHIR', 'configuration.label.ODMviaHL7SendingFacility', NULL, NULL, '87e35940-97e2-4c3e-ae6c-b35ea65717e3', '', NULL),
40-
(@largest_id + 6, 'GENERAL', 11, 87, 10, 'FHIRViaHL7v2ReceivingApplication', 'STRING', NULL, 'de.imi.mopat.io.impl.EncounterExporterTemplateFHIR', 'configuration.label.ODMviaHL7ReceivingApplication', NULL, NULL, 'd500a3a1-c1ce-4091-ace9-4557481dba37', '', NULL),
41-
(@largest_id + 7, 'GENERAL', 11, 87, 11, 'FHIRViaHL7v2ReceivingFacility', 'STRING', NULL, 'de.imi.mopat.io.impl.EncounterExporterTemplateFHIR', 'configuration.label.ODMviaHL7ReceivingFacility', NULL, NULL, '613cc529-396e-4a06-b785-158c15629d02', '', NULL),
42-
(@largest_id + 8, 'GENERAL', 11, 87, 11, 'FHIRViaHL7v2OBRFillerOrderNumber', 'STRING', NULL, 'de.imi.mopat.io.impl.EncounterExporterTemplateFHIR', 'configuration.label.ODMviaHL7OBRFillerOrderNumber', NULL, NULL, 'e78a6310-b2b1-4ee7-aea0-378ab33c3f73', '', NULL);
42+
(@largest_id + 3, 'GENERAL', 11, @largest_id + 2, 7, 'FHIRViaHL7v2Host', 'STRING', NULL, 'de.imi.mopat.io.impl.EncounterExporterTemplateFHIR', 'configuration.label.FHIRViaHL7v2Host', NULL, NULL, 'a32a5e14-6c7d-4922-ba31-4c1274c7717c', '', NULL),
43+
(@largest_id + 4, 'GENERAL', 11, @largest_id + 2, 8, 'FHIRViaHL7v2Port', 'INTEGER', NULL, 'de.imi.mopat.io.impl.EncounterExporterTemplateFHIR', 'configuration.label.FHIRViaHL7v2Port', NULL, NULL, '2393b1de-39d3-49a3-a2a8-dc0ab3c196e3', NULL, NULL),
44+
(@largest_id + 5, 'GENERAL', 11, @largest_id + 2, 9, 'FHIRViaHL7v2SendingFacility', 'STRING', NULL, 'de.imi.mopat.io.impl.EncounterExporterTemplateFHIR', 'configuration.label.ODMviaHL7SendingFacility', NULL, NULL, '87e35940-97e2-4c3e-ae6c-b35ea65717e3', '', NULL),
45+
(@largest_id + 6, 'GENERAL', 11, @largest_id + 2, 10, 'FHIRViaHL7v2ReceivingApplication', 'STRING', NULL, 'de.imi.mopat.io.impl.EncounterExporterTemplateFHIR', 'configuration.label.ODMviaHL7ReceivingApplication', NULL, NULL, 'd500a3a1-c1ce-4091-ace9-4557481dba37', '', NULL),
46+
(@largest_id + 7, 'GENERAL', 11, @largest_id + 2, 11, 'FHIRViaHL7v2ReceivingFacility', 'STRING', NULL, 'de.imi.mopat.io.impl.EncounterExporterTemplateFHIR', 'configuration.label.ODMviaHL7ReceivingFacility', NULL, NULL, '613cc529-396e-4a06-b785-158c15629d02', '', NULL),
47+
(@largest_id + 8, 'GENERAL', 11, @largest_id + 2, 11, 'FHIRViaHL7v2OBRFillerOrderNumber', 'STRING', NULL, 'de.imi.mopat.io.impl.EncounterExporterTemplateFHIR', 'configuration.label.ODMviaHL7OBRFillerOrderNumber', NULL, NULL, 'e78a6310-b2b1-4ee7-aea0-378ab33c3f73', '', NULL);

0 commit comments

Comments
 (0)