Skip to content

Commit

Permalink
Merge pull request #292 from cookeac/Develop
Browse files Browse the repository at this point in the history
Create icarAnimalEventCoreResource
  • Loading branch information
cookeac authored Apr 21, 2022
2 parents f4440ce + 9f53e2e commit db5b7a7
Show file tree
Hide file tree
Showing 28 changed files with 52 additions and 37 deletions.
19 changes: 19 additions & 0 deletions resources/icarAnimalEventCoreResource.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"description": "",

"allOf": [
{
"$ref": "../resources/icarEventCoreResource.json"
},
{
"type": "object",

"properties": {
"animal": {
"$ref": "../types/icarAnimalIdentifierType.json",
"description": "Unique animal scheme and identifier combination."
}
}
}
]
}
2 changes: 1 addition & 1 deletion resources/icarAnimalSetJoinEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"allOf": [
{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/icarAnimalSetLeaveEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"allOf": [
{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
16 changes: 8 additions & 8 deletions resources/icarConformationScoreEventResource.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"description": "Event for recording conformation score",
"description": "Event for recording conformation score",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
},
{
"$ref": "../types/icarConformationScoreType.json"
}
]
"allOf": [{
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"$ref": "../types/icarConformationScoreType.json"
}
]
}
2 changes: 1 addition & 1 deletion resources/icarDiagnosisEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"allOf": [
{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
4 changes: 0 additions & 4 deletions resources/icarEventCoreResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@
"type": "string",
"description": "Unique identifier in the source system for this event."
},
"animal": {
"$ref": "../types/icarAnimalIdentifierType.json",
"description": "Unique animal scheme and identifier combination."
},
"eventDateTime": {
"$ref": "../types/icarDateTimeType.json",
"description": "ISO8601 date and time. MUST contain time zone. UTC recommended."
Expand Down
2 changes: 1 addition & 1 deletion resources/icarFeedIntakeEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "Event for recording a feed intake",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/icarHealthStatusObservedEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "Event for recording animal health status",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/icarLactationStatusObservedEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "This event records an observed lactation status without necessarily a parturition, drying off, or other event.",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/icarMilkingDryOffEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "Records that the animal has been dried off from milking. If necessary, also record a separate health treatment event.",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
}
]
}
2 changes: 1 addition & 1 deletion resources/icarMilkingVisitEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "Event for recording milking visit",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/icarMovementArrivalEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "Event for recording animal arrival",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/icarMovementBirthEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "Event for recording animal birth",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/icarMovementDeathEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "Event for recording animal death",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/icarMovementDepartureEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "Event for recording animal departure",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/icarReproAbortionEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "The abortion event records an observation that an abortion has taken place. There are no other parameters.",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
}
]
}
2 changes: 1 addition & 1 deletion resources/icarReproDoNotBreedEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "The do not breed event records an observation that an animal has been assigned not to be bred. There are no other parameters.",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/icarReproHeatEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "Event for recording heats.",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/icarReproInseminationEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "Event for recording natural or artificial insemination, including embryo transfer.",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/icarReproMatingRecommendationResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "Mating recommendation for an animal",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/icarReproParturitionEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "Event for recording parturition (calving, lambing, kidding, fawning).",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/icarReproPregnancyCheckEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "Pregnancy diagnosis or check event.",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/icarReproStatusObservedEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "This event records an observed reproductive status without necessarily a pregnancy check, parturition, or other event.",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/icarTestDayResultEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "Event for representing test day result",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/icarTreatmentEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

"allOf": [
{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/icarTreatmentProgramEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "An animal health event combining diagnosis and planned or actual treatment course or events.",
"allOf": [
{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/icarTypeClassificationEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "Event for recording a type calssification consisting of a set of conformation scores",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down
2 changes: 1 addition & 1 deletion resources/icarWeightEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "The Weight event records a live weight observation of an animal.",

"allOf": [{
"$ref": "../resources/icarEventCoreResource.json"
"$ref": "../resources/icarAnimalEventCoreResource.json"
},
{
"type": "object",
Expand Down

0 comments on commit db5b7a7

Please sign in to comment.