sara-schema 1.0.2 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sara-schema/version.rb +1 -1
- data/schemas/assessment.json +61 -42
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e5b0d5a41658265c569acc14417016b42de5a9632e9ddf870e35ffb1c6dbba2
|
4
|
+
data.tar.gz: 0176b94f2e093803e4097b32a48b55a13766f7f2e9eacc2decd892c138542d0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a83237289e271590bc694cd8a5a9a7d8dd438f759f892e5a5c1f15c85c0acaf82a52220c77f29497eb35e51893f16b4832d227cf94c188f6875c6ccb5042e8c
|
7
|
+
data.tar.gz: cc79ba17f064f2089b081dde098769da88aed375863c2e45b222f0e22646f4f656e741fae813c74b91ebbfa217eb71c362a326564dfe3af88c3ce89330c8f901
|
data/lib/sara-schema/version.rb
CHANGED
data/schemas/assessment.json
CHANGED
@@ -1,12 +1,14 @@
|
|
1
1
|
{
|
2
2
|
"$id": "https://saraalert.mitre.org/assessment_schema.json",
|
3
3
|
"title": "Assessment",
|
4
|
-
"description": "A patient asssessment",
|
4
|
+
"description": "A patient asssessment root schema",
|
5
5
|
"type": "object",
|
6
|
+
"additionalProperties": false,
|
6
7
|
"required": [
|
7
8
|
"threshold_condition_hash",
|
8
9
|
"patient_submission_token",
|
9
|
-
"reported_symptoms_array"
|
10
|
+
"reported_symptoms_array",
|
11
|
+
"experiencing_symptoms"
|
10
12
|
],
|
11
13
|
"properties": {
|
12
14
|
"threshold_condition_hash": {
|
@@ -18,47 +20,64 @@
|
|
18
20
|
"type": "string",
|
19
21
|
"description": "Unique token used to validate existence of a patient for this assessement's submission.",
|
20
22
|
"pattern": "[a-f0-9]{40}"
|
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
|
-
"type":
|
23
|
+
},
|
24
|
+
"experiencing_symptoms": {
|
25
|
+
"description": "Represents an assessment response over voice.",
|
26
|
+
"anyOf": [
|
27
|
+
{ "type": "boolean" },
|
28
|
+
{ "type": "null" }
|
29
|
+
]
|
30
|
+
},
|
31
|
+
"reported_symptoms_array": {
|
32
|
+
"type": "array",
|
33
|
+
"description": "An array of symptoms and their values and types.",
|
34
|
+
"minItems": 1,
|
35
|
+
"maxItems": 5,
|
36
|
+
"items": {
|
37
|
+
"type": "object",
|
38
|
+
"additionalProperties": false,
|
39
|
+
"required": [
|
40
|
+
"name",
|
41
|
+
"value",
|
42
|
+
"type",
|
43
|
+
"label",
|
44
|
+
"notes"
|
45
|
+
],
|
46
|
+
"properties": {
|
47
|
+
"name": {
|
48
|
+
"description": "The name of the symptom",
|
49
|
+
"type": "string"
|
50
|
+
},
|
51
|
+
"value": {
|
52
|
+
"description": "The reported condition of the symptom from the patient",
|
53
|
+
"anyOf": [
|
54
|
+
{ "type": "boolean" },
|
55
|
+
{ "type": "number" },
|
56
|
+
{ "type": "null" }
|
57
|
+
]
|
58
|
+
},
|
59
|
+
"type": {
|
60
|
+
"description": "The internal application symptom type",
|
61
|
+
"type": "string",
|
62
|
+
"enum": [
|
63
|
+
"BoolSymptom",
|
64
|
+
"IntSymptom",
|
65
|
+
"FloatSymptom"
|
66
|
+
]
|
67
|
+
},
|
68
|
+
"label": {
|
69
|
+
"description": "The formatted name for printing of the symptom",
|
70
|
+
"type": "string"
|
71
|
+
},
|
72
|
+
"notes": {
|
73
|
+
"description": "Extended description of the symptom",
|
74
|
+
"anyOf": [
|
75
|
+
{ "type": "string" },
|
76
|
+
{ "type": "null" }
|
77
|
+
]
|
78
|
+
}
|
58
79
|
}
|
59
80
|
}
|
60
|
-
}
|
61
|
-
"minItems": 1,
|
62
|
-
"uniqueItems": true
|
81
|
+
}
|
63
82
|
}
|
64
83
|
}
|