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

Make order of ui-tree categories configurable via env var #219

Closed
juliangruendner opened this issue Oct 30, 2023 · 0 comments · Fixed by #220
Closed

Make order of ui-tree categories configurable via env var #219

juliangruendner opened this issue Oct 30, 2023 · 0 comments · Fixed by #220
Assignees

Comments

@juliangruendner
Copy link
Contributor

juliangruendner commented Oct 30, 2023

The order of the ui-tree categories should be configurable via an env var.

The env var input should replace the the SORTED_CATEGORIES variable in the TerminologyService class:

private static final List SORTED_CATEGORIES = List.of("Diagnose", "Einwilligung", "MII_PR_Consent_Einwilligung", "Bioprobe", "Laboruntersuchung", "Medikamentenverabreichung", "Person", "ProfileSpecimenBioprobe", "Prozedur");

The delimiter for the env var to seperate the ui categories can be chosen by the developer.

The default input for the var should be:
Diagnose, Prozedur, Person, Laboruntersuchung, Medikamente, Bioprobe, Einwilligung

delimiter to be replaced with developers choice of delimiter

Categories which cannot be found in the sort list should be appended at the end when the backend returns the categories

michael-82 added a commit that referenced this issue Nov 3, 2023
- add a new env variable "ONTOLOGY_ORDER"
- adapt test for get category
juliangruendner added a commit that referenced this issue Nov 9, 2023
…-make-order-of-ui-tree-categories-configurable-via-env-var

#219 - Make order of UI tree categories configurable via env var
@juliangruendner juliangruendner added this to the Release v4.1.0 milestone Nov 9, 2023
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