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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 24dba674fe478a2ebec24902594a640eca1a93c3bfa6fea9b305279bdf10fe33
4
- data.tar.gz: c2ff9e478069bfa2be4ff5ef4387ee58b500737c2f55dd0b2c125edbc98081ce
3
+ metadata.gz: 0e5b0d5a41658265c569acc14417016b42de5a9632e9ddf870e35ffb1c6dbba2
4
+ data.tar.gz: 0176b94f2e093803e4097b32a48b55a13766f7f2e9eacc2decd892c138542d0a
5
5
  SHA512:
6
- metadata.gz: 19ea36ceed59dd8923787ab76bfc824d63863e703304fb8f2d260869cddc5c354debdea643881b1a86d37af2dd8e656fc0bbe85a2f0f2f196a5bbf0d39fe8f8a
7
- data.tar.gz: 24b34b38edc1a9aae562911bd434ddc74274ec1ae54e0090a43de2e4ede858d74556ca07e6a1da3f7bfe4a9b45dbe3fb06e529eeb069533ec9c5c36d4b62348e
6
+ metadata.gz: 8a83237289e271590bc694cd8a5a9a7d8dd438f759f892e5a5c1f15c85c0acaf82a52220c77f29497eb35e51893f16b4832d227cf94c188f6875c6ccb5042e8c
7
+ data.tar.gz: cc79ba17f064f2089b081dde098769da88aed375863c2e45b222f0e22646f4f656e741fae813c74b91ebbfa217eb71c362a326564dfe3af88c3ce89330c8f901
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SaraSchema
4
- VERSION = '1.0.2'
4
+ VERSION = '1.1.0'
5
5
  end
@@ -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
- "reported_symptoms_array": {
24
- "type": "array",
25
- "description": "An array of symptoms and their values and types.",
26
- "items": {
27
- "type": "object",
28
- "required": [
29
- "name",
30
- "value",
31
- "label",
32
- "note"
33
- ],
34
- "properties": {
35
- "name": {
36
- "description": "The name of the symptom",
37
- "type": "string"
38
- },
39
- "value": {
40
- "description": "The reported condition of the symptom from the patient",
41
- "type": ["string", null]
42
- },
43
- "type": {
44
- "description": "The internal application symptom type",
45
- "type": { "enum": [
46
- "BoolSymptom",
47
- "IntSymptom",
48
- "FloatSymptom"
49
- ] }
50
- },
51
- "label": {
52
- "description": "The formatted name for printing of the symptom",
53
- "type": "string"
54
- },
55
- "notes": {
56
- "description": "Extended description of the symptom",
57
- "type": ["string", null]
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
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sara-schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Fagan