forked from nightscout/cgm-remote-monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile-selection.schema.json
More file actions
57 lines (57 loc) · 1.74 KB
/
profile-selection.schema.json
File metadata and controls
57 lines (57 loc) · 1.74 KB
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://nightscout.github.io/schemas/profile-selection.schema.json",
"title": "ProfileSelection",
"description": "Runtime event indicating which profile is intended to be active",
"type": "object",
"required": ["selectionId", "selectedProfileId", "effectiveAt", "selectedBy"],
"properties": {
"selectionId": {
"type": "string",
"format": "uuid",
"description": "Unique identifier for this selection event"
},
"selectedProfileId": {
"type": "string",
"description": "ID of the ProfileDefinition being activated"
},
"selectedProfileHash": {
"type": "string",
"pattern": "^[a-f0-9]{64}$",
"description": "Content hash of the selected profile for verification"
},
"effectiveAt": {
"type": "string",
"format": "date-time",
"description": "When this profile selection takes effect"
},
"selectedBy": {
"type": "object",
"required": ["issuerType", "issuerId", "authority"],
"properties": {
"issuerType": {
"type": "string",
"enum": ["human", "controller", "agent", "caregiver"]
},
"issuerId": {
"type": "string"
},
"authority": {
"type": "string",
"enum": ["primary", "delegated", "automated"],
"description": "Authority level of the selector"
}
}
},
"reason": {
"type": "string",
"maxLength": 500,
"description": "Optional annotation explaining why this profile was selected"
},
"previousSelectionId": {
"type": "string",
"format": "uuid",
"description": "ID of the selection this replaces, for audit chain"
}
}
}