-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add icarAttentionEventResource issue 393 #407
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
6232f0a
Add icarAttentionEventResource
cookeac 2643679
Turn cause into causes and add required
cookeac 6b9eed4
Extend causes enum, add deviceAttentionScore
cookeac 2ce3579
Merge branch 'adewg:ADE-1' into 3933_Device_Attentions
cookeac 9832af3
Add severity to icarAttentionEventResource
cookeac 60f66f9
Add collection and insert into health URL scheme
cookeac 8d2cebb
Added attention events to example URL scheme
cookeac File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"description": "Represents a collection of attention events generated by devices. Based on icarResourceCollection to provide paging etc.", | ||
|
||
"allOf": [{ | ||
"$ref": "icarResourceCollection.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"properties": { | ||
"member": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../resources/icarAttentionEventResource.json" | ||
}, | ||
"description": "As per JSON-LD Hydra syntax, member provides the array of objects, in this case attention events." | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"description": "Defines a category of device messages that may allow filtering of alerts.", | ||
|
||
"type": "string", | ||
|
||
"enum": [ | ||
"Behaviour", | ||
"Environment", | ||
"Health", | ||
"Other" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"description": "Defines causes of alerts from devices.", | ||
|
||
"type": "string", | ||
|
||
"enum": [ | ||
"Activity", | ||
"AnimalTemperature", | ||
"BodyCondition", | ||
"EatingLess", | ||
"EnvironmentTemperature", | ||
"Disturbance", | ||
"Health", | ||
"HeartRate", | ||
"Inactivity", | ||
"Ketosis", | ||
"Lameness", | ||
"Location", | ||
"LowerRumination", | ||
"LyingTooLong", | ||
"LyingTooShort", | ||
"Mastitis", | ||
"MobilityScore", | ||
"NoMovement", | ||
"Parturition", | ||
"PostParturitionRisk", | ||
"ProlongedParturition", | ||
"RespirationRate", | ||
"Standing", | ||
"StandingUp", | ||
"Walking", | ||
"Other", | ||
"Undefined" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"description": "Defines the relative priority of alerts.", | ||
|
||
"type": "string", | ||
|
||
"enum": [ | ||
"Informational", | ||
"Normal", | ||
"Urgent", | ||
"Critical" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"description": "Defines an alert for an animal that may require attention.", | ||
|
||
"allOf": [ | ||
{ | ||
"$ref": "../resources/icarAnimalEventCoreResource.json" | ||
}, | ||
{ | ||
"type": "object", | ||
|
||
"required" : ["category", "causes"], | ||
|
||
"properties": { | ||
"alertEndDateTime": { | ||
"$ref": "../types/icarDateTimeType.json", | ||
"nullable": true, | ||
"description": "RFC3339 date time that represents the end time of an alert (start time is the eventDateTime) if it has ended." | ||
}, | ||
"category": { | ||
"$ref": "../enums/icarAttentionCategoryType.json", | ||
"description": "A category that allows filtering of alerts by subject." | ||
}, | ||
"causes": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "../enums/icarAttentionCauseType.json" | ||
}, | ||
"description": "The specific causes of the alert. This is an array and at least one cause must be specified." | ||
}, | ||
"priority": { | ||
"$ref": "../enums/icarAttentionPriorityType.json", | ||
"description": "The relative priority of the alert." | ||
}, | ||
"severity": { | ||
"$ref": "../enums/icarDiagnosisSeverityType.json", | ||
"description": "A structured set of severity values that align with those used in disease diagnosis." | ||
}, | ||
"deviceAttentionScore": { | ||
"type": "number", | ||
"description": "Provides a manufacturer- and device-specific score related to the alert." | ||
}, | ||
"device": { | ||
"$ref": "../types/icarDeviceReferenceType.json", | ||
"description": "Identifies the device that is raising the alert." | ||
} | ||
} | ||
} | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not use this one anymore, since we have the severity index now.
My earlier suggestion to include "Critical" here might be irrelevant. I suggest leaving "critical" out again, but it is not a deal breaker.