[
  {
    "template_meta": {
      "title": "Advanced Clinic (with Resources)",
      "description": "Demonstrates intersecting schedules. A booking is only possible when the Service, Practitioner, AND the required Resource (e.g., a specific room) are all available. Includes two membership plans with recurring subscriptions.",
      "recommended": false,
      "new": true
    },
    "options": {
      "clisyc_dimension_registry": {
        "dimensions": {
          "clisyc_service": {
            "enabled": true,
            "primary": true,
            "frontend_visible": true,
            "is_resource": false
          },
          "clisyc_practitioner": {
            "enabled": true,
            "primary": false,
            "frontend_visible": true,
            "is_resource": false
          },
          "clisyc_room": {
            "enabled": true,
            "primary": false,
            "frontend_visible": true,
            "is_resource": true
          }
        },
        "relationships": {},
        "filter_order": [
          "clisyc_service",
          "clisyc_practitioner",
          "clisyc_room"
        ]
      },
      "clisyc_custom_dimension_types": {
        "clisyc_service": {
          "singular": "Service",
          "plural": "Services",
          "icon": "dashicons-clipboard",
          "public": true
        },
        "clisyc_practitioner": {
          "singular": "Practitioner",
          "plural": "Practitioners",
          "icon": "dashicons-businessperson",
          "public": true
        },
        "clisyc_room": {
          "singular": "Room",
          "plural": "Rooms",
          "icon": "dashicons-store",
          "public": true
        }
      }
    },
    "cpts": {
      "clisyc_service": [
        {
          "post_name": "initial-consultation",
          "post_title": "Initial Consultation",
          "post_meta": {
            "_clisyc_price": [
              "150"
            ],
            "_clisyc_color": [
              "#007cba"
            ],
            "_clisyc_capacity": [
              "1"
            ],
            "_clisyc_booking_mode": [
              "slot"
            ],
            "_clisyc_duration_minutes": [
              "60"
            ],
            "_clisyc_schedule": [
              "{\"pattern_enabled\":false,\"pattern_start_date\":\"\",\"pattern_sequence\":\"A\",\"templates\":{\"A\":{\"1\":{\"slots\":[{\"start\":\"09:00\",\"end\":\"12:00\"},{\"start\":\"13:00\",\"end\":\"17:00\"}]},\"2\":{\"slots\":[{\"start\":\"09:00\",\"end\":\"12:00\"},{\"start\":\"13:00\",\"end\":\"17:00\"}]},\"3\":{\"slots\":[{\"start\":\"09:00\",\"end\":\"12:00\"},{\"start\":\"13:00\",\"end\":\"17:00\"}]},\"4\":{\"slots\":[{\"start\":\"09:00\",\"end\":\"12:00\"},{\"start\":\"13:00\",\"end\":\"17:00\"}]},\"5\":{\"slots\":[{\"start\":\"09:00\",\"end\":\"12:00\"}]}}}}"
            ]
          }
        },
        {
          "post_name": "xray-procedure",
          "post_title": "X-Ray Procedure",
          "post_meta": {
            "_clisyc_price": [
              "250"
            ],
            "_clisyc_color": [
              "#e53983"
            ],
            "_clisyc_capacity": [
              "1"
            ],
            "_clisyc_booking_mode": [
              "slot"
            ],
            "_clisyc_duration_minutes": [
              "30"
            ],
            "_clisyc_schedule": [
              "{\"pattern_enabled\":false,\"pattern_start_date\":\"\",\"pattern_sequence\":\"A\",\"templates\":{\"A\":{\"1\":{\"slots\":[{\"start\":\"08:00\",\"end\":\"10:00\"},{\"start\":\"14:00\",\"end\":\"16:00\"}]},\"2\":{\"slots\":[{\"start\":\"08:00\",\"end\":\"10:00\"},{\"start\":\"14:00\",\"end\":\"16:00\"}]},\"3\":{\"slots\":[{\"start\":\"08:00\",\"end\":\"10:00\"},{\"start\":\"14:00\",\"end\":\"16:00\"}]},\"4\":{\"slots\":[{\"start\":\"08:00\",\"end\":\"10:00\"},{\"start\":\"14:00\",\"end\":\"16:00\"}]},\"5\":{\"slots\":[{\"start\":\"08:00\",\"end\":\"10:00\"}]}}}}"
            ]
          }
        }
      ],
      "clisyc_practitioner": [
        {
          "post_name": "dr-carter",
          "post_title": "Dr. Carter",
          "post_meta": {
            "_clisyc_color": [
              "#72aee6"
            ]
          }
        },
        {
          "post_name": "dr-evans",
          "post_title": "Dr. Evans",
          "post_meta": {
            "_clisyc_color": [
              "#8f34cc"
            ]
          }
        }
      ],
      "clisyc_room": [
        {
          "post_name": "consulting-room-1",
          "post_title": "Consulting Room 1",
          "post_meta": {
            "_clisyc_color": [
              "#466f8c"
            ],
            "_clisyc_schedule": [
              "{\"pattern_enabled\":false,\"pattern_start_date\":\"\",\"pattern_sequence\":\"A\",\"templates\":{\"A\":{\"1\":{\"slots\":[{\"start\":\"08:00\",\"end\":\"12:00\"},{\"start\":\"13:00\",\"end\":\"17:30\"}]},\"2\":{\"slots\":[{\"start\":\"08:00\",\"end\":\"12:00\"},{\"start\":\"13:00\",\"end\":\"17:30\"}]},\"3\":{\"slots\":[{\"start\":\"08:00\",\"end\":\"12:00\"},{\"start\":\"13:00\",\"end\":\"17:30\"}]},\"4\":{\"slots\":[{\"start\":\"08:00\",\"end\":\"12:00\"},{\"start\":\"13:00\",\"end\":\"17:30\"}]},\"5\":{\"slots\":[{\"start\":\"08:00\",\"end\":\"12:00\"}]}}}}"
            ]
          }
        },
        {
          "post_name": "radiology-suite-a",
          "post_title": "Radiology Suite A",
          "post_meta": {
            "_clisyc_color": [
              "#dba617"
            ],
            "_clisyc_schedule": [
              "{\"pattern_enabled\":false,\"pattern_start_date\":\"\",\"pattern_sequence\":\"A\",\"templates\":{\"A\":{\"1\":{\"slots\":[{\"start\":\"07:30\",\"end\":\"12:00\"},{\"start\":\"13:00\",\"end\":\"17:00\"}]},\"2\":{\"slots\":[{\"start\":\"07:30\",\"end\":\"12:00\"},{\"start\":\"13:00\",\"end\":\"17:00\"}]},\"3\":{\"slots\":[{\"start\":\"07:30\",\"end\":\"12:00\"},{\"start\":\"13:00\",\"end\":\"17:00\"}]},\"4\":{\"slots\":[{\"start\":\"07:30\",\"end\":\"12:00\"},{\"start\":\"13:00\",\"end\":\"17:00\"}]},\"5\":{\"slots\":[{\"start\":\"07:30\",\"end\":\"12:00\"}]}}}}"
            ]
          }
        }
      ],
      "clisyc_member_plan": [
        {
          "post_name": "wellness-plan",
          "post_title": "Wellness Plan",
          "post_meta": {
            "_clisyc_plan_price_display": ["$89/month"],
            "_clisyc_plan_description": ["Routine care with member savings"],
            "_clisyc_member_plan_access_rules": [
              [
                {"rule_type": "booking_limit", "service_id": 0, "limit_value": 2, "limit_period": "per_month", "discount_value": 0},
                {"rule_type": "discount_percent", "service_id": 0, "limit_value": 0, "limit_period": "per_month", "discount_value": 15}
              ]
            ]
          }
        },
        {
          "post_name": "comprehensive-care",
          "post_title": "Comprehensive Care",
          "post_meta": {
            "_clisyc_plan_price_display": ["$249/month"],
            "_clisyc_plan_description": ["Full access to all clinic services"],
            "_clisyc_member_plan_access_rules": [
              [
                {"rule_type": "booking_limit", "service_id": 0, "limit_value": 1, "limit_period": "unlimited", "discount_value": 0},
                {"rule_type": "discount_percent", "service_id": 0, "limit_value": 0, "limit_period": "per_month", "discount_value": 35}
              ]
            ]
          }
        }
      ]
    },
    "pages": [
      {
        "post_name": "membership-plans",
        "post_title": "Membership Plans",
        "post_content": "[clisyc_membership_plans columns=\"2\"]"
      }
    ],
    "relationships": [
      {
        "parent_type": "clisyc_service",
        "parent_slug": "initial-consultation",
        "child_type": "clisyc_practitioner",
        "child_slug": "dr-carter"
      },
      {
        "parent_type": "clisyc_service",
        "parent_slug": "initial-consultation",
        "child_type": "clisyc_practitioner",
        "child_slug": "dr-evans"
      },
      {
        "parent_type": "clisyc_service",
        "parent_slug": "initial-consultation",
        "child_type": "clisyc_room",
        "child_slug": "consulting-room-1"
      },
      {
        "parent_type": "clisyc_service",
        "parent_slug": "xray-procedure",
        "child_type": "clisyc_practitioner",
        "child_slug": "dr-evans"
      },
      {
        "parent_type": "clisyc_service",
        "parent_slug": "xray-procedure",
        "child_type": "clisyc_room",
        "child_slug": "radiology-suite-a"
      },
      {
        "parent_type": "clisyc_practitioner",
        "parent_slug": "dr-carter",
        "child_type": "clisyc_room",
        "child_slug": "consulting-room-1"
      },
      {
        "parent_type": "clisyc_practitioner",
        "parent_slug": "dr-evans",
        "child_type": "clisyc_room",
        "child_slug": "consulting-room-1"
      },
      {
        "parent_type": "clisyc_practitioner",
        "parent_slug": "dr-evans",
        "child_type": "clisyc_room",
        "child_slug": "radiology-suite-a"
      }
    ],
    "output_templates": [
      {
        "post_title": "Booking Confirmation",
        "clisyc_template_json": "{\"sections\":[{\"id\":\"ot_1\",\"type\":\"text\",\"content\":\"Hi {client_first_name}, your appointment has been confirmed!\",\"fields\":[]},{\"id\":\"ot_2\",\"type\":\"text\",\"content\":\"Date: {appointment_date_formatted}\",\"fields\":[]},{\"id\":\"ot_3\",\"type\":\"text\",\"content\":\"Time: {appointment_time}\",\"fields\":[]},{\"id\":\"ot_4\",\"type\":\"text\",\"content\":\"Duration: {appointment_duration} minutes\",\"fields\":[]},{\"id\":\"ot_5\",\"type\":\"text\",\"content\":\"If you need to make changes, please contact us at {site_name}.\",\"fields\":[]}]}",
        "clisyc_triggers": [
          "new_appointment_client",
          "new_appointment_admin"
        ],
        "clisyc_channels": [
          "email"
        ]
      },
      {
        "post_title": "Appointment Reminder",
        "clisyc_template_json": "{\"sections\":[{\"id\":\"ot_1\",\"type\":\"text\",\"content\":\"Hi {client_first_name}, this is a reminder about your upcoming appointment.\",\"fields\":[]},{\"id\":\"ot_2\",\"type\":\"text\",\"content\":\"Date: {appointment_date_formatted}\",\"fields\":[]},{\"id\":\"ot_3\",\"type\":\"text\",\"content\":\"Time: {appointment_time}\",\"fields\":[]},{\"id\":\"ot_4\",\"type\":\"text\",\"content\":\"View details: {appointment_view_link}\",\"fields\":[]},{\"id\":\"ot_5\",\"type\":\"text\",\"content\":\"We look forward to seeing you!\",\"fields\":[]}]}",
        "clisyc_triggers": [
          "appointment_reminder"
        ],
        "clisyc_channels": [
          "email"
        ]
      },
      {
        "post_title": "Cancellation Notice",
        "clisyc_template_json": "{\"sections\":[{\"id\":\"ot_1\",\"type\":\"text\",\"content\":\"Hi {client_first_name}, your appointment on {appointment_date_formatted} at {appointment_time} has been cancelled.\",\"fields\":[]},{\"id\":\"ot_2\",\"type\":\"text\",\"content\":\"If this was a mistake or you would like to reschedule, please visit {site_url} or contact us.\",\"fields\":[]}]}",
        "clisyc_triggers": [
          "appointment_cancelled_admin",
          "appointment_cancelled_by_client"
        ],
        "clisyc_channels": [
          "email"
        ]
      },
      {
        "post_title": "Payment Receipt",
        "clisyc_template_json": "{\"sections\":[{\"id\":\"ot_1\",\"type\":\"text\",\"content\":\"Hi {client_name}, thank you for your payment!\",\"fields\":[]},{\"id\":\"ot_2\",\"type\":\"text\",\"content\":\"Order #: {order_id}\",\"fields\":[]},{\"id\":\"ot_3\",\"type\":\"text\",\"content\":\"Amount: {order_total}\",\"fields\":[]},{\"id\":\"ot_4\",\"type\":\"text\",\"content\":\"Payment method: {order_payment_method_title}\",\"fields\":[]},{\"id\":\"ot_5\",\"type\":\"text\",\"content\":\"Appointment: {appointment_date_formatted} at {appointment_time}\",\"fields\":[]},{\"id\":\"ot_6\",\"type\":\"text\",\"content\":\"Thank you for choosing {site_name}!\",\"fields\":[]}]}",
        "clisyc_triggers": [
          "payment_successful_client"
        ],
        "clisyc_channels": [
          "email"
        ]
      },
      {
        "post_title": "Admin: New Booking Alert",
        "clisyc_template_json": "{\"sections\":[{\"id\":\"ot_1\",\"type\":\"text\",\"content\":\"New booking received from {client_name} ({client_email}).\",\"fields\":[]},{\"id\":\"ot_2\",\"type\":\"text\",\"content\":\"Date: {appointment_date_formatted} at {appointment_time}\",\"fields\":[]},{\"id\":\"ot_3\",\"type\":\"text\",\"content\":\"Duration: {appointment_duration} minutes\",\"fields\":[]},{\"id\":\"ot_4\",\"type\":\"text\",\"content\":\"Notes: {appointment_notes}\",\"fields\":[]},{\"id\":\"ot_5\",\"type\":\"text\",\"content\":\"Edit: {appointment_edit_link_admin}\",\"fields\":[]}]}",
        "clisyc_triggers": [
          "new_appointment_client"
        ],
        "clisyc_channels": [
          "email"
        ]
      }
    ]
  }
]
