{ "$schema": "http://json-schema.org/schema", "$schemaVersion": "0.0.1", "$id": "https://smart-data-models.github.io/dataModel.Agrifood/VeterinarianTreatment/schema.json", "title": "Veterinarian Treatment", "modelTags": "I4Trust", "description": "Object modelling a veterinary treatment for a livestock farm.", "type": "object", "required": [ "id", "type", "appliedProduct" ], "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" }, { "properties": { "type": { "type": "string", "enum": [ "VeterinarianTreatment" ], "description": "Property. NGSI Entity VeterinarianProduct" }, "appliedProduct": { "type": "string", "description": "Property. Veterinary product applied" }, "quantity": { "type": "number", "minimum": 0, "description": "Property. Amount of veterinary product applied" }, "date": { "type": "string", "format": "date-time", "description": "Property. Date of application" }, "phaseOutPeriod": { "type": "number", "minimum": 0, "description": "Property. It is the period of time in days between the last administration of the veterinary medicinal product to an animal, under normal conditions of use, and the production of foodstuffs from that animal" }, "animals": { "type": "array", "description": "Relationship. Animals treated with the applied product. Model:'https://github.com/smart-data-models/dataModel.Agrifood/blob/master/Animal/schema.json'", "items": { "type": "string", "format": "uri" } }, "veterinarian": { "type": "string", "format": "uri", "description": "Relationship. Identifier of the entity storing the prescribing veterinarian data" } } } ] }