-
Notifications
You must be signed in to change notification settings - Fork 2
/
example_spec.yml
101 lines (101 loc) · 2.88 KB
/
example_spec.yml
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
89
90
91
92
93
94
95
96
97
98
99
100
101
openapi: "3.0.0"
x-tira:
utilizer:
- name: "AWS"
non_eu_country: true
country: "UK"
info:
version: "1.0.2"
description: "This service can share health data with other health data services and insurances"
title: "Health Data Sharing Service"
servers:
- url: "https://health.domain.tld"
paths:
"/{user_id}/toothbrush/share":
parameters:
- name: user_id
in: "path"
required: true
description: "User ID of a Health Data Hub User"
schema:
type : integer
get:
description: Get an array of Toothbrush Events for a given time interval.
parameters:
- name: startday
in: "query"
schema:
type : string
format: date-time
required: true
description: "Start date of requested interval."
- name: endday
in: "query"
schema:
type : string
format: date-time
description: "End date of requested interval."
responses:
200:
description: "Request successful."
content:
application/json:
schema:
$ref: '#/components/schemas/ToothbrushEvent'
components:
schemas:
ToothbrushEvent:
type: "object"
required:
- user_id
properties:
seconds:
type: "integer"
datetime:
type: "string"
user_id:
type: "integer"
x-tira:
retention-time:
volatile: true
special_category:
category: "Health Data"
purposes:
yappl:
'{
"id":123,
"preference":[
{
"rule":{
"purpose":{
"permitted": [ "FitnessData Sharing", "Health Insurance Bonus Program" ],
"excluded": [ ... ]
},
"utilizer":{
"permitted": [ ... ],
"excluded": [ ... ]
},
"transformation": [ ... ],
"valid_from":"2021-06-09T00:00:00.000Z",
"exp_date":"0000-01-01T00:00:00.000Z"
}
}
]
}'
profiling:
reason: "Health profile based on series of health related behaviour."
utilizer:
- name: "MyFitnessPal"
non_eu_country: false
- name: "Strava"
non_eu_country: true
country: "USA"
utilizer_category:
- name: "Health Insurance Company"
country: "Germany"
non_eu_country: false
type: "Insurance Company"
sector: "Insurance"
sub_sector:
- "Health Insurance"
- "Health Tax"