-
Notifications
You must be signed in to change notification settings - Fork 0
/
openapi.yaml
88 lines (86 loc) · 2.48 KB
/
openapi.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
openapi: "3.0.1"
info:
title: Gravitate Health Chatbot interface
version: MVP3
description: Gravitate Health Chatbot interface
contact: {}
servers:
- url: https://gravitate-health.lst.tfo.upm.es
paths:
/chatbot/chatbots:
get:
tags:
- Chatbot
description: List all available chatbots
responses:
"200":
description: OK
content:
application/json:
schema:
type: array
items:
type: string
example: ["chat-with-epi", "chatbot-ema", "chatbot-test-fosps", "chatbot3"]
/chatbot/chat:
post:
security:
- bearerAuth: []
tags:
- Chatbot
description: Ask a question to the chatbot
parameters:
- $ref: "#/components/parameters/chatbotId"
- $ref: "#/components/parameters/epiIdentifier"
- $ref: "#/components/parameters/patientIdentifier"
requestBody:
content:
application/json:
schema:
type: object
properties:
question:
type: string
example: "Are there any contraindications in this leaflet for diabetes patients?"
responses:
"200":
description: OK
content:
text/html:
schema:
type: string
example: "Hi! I am a chatbot"
components:
parameters:
chatbotId:
in: query
name: chatbotId
description: chatbot id to be used for the query
required: true
schema:
type: string
example: chatbot-ema
epiIdentifier:
in: query
name: epiIdentifier
description: ePI identifier to use as context
required: true
schema:
type: string
example: EU/1/96/007/035
patientIdentifier:
in: query
name: patientIdentifier
description: patient identifier to use as context
required: false
schema:
type: string
example: alicia-1
responses:
200:
description: OK
content:
text/html:
schema:
type: string
example: "<p>Based on the context provided, there is no explicit mention of the indication of Biktarvy in this document. However, it can be inferred that Biktarvy is used to treat HIV infection, as the text discusses common side effects and precautions associated with taking antiretroviral medications for HIV treatment.</p>"