Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change structure of dse profile_tree and profile details for translations #380

Closed
juliangruendner opened this issue Oct 4, 2024 · 1 comment · Fixed by #381
Closed
Assignees

Comments

@juliangruendner
Copy link
Contributor

The structure of the dse profile_tree and profile details has to be changed to account for translations in de and en.

For the profile tree this will change each display entry

from

"display": "Diagnosen"

**to:**
```json
"display": {
        "original": "Diagnose",
        "translations": [
          {
            "language": "de-DE",
            "value": "Diagnosen"
          },
          {
            "language": "en-US",
            "value": "Diagnosis"
          }
        ]
      }
```


For the **profile details** this will change the **_display_** entry of the detail info:

**from:**
```json
"display": "Fall Kontakt mit einer Gesundheitseinrichtung"
```

**to:**
```json
"display": {
      "original": "MII PR Fall Kontakt mit einer Gesundheitseinrichtung",
      "translations": [
        {
          "language": "de-DE",
          "value": "Fall - Kontakt mit einer Gesundheitseinrichtung"
        },
        {
          "language": "en-US",
          "value": "Treatment case - Encounter with Health Care Facility"
        }
      ]
    }
```


For the **profile details** this will change each **_field_** entry 

**from:**
```json
{
      "id": "Encounter.status",
      "name": "Status",
      "display": "geplant | angekommen | triagiert | in Gang | pausiert | beendet | abgebrochen +",
      "type": "code"
    }
```

**to:**
```json
{
        "id": "Encounter.status",
        "display": {
          "original": "status",
          "translations": [
            {
              "language": "de-DE",
              "value": "Status"
            },
            {
              "language": "en-US",
              "value": "status"
            }
          ]
        },
        "description": {
          "original": "VERPFLICHTEND, required Binding auf http://fhir.de/ValueSet/EncounterStatusDe",
          "translations": [
            {
              "language": "de-DE",
              "value": "geplant | im Gange | beurlaubt | abgeschlossen | abgebrochen | fehlerhafte Eingabe | unbekannt"
            },
            {
              "language": "en-US",
              "value": "planned | in-progress | onleave | finished | cancelled | entered-in-error | unknown"
            }
          ]
        },
        "type": "code"
      }
```
@juliangruendner
Copy link
Contributor Author

juliangruendner commented Oct 4, 2024

@michael-82 - examples for the new details sql and profile_tree.json
R__load_latest_dse_profiles.sql.txt
profile_tree.json

michael-82 added a commit that referenced this issue Oct 8, 2024
…ranslations

- modify DseProfileTreeNode according to changes in profile_tree.json
michael-82 added a commit that referenced this issue Oct 8, 2024
…ranslations

- modify DseProfile and Field according to changes in dse profile database entry
michael-82 added a commit that referenced this issue Oct 8, 2024
…ranslations

- modify DseProfile and Field according to changes in dse profile database entry
- modify DseProfileTreeNode according to changes in profile_tree.json
michael-82 added a commit that referenced this issue Oct 9, 2024
…ranslations

- modify DseProfile and Field according to changes in dse profile database entry
- modify DseProfileTreeNode according to changes in profile_tree.json
michael-82 added a commit that referenced this issue Oct 17, 2024
…ranslations

- modify DseProfile and Field according to changes in dse profile database entry
- modify DseProfileTreeNode according to changes in profile_tree.json
michael-82 added a commit that referenced this issue Oct 17, 2024
…ranslations

- update ontology to v3.0.0-test.7
michael-82 added a commit that referenced this issue Oct 17, 2024
…ranslations

- add display changes to profile_tree.json for integration tests
michael-82 added a commit that referenced this issue Oct 17, 2024
…ranslations (#381)

* #380 - Change structure of dse profile_tree and profile details for translations

- update ontology to v3.0.0-test.11
- modify DseProfile and Field according to changes in dse profile database entry
- modify DseProfileTreeNode according to changes in profile_tree.json
juliangruendner added a commit that referenced this issue Oct 20, 2024
* No issue - bump version

* Bump sq2cql and ontology version

* #288 - Load availability files from file(s) (#364)

#288 - Load availability files from file(s)

* Add Update availability script and example file

* #367 - Sort unavailable criteria to the bottom

- add a function score query that boosts all queries with availability > 0 by 100 in score. It does not make a difference if the availability is 10 or 10000, all are boosted by the same fixed value

* #366 - Builtin swagger doc is broken

- move files back to /v3/api-docs since swagger ui wants to load a config file from there anyways. Supplying a custom config file under another folder did not work
- update springdoc-openapi-starter-webmvc-ui to 2.6.0 so it can handle openapi 3.1.0

* #370 - Update fhir-resources dependency

- update to  6.3.26

* #371 - Update spring boot to 3.3.4

- self-explanatory

* #363 - Add "results" to GET query/{queryId} response

- Add the totalNumberOfPatients from the saved query object back to the response when reading a query
- the demanded queryId from the issue is already present as "id" - so nothing to do here imho

* #376 - Allow Empty Search with filters (#377)

#376 - Allow Empty Search with filters

- Change score modification to add an offset instead of multiplying when availability > 0
- remove the inner "must" part of the bool query when searchterm is empty

* bump ontology version

* No issue - update undertow to 2.3.17.Final to fix CVE-2024-7885

* #380 - Change structure of dse profile_tree and profile details for translations (#381)

* #380 - Change structure of dse profile_tree and profile details for translations

- update ontology to v3.0.0-test.11
- modify DseProfile and Field according to changes in dse profile database entry
- modify DseProfileTreeNode according to changes in profile_tree.json

* Bump ontology version to v3.0.0-alpha and add ne aliases to sq2cql config

* Release v6.0.0-alpha.3

---------

Co-authored-by: Michael Folz <folz@med.uni-frankfurt.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants