From 64b16fc2aa78a49dce0bd625edbf601c0dc5575b Mon Sep 17 00:00:00 2001 From: Michael Folz Date: Tue, 14 Jan 2025 16:22:02 +0100 Subject: [PATCH] #382 - Change display and translations structure for criteria and concepts - fix wrong field names in Display record for elastic search documents - fix wrong values in cc_testdata.json --- .../terminology/es/model/Display.java | 4 ++-- .../feasibility_gui_backend/terminology/es/cc_testdata.json | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/de/numcodex/feasibility_gui_backend/terminology/es/model/Display.java b/src/main/java/de/numcodex/feasibility_gui_backend/terminology/es/model/Display.java index 6e10a011..d557effe 100644 --- a/src/main/java/de/numcodex/feasibility_gui_backend/terminology/es/model/Display.java +++ b/src/main/java/de/numcodex/feasibility_gui_backend/terminology/es/model/Display.java @@ -6,9 +6,9 @@ @Builder public record Display( String original, - @Field(name = "de-DE") + @Field(name = "de") String deDe, - @Field(name = "en-US") + @Field(name = "en") String enUs ) { } diff --git a/src/test/resources/de/numcodex/feasibility_gui_backend/terminology/es/cc_testdata.json b/src/test/resources/de/numcodex/feasibility_gui_backend/terminology/es/cc_testdata.json index dc01cd6f..f43fd4d9 100644 --- a/src/test/resources/de/numcodex/feasibility_gui_backend/terminology/es/cc_testdata.json +++ b/src/test/resources/de/numcodex/feasibility_gui_backend/terminology/es/cc_testdata.json @@ -1,6 +1,6 @@ {"index": {"_index": "codeable_concept", "_id": "A1.0"}} -{"termcode": {"code": "A1.0", "display": "foo", "system": "some-system", "version": 2010}, "display": {"original": "some-system", "en": "some-system", "de": "some-system"}, "value_sets": []} +{"termcode": {"code": "A1.0", "display": "foo", "system": "some-system", "version": 2010}, "display": {"original": "foo", "en": "foo", "de": "föö"}, "value_sets": []} {"index": {"_index": "codeable_concept", "_id": "A1.1"}} -{"termcode": {"code": "A1.1", "display": "bar", "system": "another-system", "version": 2012}, "display": {"original": "another-system", "en": "another-system", "de": "another-system"} ,"value_sets": ["some-value-set"]} +{"termcode": {"code": "A1.1", "display": "bar", "system": "another-system", "version": 2012}, "display": {"original": "bar", "en": "bar", "de": "bär"} ,"value_sets": ["some-value-set"]} {"index": {"_index": "codeable_concept", "_id": "A2.0"}} -{"termcode": {"code": "A2.0", "display": "baz", "system": "some-system", "version": 2023}, "display": {"original": "some-system", "en": "some-system", "de": "some-system"},"value_sets": []} +{"termcode": {"code": "A2.0", "display": "baz", "system": "some-system", "version": 2023}, "display": {"original": "baz", "en": "baz", "de": "bäz"},"value_sets": []}