Skip to content

Commit

Permalink
Merge pull request #420 from donwilson-rezare/donwilson-Descriptions
Browse files Browse the repository at this point in the history
Descriptions added or modified
  • Loading branch information
cookeac authored Sep 26, 2023
2 parents 6a32bbe + e5c9063 commit 8211348
Show file tree
Hide file tree
Showing 17 changed files with 39 additions and 24 deletions.
2 changes: 1 addition & 1 deletion enums/icarPositionOnAnimalType.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"description": "Enumeration for treatment or diagnosed positions.",
"description": "Enumeration for the position on the animal where the diagnosis or treatment occurred.",

"type": "string",

Expand Down
1 change: 1 addition & 0 deletions resources/icarDeviceResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
},
"supportedMessages": {
"type": "array",
"description": "Identifies message types supported for the device",
"items": {
"type": "object",
"properties": {
Expand Down
2 changes: 1 addition & 1 deletion resources/icarEventCoreResource.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"description": "",
"description": "Core schema for representing an event.",

"allOf": [
{
Expand Down
7 changes: 4 additions & 3 deletions resources/icarGroupMovementArrivalEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@

"properties": {
"arrivalReason": {
"$ref": "../enums/icarArrivalReasonType.json"
"$ref": "../enums/icarArrivalReasonType.json",
"description": "Reason the group of animals arrived on the holding."
},
"consignment": {
"$ref": "../types/icarConsignmentType.json"

"$ref": "../types/icarConsignmentType.json",
"description": "Identifies the consignment of the group of animals to the holding."
}
}
}
Expand Down
9 changes: 6 additions & 3 deletions resources/icarMovementArrivalEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@

"properties": {
"arrivalReason": {
"$ref": "../enums/icarArrivalReasonType.json"
"$ref": "../enums/icarArrivalReasonType.json",
"description": "Reason the animal arrived on the holding."
},
"animalDetail": {
"$ref": "icarAnimalCoreResource.json"
"$ref": "icarAnimalCoreResource.json",
"description": "Core animal details. Can be used if the animal has not already been defined on the holding."
},
"consignment": {
"$ref": "../types/icarConsignmentType.json"
"$ref": "../types/icarConsignmentType.json",
"description": "Identifies the consignment of the animal to the holding."
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions resources/icarMovementBirthEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@

"properties": {
"registrationReason": {
"$ref": "../enums/icarRegistrationReasonType.json"
"$ref": "../enums/icarRegistrationReasonType.json",
"description": "Identifies whether this is a birth or a registration event"
},
"animalDetail": {
"$ref": "../resources/icarAnimalCoreResource.json"
"$ref": "../resources/icarAnimalCoreResource.json",
"description": "Core animal details. Can be used if the animal has not already been defined on the holding."
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion resources/icarMovementDeathEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
"description": "Reference (receipt, docket, or ID) for disposal."
},
"consignment": {
"$ref": "../types/icarConsignmentType.json"
"$ref": "../types/icarConsignmentType.json",
"description": "Identifies the consignment of the animal from the holding."
},
"deathMethod": {
"$ref": "../enums/icarDeathMethodType.json",
Expand Down
9 changes: 6 additions & 3 deletions resources/icarMovementDepartureEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@

"properties": {
"departureKind": {
"$ref": "../enums/icarDepartureKindType.json"
"$ref": "../enums/icarDepartureKindType.json",
"description": "Identifies the kind of departure of the animal from the holding."
},
"departureReason": {
"$ref": "../enums/icarDepartureReasonType.json"
"$ref": "../enums/icarDepartureReasonType.json",
"description": "Identifies the reason for the departure of the animal from the holding."
},
"consignment": {
"$ref": "../types/icarConsignmentType.json"
"$ref": "../types/icarConsignmentType.json",
"description": "Identifies the consignment of the animal from the holding."
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion resources/icarReproPregnancyCheckEventResource.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"result": {
"$ref": "../enums/icarReproPregnancyResultType.json",
"description": "Result - uknown, empty, pregnant."
"description": "Result - unknown, empty, pregnant."
},
"foetalAge": {
"type": "integer",
Expand Down
2 changes: 1 addition & 1 deletion types/icarConsumedFeedType.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"entitlement": {
"$ref": "../types/icarFeedQuantityType.json",
"description": "The amount of feed the animal was entitled to reveive"
"description": "The amount of feed the animal was entitled to receive"
},
"feedConsumption": {
"$ref": "../types/icarFeedQuantityType.json",
Expand Down
2 changes: 1 addition & 1 deletion types/icarConsumedRationType.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"entitlement": {
"$ref": "../types/icarFeedQuantityType.json",
"description": "The amount of feed the animal was entitled to reveive"
"description": "The amount of feed the animal was entitled to receive"
},
"feedConsumption": {
"$ref": "../types/icarFeedQuantityType.json",
Expand Down
2 changes: 1 addition & 1 deletion types/icarDeviceReferenceType.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"description": "",
"description": "Device reference details.",

"allOf": [{
"$ref": "../types/icarResourceReferenceType.json"
Expand Down
3 changes: 2 additions & 1 deletion types/icarFeedDurationType.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
},
"value": {
"type": "number",
"format": "double"
"format": "double",
"description": "The duration of the feeding in the units specified."
}
}
}
3 changes: 2 additions & 1 deletion types/icarFeedQuantityType.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
},
"value": {
"type": "number",
"format": "double"
"format": "double",
"description": "The feed quantity in the units specified."
}
}
}
3 changes: 2 additions & 1 deletion types/icarMedicineReferenceType.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"description": "An indicator whether the medicine or remedy is an approved medicine"
},
"registeredIdentifier": {
"$ref": "../types/icarMedicineIdentifierType.json"
"$ref": "../types/icarMedicineIdentifierType.json",
"description": "The registered identifier of the medicine expressed as a scheme and id."
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion types/icarPositionType.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"properties": {

"position": {
"description": "The position to be treated or diagnosed.",
"description": "Position on the animal where the diagnosis or treatment occurred.",
"$ref": "../enums/icarPositionOnAnimalType.json"
}
}
Expand Down
5 changes: 3 additions & 2 deletions types/icarStatisticsType.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
"properties": {
"metric": {
"$ref": "../types/icarMetricType.json",
"description": "The metric code for a specific statitics. See https://github.com/adewg/ICAR/wiki/Schemes for more info"
"description": "The metric code for a specific statistics. See https://github.com/adewg/ICAR/wiki/Schemes for more info"
},
"unit": {
"type": "string",
"description": "The unit of the metric. This must be appropriate to the metric and UN-CEFACT unit codes should be used where possible."
},
"aggregation": {
"$ref": "../enums/icarAggregationType.json"
"$ref": "../enums/icarAggregationType.json",
"description": "The aggregation applied to the metric."
},
"value": {
"type": "number",
Expand Down

0 comments on commit 8211348

Please sign in to comment.