Skip to content

Commit

Permalink
#382 - Change display and translations structure for criteria and con…
Browse files Browse the repository at this point in the history
…cepts

- adapt swagger file
  • Loading branch information
michael-82 committed Jan 15, 2025
1 parent 35da68a commit 3ff801d
Showing 1 changed file with 21 additions and 59 deletions.
80 changes: 21 additions & 59 deletions src/main/resources/static/v3/api-docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/ElasticSearchResultEntryWithRelations"
$ref: "#/components/schemas/RelationsEntry"
401:
description: Unauthorized - please login first
403:
Expand Down Expand Up @@ -1317,19 +1317,6 @@ components:
type: string
examples:
- translated entry
DisplayEntry:
type: object
required:
- original
properties:
original:
type: string
examples:
- the original entry
translations:
type: array
items:
$ref: "#/components/schemas/TranslationEntry"
ElasticSearchResult:
type: object
properties:
Expand All @@ -1341,45 +1328,11 @@ components:
type: array
items:
$ref: "#/components/schemas/ElasticSearchResultEntry"
ElasticSearchResultEntryWithRelations:
RelationsEntry:
type: object
properties:
name:
type: string
examples:
- Diabetes Mellitus
contextualizedTermcodeHash:
type: string
format: uuid
examples:
- 203e04cd-4f0a-321b-b1ad-9ec6d211e0a8
availability:
description: Not sure if we want this as numeric value, percentage or just boolean?
type: integer
minimum: 0
maximum: 100
examples:
- 94
context:
type: string
examples:
- Diagnosis
terminology:
type: string
examples:
- icd-10
termcode:
type: string
examples:
- E10-E14
kdsModule:
type: string
examples:
- Condition
translations:
type: array
items:
$ref: "#/components/schemas/ElasticSearchTranslationEntry"
display:
$ref: "#/components/schemas/DisplayEntry"
parents:
type: array
items:
Expand All @@ -1388,12 +1341,16 @@ components:
type: array
items:
$ref: "#/components/schemas/ElasticSearchRelationEntry"
relatedTerms:
type: array
items:
$ref: "#/components/schemas/ElasticSearchRelationEntry"
ElasticSearchResultEntry:
type: object
properties:
display:
$ref: "#/components/schemas/DisplayEntry"
contextualizedTermcodeHash:
id:
type: string
format: uuid
examples:
Expand All @@ -1420,6 +1377,10 @@ components:
type: string
examples:
- Condition
selectable:
type: boolean
examples:
- true
ElasticSearchTranslationEntry:
type: object
properties:
Expand Down Expand Up @@ -1509,16 +1470,18 @@ components:
id:
type: string
format: uuid
uiprofile:
type: array
items:
$ref: "#/components/schemas/UiProfileEntry"
display:
$ref: "#/components/schemas/DisplayEntry"
context:
$ref: "#/components/schemas/TermCode"
termCodes:
type: array
items:
$ref: "#/components/schemas/TermCode"
context:
$ref: "#/components/schemas/TermCode"
uiprofile:
type: array
items:
$ref: "#/components/schemas/UiProfileEntry"
UiProfileEntry:
type: object
properties:
Expand Down Expand Up @@ -1606,7 +1569,6 @@ components:
- ProfileObservationLaboruntersuchung
display:
$ref: "#/components/schemas/DisplayEntry"

module:
type: string
examples:
Expand Down

0 comments on commit 3ff801d

Please sign in to comment.