{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","title":"Livestock medicines register","description":"The register of the owner or keeper of food-producing animals, per animal species: the exit part with the data of art. 108 par. 2 of Regulation (EU) 2019/6, the laboratory-results part and the index of the entry documents (royal decree of 21 July 2016, art. 53).","additionalProperties":false,"required":["responsible","register"],"properties":{"responsible":{"type":"object","description":"The owner or keeper of the food-producing animals who keeps the register.","additionalProperties":false,"required":["name","address"],"properties":{"name":{"type":"string","description":"Name of the responsible keeper.","minLength":1},"address":{"type":"string","description":"Address of the responsible keeper.","minLength":1},"herd_address":{"type":"string","description":"Address of the herd or holding where the animals are kept (optional)."},"enterprise_number":{"type":"string","description":"Belgian enterprise number (BCE / KBO) of the keeper (optional)."},"herd_number":{"type":"string","description":"Herd number (Sanitel), never invented (optional)."},"seat_region":{"type":"string","description":"Linguistic region of the operating seat (optional). Nothing is compared with it.","enum":["nl_region","fr_region","brussels","de_region"]}}},"register":{"type":"object","description":"The register: species, period and parts.","additionalProperties":false,"required":["species"],"properties":{"species":{"type":"string","description":"Animal species: one register per species.","minLength":1},"period_start":{"type":"string","description":"First day of the period covered (optional).","format":"date"},"period_end":{"type":"string","description":"Last day of the period covered (optional).","format":"date"},"retention_stated":{"type":"string","description":"Retention period the keeper states, printed as typed (optional); nothing is computed or defaulted."},"guidance_agreement":{"type":"string","description":"Whether the farm has a veterinary guidance agreement (optional); selects which line of the printed legal box is shown.","enum":["yes","no"]}}},"entry_documents":{"type":"array","description":"Index of the entry documents filed chronologically (art. 60), one line per document.","items":{"type":"object","additionalProperties":false,"required":["date","document_kind","number"],"properties":{"date":{"type":"string","description":"Date of the document.","format":"date"},"document_kind":{"type":"string","description":"Kind of document: administration and supply document (DAF), prescription or pharmacy delivery.","enum":["daf","prescription","pharmacy_delivery"]},"number":{"type":"string","description":"Number of the document (the unique number of a DAF).","minLength":1},"vet_name":{"type":"string","description":"Name of the veterinarian (optional)."},"castration_agreement_ref":{"type":"string","description":"Reference of the written agreement on piglet castration (art. 54, 5°), where applicable (optional)."}}}},"exits":{"type":"array","description":"Exit register: one line per medicine held and administered (art. 108 par. 2).","items":{"type":"object","additionalProperties":false,"required":["first_administration_date","medicine_name","quantity_administered","unit","supplier_name","supplier_address","animal_or_group_id","withdrawal_period","withdrawal_unit","treatment_duration","treatment_duration_unit"],"properties":{"first_administration_date":{"type":"string","description":"Date of first administration (a).","format":"date"},"medicine_name":{"type":"string","description":"Name of the medicine (b).","minLength":1},"quantity_administered":{"type":"number","description":"Quantity of the medicine administered (c), as typed.","minimum":0},"unit":{"type":"string","description":"Unit of the quantity (free text, for example ml or doses); no default.","minLength":1},"supplier_name":{"type":"string","description":"Name of the supplier (d): a vet depot or a pharmacy.","minLength":1},"supplier_address":{"type":"string","description":"Address of the supplier (d).","minLength":1},"acquisition_proof_kind":{"type":"string","description":"Kind of proof of acquisition (e) (optional).","enum":["daf","prescription_copy","pharmacy_invoice","other"]},"acquisition_proof_number":{"type":"string","description":"Number of the proof of acquisition (e); a medicine bought in a pharmacy on a prescription has no DAF number (optional, partial support)."},"animal_or_group_id":{"type":"string","description":"Identification of the animal or group treated (f), free text.","minLength":1},"animal_category":{"type":"string","description":"Category of the animals treated (optional)."},"prescribing_vet_name":{"type":"string","description":"Name of the prescribing veterinarian (g), where applicable (optional)."},"prescribing_vet_contact":{"type":"string","description":"Contact details of the prescribing veterinarian (g) (optional)."},"withdrawal_period":{"type":"number","description":"Withdrawal period (h), as typed; 0 is a valid answer.","minimum":0},"withdrawal_unit":{"type":"string","description":"Unit of the withdrawal period: hours or days.","enum":["hours","days"]},"withdrawal_note":{"type":"string","description":"The veterinarian's wording of the withdrawal period, preserved (optional)."},"withdrawal_end_date_as_given":{"type":"string","description":"End date of the withdrawal period as typed by the veterinarian (optional); never computed.","format":"date"},"treatment_duration":{"type":"number","description":"Duration of the treatment (i), as typed.","minimum":0},"treatment_duration_unit":{"type":"string","description":"Unit of the treatment duration: hours or days.","enum":["hours","days"]},"indication_and_dosage":{"type":"string","description":"Indication and dosage as on the document (optional)."},"disorder_treated":{"type":"string","description":"Disorder treated under a guidance agreement (optional)."},"lot_number":{"type":"string","description":"Lot number of the medicine (optional)."},"authorisation_number":{"type":"string","description":"Marketing-authorisation number of the medicine (optional)."},"remarks":{"type":"string","description":"Free remarks (optional)."}}}},"lab_results":{"type":"array","description":"Laboratory-results part of the register (art. 53), one line per result.","items":{"type":"object","additionalProperties":false,"required":["date","laboratory","result"],"properties":{"date":{"type":"string","description":"Date of the result.","format":"date"},"laboratory":{"type":"string","description":"Laboratory.","minLength":1},"animal_or_group_id":{"type":"string","description":"Animal or group concerned (optional), free text."},"test":{"type":"string","description":"Test carried out (optional)."},"result":{"type":"string","description":"Result, free text.","minLength":1},"reference":{"type":"string","description":"Reference of the laboratory report (optional)."}}}}}}