Leave Request Validation Rules: Ready-to-Use JSON Prompt

Description

Efficient Leave Management Through Automation

This prompt provides a clear structure of validation rules for various leave types, allowing you to automate request verification in your Human Resource Management System (HRMS) or any corporate application.

Who is this prompt for?

  • HR Managers: To formalize and digitize company leave and time-off policies.
  • Developers: To quickly integrate validation business logic into front-end or back-end request forms.
  • System Analysts: To design accurate business processes and avoid duplicate requests.

Benefits of Use

  • Machine-Readable Format: Data is presented in JSON format, making it easy for software to parse.
  • Comprehensive: Covers various scenarios: from marriage and childbirth to natural disasters and medical checkups.
  • Error Prevention: Includes duplicate date check logic, minimizing the risk of overlapping leaves.
>_ Prompt
{
  "rules": [
    {
      "leaveType": "Marriage Leave",
      "validity": "In the event of the employee’s marriage, 3 business days of leave are granted.",
      "maxDays": 3
    },
    {
      "leaveType": "Birth Leave for Spouse",
      "validity": "If the employee’s spouse gives birth, 5 business days of leave are granted.",
      "maxDays": 5
    },
    {
      "leaveType": "Leave for the Death of a First-Degree Relative",
      "validity": "In the event of the death of the employee’s mother, father, sibling, spouse, or child, 3 business days of leave are granted.",
      "maxDays": 3
    },
    {
      "leaveType": "Natural Disaster Leave",
      "validity": "In the event of a natural disaster, up to 10 business days of leave may be used.",
      "maxDays": 10
    },
    {
      "leaveType": "Paid Maternity Leave",
      "validity": "In cases of pregnancy and maternity, the procedure is carried out according to the law. Female employees are generally not required to work for 8 weeks before birth and 8 weeks after birth. In the case of multiple pregnancy, 2 additional weeks are added to the 8-week period before birth during which the employee is not required to work.",
      "preBirthWeeks": 8,
      "postBirthWeeks": 8,
      "extraWeeksForMultiplePregnancy": 2,
      "workUntilPreWeeks": 3
    },
    {
      "leaveType": "Unpaid Maternity Leave",
      "validity": "After the end of paid maternity leave, this leave may be granted for up to 6 months upon the employee’s request. It cannot be used in separate parts.",
      "maxMonths": 6
    },
    {
      "leaveType": "Health Check Leave for Pregnant Employees",
      "validity": "If the pregnant employee documents her pregnancy, this type of leave may be used for monthly health checks and has no daily limit.",
      "documentationRequired": true
    },
    {
      "leaveType": "Social Excuse Leave",
      "validity": "The total excuse leave that an employee may use in one year is 3 business days. Leaves exceeding 3 days are deducted from annual leave.",
      "maxDaysPerYear": 3
    },
    {
      "leaveType": "Unpaid Leave",
      "validity": "This is a type of leave with no specific limit, granted upon the employee’s written request if approved by the employer.",
      "documentationRequired": true
    }
  ],
  "generalRules": {
    "duplicateCheck": "If there is already a leave request for the same dates, the user should not request leave again.",
    "applicableFormId": 1
  }
}
Categories:
Models:
Any
Output format: