-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathicarInventoryClassificationType.json
53 lines (51 loc) · 1.88 KB
/
icarInventoryClassificationType.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
{
"type": "object",
"description": "This type is used to categorise animals by shared characteristics - so you can say the equivalent of 200 x 2-year-old in-calf Jersey heifers.",
"required": ["name", "species"],
"properties": {
"name": {
"type": "string",
"description": "Human-readable name for this inventory grouping."
},
"count": {
"type": "number",
"description": "The count or number of animals in this inventory classification."
},
"species": {
"$ref": "../enums/icarAnimalSpecieType.json",
"description": "The species of animals."
},
"sex": {
"$ref": "../enums/icarAnimalGenderType.json",
"description": "The sex of animals."
},
"primaryBreed": {
"$ref": "../types/icarBreedIdentifierType.json",
"description": "Primary breed defined using an identifier and scheme."
},
"birthPeriod": {
"type": ["string", "null"],
"pattern": "^(([0-9]{4})|([0-9]{4}-[0-1][0-9])|([0-9]{4}-[0-1][0-9]-[0-3][0-9](Z?)(\/|--)[0-9]{4}-[0-1][0-9]-[0-3][0-9](Z?)))$",
"description": "The range of birth dates. Use YYYY (all one year), YYYY-MM (one month), or two RFC3339 date-times separated by / to represent a range."
},
"reproductiveStatus": {
"$ref": "../enums/icarAnimalReproductionStatusType.json",
"description": "The reproductive/pregnancy status of animals."
},
"lactationStatus": {
"$ref": "../enums/icarAnimalLactationStatusType.json",
"description": "The lactation status of animals."
},
"productionPurposes": {
"type": "array",
"description": "Array of production purposes.",
"items": {
"$ref": "../enums/icarProductionPurposeType.json"
}
},
"reference": {
"type": "string",
"description": "An external reference (identifier or name) to further identify the group of animals."
}
}
}