summaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorPaul-Christian Volkmer2026-09-21 11:43:03 +0200
committerGitHub2026-09-21 11:43:03 +0200
commitd9961a9baccaff511662b1aa1de18bdd02f94f5e (patch)
treeb4d47b8eed6aaceebaead375e8265e5f245bff82 /src/main/resources
parentb0fb01d12fcadf86cabbe71b16cce60fb88b0ca4 (diff)
feat: add switch/routing to send dedicated data to nNGM (#322)
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/application-dev.yml8
-rw-r--r--src/main/resources/db/migration/mariadb/V0_18_0_1__Destination.sql2
-rw-r--r--src/main/resources/db/migration/postgresql/V0_18_0_1__Destination.sql2
-rw-r--r--src/main/resources/templates/fragments.html5
-rw-r--r--src/main/resources/templates/report.html2
5 files changed, 16 insertions, 3 deletions
diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml
index 6c1e51f..77bf157 100644
--- a/src/main/resources/application-dev.yml
+++ b/src/main/resources/application-dev.yml
@@ -119,6 +119,12 @@ app:
# input-topic: test_input
# output-topic: test_output
# output-response-topic: test_response
+ switch:
+ nngm:
+ uri: https://mvh-test.medicalsyn.com/api/v1.0/mvh-import/import-dnpm
+ api-key: a12b34decacdefg1213
+ icd10:
+ - C34
security:
admin-user: admin
admin-password: "{noop}very-secret"
@@ -126,4 +132,4 @@ app:
server:
port: 8000
- shutdown: immediate \ No newline at end of file
+ shutdown: immediate
diff --git a/src/main/resources/db/migration/mariadb/V0_18_0_1__Destination.sql b/src/main/resources/db/migration/mariadb/V0_18_0_1__Destination.sql
new file mode 100644
index 0000000..a65c016
--- /dev/null
+++ b/src/main/resources/db/migration/mariadb/V0_18_0_1__Destination.sql
@@ -0,0 +1,2 @@
+ALTER TABLE request ADD COLUMN destination varchar(16) DEFAULT 'UNKNOWN';
+UPDATE request SET destination = 'UNKNOWN';
diff --git a/src/main/resources/db/migration/postgresql/V0_18_0_1__Destination.sql b/src/main/resources/db/migration/postgresql/V0_18_0_1__Destination.sql
new file mode 100644
index 0000000..a65c016
--- /dev/null
+++ b/src/main/resources/db/migration/postgresql/V0_18_0_1__Destination.sql
@@ -0,0 +1,2 @@
+ALTER TABLE request ADD COLUMN destination varchar(16) DEFAULT 'UNKNOWN';
+UPDATE request SET destination = 'UNKNOWN';
diff --git a/src/main/resources/templates/fragments.html b/src/main/resources/templates/fragments.html
index ea83ed2..1a7a257 100644
--- a/src/main/resources/templates/fragments.html
+++ b/src/main/resources/templates/fragments.html
@@ -54,7 +54,10 @@
<div th:if="${request.type.value == 'delete'}">
<span>🗑 Löschanfrage vom </span><time th:datetime="${request.processedAt}">[[ ${request.processedAt} ]]</time>
</div>
- <div sec:authorize="hasRole('USER') or hasRole('ADMIN')" th:if="${postInitialSubmissionBlock}">
+ <div class="destination" th:if="${request.destination.value == 'kafka'}">Kafka Broker</div>
+ <div class="destination" th:if="${request.destination.value == 'dnpm_dip'}">DNPM:DIP</div>
+ <div class="destination" th:if="${request.destination.value == 'nngm_api'}">nNGM-API</div>
+ <div class="accepted" sec:authorize="hasRole('USER') or hasRole('ADMIN')" th:if="${postInitialSubmissionBlock}">
<button class="btn btn-green" hx-swap="outerHTML" th:hx-target="${'#request_' + request.uuid}" th:hx-delete="@{/submission/{requestId}/accepted(requestId=${request.uuid})}" th:if="${ request.submissionType.value == 'initial' and (request.status.value == 'success' or request.status.value == 'warning') and request.submissionAccepted == true}" title="Doch keine Meldebestätigung - jetzt blockieren">
🔓 Bestätigte Initialmeldung
</button>
diff --git a/src/main/resources/templates/report.html b/src/main/resources/templates/report.html
index bdc7457..b739bbf 100644
--- a/src/main/resources/templates/report.html
+++ b/src/main/resources/templates/report.html
@@ -34,7 +34,7 @@
<td th:if="${issue.severity.value == 'error'}" class="bg-red"><small>[[ ${issue.severity} ]]</small></td>
<td th:if="${issue.severity.value == 'fatal'}" class="bg-red"><small>[[ ${issue.severity} ]]</small></td>
<td>
- <div class="issue-message">[[ ${issue.getMessage()} ]]</div>
+ <div class="issue-message">[[ ${issue.getMessageText()} ]]</div>
<div class="issue-path" th:if="${issue.path.isPresent()}">[[ ${issue.path.get()} ]]</div>
<div class="issue-path" th:if="${issue.path.isEmpty()}"><i>Keine Angabe</i></div>
</td>