{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"Staff register: general or special (Belgium)","description":"The residual general staff register (workers outside the immediate declaration of employment) or the special staff register of one workplace, as the royal decree of 8 August 1980 on social documents defines them (arts 3-12). The mode is the user's choice; nothing is decided, defaulted or computed. The national register number and the identity document number are never invented: they print as a dash when blank.","type":"object","additionalProperties":false,"required":["mode","employer","register","workers"],"properties":{"mode":{"type":"string","enum":["general","special"],"description":"Which register this is: the general staff register (workers outside Dimona) or the special staff register of a workplace. The user's choice; never decided by the template."},"employer":{"type":"object","additionalProperties":false,"required":["name","domicile_or_seat"],"properties":{"name":{"type":"string","minLength":1,"description":"Surname and first name, or company name, of the employer (art. 5, 1°)."},"legal_form":{"type":"string","enum":["sole_trader","srl","sa","sc","asbl","other"],"description":"Legal form of the employer."},"trade_name":{"type":"string","description":"The name under which the employer addresses the public, where there is one (art. 5, 1°)."},"enterprise_number":{"type":"string","description":"Belgian enterprise number (KBO/BCE), written 0123.456.789; printed when given (internal document).","pattern":"^[01][0-9]{3}\\.[0-9]{3}\\.[0-9]{3}$"},"onss_number":{"type":"string","description":"Number under which the employer is registered with the institution that collects the social security contributions (art. 11, § 2, 1°, a); optional."},"domicile_or_seat":{"type":"string","minLength":1,"description":"Domicile of the employer, or registered office of a company (art. 5, 1°; art. 11, § 2, 1°, a)."},"seat_region":{"type":"string","enum":["nl_region","fr_region","brussels","de_region"],"description":"Linguistic region of the operating seat of the employer (Flemish decree of 19 July 1973, decree of the French Community of 30 June 1982, coordinated laws of 18 July 1966, art. 52). Informational: nothing compares it with the language of the document yet."}}},"register":{"type":"object","additionalProperties":false,"required":["kept_at","as_of_date","keeper"],"properties":{"kept_at":{"type":"string","minLength":1,"description":"Where the register is kept (arts 8-10)."},"inspector_notified_on":{"type":"string","format":"date","description":"Date on which the inspector-in-chief was notified of the place of keeping, where arts 8-9 require it; as typed."},"as_of_date":{"type":"string","format":"date","description":"Date of the extract (the register's state on that date)."},"keeper":{"type":"object","additionalProperties":false,"required":["name"],"properties":{"name":{"type":"string","minLength":1,"description":"Who keeps the register."},"role":{"type":"string","description":"Role of that person."}}}}},"workplace":{"type":"object","additionalProperties":false,"required":["address"],"properties":{"address":{"type":"string","minLength":1,"description":"The workplace the special register is kept for (art. 11, § 2, 1°, b)."}}},"workers":{"type":"array","description":"The workers of the register, one entry each.","items":{"type":"object","additionalProperties":false,"required":["entry_number","surname","given_name","start_date"],"properties":{"entry_number":{"type":"integer","minimum":0,"description":"Entry number of the worker in the register, as the user keeps it (art. 4, § 1)."},"surname":{"type":"string","minLength":1,"description":"Surname of the worker."},"given_name":{"type":"string","minLength":1,"description":"First name of the worker."},"birth_place":{"type":"string","description":"Place of birth."},"birth_date":{"type":"string","format":"date","description":"Date of birth."},"sex":{"type":"string","enum":["f","m","x"],"description":"Sex, as art. 5, 2°, d of the royal decree prescribes it for this register; the value x is the template's own choice and prints as typed."},"domicile":{"type":"string","description":"Domicile of the worker."},"nationality":{"type":"string","description":"Nationality of the worker."},"id_document_kind":{"type":"string","enum":["id_card","passport","residence_permit","other"],"description":"Nature of the identity document."},"id_document_number":{"type":"string","description":"Number of the identity document; never invented, printed as typed."},"niss":{"type":"string","description":"Social security identification number of the worker; never invented, printed as typed."},"start_date":{"type":"string","format":"date","description":"Date the worker started work."},"end_date":{"type":"string","format":"date","description":"Date the contract ended; blank while the worker is in service."},"remarks":{"type":"string","description":"Remarks, as the user writes them."}}},"minItems":1},"identification_sheets":{"type":"boolean","description":"Whether the employer keeps individual identification sheets for all workers (art. 6); informational."}},"allOf":[{"if":{"properties":{"mode":{"const":"special"}},"required":["mode"]},"then":{"required":["workplace"]}}]}