{
  "name": "Patient Appointment Request",
  "description": "Request a medical appointment with preferred doctor and times.",
  "category": "Booking",
  "tags": [
    "patient",
    "appointment",
    "healthcare",
    "clinic"
  ],
  "version": 2,
  "form_data": {
    "name": "Patient Appointment Request",
    "heading": "Request an Appointment",
    "description": "Provide your details and preferred time.",
    "formpages": [
      1
    ],
    "pages": [
      {
        "id": 1,
        "name": "Appointment",
        "heading": "Appointment Details",
        "description": "Patient and scheduling info.",
        "folder": "0",
        "pagerows": [
          1,
          2,
          3,
          4,
          5
        ],
        "rows": [
          {
            "id": 1,
            "name": "Patient",
            "heading": "Patient Information",
            "description": "Contact and DOB.",
            "folder": "0",
            "rowcolumns": [
              1,
              2,
              3
            ],
            "columns": [
              {
                "id": 1,
                "name": "Column 1",
                "fields": [
                  1
                ],
                "width": 4,
                "field_data": [
                  {
                    "id": 1,
                    "field_type": "inputtext",
                    "name": "Full Name",
                    "heading": "Full Name",
                    "description": "Patient full name.",
                    "is_required": 1,
                    "placeholder": "Alex Johnson"
                  }
                ]
              },
              {
                "id": 2,
                "name": "Column 2",
                "fields": [
                  2
                ],
                "width": 4,
                "field_data": [
                  {
                    "id": 2,
                    "field_type": "inputemail",
                    "name": "Email",
                    "heading": "Email Address",
                    "description": "For confirmation.",
                    "is_required": 1,
                    "placeholder": "alex.johnson@example.com"
                  }
                ]
              },
              {
                "id": 3,
                "name": "Column 3",
                "fields": [
                  3
                ],
                "width": 4,
                "field_data": [
                  {
                    "id": 3,
                    "field_type": "inputdate",
                    "name": "Date of Birth",
                    "heading": "Date of Birth",
                    "description": "Patient DOB.",
                    "is_required": 1
                  }
                ]
              }
            ]
          },
          {
            "id": 2,
            "name": "Doctor/Reason",
            "heading": "Doctor & Reason",
            "description": "Reason for visit and doctor preference.",
            "folder": "0",
            "rowcolumns": [
              4,
              5
            ],
            "columns": [
              {
                "id": 4,
                "name": "Column 1",
                "fields": [
                  4
                ],
                "width": 6,
                "field_data": [
                  {
                    "id": 4,
                    "field_type": "selectfield",
                    "name": "Reason",
                    "heading": "Reason for Visit",
                    "description": "Select a reason.",
                    "is_required": 1,
                    "field_options": "{\"\": {\"General Consultation\": \"general\",\"Follow-up\": \"follow_up\",\"Prescription Renewal\": \"prescription\",\"Lab Results Discussion\": \"lab_results\",\"Other\": \"other\"}}"
                  }
                ]
              },
              {
                "id": 5,
                "name": "Column 2",
                "fields": [
                  5
                ],
                "width": 6,
                "field_data": [
                  {
                    "id": 5,
                    "field_type": "inputtext",
                    "name": "Preferred Doctor",
                    "heading": "Preferred Doctor (Optional)",
                    "description": "Enter doctor name if any.",
                    "is_required": 0,
                    "placeholder": "Dr. Emily Carter"
                  }
                ]
              }
            ]
          },
          {
            "id": 3,
            "name": "Preferred Time",
            "heading": "Preferred Time",
            "description": "Choose a date and time slot.",
            "folder": "0",
            "rowcolumns": [
              6,
              7
            ],
            "columns": [
              {
                "id": 6,
                "name": "Column 1",
                "fields": [
                  6
                ],
                "width": 6,
                "field_data": [
                  {
                    "id": 6,
                    "field_type": "inputdate",
                    "name": "Preferred Date",
                    "heading": "Preferred Date",
                    "description": "Choose a date.",
                    "is_required": 1
                  }
                ]
              },
              {
                "id": 7,
                "name": "Column 2",
                "fields": [
                  7
                ],
                "width": 6,
                "field_data": [
                  {
                    "id": 7,
                    "field_type": "selectfield",
                    "name": "Time Slot",
                    "heading": "Preferred Time Slot",
                    "description": "Select a time.",
                    "is_required": 1,
                    "field_options": "{\"Morning\": {\"09:00 AM\": \"09:00\", \"09:30 AM\": \"09:30\", \"10:00 AM\": \"10:00\", \"10:30 AM\": \"10:30\"}, \"Afternoon\": {\"12:00 PM\": \"12:00\", \"12:30 PM\": \"12:30\", \"01:00 PM\": \"13:00\", \"01:30 PM\": \"13:30\", \"02:00 PM\": \"14:00\"}}"
                  }
                ]
              }
            ]
          },
          {
            "id": 4,
            "name": "Notes & Consent",
            "heading": "Notes & Consent",
            "description": "Any additional info.",
            "folder": "0",
            "rowcolumns": [
              8
            ],
            "columns": [
              {
                "id": 8,
                "name": "Column 1",
                "fields": [
                  8
                ],
                "width": 12,
                "field_data": [
                  {
                    "id": 8,
                    "field_type": "textarea",
                    "name": "Notes",
                    "heading": "Additional Notes (Optional)",
                    "description": "Symptoms or requests.",
                    "is_required": 0,
                    "placeholder": "Share symptoms or other details..."
                  }
                ]
              }
            ]
          },
          {
            "id": 5,
            "name": "Notes & Consent (continued)",
            "heading": "Notes & Consent",
            "description": "",
            "folder": "0",
            "rowcolumns": [
              9
            ],
            "columns": [
              {
                "id": 9,
                "name": "Column 2",
                "fields": [
                  9
                ],
                "width": 12,
                "field_data": [
                  {
                    "id": 9,
                    "field_type": "inputcheckbox",
                    "name": "Consent",
                    "heading": "I agree to be contacted regarding this appointment",
                    "description": "Consent to contact.",
                    "is_required": 1,
                    "field_options": "[{\"I agree\": \"agree\"}]"
                  }
                ]
              }
            ]
          }
        ]
      }
    ],
    "user_action": {
      "type": "show_success_message",
      "message": "Thank you! Your appointment request has been submitted.",
      "url": ""
    }
  }
}
