Skip to content

Commit

Permalink
deployment updated swagger added and RM updated
Browse files Browse the repository at this point in the history
  • Loading branch information
10alejospain committed May 7, 2023
1 parent ae9d717 commit 7bcb3cf
Show file tree
Hide file tree
Showing 6 changed files with 110 additions and 13 deletions.
6 changes: 6 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
YAMLs/
node_modules/
README.md
node_modules/
.git/
.gitignore
23 changes: 14 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ Enviroment variables

Usage
-----


FOSPS swagger with all the routes avaible [here](https://fosps.gravitatehealth.eu/swagger-fosps/?urls.primaryName=Terminology%20Service)


There is 3 endpoint avaible on [GET] \<base-url>/

| Endpoint | Description |
Expand All @@ -80,33 +85,33 @@ For each endpoint there is the /all function that gets every condition with the

- /problem-list/all
```JSON
...

{
"Health problem": "HIV-infection/AIDS",
"ICPC-2": "B90 HIV-infection/AIDS",
"URL": "https://www.rxreasoner.com/icpc2codes/B90"
},
...
}


```
- /allergies
```JSON
...

{
"Allergy": "Allergy to tree nut",
"SNOMED-SCITD": "48821000119104"
},
...
}


```
- /intollerances
```JSON
...

{
"Intollerance": "Intolerance to lactose",
"SNOMED-SCITD": "782415009"
},
...
}


```

Expand Down
3 changes: 2 additions & 1 deletion YAMLs/001_terminology-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ spec:
spec:
containers:
- name: terminology-svc
image: gravitate-registry.cr.de-fra.ionos.com/terminology
image: gravitate-registry.cr.de-fra.ionos.com/terminology:test
imagePullPolicy: Always
ports:
- containerPort: 3000
3 changes: 0 additions & 3 deletions YAMLs/002_terminology-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ apiVersion: v1
kind: Service
metadata:
name: terminology-svc
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '3000'
spec:
selector:
app: terminology-svc
Expand Down
2 changes: 2 additions & 0 deletions YAMLs/003_terminology-vs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ spec:
- match:
- uri:
prefix: /terminologies/icpc2/
rewrite:
uri: "/"
route:
- destination:
host: terminology-svc.default.svc.cluster.local
Expand Down
86 changes: 86 additions & 0 deletions openapi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
openapi: "3.0.1"
info:
title: Terminology list
version: MVP2
description: |-
Gravitate Health ICPC2 short list at the moment.
Link to the [Terminology service](https://github.com/Gravitate-Health/terminology-service) repo.
contact: {}
servers:
- url: https://fosps.gravitatehealth.eu
paths:

/terminologies/icpc2/problem-list/all:
get:
tags:
- Problem List
description: List a list of every health problem avaible in the database.
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/health-problem"

/terminologies/icpc2/allergies/all:
get:
tags:
- Allergies
description: Lists all the allergies avaible in the database.
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/allergy"

/terminologies/icpc2/intollerances/all:
get:
tags:
- Intollerances
description: Lists all the intollerances avaible in the database.
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/intollerance"
components:
schemas:

health-problem:
type: object
properties:
"Health problem":
type: string
example: "HIV-infection/AIDS"
"ICPC-2":
type: string
example: "B90 HIV-infection/AIDS"
"URL":
type: string
example: "https://www.rxreasoner.com/icpc2codes/B90"

allergy:
type: object
properties:
"Allergy":
type: string
example: "Allergy to tree nut"
"SNOMED-SCITD":
type: string
example: "48821000119104"

intollerance:
type: object
properties:
"Intollerance":
type: string
example: "Intolerance to lactose"
"SNOMED-SCITD":
type: string
example: "782415009"

0 comments on commit 7bcb3cf

Please sign in to comment.