{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Internal vehicle check report - Rapport de contrôle interne du véhicule / Intern voertuigcontroleverslag (BE)","description":"The report of one internal check of one vehicle on one date: vehicle, checker, a fixed checklist with a status for every item, defects, the decision typed by the checker, corrective actions, the next check and the signatures. The decision is never derived from the items, no validity date or periodicity is computed and nothing says that the check satisfies a legal duty; a missing value prints a visible blank.","type":"object","additionalProperties":false,"required":["entity","employer","vehicle","check","checker","items","decision","signatures"],"properties":{"entity":{"type":"object","description":"The enterprise that keeps the report.","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name of the enterprise that keeps the report."},"enterprise_number":{"type":"string","description":"Belgian enterprise number (KBO/BCE), written 0123.456.789.","pattern":"^[01][0-9]{3}\\.[0-9]{3}\\.[0-9]{3}$"},"site":{"type":"string","description":"Site or depot of the vehicle."},"seat_region":{"type":"string","enum":["nl_region","fr_region","brussels","de_region"],"description":"Linguistic region of the operating seat (optional): Dutch-language region, French-language region, Brussels-Capital or German-language region. Nothing is compared with it."}},"required":["name"]},"employer":{"type":"boolean","description":"Whether the enterprise has workers (is an employer). It decides whether the box on the verifications of work equipment is printed."},"vehicle":{"type":"object","description":"The vehicle.","additionalProperties":false,"properties":{"plate":{"type":"string","description":"Registration plate, as written on it (no format is asserted)."},"make_model":{"type":"string","description":"Make and model of the vehicle."},"vin":{"type":"string","description":"Vehicle identification number."},"category_text":{"type":"string","description":"Category of the vehicle, as the enterprise writes it."},"mileage_km":{"type":"integer","minimum":0,"description":"Mileage in kilometres, as read on the vehicle."},"iv2_14_scope":{"type":"string","enum":["installation_dependent","deterioration_prone","both","neither","unknown"],"description":"The user's answer on the scope of the verifications of work equipment: installation_dependent, deterioration_prone, both, neither, unknown. A statement of the user, never of the template."}},"required":["plate","make_model"]},"check":{"type":"object","description":"The check.","additionalProperties":false,"properties":{"date":{"type":"string","format":"date","description":"Date of the check."},"time":{"type":"string","description":"Time of the check, as the user writes it (HH:MM)."},"kind":{"type":"string","enum":["pre_use","periodic","after_incident","return"],"description":"Kind of check: pre_use, periodic, after_incident or return."}},"required":["date","kind"]},"checker":{"type":"object","description":"The checker.","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name of the person who checks the vehicle."},"role":{"type":"string","description":"Role of that person (driver, fleet manager...)."}},"required":["name","role"]},"items":{"type":"array","description":"The checklist rows.","items":{"type":"object","description":"One checklist row.","additionalProperties":false,"properties":{"item":{"type":"string","enum":["lights_signalling","tyres","brakes","steering","mirrors_glazing","wipers_washer","horn","fluid_levels","leaks","bodywork_doors","load_securing","load_compartment","coupling","safety_equipment","documents_on_board","tachograph","adr_equipment","cleanliness"],"description":"The checklist item (fixed list)."},"status":{"type":"string","enum":["ok","defect","not_checked"],"description":"Status of the item, as the checker states it: ok, defect or not_checked."},"measurement":{"type":"string","description":"A measurement, for example a tread depth, as written by the checker."},"note":{"type":"string","description":"Note of the checker."}},"required":["item","status"]},"minItems":1},"documents":{"type":"object","description":"Documents on board.","additionalProperties":false,"properties":{"roadworthiness_valid_until":{"type":"string","format":"date","description":"Validity date of the roadworthiness certificate, as typed from the document."},"insurance_valid_until":{"type":"string","format":"date","description":"Validity date of the insurance certificate, as typed from the document."},"proof_of_last_verification_on_board":{"type":"boolean","description":"Whether a material proof of the last verification is on board the vehicle."}},"required":[]},"defects":{"type":"array","description":"The defects found.","items":{"type":"object","description":"One defect.","additionalProperties":false,"properties":{"description":{"type":"string","description":"Description of the defect."},"severity":{"type":"string","enum":["minor","major","immobilising"],"description":"Severity as the checker judges it: minor, major or immobilising."},"photo_reference":{"type":"string","description":"Reference of a photograph of the defect."}},"required":["description","severity"]}},"decision":{"type":"object","description":"The decision of the checker.","additionalProperties":false,"properties":{"outcome":{"type":"string","enum":["fit_for_use","use_with_restrictions","not_fit"],"description":"Decision typed by the checker: fit_for_use, use_with_restrictions or not_fit."},"restrictions_text":{"type":"string","description":"The restrictions on the use of the vehicle, as the checker writes them."}},"required":["outcome"],"allOf":[{"if":{"properties":{"outcome":{"const":"use_with_restrictions"}},"required":["outcome"]},"then":{"required":["restrictions_text"]}}]},"actions":{"type":"array","description":"Corrective actions.","items":{"type":"object","description":"One corrective action.","additionalProperties":false,"properties":{"action":{"type":"string","description":"What has to be done."},"owner":{"type":"string","description":"Who does it."},"due_date":{"type":"string","format":"date","description":"Date by which it has to be done."},"done":{"type":"boolean","description":"Whether it is done."}},"required":["action"]}},"next_check":{"type":"object","description":"The next check.","additionalProperties":false,"properties":{"due_on":{"type":"string","format":"date","description":"Date of the next check, as the enterprise decides it."}},"required":[]},"signatures":{"type":"object","description":"Signatures.","additionalProperties":false,"properties":{"checker":{"type":"object","description":"The checker's signature.","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name of the checker."},"date":{"type":"string","format":"date","description":"Date of the checker's signature."}},"required":["name","date"]},"reviewer":{"type":"object","description":"The review by the fleet manager, if any.","additionalProperties":false,"properties":{"name":{"type":"string","description":"Name of the fleet manager who reviews the report."},"date":{"type":"string","format":"date","description":"Date of the review."}},"required":[]}},"required":["checker"]},"period":{"type":"object","description":"Period of the optional summary.","additionalProperties":false,"properties":{"from":{"type":"string","format":"date","description":"First day of the period the summary covers."},"to":{"type":"string","format":"date","description":"Last day of the period the summary covers."}},"required":[]},"log_entries":{"type":"array","description":"Optional period summary: the checks.","items":{"type":"object","description":"One check of the summary.","additionalProperties":false,"properties":{"date":{"type":"string","format":"date","description":"Date of the check."},"kind":{"type":"string","enum":["pre_use","periodic","after_incident","return"],"description":"Kind of the check."},"outcome":{"type":"string","enum":["fit_for_use","use_with_restrictions","not_fit"],"description":"Decision of that check."}},"required":["date","kind","outcome"]}}}}