{
  "report_generated_at": "2026-02-08T08:32:50.191609+00:00",
  "date_range": {
    "start": "2026-01-08T00:00:00+03:00",
    "end": "2026-04-08T23:59:59.999999+03:00"
  },
  "templates": [
    {
      "template_id": "bcff8a0c-2ec2-42e6-ac78-9f203d0c6a84",
      "template_name": "Appointment Satisfaction Survey",
      "template_name_ar": "\u0627\u0633\u062a\u0628\u064a\u0627\u0646 \u0631\u0636\u0627 \u0627\u0644\u0645\u0648\u0627\u0639\u064a\u062f",
      "survey_type": "stage",
      "scoring_method": "average",
      "negative_threshold": 3.0,
      "question_count": 10,
      "metrics": {
        "total_sent": 10,
        "total_completed": 0,
        "completion_rate": 0.0,
        "avg_score": 0.0,
        "std_deviation": 0.0,
        "negative_count": 0,
        "negative_rate": 0
      },
      "score_distribution": {
        "excellent": 0,
        "good": 0,
        "average": 0,
        "poor": 0,
        "excellent_percent": 0,
        "good_percent": 0,
        "average_percent": 0,
        "poor_percent": 0
      },
      "status_breakdown": {
        "sent": 7,
        "viewed": 3
      },
      "channel_performance": {
        "sms": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        },
        "whatsapp": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        },
        "email": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        }
      },
      "monthly_trends": [
        {
          "month": "2026-01",
          "month_name": "January 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-02",
          "month_name": "February 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-03",
          "month_name": "March 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-04",
          "month_name": "April 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        }
      ],
      "engagement_metrics": {
        "avg_completion_time_seconds": 0.0,
        "min_completion_time_seconds": 0.0,
        "max_completion_time_seconds": 0.0,
        "avg_opens": 0.0,
        "max_opens": 0.0
      },
      "patient_contact_metrics": {
        "total_negative": 0,
        "contacted": 0,
        "contacted_rate": 0,
        "resolved": 0,
        "resolved_rate": 0
      },
      "comments_metrics": {
        "with_comments": 0,
        "comment_rate": 0,
        "avg_comment_length": 0.0
      },
      "questions": [
        {
          "question_id": "81dfa660-f400-4f93-9846-1ec73587fa84",
          "question_text": "Did the Appointment Section's service exceed your expectations?",
          "question_text_ar": "\u0647\u0644 \u062a\u062c\u0627\u0648\u0632\u062a \u062e\u062f\u0645\u0629 \u0642\u0633\u0645 \u0627\u0644\u0645\u0648\u0627\u0639\u064a\u062f \u062a\u0648\u0642\u0639\u0627\u062a\u0643\u061f",
          "question_type": "multiple_choice",
          "order": 1,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "48cb88c3-b22e-42bf-8466-99e93f0da1a3",
          "question_text": "Did the doctor explain everything about your case?",
          "question_text_ar": "\u0647\u0644 \u0634\u0631\u062d \u0627\u0644\u0637\u0628\u064a\u0628 \u0643\u0644 \u0634\u064a\u0621 \u0639\u0646 \u062d\u0627\u0644\u062a\u0643\u061f",
          "question_type": "multiple_choice",
          "order": 2,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "9f882e22-d9b4-46ac-9117-6ec306e30187",
          "question_text": "Did the pharmacist explain to you the medication clearly?",
          "question_text_ar": "\u0647\u0644 \u0634\u0631\u062d \u0627\u0644\u0635\u064a\u062f\u0644\u064a \u0644\u0643 \u0627\u0644\u062f\u0648\u0627\u0621 \u0628\u0634\u0643\u0644 \u0648\u0627\u0636\u062d\u061f",
          "question_type": "multiple_choice",
          "order": 3,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "381aa60a-69db-4762-83db-7effb381f81f",
          "question_text": "Did the staff attend your needs in an understandable language?",
          "question_text_ar": "\u0647\u0644 \u0642\u0627\u0645 \u0627\u0644\u0645\u0648\u0638\u0641\u0648\u0646 \u0628\u062a\u0644\u0628\u064a\u0629 \u0627\u062d\u062a\u064a\u0627\u062c\u0627\u062a\u0643 \u0628\u0644\u063a\u0629 \u0645\u0641\u0647\u0648\u0645\u0629\u061f",
          "question_type": "multiple_choice",
          "order": 4,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "51a462ca-85c7-45ab-92de-24ca537f4ef5",
          "question_text": "Was it easy to get an appointment?",
          "question_text_ar": "\u0647\u0644 \u0643\u0627\u0646 \u0645\u0646 \u0627\u0644\u0633\u0647\u0644 \u0627\u0644\u062d\u0635\u0648\u0644 \u0639\u0644\u0649 \u0645\u0648\u0639\u062f\u061f",
          "question_type": "multiple_choice",
          "order": 5,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "6166e6bc-8fc9-455a-9f1f-b97c793b544a",
          "question_text": "Were you satisfied with your interaction with the doctor?",
          "question_text_ar": "\u0647\u0644 \u0643\u0646\u062a \u0631\u0627\u0636\u064d \u0639\u0646 \u062a\u0641\u0627\u0639\u0644\u0643 \u0645\u0639 \u0627\u0644\u0637\u0628\u064a\u0628\u061f",
          "question_type": "multiple_choice",
          "order": 6,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "51cadedd-9645-4d5e-837a-2ea583e1045c",
          "question_text": "Were you served by Laboratory Receptionists as required?",
          "question_text_ar": "\u0647\u0644 \u0642\u062f\u0645\u062a \u0644\u0643 \u062e\u062f\u0645\u0629 \u0627\u0633\u062a\u0642\u0628\u0627\u0644 \u0627\u0644\u0645\u062e\u062a\u0628\u0631 \u0643\u0645\u0627 \u0647\u0648 \u0645\u0637\u0644\u0648\u0628\u061f",
          "question_type": "multiple_choice",
          "order": 7,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "72738b11-1e44-48b4-b32a-e9a447c0ca95",
          "question_text": "Were you served by Radiology Receptionists as required?",
          "question_text_ar": "\u0647\u0644 \u0642\u062f\u0645\u062a \u0644\u0643 \u062e\u062f\u0645\u0629 \u0627\u0633\u062a\u0642\u0628\u0627\u0644 \u0627\u0644\u0623\u0634\u0639\u0629 \u0643\u0645\u0627 \u0647\u0648 \u0645\u0637\u0644\u0648\u0628\u061f",
          "question_type": "multiple_choice",
          "order": 8,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "c6a8d38f-8d58-4527-8885-11b81dc417ab",
          "question_text": "Were you served by Receptionists as required?",
          "question_text_ar": "\u0647\u0644 \u0642\u062f\u0645\u062a \u0644\u0643 \u062e\u062f\u0645\u0629 \u0627\u0644\u0627\u0633\u062a\u0642\u0628\u0627\u0644 \u0643\u0645\u0627 \u0647\u0648 \u0645\u0637\u0644\u0648\u0628\u061f",
          "question_type": "multiple_choice",
          "order": 9,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "08af21c5-5a2b-4e84-a12a-7a21789d921a",
          "question_text": "Would you recommend the hospital to your friends and family?",
          "question_text_ar": "\u0647\u0644 \u062a\u0648\u0635\u064a \u0628\u0627\u0644\u0645\u0633\u062a\u0634\u0641\u0649 \u0644\u0623\u0635\u062f\u0642\u0627\u0626\u0643 \u0648\u0639\u0627\u0626\u0644\u062a\u0643\u061f",
          "question_type": "multiple_choice",
          "order": 10,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        }
      ],
      "rankings": {
        "top_5_by_score": [],
        "bottom_5_by_score": [],
        "top_5_by_correlation": [],
        "most_skipped_5": [
          {
            "question": "Did the Appointment Section's service exceed your expectations?",
            "order": 1,
            "response_rate": 0
          },
          {
            "question": "Did the doctor explain everything about your case?",
            "order": 2,
            "response_rate": 0
          },
          {
            "question": "Did the pharmacist explain to you the medication clearly?",
            "order": 3,
            "response_rate": 0
          },
          {
            "question": "Did the staff attend your needs in an understandable language?",
            "order": 4,
            "response_rate": 0
          },
          {
            "question": "Was it easy to get an appointment?",
            "order": 5,
            "response_rate": 0
          }
        ]
      },
      "insights": [
        {
          "category": "Engagement",
          "severity": "high",
          "message": "Low completion rate (0.0%). Consider improving survey timing and delivery channels."
        },
        {
          "category": "Performance",
          "severity": "high",
          "message": "Below average performance (0.0/5.0). Review worst performing questions for improvement opportunities."
        },
        {
          "category": "Quality",
          "severity": "positive",
          "message": "Low negative survey rate (0%). Excellent patient satisfaction."
        },
        {
          "category": "Questions",
          "severity": "low",
          "message": "Question 1: \"Did the Appointment Section's service exceed your expectations?\" has a low response rate (0%). Consider making it optional or improving clarity."
        }
      ]
    },
    {
      "template_id": "0f2d77d9-714e-48d8-905d-94ce84916e2e",
      "template_name": "Day Case Patient Survey",
      "template_name_ar": "",
      "survey_type": "stage",
      "scoring_method": "average",
      "negative_threshold": 3.0,
      "question_count": 6,
      "metrics": {
        "total_sent": 1,
        "total_completed": 0,
        "completion_rate": 0.0,
        "avg_score": 0.0,
        "std_deviation": 0.0,
        "negative_count": 0,
        "negative_rate": 0
      },
      "score_distribution": {
        "excellent": 0,
        "good": 0,
        "average": 0,
        "poor": 0,
        "excellent_percent": 0,
        "good_percent": 0,
        "average_percent": 0,
        "poor_percent": 0
      },
      "status_breakdown": {
        "sent": 1
      },
      "channel_performance": {
        "sms": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        },
        "whatsapp": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        },
        "email": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        }
      },
      "monthly_trends": [
        {
          "month": "2026-01",
          "month_name": "January 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-02",
          "month_name": "February 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-03",
          "month_name": "March 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-04",
          "month_name": "April 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        }
      ],
      "engagement_metrics": {
        "avg_completion_time_seconds": 0.0,
        "min_completion_time_seconds": 0.0,
        "max_completion_time_seconds": 0.0,
        "avg_opens": 0.0,
        "max_opens": 0.0
      },
      "patient_contact_metrics": {
        "total_negative": 0,
        "contacted": 0,
        "contacted_rate": 0,
        "resolved": 0,
        "resolved_rate": 0
      },
      "comments_metrics": {
        "with_comments": 0,
        "comment_rate": 0,
        "avg_comment_length": 0.0
      },
      "questions": [
        {
          "question_id": "3a869a0f-e39e-4277-8c0f-b43f8fb3ddc2",
          "question_text": "How satisfied were you with the pre-procedure preparation?",
          "question_text_ar": "",
          "question_type": "text",
          "order": 1,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "text_response_count": 0,
          "avg_text_length": 0.0,
          "has_numeric_responses": false
        },
        {
          "question_id": "ccde6cb1-53f7-4dbf-82ca-c5ea540568d2",
          "question_text": "How satisfied were you with the procedure itself?",
          "question_text_ar": "",
          "question_type": "text",
          "order": 2,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "text_response_count": 0,
          "avg_text_length": 0.0,
          "has_numeric_responses": false
        },
        {
          "question_id": "50f2dd5e-daad-4c78-9a10-d826d88336ef",
          "question_text": "How satisfied were you with the post-procedure care?",
          "question_text_ar": "",
          "question_type": "text",
          "order": 3,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "text_response_count": 0,
          "avg_text_length": 0.0,
          "has_numeric_responses": false
        },
        {
          "question_id": "43c6fed0-34ec-4384-b7a8-fa649ebe435b",
          "question_text": "How satisfied were you with the discharge process?",
          "question_text_ar": "",
          "question_type": "text",
          "order": 4,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "text_response_count": 0,
          "avg_text_length": 0.0,
          "has_numeric_responses": false
        },
        {
          "question_id": "4aeb877b-e2e0-4bb4-81e6-f26f99ec3acd",
          "question_text": "How likely are you to recommend this hospital to others?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 5,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "avg_score": 0.0,
          "std_deviation": 0.0,
          "skewness": 0.0,
          "kurtosis": 0.0,
          "correlation_with_overall": 0.0,
          "score_distribution": {
            "score_1": 0,
            "score_2": 0,
            "score_3": 0,
            "score_4": 0,
            "score_5": 0,
            "score_1_percent": 0,
            "score_2_percent": 0,
            "score_3_percent": 0,
            "score_4_percent": 0,
            "score_5_percent": 0
          },
          "channel_performance": {
            "sms": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "whatsapp": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "email": {
              "response_count": 0,
              "avg_score": 0.0
            }
          },
          "monthly_trends": [
            {
              "month": "2025-02",
              "month_name": "February 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "6aba7041-b92e-4884-86fa-192f56fde0d8",
          "question_text": "Any additional comments or suggestions?",
          "question_text_ar": "",
          "question_type": "text",
          "order": 6,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "text_response_count": 0,
          "avg_text_length": 0.0,
          "has_numeric_responses": false
        }
      ],
      "rankings": {
        "top_5_by_score": [
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "avg_score": 0.0
          }
        ],
        "bottom_5_by_score": [
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "avg_score": 0.0
          }
        ],
        "top_5_by_correlation": [
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "correlation": 0.0
          }
        ],
        "most_skipped_5": [
          {
            "question": "How satisfied were you with the pre-procedure preparation?",
            "order": 1,
            "response_rate": 0
          },
          {
            "question": "How satisfied were you with the procedure itself?",
            "order": 2,
            "response_rate": 0
          },
          {
            "question": "How satisfied were you with the post-procedure care?",
            "order": 3,
            "response_rate": 0
          },
          {
            "question": "How satisfied were you with the discharge process?",
            "order": 4,
            "response_rate": 0
          },
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "response_rate": 0
          }
        ]
      },
      "insights": [
        {
          "category": "Engagement",
          "severity": "high",
          "message": "Low completion rate (0.0%). Consider improving survey timing and delivery channels."
        },
        {
          "category": "Performance",
          "severity": "high",
          "message": "Below average performance (0.0/5.0). Review worst performing questions for improvement opportunities."
        },
        {
          "category": "Quality",
          "severity": "positive",
          "message": "Low negative survey rate (0%). Excellent patient satisfaction."
        },
        {
          "category": "Questions",
          "severity": "medium",
          "message": "Question 5: \"How likely are you to recommend this hospital to others?\" has lowest average score (0.0/5.0). Consider reviewing this service area."
        },
        {
          "category": "Questions",
          "severity": "low",
          "message": "Question 1: \"How satisfied were you with the pre-procedure preparation?\" has a low response rate (0%). Consider making it optional or improving clarity."
        }
      ]
    },
    {
      "template_id": "28d539b9-5993-40e7-a592-8a9a53971d13",
      "template_name": "Day Case Patient Survey",
      "template_name_ar": "",
      "survey_type": "stage",
      "scoring_method": "average",
      "negative_threshold": 3.0,
      "question_count": 5,
      "metrics": {
        "total_sent": 976,
        "total_completed": 828,
        "completion_rate": 84.84,
        "avg_score": 4.72,
        "std_deviation": 1.03,
        "negative_count": 47,
        "negative_rate": 5.68
      },
      "score_distribution": {
        "excellent": 552,
        "good": 162,
        "average": 67,
        "poor": 47,
        "excellent_percent": 66.67,
        "good_percent": 19.57,
        "average_percent": 8.09,
        "poor_percent": 5.68
      },
      "status_breakdown": {
        "abandoned": 109,
        "completed": 828,
        "in_progress": 25,
        "viewed": 14
      },
      "channel_performance": {
        "sms": {
          "total_sent": 312,
          "completed": 265,
          "completion_rate": 84.94,
          "avg_score": 4.74
        },
        "whatsapp": {
          "total_sent": 325,
          "completed": 283,
          "completion_rate": 87.08,
          "avg_score": 4.71
        },
        "email": {
          "total_sent": 339,
          "completed": 280,
          "completion_rate": 82.6,
          "avg_score": 4.72
        }
      },
      "monthly_trends": [
        {
          "month": "2026-01",
          "month_name": "January 2026",
          "count": 83,
          "avg_score": 4.63,
          "negative_count": 4
        },
        {
          "month": "2026-02",
          "month_name": "February 2026",
          "count": 82,
          "avg_score": 4.75,
          "negative_count": 6
        },
        {
          "month": "2026-03",
          "month_name": "March 2026",
          "count": 25,
          "avg_score": 4.55,
          "negative_count": 3
        },
        {
          "month": "2026-04",
          "month_name": "April 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        }
      ],
      "engagement_metrics": {
        "avg_completion_time_seconds": 491.68,
        "min_completion_time_seconds": 491.68,
        "max_completion_time_seconds": 491.68,
        "avg_opens": 1.98,
        "max_opens": 1.98
      },
      "patient_contact_metrics": {
        "total_negative": 47,
        "contacted": 0,
        "contacted_rate": 0.0,
        "resolved": 0,
        "resolved_rate": 0.0
      },
      "comments_metrics": {
        "with_comments": 137,
        "comment_rate": 16.55,
        "avg_comment_length": 0.0
      },
      "questions": [
        {
          "question_id": "07fa4d55-3d5a-47ce-b663-2115f744164e",
          "question_text": "How satisfied were you with the pre-procedure preparation?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 1,
          "is_required": true,
          "response_count": 828,
          "response_rate": 100.0,
          "avg_score": 4.13,
          "std_deviation": 0.69,
          "skewness": -1.171,
          "kurtosis": 1.586,
          "correlation_with_overall": 0.972,
          "score_distribution": {
            "score_1": 0,
            "score_2": 2,
            "score_3": 11,
            "score_4": 24,
            "score_5": 42,
            "score_1_percent": 0.0,
            "score_2_percent": 0.24,
            "score_3_percent": 1.33,
            "score_4_percent": 2.9,
            "score_5_percent": 5.07
          },
          "channel_performance": {
            "sms": {
              "response_count": 265,
              "avg_score": 4.15
            },
            "whatsapp": {
              "response_count": 283,
              "avg_score": 4.11
            },
            "email": {
              "response_count": 280,
              "avg_score": 4.13
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 828,
              "avg_score": 4.13
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "bed1e13b-3b48-44ea-908e-8965698651be",
          "question_text": "How satisfied were you with the procedure itself?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 2,
          "is_required": true,
          "response_count": 828,
          "response_rate": 100.0,
          "avg_score": 4.11,
          "std_deviation": 0.71,
          "skewness": -1.29,
          "kurtosis": 1.931,
          "correlation_with_overall": 0.97,
          "score_distribution": {
            "score_1": 0,
            "score_2": 3,
            "score_3": 5,
            "score_4": 32,
            "score_5": 35,
            "score_1_percent": 0.0,
            "score_2_percent": 0.36,
            "score_3_percent": 0.6,
            "score_4_percent": 3.86,
            "score_5_percent": 4.23
          },
          "channel_performance": {
            "sms": {
              "response_count": 265,
              "avg_score": 4.11
            },
            "whatsapp": {
              "response_count": 283,
              "avg_score": 4.11
            },
            "email": {
              "response_count": 280,
              "avg_score": 4.1
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 828,
              "avg_score": 4.11
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "eddc95a7-3556-4666-a088-ddc7227087b6",
          "question_text": "How satisfied were you with the post-procedure care?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 3,
          "is_required": true,
          "response_count": 828,
          "response_rate": 100.0,
          "avg_score": 4.11,
          "std_deviation": 0.7,
          "skewness": -1.246,
          "kurtosis": 1.763,
          "correlation_with_overall": 0.972,
          "score_distribution": {
            "score_1": 0,
            "score_2": 1,
            "score_3": 11,
            "score_4": 35,
            "score_5": 21,
            "score_1_percent": 0.0,
            "score_2_percent": 0.12,
            "score_3_percent": 1.33,
            "score_4_percent": 4.23,
            "score_5_percent": 2.54
          },
          "channel_performance": {
            "sms": {
              "response_count": 265,
              "avg_score": 4.13
            },
            "whatsapp": {
              "response_count": 283,
              "avg_score": 4.1
            },
            "email": {
              "response_count": 280,
              "avg_score": 4.11
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 828,
              "avg_score": 4.11
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "baf7ed2e-975d-42fe-9d0e-1e95813a6737",
          "question_text": "How satisfied were you with the discharge process?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 4,
          "is_required": true,
          "response_count": 828,
          "response_rate": 100.0,
          "avg_score": 4.11,
          "std_deviation": 0.69,
          "skewness": -1.179,
          "kurtosis": 1.483,
          "correlation_with_overall": 0.975,
          "score_distribution": {
            "score_1": 0,
            "score_2": 4,
            "score_3": 11,
            "score_4": 34,
            "score_5": 22,
            "score_1_percent": 0.0,
            "score_2_percent": 0.48,
            "score_3_percent": 1.33,
            "score_4_percent": 4.11,
            "score_5_percent": 2.66
          },
          "channel_performance": {
            "sms": {
              "response_count": 265,
              "avg_score": 4.12
            },
            "whatsapp": {
              "response_count": 283,
              "avg_score": 4.11
            },
            "email": {
              "response_count": 280,
              "avg_score": 4.1
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 828,
              "avg_score": 4.11
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "9a61a5e4-020f-4833-a269-d2db6a20efc4",
          "question_text": "How likely are you to recommend this hospital to others?",
          "question_text_ar": "",
          "question_type": "nps",
          "order": 5,
          "is_required": true,
          "response_count": 828,
          "response_rate": 100.0,
          "avg_score": 7.16,
          "std_deviation": 2.47,
          "skewness": -0.92,
          "kurtosis": 0.345,
          "correlation_with_overall": 0.991,
          "score_distribution": {
            "score_1": 14,
            "score_2": 16,
            "score_3": 33,
            "score_4": 34,
            "score_5": 77,
            "score_1_percent": 1.69,
            "score_2_percent": 1.93,
            "score_3_percent": 3.99,
            "score_4_percent": 4.11,
            "score_5_percent": 9.3
          },
          "channel_performance": {
            "sms": {
              "response_count": 265,
              "avg_score": 7.2
            },
            "whatsapp": {
              "response_count": 283,
              "avg_score": 7.14
            },
            "email": {
              "response_count": 280,
              "avg_score": 7.13
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 828,
              "avg_score": 7.16
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        }
      ],
      "rankings": {
        "top_5_by_score": [
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "avg_score": 7.16
          },
          {
            "question": "How satisfied were you with the pre-procedure preparation?",
            "order": 1,
            "avg_score": 4.13
          },
          {
            "question": "How satisfied were you with the procedure itself?",
            "order": 2,
            "avg_score": 4.11
          },
          {
            "question": "How satisfied were you with the post-procedure care?",
            "order": 3,
            "avg_score": 4.11
          },
          {
            "question": "How satisfied were you with the discharge process?",
            "order": 4,
            "avg_score": 4.11
          }
        ],
        "bottom_5_by_score": [
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "avg_score": 7.16
          },
          {
            "question": "How satisfied were you with the pre-procedure preparation?",
            "order": 1,
            "avg_score": 4.13
          },
          {
            "question": "How satisfied were you with the procedure itself?",
            "order": 2,
            "avg_score": 4.11
          },
          {
            "question": "How satisfied were you with the post-procedure care?",
            "order": 3,
            "avg_score": 4.11
          },
          {
            "question": "How satisfied were you with the discharge process?",
            "order": 4,
            "avg_score": 4.11
          }
        ],
        "top_5_by_correlation": [
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "correlation": 0.991
          },
          {
            "question": "How satisfied were you with the discharge process?",
            "order": 4,
            "correlation": 0.975
          },
          {
            "question": "How satisfied were you with the pre-procedure preparation?",
            "order": 1,
            "correlation": 0.972
          },
          {
            "question": "How satisfied were you with the post-procedure care?",
            "order": 3,
            "correlation": 0.972
          },
          {
            "question": "How satisfied were you with the procedure itself?",
            "order": 2,
            "correlation": 0.97
          }
        ],
        "most_skipped_5": [
          {
            "question": "How satisfied were you with the pre-procedure preparation?",
            "order": 1,
            "response_rate": 100.0
          },
          {
            "question": "How satisfied were you with the procedure itself?",
            "order": 2,
            "response_rate": 100.0
          },
          {
            "question": "How satisfied were you with the post-procedure care?",
            "order": 3,
            "response_rate": 100.0
          },
          {
            "question": "How satisfied were you with the discharge process?",
            "order": 4,
            "response_rate": 100.0
          },
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "response_rate": 100.0
          }
        ]
      },
      "insights": [
        {
          "category": "Engagement",
          "severity": "positive",
          "message": "Excellent completion rate (84.84%) showing strong patient engagement."
        },
        {
          "category": "Performance",
          "severity": "positive",
          "message": "Outstanding performance (4.72/5.0). Maintain current service levels."
        },
        {
          "category": "Distribution",
          "severity": "positive",
          "message": "Majority of responses are excellent (66.67%). Outstanding service delivery."
        },
        {
          "category": "Follow-up",
          "severity": "medium",
          "message": "Only 0.0% of negative survey patients have been contacted. Improve follow-up processes."
        }
      ]
    },
    {
      "template_id": "1ec35997-9933-47ec-ab67-595004f988da",
      "template_name": "EMS Emergency Services Survey",
      "template_name_ar": "",
      "survey_type": "stage",
      "scoring_method": "average",
      "negative_threshold": 3.0,
      "question_count": 6,
      "metrics": {
        "total_sent": 2,
        "total_completed": 0,
        "completion_rate": 0.0,
        "avg_score": 0.0,
        "std_deviation": 0.0,
        "negative_count": 0,
        "negative_rate": 0
      },
      "score_distribution": {
        "excellent": 0,
        "good": 0,
        "average": 0,
        "poor": 0,
        "excellent_percent": 0,
        "good_percent": 0,
        "average_percent": 0,
        "poor_percent": 0
      },
      "status_breakdown": {
        "sent": 2
      },
      "channel_performance": {
        "sms": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        },
        "whatsapp": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        },
        "email": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        }
      },
      "monthly_trends": [
        {
          "month": "2026-01",
          "month_name": "January 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-02",
          "month_name": "February 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-03",
          "month_name": "March 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-04",
          "month_name": "April 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        }
      ],
      "engagement_metrics": {
        "avg_completion_time_seconds": 0.0,
        "min_completion_time_seconds": 0.0,
        "max_completion_time_seconds": 0.0,
        "avg_opens": 0.0,
        "max_opens": 0.0
      },
      "patient_contact_metrics": {
        "total_negative": 0,
        "contacted": 0,
        "contacted_rate": 0,
        "resolved": 0,
        "resolved_rate": 0
      },
      "comments_metrics": {
        "with_comments": 0,
        "comment_rate": 0,
        "avg_comment_length": 0.0
      },
      "questions": [
        {
          "question_id": "bbc1d417-e7b1-4f2a-8da3-b8708935d724",
          "question_text": "How satisfied were you with the ambulance response time?",
          "question_text_ar": "",
          "question_type": "text",
          "order": 1,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "text_response_count": 0,
          "avg_text_length": 0.0,
          "has_numeric_responses": false
        },
        {
          "question_id": "057b1804-3fc1-481b-9ecd-8426827bdc20",
          "question_text": "How satisfied were you with the paramedic care?",
          "question_text_ar": "",
          "question_type": "text",
          "order": 2,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "text_response_count": 0,
          "avg_text_length": 0.0,
          "has_numeric_responses": false
        },
        {
          "question_id": "e7dafe94-f8e1-45bd-8970-1a8035f55379",
          "question_text": "How satisfied were you with the emergency department care?",
          "question_text_ar": "",
          "question_type": "text",
          "order": 3,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "text_response_count": 0,
          "avg_text_length": 0.0,
          "has_numeric_responses": false
        },
        {
          "question_id": "5af33cb7-3cf3-41f7-b8f5-85ee9e66e50b",
          "question_text": "How satisfied were you with the communication from staff?",
          "question_text_ar": "",
          "question_type": "text",
          "order": 4,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "text_response_count": 0,
          "avg_text_length": 0.0,
          "has_numeric_responses": false
        },
        {
          "question_id": "435280d6-bd1f-4a15-8541-5a819ab22885",
          "question_text": "How likely are you to recommend this hospital to others?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 5,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "avg_score": 0.0,
          "std_deviation": 0.0,
          "skewness": 0.0,
          "kurtosis": 0.0,
          "correlation_with_overall": 0.0,
          "score_distribution": {
            "score_1": 0,
            "score_2": 0,
            "score_3": 0,
            "score_4": 0,
            "score_5": 0,
            "score_1_percent": 0,
            "score_2_percent": 0,
            "score_3_percent": 0,
            "score_4_percent": 0,
            "score_5_percent": 0
          },
          "channel_performance": {
            "sms": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "whatsapp": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "email": {
              "response_count": 0,
              "avg_score": 0.0
            }
          },
          "monthly_trends": [
            {
              "month": "2025-02",
              "month_name": "February 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "61f59d7e-4847-4965-8bfd-213985edc6e5",
          "question_text": "Any additional comments or suggestions?",
          "question_text_ar": "",
          "question_type": "text",
          "order": 6,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "text_response_count": 0,
          "avg_text_length": 0.0,
          "has_numeric_responses": false
        }
      ],
      "rankings": {
        "top_5_by_score": [
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "avg_score": 0.0
          }
        ],
        "bottom_5_by_score": [
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "avg_score": 0.0
          }
        ],
        "top_5_by_correlation": [
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "correlation": 0.0
          }
        ],
        "most_skipped_5": [
          {
            "question": "How satisfied were you with the ambulance response time?",
            "order": 1,
            "response_rate": 0
          },
          {
            "question": "How satisfied were you with the paramedic care?",
            "order": 2,
            "response_rate": 0
          },
          {
            "question": "How satisfied were you with the emergency department care?",
            "order": 3,
            "response_rate": 0
          },
          {
            "question": "How satisfied were you with the communication from staff?",
            "order": 4,
            "response_rate": 0
          },
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "response_rate": 0
          }
        ]
      },
      "insights": [
        {
          "category": "Engagement",
          "severity": "high",
          "message": "Low completion rate (0.0%). Consider improving survey timing and delivery channels."
        },
        {
          "category": "Performance",
          "severity": "high",
          "message": "Below average performance (0.0/5.0). Review worst performing questions for improvement opportunities."
        },
        {
          "category": "Quality",
          "severity": "positive",
          "message": "Low negative survey rate (0%). Excellent patient satisfaction."
        },
        {
          "category": "Questions",
          "severity": "medium",
          "message": "Question 5: \"How likely are you to recommend this hospital to others?\" has lowest average score (0.0/5.0). Consider reviewing this service area."
        },
        {
          "category": "Questions",
          "severity": "low",
          "message": "Question 1: \"How satisfied were you with the ambulance response time?\" has a low response rate (0%). Consider making it optional or improving clarity."
        }
      ]
    },
    {
      "template_id": "51d8c1e5-06c1-4dbf-b0c9-8e3cff5b7016",
      "template_name": "EMS Emergency Services Survey",
      "template_name_ar": "",
      "survey_type": "stage",
      "scoring_method": "average",
      "negative_threshold": 3.0,
      "question_count": 5,
      "metrics": {
        "total_sent": 952,
        "total_completed": 812,
        "completion_rate": 85.29,
        "avg_score": 4.67,
        "std_deviation": 1.0,
        "negative_count": 37,
        "negative_rate": 4.56
      },
      "score_distribution": {
        "excellent": 512,
        "good": 183,
        "average": 81,
        "poor": 36,
        "excellent_percent": 63.05,
        "good_percent": 22.54,
        "average_percent": 9.98,
        "poor_percent": 4.43
      },
      "status_breakdown": {
        "abandoned": 92,
        "completed": 812,
        "in_progress": 35,
        "viewed": 13
      },
      "channel_performance": {
        "sms": {
          "total_sent": 346,
          "completed": 287,
          "completion_rate": 82.95,
          "avg_score": 4.71
        },
        "whatsapp": {
          "total_sent": 305,
          "completed": 260,
          "completion_rate": 85.25,
          "avg_score": 4.71
        },
        "email": {
          "total_sent": 301,
          "completed": 265,
          "completion_rate": 88.04,
          "avg_score": 4.58
        }
      },
      "monthly_trends": [
        {
          "month": "2026-01",
          "month_name": "January 2026",
          "count": 89,
          "avg_score": 4.67,
          "negative_count": 4
        },
        {
          "month": "2026-02",
          "month_name": "February 2026",
          "count": 95,
          "avg_score": 4.62,
          "negative_count": 5
        },
        {
          "month": "2026-03",
          "month_name": "March 2026",
          "count": 23,
          "avg_score": 4.87,
          "negative_count": 0
        },
        {
          "month": "2026-04",
          "month_name": "April 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        }
      ],
      "engagement_metrics": {
        "avg_completion_time_seconds": 483.77,
        "min_completion_time_seconds": 483.77,
        "max_completion_time_seconds": 483.77,
        "avg_opens": 2.0,
        "max_opens": 2.0
      },
      "patient_contact_metrics": {
        "total_negative": 37,
        "contacted": 0,
        "contacted_rate": 0.0,
        "resolved": 0,
        "resolved_rate": 0.0
      },
      "comments_metrics": {
        "with_comments": 114,
        "comment_rate": 14.04,
        "avg_comment_length": 0.0
      },
      "questions": [
        {
          "question_id": "6261f22c-e1e4-4046-8616-0a8c52bf2f02",
          "question_text": "How satisfied were you with the ambulance response time?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 1,
          "is_required": true,
          "response_count": 812,
          "response_rate": 100.0,
          "avg_score": 4.08,
          "std_deviation": 0.67,
          "skewness": -1.079,
          "kurtosis": 1.623,
          "correlation_with_overall": 0.97,
          "score_distribution": {
            "score_1": 0,
            "score_2": 1,
            "score_3": 4,
            "score_4": 32,
            "score_5": 24,
            "score_1_percent": 0.0,
            "score_2_percent": 0.12,
            "score_3_percent": 0.49,
            "score_4_percent": 3.94,
            "score_5_percent": 2.96
          },
          "channel_performance": {
            "sms": {
              "response_count": 287,
              "avg_score": 4.12
            },
            "whatsapp": {
              "response_count": 260,
              "avg_score": 4.11
            },
            "email": {
              "response_count": 265,
              "avg_score": 4.02
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 812,
              "avg_score": 4.08
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "ae4cd000-6040-40cf-a5f7-68dc555acf66",
          "question_text": "How satisfied were you with the paramedic care?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 2,
          "is_required": true,
          "response_count": 812,
          "response_rate": 100.0,
          "avg_score": 4.07,
          "std_deviation": 0.67,
          "skewness": -1.024,
          "kurtosis": 1.384,
          "correlation_with_overall": 0.971,
          "score_distribution": {
            "score_1": 0,
            "score_2": 1,
            "score_3": 12,
            "score_4": 35,
            "score_5": 31,
            "score_1_percent": 0.0,
            "score_2_percent": 0.12,
            "score_3_percent": 1.48,
            "score_4_percent": 4.31,
            "score_5_percent": 3.82
          },
          "channel_performance": {
            "sms": {
              "response_count": 287,
              "avg_score": 4.1
            },
            "whatsapp": {
              "response_count": 260,
              "avg_score": 4.1
            },
            "email": {
              "response_count": 265,
              "avg_score": 4.02
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 812,
              "avg_score": 4.07
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "811ca945-45e4-4a62-a187-4f606c32e776",
          "question_text": "How satisfied were you with the emergency department care?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 3,
          "is_required": true,
          "response_count": 812,
          "response_rate": 100.0,
          "avg_score": 4.07,
          "std_deviation": 0.69,
          "skewness": -1.09,
          "kurtosis": 1.586,
          "correlation_with_overall": 0.972,
          "score_distribution": {
            "score_1": 0,
            "score_2": 2,
            "score_3": 14,
            "score_4": 23,
            "score_5": 27,
            "score_1_percent": 0.0,
            "score_2_percent": 0.25,
            "score_3_percent": 1.72,
            "score_4_percent": 2.83,
            "score_5_percent": 3.33
          },
          "channel_performance": {
            "sms": {
              "response_count": 287,
              "avg_score": 4.1
            },
            "whatsapp": {
              "response_count": 260,
              "avg_score": 4.1
            },
            "email": {
              "response_count": 265,
              "avg_score": 4.01
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 812,
              "avg_score": 4.07
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "a50f86aa-cf87-4a5e-8ab8-323dac1d5a83",
          "question_text": "How satisfied were you with the communication from staff?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 4,
          "is_required": true,
          "response_count": 812,
          "response_rate": 100.0,
          "avg_score": 4.09,
          "std_deviation": 0.65,
          "skewness": -0.979,
          "kurtosis": 1.239,
          "correlation_with_overall": 0.97,
          "score_distribution": {
            "score_1": 0,
            "score_2": 3,
            "score_3": 7,
            "score_4": 25,
            "score_5": 33,
            "score_1_percent": 0.0,
            "score_2_percent": 0.37,
            "score_3_percent": 0.86,
            "score_4_percent": 3.08,
            "score_5_percent": 4.06
          },
          "channel_performance": {
            "sms": {
              "response_count": 287,
              "avg_score": 4.12
            },
            "whatsapp": {
              "response_count": 260,
              "avg_score": 4.12
            },
            "email": {
              "response_count": 265,
              "avg_score": 4.03
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 812,
              "avg_score": 4.09
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "4d247b66-85a2-45a5-8b71-fd5374315e96",
          "question_text": "How likely are you to recommend this hospital to others?",
          "question_text_ar": "",
          "question_type": "nps",
          "order": 5,
          "is_required": true,
          "response_count": 812,
          "response_rate": 100.0,
          "avg_score": 7.01,
          "std_deviation": 2.42,
          "skewness": -0.77,
          "kurtosis": 0.104,
          "correlation_with_overall": 0.99,
          "score_distribution": {
            "score_1": 9,
            "score_2": 13,
            "score_3": 49,
            "score_4": 31,
            "score_5": 86,
            "score_1_percent": 1.11,
            "score_2_percent": 1.6,
            "score_3_percent": 6.03,
            "score_4_percent": 3.82,
            "score_5_percent": 10.59
          },
          "channel_performance": {
            "sms": {
              "response_count": 287,
              "avg_score": 7.1
            },
            "whatsapp": {
              "response_count": 260,
              "avg_score": 7.13
            },
            "email": {
              "response_count": 265,
              "avg_score": 6.8
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 812,
              "avg_score": 7.01
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        }
      ],
      "rankings": {
        "top_5_by_score": [
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "avg_score": 7.01
          },
          {
            "question": "How satisfied were you with the communication from staff?",
            "order": 4,
            "avg_score": 4.09
          },
          {
            "question": "How satisfied were you with the ambulance response time?",
            "order": 1,
            "avg_score": 4.08
          },
          {
            "question": "How satisfied were you with the paramedic care?",
            "order": 2,
            "avg_score": 4.07
          },
          {
            "question": "How satisfied were you with the emergency department care?",
            "order": 3,
            "avg_score": 4.07
          }
        ],
        "bottom_5_by_score": [
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "avg_score": 7.01
          },
          {
            "question": "How satisfied were you with the communication from staff?",
            "order": 4,
            "avg_score": 4.09
          },
          {
            "question": "How satisfied were you with the ambulance response time?",
            "order": 1,
            "avg_score": 4.08
          },
          {
            "question": "How satisfied were you with the paramedic care?",
            "order": 2,
            "avg_score": 4.07
          },
          {
            "question": "How satisfied were you with the emergency department care?",
            "order": 3,
            "avg_score": 4.07
          }
        ],
        "top_5_by_correlation": [
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "correlation": 0.99
          },
          {
            "question": "How satisfied were you with the emergency department care?",
            "order": 3,
            "correlation": 0.972
          },
          {
            "question": "How satisfied were you with the paramedic care?",
            "order": 2,
            "correlation": 0.971
          },
          {
            "question": "How satisfied were you with the ambulance response time?",
            "order": 1,
            "correlation": 0.97
          },
          {
            "question": "How satisfied were you with the communication from staff?",
            "order": 4,
            "correlation": 0.97
          }
        ],
        "most_skipped_5": [
          {
            "question": "How satisfied were you with the ambulance response time?",
            "order": 1,
            "response_rate": 100.0
          },
          {
            "question": "How satisfied were you with the paramedic care?",
            "order": 2,
            "response_rate": 100.0
          },
          {
            "question": "How satisfied were you with the emergency department care?",
            "order": 3,
            "response_rate": 100.0
          },
          {
            "question": "How satisfied were you with the communication from staff?",
            "order": 4,
            "response_rate": 100.0
          },
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "response_rate": 100.0
          }
        ]
      },
      "insights": [
        {
          "category": "Engagement",
          "severity": "positive",
          "message": "Excellent completion rate (85.29%) showing strong patient engagement."
        },
        {
          "category": "Performance",
          "severity": "positive",
          "message": "Outstanding performance (4.67/5.0). Maintain current service levels."
        },
        {
          "category": "Quality",
          "severity": "positive",
          "message": "Low negative survey rate (4.56%). Excellent patient satisfaction."
        },
        {
          "category": "Distribution",
          "severity": "positive",
          "message": "Majority of responses are excellent (63.05%). Outstanding service delivery."
        },
        {
          "category": "Follow-up",
          "severity": "medium",
          "message": "Only 0.0% of negative survey patients have been contacted. Improve follow-up processes."
        }
      ]
    },
    {
      "template_id": "cd3a2506-862f-4eee-b234-3e2c06f8d235",
      "template_name": "Inpatient Post-Discharge Survey",
      "template_name_ar": "",
      "survey_type": "stage",
      "scoring_method": "average",
      "negative_threshold": 3.0,
      "question_count": 7,
      "metrics": {
        "total_sent": 3,
        "total_completed": 0,
        "completion_rate": 0.0,
        "avg_score": 0.0,
        "std_deviation": 0.0,
        "negative_count": 0,
        "negative_rate": 0
      },
      "score_distribution": {
        "excellent": 0,
        "good": 0,
        "average": 0,
        "poor": 0,
        "excellent_percent": 0,
        "good_percent": 0,
        "average_percent": 0,
        "poor_percent": 0
      },
      "status_breakdown": {
        "sent": 2,
        "viewed": 1
      },
      "channel_performance": {
        "sms": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        },
        "whatsapp": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        },
        "email": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        }
      },
      "monthly_trends": [
        {
          "month": "2026-01",
          "month_name": "January 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-02",
          "month_name": "February 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-03",
          "month_name": "March 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-04",
          "month_name": "April 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        }
      ],
      "engagement_metrics": {
        "avg_completion_time_seconds": 0.0,
        "min_completion_time_seconds": 0.0,
        "max_completion_time_seconds": 0.0,
        "avg_opens": 0.0,
        "max_opens": 0.0
      },
      "patient_contact_metrics": {
        "total_negative": 0,
        "contacted": 0,
        "contacted_rate": 0,
        "resolved": 0,
        "resolved_rate": 0
      },
      "comments_metrics": {
        "with_comments": 0,
        "comment_rate": 0,
        "avg_comment_length": 0.0
      },
      "questions": [
        {
          "question_id": "acc592e1-1146-46a0-beb8-37518705fea4",
          "question_text": "How satisfied were you with the nursing care?",
          "question_text_ar": "",
          "question_type": "multiple_choice",
          "order": 1,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "c9869bda-3c91-4b29-b2bd-251bcd14d7c3",
          "question_text": "How satisfied were you with the doctor's care?",
          "question_text_ar": "",
          "question_type": "multiple_choice",
          "order": 2,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "e7df123d-0271-457d-a81e-1030dc6b93b9",
          "question_text": "How clean was your room?",
          "question_text_ar": "",
          "question_type": "multiple_choice",
          "order": 3,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "31493338-20b6-4b7a-96c0-6e63d57d96e8",
          "question_text": "How satisfied were you with the food quality?",
          "question_text_ar": "",
          "question_type": "multiple_choice",
          "order": 4,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "c3d47491-ca72-4f25-9f51-7941da2c12cd",
          "question_text": "How well were you informed about your treatment?",
          "question_text_ar": "",
          "question_type": "multiple_choice",
          "order": 5,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "e2f40c81-244a-49a3-b153-72a6e22dd126",
          "question_text": "How likely are you to recommend this hospital to others?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 6,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "avg_score": 0.0,
          "std_deviation": 0.0,
          "skewness": 0.0,
          "kurtosis": 0.0,
          "correlation_with_overall": 0.0,
          "score_distribution": {
            "score_1": 0,
            "score_2": 0,
            "score_3": 0,
            "score_4": 0,
            "score_5": 0,
            "score_1_percent": 0,
            "score_2_percent": 0,
            "score_3_percent": 0,
            "score_4_percent": 0,
            "score_5_percent": 0
          },
          "channel_performance": {
            "sms": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "whatsapp": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "email": {
              "response_count": 0,
              "avg_score": 0.0
            }
          },
          "monthly_trends": [
            {
              "month": "2025-02",
              "month_name": "February 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "a333285c-5c79-49f4-8372-06186024a438",
          "question_text": "Any additional comments or suggestions?",
          "question_text_ar": "",
          "question_type": "text",
          "order": 7,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "text_response_count": 0,
          "avg_text_length": 0.0,
          "has_numeric_responses": false
        }
      ],
      "rankings": {
        "top_5_by_score": [
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 6,
            "avg_score": 0.0
          }
        ],
        "bottom_5_by_score": [
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 6,
            "avg_score": 0.0
          }
        ],
        "top_5_by_correlation": [
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 6,
            "correlation": 0.0
          }
        ],
        "most_skipped_5": [
          {
            "question": "How satisfied were you with the nursing care?",
            "order": 1,
            "response_rate": 0
          },
          {
            "question": "How satisfied were you with the doctor's care?",
            "order": 2,
            "response_rate": 0
          },
          {
            "question": "How clean was your room?",
            "order": 3,
            "response_rate": 0
          },
          {
            "question": "How satisfied were you with the food quality?",
            "order": 4,
            "response_rate": 0
          },
          {
            "question": "How well were you informed about your treatment?",
            "order": 5,
            "response_rate": 0
          }
        ]
      },
      "insights": [
        {
          "category": "Engagement",
          "severity": "high",
          "message": "Low completion rate (0.0%). Consider improving survey timing and delivery channels."
        },
        {
          "category": "Performance",
          "severity": "high",
          "message": "Below average performance (0.0/5.0). Review worst performing questions for improvement opportunities."
        },
        {
          "category": "Quality",
          "severity": "positive",
          "message": "Low negative survey rate (0%). Excellent patient satisfaction."
        },
        {
          "category": "Questions",
          "severity": "medium",
          "message": "Question 6: \"How likely are you to recommend this hospital to others?\" has lowest average score (0.0/5.0). Consider reviewing this service area."
        },
        {
          "category": "Questions",
          "severity": "low",
          "message": "Question 1: \"How satisfied were you with the nursing care?\" has a low response rate (0%). Consider making it optional or improving clarity."
        }
      ]
    },
    {
      "template_id": "b39c358b-9b49-4046-a06b-e00d112f5c47",
      "template_name": "Inpatient Post-Discharge Survey",
      "template_name_ar": "",
      "survey_type": "stage",
      "scoring_method": "average",
      "negative_threshold": 3.0,
      "question_count": 6,
      "metrics": {
        "total_sent": 990,
        "total_completed": 852,
        "completion_rate": 86.06,
        "avg_score": 4.59,
        "std_deviation": 0.95,
        "negative_count": 41,
        "negative_rate": 4.81
      },
      "score_distribution": {
        "excellent": 554,
        "good": 182,
        "average": 75,
        "poor": 41,
        "excellent_percent": 65.02,
        "good_percent": 21.36,
        "average_percent": 8.8,
        "poor_percent": 4.81
      },
      "status_breakdown": {
        "abandoned": 95,
        "completed": 852,
        "in_progress": 21,
        "viewed": 22
      },
      "channel_performance": {
        "sms": {
          "total_sent": 349,
          "completed": 294,
          "completion_rate": 84.24,
          "avg_score": 4.61
        },
        "whatsapp": {
          "total_sent": 315,
          "completed": 276,
          "completion_rate": 87.62,
          "avg_score": 4.56
        },
        "email": {
          "total_sent": 326,
          "completed": 282,
          "completion_rate": 86.5,
          "avg_score": 4.61
        }
      },
      "monthly_trends": [
        {
          "month": "2026-01",
          "month_name": "January 2026",
          "count": 86,
          "avg_score": 4.55,
          "negative_count": 7
        },
        {
          "month": "2026-02",
          "month_name": "February 2026",
          "count": 104,
          "avg_score": 4.69,
          "negative_count": 5
        },
        {
          "month": "2026-03",
          "month_name": "March 2026",
          "count": 26,
          "avg_score": 4.43,
          "negative_count": 1
        },
        {
          "month": "2026-04",
          "month_name": "April 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        }
      ],
      "engagement_metrics": {
        "avg_completion_time_seconds": 484.76,
        "min_completion_time_seconds": 484.76,
        "max_completion_time_seconds": 484.76,
        "avg_opens": 2.02,
        "max_opens": 2.02
      },
      "patient_contact_metrics": {
        "total_negative": 41,
        "contacted": 0,
        "contacted_rate": 0.0,
        "resolved": 0,
        "resolved_rate": 0.0
      },
      "comments_metrics": {
        "with_comments": 131,
        "comment_rate": 15.38,
        "avg_comment_length": 0.0
      },
      "questions": [
        {
          "question_id": "958a2c55-2076-42db-81e2-75f79ca613ab",
          "question_text": "How satisfied were you with the nursing care?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 1,
          "is_required": true,
          "response_count": 852,
          "response_rate": 100.0,
          "avg_score": 4.1,
          "std_deviation": 0.69,
          "skewness": -1.16,
          "kurtosis": 1.708,
          "correlation_with_overall": 0.972,
          "score_distribution": {
            "score_1": 0,
            "score_2": 5,
            "score_3": 10,
            "score_4": 33,
            "score_5": 28,
            "score_1_percent": 0.0,
            "score_2_percent": 0.59,
            "score_3_percent": 1.17,
            "score_4_percent": 3.87,
            "score_5_percent": 3.29
          },
          "channel_performance": {
            "sms": {
              "response_count": 294,
              "avg_score": 4.12
            },
            "whatsapp": {
              "response_count": 276,
              "avg_score": 4.07
            },
            "email": {
              "response_count": 282,
              "avg_score": 4.11
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 852,
              "avg_score": 4.1
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "8c85139f-f298-42fe-ac4f-9a7ce6169d5d",
          "question_text": "How satisfied were you with the doctor's care?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 2,
          "is_required": true,
          "response_count": 852,
          "response_rate": 100.0,
          "avg_score": 4.11,
          "std_deviation": 0.67,
          "skewness": -1.083,
          "kurtosis": 1.35,
          "correlation_with_overall": 0.975,
          "score_distribution": {
            "score_1": 0,
            "score_2": 7,
            "score_3": 11,
            "score_4": 23,
            "score_5": 33,
            "score_1_percent": 0.0,
            "score_2_percent": 0.82,
            "score_3_percent": 1.29,
            "score_4_percent": 2.7,
            "score_5_percent": 3.87
          },
          "channel_performance": {
            "sms": {
              "response_count": 294,
              "avg_score": 4.12
            },
            "whatsapp": {
              "response_count": 276,
              "avg_score": 4.09
            },
            "email": {
              "response_count": 282,
              "avg_score": 4.13
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 852,
              "avg_score": 4.11
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "51db284b-8236-493d-9419-e68f6b5307cf",
          "question_text": "How clean was your room?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 3,
          "is_required": true,
          "response_count": 852,
          "response_rate": 100.0,
          "avg_score": 4.09,
          "std_deviation": 0.7,
          "skewness": -1.224,
          "kurtosis": 2.047,
          "correlation_with_overall": 0.973,
          "score_distribution": {
            "score_1": 0,
            "score_2": 2,
            "score_3": 13,
            "score_4": 39,
            "score_5": 37,
            "score_1_percent": 0.0,
            "score_2_percent": 0.23,
            "score_3_percent": 1.53,
            "score_4_percent": 4.58,
            "score_5_percent": 4.34
          },
          "channel_performance": {
            "sms": {
              "response_count": 294,
              "avg_score": 4.1
            },
            "whatsapp": {
              "response_count": 276,
              "avg_score": 4.07
            },
            "email": {
              "response_count": 282,
              "avg_score": 4.09
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 852,
              "avg_score": 4.09
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "7081d3ac-a7bb-46c3-b841-cb83b4545b28",
          "question_text": "How satisfied were you with the food quality?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 4,
          "is_required": true,
          "response_count": 852,
          "response_rate": 100.0,
          "avg_score": 4.1,
          "std_deviation": 0.68,
          "skewness": -1.131,
          "kurtosis": 1.589,
          "correlation_with_overall": 0.972,
          "score_distribution": {
            "score_1": 0,
            "score_2": 4,
            "score_3": 12,
            "score_4": 32,
            "score_5": 30,
            "score_1_percent": 0.0,
            "score_2_percent": 0.47,
            "score_3_percent": 1.41,
            "score_4_percent": 3.76,
            "score_5_percent": 3.52
          },
          "channel_performance": {
            "sms": {
              "response_count": 294,
              "avg_score": 4.1
            },
            "whatsapp": {
              "response_count": 276,
              "avg_score": 4.08
            },
            "email": {
              "response_count": 282,
              "avg_score": 4.11
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 852,
              "avg_score": 4.1
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "14ad8871-12c8-4825-86b5-d4b16aa82834",
          "question_text": "How well were you informed about your treatment?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 5,
          "is_required": true,
          "response_count": 852,
          "response_rate": 100.0,
          "avg_score": 4.1,
          "std_deviation": 0.7,
          "skewness": -1.183,
          "kurtosis": 1.767,
          "correlation_with_overall": 0.974,
          "score_distribution": {
            "score_1": 0,
            "score_2": 3,
            "score_3": 8,
            "score_4": 31,
            "score_5": 36,
            "score_1_percent": 0.0,
            "score_2_percent": 0.35,
            "score_3_percent": 0.94,
            "score_4_percent": 3.64,
            "score_5_percent": 4.23
          },
          "channel_performance": {
            "sms": {
              "response_count": 294,
              "avg_score": 4.1
            },
            "whatsapp": {
              "response_count": 276,
              "avg_score": 4.08
            },
            "email": {
              "response_count": 282,
              "avg_score": 4.11
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 852,
              "avg_score": 4.1
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "5312e135-31d9-4bd7-8639-154b2790f6f6",
          "question_text": "How likely are you to recommend this hospital to others?",
          "question_text_ar": "",
          "question_type": "nps",
          "order": 6,
          "is_required": true,
          "response_count": 852,
          "response_rate": 100.0,
          "avg_score": 7.07,
          "std_deviation": 2.4,
          "skewness": -0.839,
          "kurtosis": 0.29,
          "correlation_with_overall": 0.989,
          "score_distribution": {
            "score_1": 13,
            "score_2": 12,
            "score_3": 35,
            "score_4": 40,
            "score_5": 94,
            "score_1_percent": 1.53,
            "score_2_percent": 1.41,
            "score_3_percent": 4.11,
            "score_4_percent": 4.69,
            "score_5_percent": 11.03
          },
          "channel_performance": {
            "sms": {
              "response_count": 294,
              "avg_score": 7.1
            },
            "whatsapp": {
              "response_count": 276,
              "avg_score": 6.99
            },
            "email": {
              "response_count": 282,
              "avg_score": 7.11
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 852,
              "avg_score": 7.07
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        }
      ],
      "rankings": {
        "top_5_by_score": [
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 6,
            "avg_score": 7.07
          },
          {
            "question": "How satisfied were you with the doctor's care?",
            "order": 2,
            "avg_score": 4.11
          },
          {
            "question": "How satisfied were you with the nursing care?",
            "order": 1,
            "avg_score": 4.1
          },
          {
            "question": "How satisfied were you with the food quality?",
            "order": 4,
            "avg_score": 4.1
          },
          {
            "question": "How well were you informed about your treatment?",
            "order": 5,
            "avg_score": 4.1
          }
        ],
        "bottom_5_by_score": [
          {
            "question": "How satisfied were you with the doctor's care?",
            "order": 2,
            "avg_score": 4.11
          },
          {
            "question": "How satisfied were you with the nursing care?",
            "order": 1,
            "avg_score": 4.1
          },
          {
            "question": "How satisfied were you with the food quality?",
            "order": 4,
            "avg_score": 4.1
          },
          {
            "question": "How well were you informed about your treatment?",
            "order": 5,
            "avg_score": 4.1
          },
          {
            "question": "How clean was your room?",
            "order": 3,
            "avg_score": 4.09
          }
        ],
        "top_5_by_correlation": [
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 6,
            "correlation": 0.989
          },
          {
            "question": "How satisfied were you with the doctor's care?",
            "order": 2,
            "correlation": 0.975
          },
          {
            "question": "How well were you informed about your treatment?",
            "order": 5,
            "correlation": 0.974
          },
          {
            "question": "How clean was your room?",
            "order": 3,
            "correlation": 0.973
          },
          {
            "question": "How satisfied were you with the nursing care?",
            "order": 1,
            "correlation": 0.972
          }
        ],
        "most_skipped_5": [
          {
            "question": "How satisfied were you with the nursing care?",
            "order": 1,
            "response_rate": 100.0
          },
          {
            "question": "How satisfied were you with the doctor's care?",
            "order": 2,
            "response_rate": 100.0
          },
          {
            "question": "How clean was your room?",
            "order": 3,
            "response_rate": 100.0
          },
          {
            "question": "How satisfied were you with the food quality?",
            "order": 4,
            "response_rate": 100.0
          },
          {
            "question": "How well were you informed about your treatment?",
            "order": 5,
            "response_rate": 100.0
          }
        ]
      },
      "insights": [
        {
          "category": "Engagement",
          "severity": "positive",
          "message": "Excellent completion rate (86.06%) showing strong patient engagement."
        },
        {
          "category": "Performance",
          "severity": "positive",
          "message": "Outstanding performance (4.59/5.0). Maintain current service levels."
        },
        {
          "category": "Quality",
          "severity": "positive",
          "message": "Low negative survey rate (4.81%). Excellent patient satisfaction."
        },
        {
          "category": "Distribution",
          "severity": "positive",
          "message": "Majority of responses are excellent (65.02%). Outstanding service delivery."
        },
        {
          "category": "Follow-up",
          "severity": "medium",
          "message": "Only 0.0% of negative survey patients have been contacted. Improve follow-up processes."
        }
      ]
    },
    {
      "template_id": "2a5a98bb-94cd-4241-9ed0-d286c3cc4ced",
      "template_name": "Inpatient Satisfaction Survey",
      "template_name_ar": "\u0627\u0633\u062a\u0628\u064a\u0627\u0646 \u0631\u0636\u0627 \u0627\u0644\u0645\u0631\u0636\u0649 \u0627\u0644\u0645\u0642\u064a\u0645\u064a\u0646",
      "survey_type": "stage",
      "scoring_method": "average",
      "negative_threshold": 3.0,
      "question_count": 12,
      "metrics": {
        "total_sent": 9,
        "total_completed": 0,
        "completion_rate": 0.0,
        "avg_score": 0.0,
        "std_deviation": 0.0,
        "negative_count": 0,
        "negative_rate": 0
      },
      "score_distribution": {
        "excellent": 0,
        "good": 0,
        "average": 0,
        "poor": 0,
        "excellent_percent": 0,
        "good_percent": 0,
        "average_percent": 0,
        "poor_percent": 0
      },
      "status_breakdown": {
        "sent": 4,
        "viewed": 5
      },
      "channel_performance": {
        "sms": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        },
        "whatsapp": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        },
        "email": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        }
      },
      "monthly_trends": [
        {
          "month": "2026-01",
          "month_name": "January 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-02",
          "month_name": "February 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-03",
          "month_name": "March 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-04",
          "month_name": "April 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        }
      ],
      "engagement_metrics": {
        "avg_completion_time_seconds": 0.0,
        "min_completion_time_seconds": 0.0,
        "max_completion_time_seconds": 0.0,
        "avg_opens": 0.0,
        "max_opens": 0.0
      },
      "patient_contact_metrics": {
        "total_negative": 0,
        "contacted": 0,
        "contacted_rate": 0,
        "resolved": 0,
        "resolved_rate": 0
      },
      "comments_metrics": {
        "with_comments": 0,
        "comment_rate": 0,
        "avg_comment_length": 0.0
      },
      "questions": [
        {
          "question_id": "e6b9fabe-5444-422d-8ad7-8395c0e7e6fb",
          "question_text": "Are the Patient Relations Coordinators/ Social Workers approachable and accessible?",
          "question_text_ar": "\u0647\u0644 \u0645\u0646\u0633\u0642\u0648 \u0639\u0644\u0627\u0642\u0627\u062a \u0627\u0644\u0645\u0631\u0636\u0649 / \u0627\u0644\u0623\u062e\u0635\u0627\u0626\u064a\u0648\u0646 \u0627\u0644\u0627\u062c\u062a\u0645\u0627\u0639\u064a\u0648\u0646 \u0645\u062a\u0627\u062d\u0648\u0646 \u0648\u0633\u0647\u0644 \u0627\u0644\u0648\u0635\u0648\u0644 \u0625\u0644\u064a\u0647\u0645\u061f",
          "question_type": "multiple_choice",
          "order": 1,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "d32bbbe5-6cee-4c72-b8d5-e3ac5ce30590",
          "question_text": "Did the physician give you clear information about your medications?",
          "question_text_ar": "\u0647\u0644 \u0642\u062f\u0645 \u0627\u0644\u0637\u0628\u064a\u0628 \u0644\u0643 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0648\u0627\u0636\u062d\u0629 \u0639\u0646 \u0623\u062f\u0648\u064a\u062a\u0643\u061f",
          "question_type": "multiple_choice",
          "order": 2,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "24ed29ca-bdaa-40f7-8cc4-1a18fb28bff4",
          "question_text": "Did your physician exerted efforts to include you in making the decisions about your treatment?",
          "question_text_ar": "\u0647\u0644 \u0628\u0630\u0644 \u0637\u0628\u064a\u0628\u0643 \u062c\u0647\u062f\u0627\u064b \u0644\u0625\u0634\u0631\u0627\u0643\u0643 \u0641\u064a \u0627\u062a\u062e\u0627\u0630 \u0627\u0644\u0642\u0631\u0627\u0631\u0627\u062a \u062d\u0648\u0644 \u0639\u0644\u0627\u062c\u0643\u061f",
          "question_type": "multiple_choice",
          "order": 3,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "775c0f3c-4de9-4210-85bc-229edeb4c013",
          "question_text": "Is the cleanliness level of the hospital exceeding your expectations?",
          "question_text_ar": "\u0647\u0644 \u0645\u0633\u062a\u0648\u0649 \u0646\u0638\u0627\u0641\u0629 \u0627\u0644\u0645\u0633\u062a\u0634\u0641\u0649 \u064a\u062a\u062c\u0627\u0648\u0632 \u062a\u0648\u0642\u0639\u0627\u062a\u0643\u061f",
          "question_type": "multiple_choice",
          "order": 4,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "0d9db574-34c8-4dfd-9d1f-20b2f16f1f2e",
          "question_text": "Was there a clear explanation given to you regarding your financial coverage and payment responsibility?",
          "question_text_ar": "\u0647\u0644 \u062a\u0645 \u062a\u0642\u062f\u064a\u0645 \u0634\u0631\u062d \u0648\u0627\u0636\u062d \u0644\u0643 \u0628\u062e\u0635\u0648\u0635 \u0627\u0644\u062a\u063a\u0637\u064a\u0629 \u0627\u0644\u0645\u0627\u0644\u064a\u0629 \u0648\u0645\u0633\u0624\u0648\u0644\u064a\u0629 \u0627\u0644\u062f\u0641\u0639\u061f",
          "question_type": "multiple_choice",
          "order": 5,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "7479d6c6-b31a-4ea0-af1a-9fba7cff1d6e",
          "question_text": "Were you satisfied with our admission time and process?",
          "question_text_ar": "\u0647\u0644 \u0643\u0646\u062a \u0631\u0627\u0636\u064d \u0639\u0646 \u0648\u0642\u062a \u0648\u0639\u0645\u0644\u064a\u0627\u062a \u0627\u0644\u0642\u0628\u0648\u0644 \u0644\u062f\u064a\u0646\u0627\u061f",
          "question_type": "multiple_choice",
          "order": 6,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "ca37190d-e28b-473a-b068-44165bd8d7a2",
          "question_text": "Were you satisfied with our discharge time and process?",
          "question_text_ar": "\u0647\u0644 \u0643\u0646\u062a \u0631\u0627\u0636\u064d \u0639\u0646 \u0648\u0642\u062a \u0648\u0639\u0645\u0644\u064a\u0627\u062a \u0627\u0644\u062e\u0631\u0648\u062c \u0644\u062f\u064a\u0646\u0627\u061f",
          "question_type": "multiple_choice",
          "order": 7,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "eba7859d-ba8f-4299-8f5c-e865c7cee291",
          "question_text": "Were you satisfied with the doctor's care?",
          "question_text_ar": "\u0647\u0644 \u0643\u0646\u062a \u0631\u0627\u0636\u064d \u0639\u0646 \u0631\u0639\u0627\u064a\u0629 \u0627\u0644\u0637\u0628\u064a\u0628\u061f",
          "question_type": "multiple_choice",
          "order": 8,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "cf7e2594-19fe-43c5-9208-cb5eecf23e20",
          "question_text": "Were you satisfied with the food services?",
          "question_text_ar": "\u0647\u0644 \u0643\u0646\u062a \u0631\u0627\u0636\u064d \u0639\u0646 \u062e\u062f\u0645\u0627\u062a \u0627\u0644\u0637\u0639\u0627\u0645\u061f",
          "question_type": "multiple_choice",
          "order": 9,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "443b7168-e14f-4014-aa51-802cb8f3c43d",
          "question_text": "Were you satisfied with the level of safety at the hospital?",
          "question_text_ar": "\u0647\u0644 \u0643\u0646\u062a \u0631\u0627\u0636\u064d \u0639\u0646 \u0645\u0633\u062a\u0648\u0649 \u0627\u0644\u0633\u0644\u0627\u0645\u0629 \u0641\u064a \u0627\u0644\u0645\u0633\u062a\u0634\u0641\u0649\u061f",
          "question_type": "multiple_choice",
          "order": 10,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "2c0cce09-dd6b-4581-b519-29202cce5b0e",
          "question_text": "Were you satisfied with the nurses' care?",
          "question_text_ar": "\u0647\u0644 \u0643\u0646\u062a \u0631\u0627\u0636\u064d \u0639\u0646 \u0631\u0639\u0627\u064a\u0629 \u0627\u0644\u062a\u0645\u0631\u064a\u0636\u061f",
          "question_type": "multiple_choice",
          "order": 11,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        },
        {
          "question_id": "c9afcc24-9f6c-4b2e-8883-fcf8dcda8085",
          "question_text": "Would you recommend the hospital to your friends and family?",
          "question_text_ar": "\u0647\u0644 \u062a\u0648\u0635\u064a \u0628\u0627\u0644\u0645\u0633\u062a\u0634\u0641\u0649 \u0644\u0623\u0635\u062f\u0642\u0627\u0626\u0643 \u0648\u0639\u0627\u0626\u0644\u062a\u0643\u061f",
          "question_type": "multiple_choice",
          "order": 12,
          "is_required": true,
          "response_count": 0,
          "response_rate": 0,
          "choice_distribution": {},
          "has_numeric_responses": false
        }
      ],
      "rankings": {
        "top_5_by_score": [],
        "bottom_5_by_score": [],
        "top_5_by_correlation": [],
        "most_skipped_5": [
          {
            "question": "Are the Patient Relations Coordinators/ Social Workers approachable and accessible?",
            "order": 1,
            "response_rate": 0
          },
          {
            "question": "Did the physician give you clear information about your medications?",
            "order": 2,
            "response_rate": 0
          },
          {
            "question": "Did your physician exerted efforts to include you in making the decisions about your treatment?",
            "order": 3,
            "response_rate": 0
          },
          {
            "question": "Is the cleanliness level of the hospital exceeding your expectations?",
            "order": 4,
            "response_rate": 0
          },
          {
            "question": "Was there a clear explanation given to you regarding your financial coverage and payment responsibility?",
            "order": 5,
            "response_rate": 0
          }
        ]
      },
      "insights": [
        {
          "category": "Engagement",
          "severity": "high",
          "message": "Low completion rate (0.0%). Consider improving survey timing and delivery channels."
        },
        {
          "category": "Performance",
          "severity": "high",
          "message": "Below average performance (0.0/5.0). Review worst performing questions for improvement opportunities."
        },
        {
          "category": "Quality",
          "severity": "positive",
          "message": "Low negative survey rate (0%). Excellent patient satisfaction."
        },
        {
          "category": "Questions",
          "severity": "low",
          "message": "Question 1: \"Are the Patient Relations Coordinators/ Social Workers approachable and accessible?\" has a low response rate (0%). Consider making it optional or improving clarity."
        }
      ]
    },
    {
      "template_id": "7eafaec8-c54c-4d63-b121-c298f8fd5b82",
      "template_name": "OPD Patient Experience Survey",
      "template_name_ar": "",
      "survey_type": "stage",
      "scoring_method": "average",
      "negative_threshold": 3.0,
      "question_count": 6,
      "metrics": {
        "total_sent": 5,
        "total_completed": 1,
        "completion_rate": 20.0,
        "avg_score": 3.4,
        "std_deviation": 0.0,
        "negative_count": 0,
        "negative_rate": 0.0
      },
      "score_distribution": {
        "excellent": 0,
        "good": 0,
        "average": 1,
        "poor": 0,
        "excellent_percent": 0.0,
        "good_percent": 0.0,
        "average_percent": 100.0,
        "poor_percent": 0.0
      },
      "status_breakdown": {
        "completed": 1,
        "sent": 3,
        "viewed": 1
      },
      "channel_performance": {
        "sms": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        },
        "whatsapp": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        },
        "email": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        }
      },
      "monthly_trends": [
        {
          "month": "2026-01",
          "month_name": "January 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-02",
          "month_name": "February 2026",
          "count": 1,
          "avg_score": 3.4,
          "negative_count": 0
        },
        {
          "month": "2026-03",
          "month_name": "March 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-04",
          "month_name": "April 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        }
      ],
      "engagement_metrics": {
        "avg_completion_time_seconds": 255.0,
        "min_completion_time_seconds": 255.0,
        "max_completion_time_seconds": 255.0,
        "avg_opens": 5.0,
        "max_opens": 5.0
      },
      "patient_contact_metrics": {
        "total_negative": 0,
        "contacted": 0,
        "contacted_rate": 0,
        "resolved": 0,
        "resolved_rate": 0
      },
      "comments_metrics": {
        "with_comments": 1,
        "comment_rate": 100.0,
        "avg_comment_length": 0.0
      },
      "questions": [
        {
          "question_id": "85a4c4a2-e4c3-4fb6-b0f0-86f316ed0a28",
          "question_text": "How satisfied were you with the registration process?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 1,
          "is_required": true,
          "response_count": 1,
          "response_rate": 100.0,
          "avg_score": 4.0,
          "std_deviation": 0.0,
          "skewness": 0.0,
          "kurtosis": 0.0,
          "correlation_with_overall": 0.0,
          "score_distribution": {
            "score_1": 0,
            "score_2": 0,
            "score_3": 0,
            "score_4": 1,
            "score_5": 0,
            "score_1_percent": 0.0,
            "score_2_percent": 0.0,
            "score_3_percent": 0.0,
            "score_4_percent": 100.0,
            "score_5_percent": 0.0
          },
          "channel_performance": {
            "sms": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "whatsapp": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "email": {
              "response_count": 0,
              "avg_score": 0.0
            }
          },
          "monthly_trends": [
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 1,
              "avg_score": 4.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "2be18bf5-8619-4ccf-ad53-280d8601f41d",
          "question_text": "How satisfied were you with the waiting time?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 2,
          "is_required": true,
          "response_count": 1,
          "response_rate": 100.0,
          "avg_score": 3.0,
          "std_deviation": 0.0,
          "skewness": 0.0,
          "kurtosis": 0.0,
          "correlation_with_overall": 0.0,
          "score_distribution": {
            "score_1": 0,
            "score_2": 0,
            "score_3": 1,
            "score_4": 0,
            "score_5": 0,
            "score_1_percent": 0.0,
            "score_2_percent": 0.0,
            "score_3_percent": 100.0,
            "score_4_percent": 0.0,
            "score_5_percent": 0.0
          },
          "channel_performance": {
            "sms": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "whatsapp": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "email": {
              "response_count": 0,
              "avg_score": 0.0
            }
          },
          "monthly_trends": [
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 1,
              "avg_score": 3.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "126bc5df-dd52-4ef2-a3bb-cc651aeb34d0",
          "question_text": "How satisfied were you with the doctor's consultation?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 3,
          "is_required": true,
          "response_count": 1,
          "response_rate": 100.0,
          "avg_score": 3.0,
          "std_deviation": 0.0,
          "skewness": 0.0,
          "kurtosis": 0.0,
          "correlation_with_overall": 0.0,
          "score_distribution": {
            "score_1": 0,
            "score_2": 0,
            "score_3": 1,
            "score_4": 0,
            "score_5": 0,
            "score_1_percent": 0.0,
            "score_2_percent": 0.0,
            "score_3_percent": 100.0,
            "score_4_percent": 0.0,
            "score_5_percent": 0.0
          },
          "channel_performance": {
            "sms": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "whatsapp": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "email": {
              "response_count": 0,
              "avg_score": 0.0
            }
          },
          "monthly_trends": [
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 1,
              "avg_score": 3.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "19917695-2924-4b0b-8bd6-02bf54c61ef1",
          "question_text": "How satisfied were you with the pharmacy service?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 4,
          "is_required": true,
          "response_count": 1,
          "response_rate": 100.0,
          "avg_score": 4.0,
          "std_deviation": 0.0,
          "skewness": 0.0,
          "kurtosis": 0.0,
          "correlation_with_overall": 0.0,
          "score_distribution": {
            "score_1": 0,
            "score_2": 0,
            "score_3": 0,
            "score_4": 1,
            "score_5": 0,
            "score_1_percent": 0.0,
            "score_2_percent": 0.0,
            "score_3_percent": 0.0,
            "score_4_percent": 100.0,
            "score_5_percent": 0.0
          },
          "channel_performance": {
            "sms": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "whatsapp": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "email": {
              "response_count": 0,
              "avg_score": 0.0
            }
          },
          "monthly_trends": [
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 1,
              "avg_score": 4.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "cc161efd-8e77-4dfc-9eac-1ae437769794",
          "question_text": "How likely are you to recommend this hospital to others?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 5,
          "is_required": true,
          "response_count": 1,
          "response_rate": 100.0,
          "avg_score": 3.0,
          "std_deviation": 0.0,
          "skewness": 0.0,
          "kurtosis": 0.0,
          "correlation_with_overall": 0.0,
          "score_distribution": {
            "score_1": 0,
            "score_2": 0,
            "score_3": 1,
            "score_4": 0,
            "score_5": 0,
            "score_1_percent": 0.0,
            "score_2_percent": 0.0,
            "score_3_percent": 100.0,
            "score_4_percent": 0.0,
            "score_5_percent": 0.0
          },
          "channel_performance": {
            "sms": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "whatsapp": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "email": {
              "response_count": 0,
              "avg_score": 0.0
            }
          },
          "monthly_trends": [
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 1,
              "avg_score": 3.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "3f3c46a9-8bcf-4999-8035-3c3e5bdb4c15",
          "question_text": "Any additional comments or suggestions?",
          "question_text_ar": "",
          "question_type": "text",
          "order": 6,
          "is_required": true,
          "response_count": 1,
          "response_rate": 100.0,
          "text_response_count": 1,
          "avg_text_length": 0.0,
          "has_numeric_responses": false
        }
      ],
      "rankings": {
        "top_5_by_score": [
          {
            "question": "How satisfied were you with the registration process?",
            "order": 1,
            "avg_score": 4.0
          },
          {
            "question": "How satisfied were you with the pharmacy service?",
            "order": 4,
            "avg_score": 4.0
          },
          {
            "question": "How satisfied were you with the waiting time?",
            "order": 2,
            "avg_score": 3.0
          },
          {
            "question": "How satisfied were you with the doctor's consultation?",
            "order": 3,
            "avg_score": 3.0
          },
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "avg_score": 3.0
          }
        ],
        "bottom_5_by_score": [
          {
            "question": "How satisfied were you with the registration process?",
            "order": 1,
            "avg_score": 4.0
          },
          {
            "question": "How satisfied were you with the pharmacy service?",
            "order": 4,
            "avg_score": 4.0
          },
          {
            "question": "How satisfied were you with the waiting time?",
            "order": 2,
            "avg_score": 3.0
          },
          {
            "question": "How satisfied were you with the doctor's consultation?",
            "order": 3,
            "avg_score": 3.0
          },
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "avg_score": 3.0
          }
        ],
        "top_5_by_correlation": [
          {
            "question": "How satisfied were you with the registration process?",
            "order": 1,
            "correlation": 0.0
          },
          {
            "question": "How satisfied were you with the waiting time?",
            "order": 2,
            "correlation": 0.0
          },
          {
            "question": "How satisfied were you with the doctor's consultation?",
            "order": 3,
            "correlation": 0.0
          },
          {
            "question": "How satisfied were you with the pharmacy service?",
            "order": 4,
            "correlation": 0.0
          },
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "correlation": 0.0
          }
        ],
        "most_skipped_5": [
          {
            "question": "How satisfied were you with the registration process?",
            "order": 1,
            "response_rate": 100.0
          },
          {
            "question": "How satisfied were you with the waiting time?",
            "order": 2,
            "response_rate": 100.0
          },
          {
            "question": "How satisfied were you with the doctor's consultation?",
            "order": 3,
            "response_rate": 100.0
          },
          {
            "question": "How satisfied were you with the pharmacy service?",
            "order": 4,
            "response_rate": 100.0
          },
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "response_rate": 100.0
          }
        ]
      },
      "insights": [
        {
          "category": "Engagement",
          "severity": "high",
          "message": "Low completion rate (20.0%). Consider improving survey timing and delivery channels."
        },
        {
          "category": "Quality",
          "severity": "positive",
          "message": "Low negative survey rate (0.0%). Excellent patient satisfaction."
        }
      ]
    },
    {
      "template_id": "7090971f-4b2b-45db-acf6-d510eb634f9f",
      "template_name": "OPD Patient Experience Survey",
      "template_name_ar": "",
      "survey_type": "stage",
      "scoring_method": "average",
      "negative_threshold": 3.0,
      "question_count": 5,
      "metrics": {
        "total_sent": 982,
        "total_completed": 829,
        "completion_rate": 84.42,
        "avg_score": 4.75,
        "std_deviation": 0.98,
        "negative_count": 37,
        "negative_rate": 4.46
      },
      "score_distribution": {
        "excellent": 558,
        "good": 165,
        "average": 69,
        "poor": 37,
        "excellent_percent": 67.31,
        "good_percent": 19.9,
        "average_percent": 8.32,
        "poor_percent": 4.46
      },
      "status_breakdown": {
        "abandoned": 108,
        "completed": 829,
        "in_progress": 27,
        "viewed": 18
      },
      "channel_performance": {
        "sms": {
          "total_sent": 333,
          "completed": 279,
          "completion_rate": 83.78,
          "avg_score": 4.86
        },
        "whatsapp": {
          "total_sent": 318,
          "completed": 273,
          "completion_rate": 85.85,
          "avg_score": 4.65
        },
        "email": {
          "total_sent": 331,
          "completed": 277,
          "completion_rate": 83.69,
          "avg_score": 4.74
        }
      },
      "monthly_trends": [
        {
          "month": "2026-01",
          "month_name": "January 2026",
          "count": 105,
          "avg_score": 4.73,
          "negative_count": 6
        },
        {
          "month": "2026-02",
          "month_name": "February 2026",
          "count": 97,
          "avg_score": 4.88,
          "negative_count": 4
        },
        {
          "month": "2026-03",
          "month_name": "March 2026",
          "count": 26,
          "avg_score": 4.86,
          "negative_count": 0
        },
        {
          "month": "2026-04",
          "month_name": "April 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        }
      ],
      "engagement_metrics": {
        "avg_completion_time_seconds": 492.9,
        "min_completion_time_seconds": 492.9,
        "max_completion_time_seconds": 492.9,
        "avg_opens": 1.99,
        "max_opens": 1.99
      },
      "patient_contact_metrics": {
        "total_negative": 37,
        "contacted": 0,
        "contacted_rate": 0.0,
        "resolved": 0,
        "resolved_rate": 0.0
      },
      "comments_metrics": {
        "with_comments": 160,
        "comment_rate": 19.3,
        "avg_comment_length": 0.0
      },
      "questions": [
        {
          "question_id": "ca3915ef-4f07-43a4-ab94-2a165db07014",
          "question_text": "How satisfied were you with the registration process?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 1,
          "is_required": true,
          "response_count": 829,
          "response_rate": 100.0,
          "avg_score": 4.13,
          "std_deviation": 0.66,
          "skewness": -1.154,
          "kurtosis": 1.691,
          "correlation_with_overall": 0.975,
          "score_distribution": {
            "score_1": 0,
            "score_2": 2,
            "score_3": 8,
            "score_4": 32,
            "score_5": 26,
            "score_1_percent": 0.0,
            "score_2_percent": 0.24,
            "score_3_percent": 0.97,
            "score_4_percent": 3.86,
            "score_5_percent": 3.14
          },
          "channel_performance": {
            "sms": {
              "response_count": 279,
              "avg_score": 4.2
            },
            "whatsapp": {
              "response_count": 273,
              "avg_score": 4.06
            },
            "email": {
              "response_count": 277,
              "avg_score": 4.12
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 829,
              "avg_score": 4.13
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "dec0a607-6f00-4e00-910a-81a13c1a66a0",
          "question_text": "How satisfied were you with the waiting time?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 2,
          "is_required": true,
          "response_count": 829,
          "response_rate": 100.0,
          "avg_score": 4.13,
          "std_deviation": 0.67,
          "skewness": -1.165,
          "kurtosis": 1.672,
          "correlation_with_overall": 0.973,
          "score_distribution": {
            "score_1": 0,
            "score_2": 3,
            "score_3": 9,
            "score_4": 27,
            "score_5": 32,
            "score_1_percent": 0.0,
            "score_2_percent": 0.36,
            "score_3_percent": 1.09,
            "score_4_percent": 3.26,
            "score_5_percent": 3.86
          },
          "channel_performance": {
            "sms": {
              "response_count": 279,
              "avg_score": 4.21
            },
            "whatsapp": {
              "response_count": 273,
              "avg_score": 4.07
            },
            "email": {
              "response_count": 277,
              "avg_score": 4.11
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 829,
              "avg_score": 4.13
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "c9f64ded-b555-4a48-89b1-d34768912b71",
          "question_text": "How satisfied were you with the doctor's consultation?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 3,
          "is_required": true,
          "response_count": 829,
          "response_rate": 100.0,
          "avg_score": 4.13,
          "std_deviation": 0.67,
          "skewness": -1.248,
          "kurtosis": 2.035,
          "correlation_with_overall": 0.971,
          "score_distribution": {
            "score_1": 0,
            "score_2": 2,
            "score_3": 7,
            "score_4": 29,
            "score_5": 36,
            "score_1_percent": 0.0,
            "score_2_percent": 0.24,
            "score_3_percent": 0.84,
            "score_4_percent": 3.5,
            "score_5_percent": 4.34
          },
          "channel_performance": {
            "sms": {
              "response_count": 279,
              "avg_score": 4.21
            },
            "whatsapp": {
              "response_count": 273,
              "avg_score": 4.07
            },
            "email": {
              "response_count": 277,
              "avg_score": 4.1
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 829,
              "avg_score": 4.13
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "279d338e-c20d-4270-bd02-6bd077488a75",
          "question_text": "How satisfied were you with the pharmacy service?",
          "question_text_ar": "",
          "question_type": "rating",
          "order": 4,
          "is_required": true,
          "response_count": 829,
          "response_rate": 100.0,
          "avg_score": 4.13,
          "std_deviation": 0.67,
          "skewness": -1.212,
          "kurtosis": 1.867,
          "correlation_with_overall": 0.973,
          "score_distribution": {
            "score_1": 0,
            "score_2": 5,
            "score_3": 13,
            "score_4": 31,
            "score_5": 28,
            "score_1_percent": 0.0,
            "score_2_percent": 0.6,
            "score_3_percent": 1.57,
            "score_4_percent": 3.74,
            "score_5_percent": 3.38
          },
          "channel_performance": {
            "sms": {
              "response_count": 279,
              "avg_score": 4.2
            },
            "whatsapp": {
              "response_count": 273,
              "avg_score": 4.07
            },
            "email": {
              "response_count": 277,
              "avg_score": 4.12
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 829,
              "avg_score": 4.13
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "b651efd8-875a-496d-9e66-9f3f85fc7de8",
          "question_text": "How likely are you to recommend this hospital to others?",
          "question_text_ar": "",
          "question_type": "nps",
          "order": 5,
          "is_required": true,
          "response_count": 829,
          "response_rate": 100.0,
          "avg_score": 7.23,
          "std_deviation": 2.35,
          "skewness": -0.872,
          "kurtosis": 0.274,
          "correlation_with_overall": 0.991,
          "score_distribution": {
            "score_1": 16,
            "score_2": 13,
            "score_3": 31,
            "score_4": 38,
            "score_5": 77,
            "score_1_percent": 1.93,
            "score_2_percent": 1.57,
            "score_3_percent": 3.74,
            "score_4_percent": 4.58,
            "score_5_percent": 9.29
          },
          "channel_performance": {
            "sms": {
              "response_count": 279,
              "avg_score": 7.46
            },
            "whatsapp": {
              "response_count": 273,
              "avg_score": 6.98
            },
            "email": {
              "response_count": 277,
              "avg_score": 7.25
            }
          },
          "monthly_trends": [
            {
              "month": "2025-03",
              "month_name": "March 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-04",
              "month_name": "April 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-05",
              "month_name": "May 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-06",
              "month_name": "June 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-07",
              "month_name": "July 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-08",
              "month_name": "August 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-09",
              "month_name": "September 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-10",
              "month_name": "October 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-11",
              "month_name": "November 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2025-12",
              "month_name": "December 2025",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            },
            {
              "month": "2026-02",
              "month_name": "February 2026",
              "count": 829,
              "avg_score": 7.23
            },
            {
              "month": "2026-03",
              "month_name": "March 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        }
      ],
      "rankings": {
        "top_5_by_score": [
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "avg_score": 7.23
          },
          {
            "question": "How satisfied were you with the registration process?",
            "order": 1,
            "avg_score": 4.13
          },
          {
            "question": "How satisfied were you with the waiting time?",
            "order": 2,
            "avg_score": 4.13
          },
          {
            "question": "How satisfied were you with the doctor's consultation?",
            "order": 3,
            "avg_score": 4.13
          },
          {
            "question": "How satisfied were you with the pharmacy service?",
            "order": 4,
            "avg_score": 4.13
          }
        ],
        "bottom_5_by_score": [
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "avg_score": 7.23
          },
          {
            "question": "How satisfied were you with the registration process?",
            "order": 1,
            "avg_score": 4.13
          },
          {
            "question": "How satisfied were you with the waiting time?",
            "order": 2,
            "avg_score": 4.13
          },
          {
            "question": "How satisfied were you with the doctor's consultation?",
            "order": 3,
            "avg_score": 4.13
          },
          {
            "question": "How satisfied were you with the pharmacy service?",
            "order": 4,
            "avg_score": 4.13
          }
        ],
        "top_5_by_correlation": [
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "correlation": 0.991
          },
          {
            "question": "How satisfied were you with the registration process?",
            "order": 1,
            "correlation": 0.975
          },
          {
            "question": "How satisfied were you with the waiting time?",
            "order": 2,
            "correlation": 0.973
          },
          {
            "question": "How satisfied were you with the pharmacy service?",
            "order": 4,
            "correlation": 0.973
          },
          {
            "question": "How satisfied were you with the doctor's consultation?",
            "order": 3,
            "correlation": 0.971
          }
        ],
        "most_skipped_5": [
          {
            "question": "How satisfied were you with the registration process?",
            "order": 1,
            "response_rate": 100.0
          },
          {
            "question": "How satisfied were you with the waiting time?",
            "order": 2,
            "response_rate": 100.0
          },
          {
            "question": "How satisfied were you with the doctor's consultation?",
            "order": 3,
            "response_rate": 100.0
          },
          {
            "question": "How satisfied were you with the pharmacy service?",
            "order": 4,
            "response_rate": 100.0
          },
          {
            "question": "How likely are you to recommend this hospital to others?",
            "order": 5,
            "response_rate": 100.0
          }
        ]
      },
      "insights": [
        {
          "category": "Engagement",
          "severity": "positive",
          "message": "Excellent completion rate (84.42%) showing strong patient engagement."
        },
        {
          "category": "Performance",
          "severity": "positive",
          "message": "Outstanding performance (4.75/5.0). Maintain current service levels."
        },
        {
          "category": "Quality",
          "severity": "positive",
          "message": "Low negative survey rate (4.46%). Excellent patient satisfaction."
        },
        {
          "category": "Distribution",
          "severity": "positive",
          "message": "Majority of responses are excellent (67.31%). Outstanding service delivery."
        },
        {
          "category": "Follow-up",
          "severity": "medium",
          "message": "Only 0.0% of negative survey patients have been contacted. Improve follow-up processes."
        }
      ]
    },
    {
      "template_id": "8d8e0dc7-909f-4307-b81a-d3c5e7cfca7b",
      "template_name": "Outpatient Satisfaction Survey",
      "template_name_ar": "\u0627\u0633\u062a\u0628\u064a\u0627\u0646 \u0631\u0636\u0627 \u0627\u0644\u0639\u064a\u0627\u062f\u0627\u062a \u0627\u0644\u062e\u0627\u0631\u062c\u064a\u0629",
      "survey_type": "stage",
      "scoring_method": "average",
      "negative_threshold": 3.0,
      "question_count": 8,
      "metrics": {
        "total_sent": 14,
        "total_completed": 1,
        "completion_rate": 7.14,
        "avg_score": 0.0,
        "std_deviation": 0.0,
        "negative_count": 1,
        "negative_rate": 100.0
      },
      "score_distribution": {
        "excellent": 0,
        "good": 0,
        "average": 0,
        "poor": 1,
        "excellent_percent": 0.0,
        "good_percent": 0.0,
        "average_percent": 0.0,
        "poor_percent": 100.0
      },
      "status_breakdown": {
        "completed": 1,
        "sent": 12,
        "viewed": 1
      },
      "channel_performance": {
        "sms": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        },
        "whatsapp": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        },
        "email": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        }
      },
      "monthly_trends": [
        {
          "month": "2026-01",
          "month_name": "January 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-02",
          "month_name": "February 2026",
          "count": 1,
          "avg_score": 0.0,
          "negative_count": 1
        },
        {
          "month": "2026-03",
          "month_name": "March 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-04",
          "month_name": "April 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        }
      ],
      "engagement_metrics": {
        "avg_completion_time_seconds": 30.0,
        "min_completion_time_seconds": 30.0,
        "max_completion_time_seconds": 30.0,
        "avg_opens": 2.0,
        "max_opens": 2.0
      },
      "patient_contact_metrics": {
        "total_negative": 1,
        "contacted": 0,
        "contacted_rate": 0.0,
        "resolved": 0,
        "resolved_rate": 0.0
      },
      "comments_metrics": {
        "with_comments": 0,
        "comment_rate": 0.0,
        "avg_comment_length": 0.0
      },
      "questions": [
        {
          "question_id": "117b0865-55f2-4d23-b4eb-cb288b43fda1",
          "question_text": "Did the doctor explained everything about your case?",
          "question_text_ar": "\u0647\u0644 \u0634\u0631\u062d \u0627\u0644\u0637\u0628\u064a\u0628 \u0643\u0644 \u0634\u064a\u0621 \u0639\u0646 \u062d\u0627\u0644\u062a\u0643\u061f",
          "question_type": "multiple_choice",
          "order": 1,
          "is_required": true,
          "response_count": 1,
          "response_rate": 100.0,
          "choice_distribution": {
            "1": 1,
            "1_percent": 100.0
          },
          "has_numeric_responses": false
        },
        {
          "question_id": "15491107-bee8-42f0-871e-abdc114752aa",
          "question_text": "Did the pharmacist explained to you the medication clearly?",
          "question_text_ar": "\u0647\u0644 \u0634\u0631\u062d \u0627\u0644\u0635\u064a\u062f\u0644\u064a \u0644\u0643 \u0627\u0644\u062f\u0648\u0627\u0621 \u0628\u0634\u0643\u0644 \u0648\u0627\u0636\u062d\u061f",
          "question_type": "multiple_choice",
          "order": 2,
          "is_required": true,
          "response_count": 1,
          "response_rate": 100.0,
          "choice_distribution": {
            "3": 1,
            "3_percent": 100.0
          },
          "has_numeric_responses": false
        },
        {
          "question_id": "626d9071-70c8-410a-97c0-2e31ee265cb2",
          "question_text": "Did the staff attended your needs in an understandable language?",
          "question_text_ar": "\u0647\u0644 \u0642\u0627\u0645 \u0627\u0644\u0645\u0648\u0638\u0641\u0648\u0646 \u0628\u062a\u0644\u0628\u064a\u0629 \u0627\u062d\u062a\u064a\u0627\u062c\u0627\u062a\u0643 \u0628\u0644\u063a\u0629 \u0645\u0641\u0647\u0648\u0645\u0629\u061f",
          "question_type": "multiple_choice",
          "order": 3,
          "is_required": true,
          "response_count": 1,
          "response_rate": 100.0,
          "choice_distribution": {
            "3": 1,
            "3_percent": 100.0
          },
          "has_numeric_responses": false
        },
        {
          "question_id": "4100173e-bcd0-4a2b-8240-4f3c83e4379a",
          "question_text": "Were you satisfied with your interaction with the doctor?",
          "question_text_ar": "\u0647\u0644 \u0643\u0646\u062a \u0631\u0627\u0636\u064d \u0639\u0646 \u062a\u0641\u0627\u0639\u0644\u0643 \u0645\u0639 \u0627\u0644\u0637\u0628\u064a\u0628\u061f",
          "question_type": "multiple_choice",
          "order": 4,
          "is_required": true,
          "response_count": 1,
          "response_rate": 100.0,
          "choice_distribution": {
            "4": 1,
            "4_percent": 100.0
          },
          "has_numeric_responses": false
        },
        {
          "question_id": "3c5c832a-29be-43b2-9b1c-bb1a8fa81653",
          "question_text": "Were you served by Laboratory Receptionists as required?",
          "question_text_ar": "\u0647\u0644 \u0642\u062f\u0645\u062a \u0644\u0643 \u062e\u062f\u0645\u0629 \u0627\u0633\u062a\u0642\u0628\u0627\u0644 \u0627\u0644\u0645\u062e\u062a\u0628\u0631 \u0643\u0645\u0627 \u0647\u0648 \u0645\u0637\u0644\u0648\u0628\u061f",
          "question_type": "multiple_choice",
          "order": 5,
          "is_required": true,
          "response_count": 1,
          "response_rate": 100.0,
          "choice_distribution": {
            "5": 1,
            "5_percent": 100.0
          },
          "has_numeric_responses": false
        },
        {
          "question_id": "3a37024e-79ba-4e12-8d65-30e1db1412ba",
          "question_text": "Were you served by Radiology Receptionists as required?",
          "question_text_ar": "\u0647\u0644 \u0642\u062f\u0645\u062a \u0644\u0643 \u062e\u062f\u0645\u0629 \u0627\u0633\u062a\u0642\u0628\u0627\u0644 \u0627\u0644\u0623\u0634\u0639\u0629 \u0643\u0645\u0627 \u0647\u0648 \u0645\u0637\u0644\u0648\u0628\u061f",
          "question_type": "multiple_choice",
          "order": 6,
          "is_required": true,
          "response_count": 1,
          "response_rate": 100.0,
          "choice_distribution": {
            "5": 1,
            "5_percent": 100.0
          },
          "has_numeric_responses": false
        },
        {
          "question_id": "74772ff1-ffd1-4a27-8af9-087ec9f22cb2",
          "question_text": "Were you served by Receptionists as required?",
          "question_text_ar": "\u0647\u0644 \u0642\u062f\u0645\u062a \u0644\u0643 \u062e\u062f\u0645\u0629 \u0627\u0644\u0627\u0633\u062a\u0642\u0628\u0627\u0644 \u0643\u0645\u0627 \u0647\u0648 \u0645\u0637\u0644\u0648\u0628\u061f",
          "question_type": "multiple_choice",
          "order": 7,
          "is_required": true,
          "response_count": 1,
          "response_rate": 100.0,
          "choice_distribution": {
            "4": 1,
            "4_percent": 100.0
          },
          "has_numeric_responses": false
        },
        {
          "question_id": "29e9ed2c-180d-4767-8e4e-c9b310adc2de",
          "question_text": "Would you recommend the hospital to your friends and family?",
          "question_text_ar": "\u0647\u0644 \u062a\u0648\u0635\u064a \u0628\u0627\u0644\u0645\u0633\u062a\u0634\u0641\u0649 \u0644\u0623\u0635\u062f\u0642\u0627\u0626\u0643 \u0648\u0639\u0627\u0626\u0644\u062a\u0643\u061f",
          "question_type": "multiple_choice",
          "order": 8,
          "is_required": true,
          "response_count": 1,
          "response_rate": 100.0,
          "choice_distribution": {
            "5": 1,
            "5_percent": 100.0
          },
          "has_numeric_responses": false
        }
      ],
      "rankings": {
        "top_5_by_score": [],
        "bottom_5_by_score": [],
        "top_5_by_correlation": [],
        "most_skipped_5": [
          {
            "question": "Did the doctor explained everything about your case?",
            "order": 1,
            "response_rate": 100.0
          },
          {
            "question": "Did the pharmacist explained to you the medication clearly?",
            "order": 2,
            "response_rate": 100.0
          },
          {
            "question": "Did the staff attended your needs in an understandable language?",
            "order": 3,
            "response_rate": 100.0
          },
          {
            "question": "Were you satisfied with your interaction with the doctor?",
            "order": 4,
            "response_rate": 100.0
          },
          {
            "question": "Were you served by Laboratory Receptionists as required?",
            "order": 5,
            "response_rate": 100.0
          }
        ]
      },
      "insights": [
        {
          "category": "Engagement",
          "severity": "high",
          "message": "Low completion rate (7.14%). Consider improving survey timing and delivery channels."
        },
        {
          "category": "Performance",
          "severity": "high",
          "message": "Below average performance (0.0/5.0). Review worst performing questions for improvement opportunities."
        },
        {
          "category": "Quality",
          "severity": "high",
          "message": "High negative survey rate (100.0%). Immediate action required to address patient concerns."
        },
        {
          "category": "Distribution",
          "severity": "medium",
          "message": "High percentage of poor scores (100.0%). Investigate root causes of dissatisfaction."
        },
        {
          "category": "Follow-up",
          "severity": "medium",
          "message": "Only 0.0% of negative survey patients have been contacted. Improve follow-up processes."
        }
      ]
    },
    {
      "template_id": "6f318127-d295-434e-8b2a-e52a2457c855",
      "template_name": "Patient Experience Demo Survey",
      "template_name_ar": "\u0627\u0633\u062a\u0628\u064a\u0627\u0646 \u062a\u062c\u0631\u0628\u0629 \u0627\u0644\u0645\u0631\u064a\u0636 \u0627\u0644\u062a\u062c\u0631\u064a\u0628\u064a",
      "survey_type": "stage",
      "scoring_method": "average",
      "negative_threshold": 3.0,
      "question_count": 5,
      "metrics": {
        "total_sent": 5,
        "total_completed": 2,
        "completion_rate": 40.0,
        "avg_score": 4.0,
        "std_deviation": 0.0,
        "negative_count": 0,
        "negative_rate": 0.0
      },
      "score_distribution": {
        "excellent": 0,
        "good": 2,
        "average": 0,
        "poor": 0,
        "excellent_percent": 0.0,
        "good_percent": 100.0,
        "average_percent": 0.0,
        "poor_percent": 0.0
      },
      "status_breakdown": {
        "completed": 2,
        "sent": 3
      },
      "channel_performance": {
        "sms": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        },
        "whatsapp": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        },
        "email": {
          "total_sent": 0,
          "completed": 0,
          "completion_rate": 0,
          "avg_score": 0.0
        }
      },
      "monthly_trends": [
        {
          "month": "2026-01",
          "month_name": "January 2026",
          "count": 2,
          "avg_score": 4.0,
          "negative_count": 0
        },
        {
          "month": "2026-02",
          "month_name": "February 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-03",
          "month_name": "March 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        },
        {
          "month": "2026-04",
          "month_name": "April 2026",
          "count": 0,
          "avg_score": 0.0,
          "negative_count": 0
        }
      ],
      "engagement_metrics": {
        "avg_completion_time_seconds": 1006.5,
        "min_completion_time_seconds": 1006.5,
        "max_completion_time_seconds": 1006.5,
        "avg_opens": 2.0,
        "max_opens": 2.0
      },
      "patient_contact_metrics": {
        "total_negative": 0,
        "contacted": 0,
        "contacted_rate": 0,
        "resolved": 0,
        "resolved_rate": 0
      },
      "comments_metrics": {
        "with_comments": 1,
        "comment_rate": 50.0,
        "avg_comment_length": 0.0
      },
      "questions": [
        {
          "question_id": "6ee13e81-6558-45b4-a3b9-ee9deb975ee7",
          "question_text": "Please share any additional comments about your stay",
          "question_text_ar": "\u064a\u0631\u062c\u0649 \u0645\u0634\u0627\u0631\u0643\u0629 \u0623\u064a \u062a\u0639\u0644\u064a\u0642\u0627\u062a \u0625\u0636\u0627\u0641\u064a\u0629 \u062d\u0648\u0644 \u0625\u0642\u0627\u0645\u062a\u0643",
          "question_type": "text",
          "order": 1,
          "is_required": false,
          "response_count": 1,
          "response_rate": 50.0,
          "text_response_count": 1,
          "avg_text_length": 0.0,
          "has_numeric_responses": false
        },
        {
          "question_id": "373e145f-674e-474e-a8e6-529247a6189a",
          "question_text": "How would you rate the quality of nursing care?",
          "question_text_ar": "\u0643\u064a\u0641 \u062a\u0642\u064a \u062c\u0648\u062f\u0629 \u0627\u0644\u062a\u0645\u0631\u064a\u0636\u061f",
          "question_type": "rating",
          "order": 2,
          "is_required": true,
          "response_count": 2,
          "response_rate": 100.0,
          "avg_score": 4.0,
          "std_deviation": 0.0,
          "skewness": 0.0,
          "kurtosis": 0.0,
          "correlation_with_overall": 0.0,
          "score_distribution": {
            "score_1": 0,
            "score_2": 0,
            "score_3": 0,
            "score_4": 2,
            "score_5": 0,
            "score_1_percent": 0.0,
            "score_2_percent": 0.0,
            "score_3_percent": 0.0,
            "score_4_percent": 100.0,
            "score_5_percent": 0.0
          },
          "channel_performance": {
            "sms": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "whatsapp": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "email": {
              "response_count": 0,
              "avg_score": 0.0
            }
          },
          "monthly_trends": [
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 2,
              "avg_score": 4.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "834c946a-eb66-44c8-80f2-8e20c15978c8",
          "question_text": "Which department did you visit?",
          "question_text_ar": "\u0645\u0627 \u0647\u0648 \u0627\u0644\u0642\u0633\u0645 \u0627\u0644\u0630\u064a \u0632\u0631\u062a\u0647\u061f",
          "question_type": "multiple_choice",
          "order": 3,
          "is_required": true,
          "response_count": 2,
          "response_rate": 100.0,
          "choice_distribution": {
            "outpatient": 2,
            "outpatient_percent": 100.0
          },
          "has_numeric_responses": false
        },
        {
          "question_id": "0e798b47-7e52-4cf7-90dd-ad89f4b49ea9",
          "question_text": "What aspects of your experience were satisfactory? (Select all that apply)",
          "question_text_ar": "\u0645\u0627 \u0647\u064a \u062c\u0648\u0627\u0646\u0628 \u062a\u062c\u0631\u0628\u062a\u0643 \u0627\u0644\u062a\u064a \u0643\u0627\u0646\u062a \u0645\u0631\u0636\u064a\u0629\u061f (\u062d\u062f\u062f \u062c\u0645\u064a\u0639 \u0645\u0627 \u064a\u0646\u0637\u0628\u0642)",
          "question_type": "rating",
          "order": 4,
          "is_required": false,
          "response_count": 2,
          "response_rate": 100.0,
          "avg_score": 0.0,
          "std_deviation": 0.0,
          "skewness": 0.0,
          "kurtosis": 0.0,
          "correlation_with_overall": 0.0,
          "score_distribution": {
            "score_1": 0,
            "score_2": 0,
            "score_3": 0,
            "score_4": 0,
            "score_5": 0,
            "score_1_percent": 0,
            "score_2_percent": 0,
            "score_3_percent": 0,
            "score_4_percent": 0,
            "score_5_percent": 0
          },
          "channel_performance": {
            "sms": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "whatsapp": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "email": {
              "response_count": 0,
              "avg_score": 0.0
            }
          },
          "monthly_trends": [
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 0,
              "avg_score": 0.0
            }
          ],
          "has_text_responses": false
        },
        {
          "question_id": "05126da7-57c6-4d42-bb6a-145b08658546",
          "question_text": "How would you rate the hospital facilities?",
          "question_text_ar": "\u0643\u064a\u0641 \u062a\u0642\u064a \u0645\u0631\u0627\u0641\u0642 \u0627\u0644\u0645\u0633\u062a\u0634\u0641\u0649\u061f",
          "question_type": "rating",
          "order": 5,
          "is_required": true,
          "response_count": 2,
          "response_rate": 100.0,
          "avg_score": 4.0,
          "std_deviation": 0.0,
          "skewness": 0.0,
          "kurtosis": 0.0,
          "correlation_with_overall": 0.0,
          "score_distribution": {
            "score_1": 0,
            "score_2": 0,
            "score_3": 0,
            "score_4": 2,
            "score_5": 0,
            "score_1_percent": 0.0,
            "score_2_percent": 0.0,
            "score_3_percent": 0.0,
            "score_4_percent": 100.0,
            "score_5_percent": 0.0
          },
          "channel_performance": {
            "sms": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "whatsapp": {
              "response_count": 0,
              "avg_score": 0.0
            },
            "email": {
              "response_count": 0,
              "avg_score": 0.0
            }
          },
          "monthly_trends": [
            {
              "month": "2026-01",
              "month_name": "January 2026",
              "count": 2,
              "avg_score": 4.0
            }
          ],
          "has_text_responses": false
        }
      ],
      "rankings": {
        "top_5_by_score": [
          {
            "question": "How would you rate the quality of nursing care?",
            "order": 2,
            "avg_score": 4.0
          },
          {
            "question": "How would you rate the hospital facilities?",
            "order": 5,
            "avg_score": 4.0
          },
          {
            "question": "What aspects of your experience were satisfactory? (Select all that apply)",
            "order": 4,
            "avg_score": 0.0
          }
        ],
        "bottom_5_by_score": [
          {
            "question": "How would you rate the quality of nursing care?",
            "order": 2,
            "avg_score": 4.0
          },
          {
            "question": "How would you rate the hospital facilities?",
            "order": 5,
            "avg_score": 4.0
          },
          {
            "question": "What aspects of your experience were satisfactory? (Select all that apply)",
            "order": 4,
            "avg_score": 0.0
          }
        ],
        "top_5_by_correlation": [
          {
            "question": "How would you rate the quality of nursing care?",
            "order": 2,
            "correlation": 0.0
          },
          {
            "question": "What aspects of your experience were satisfactory? (Select all that apply)",
            "order": 4,
            "correlation": 0.0
          },
          {
            "question": "How would you rate the hospital facilities?",
            "order": 5,
            "correlation": 0.0
          }
        ],
        "most_skipped_5": [
          {
            "question": "Please share any additional comments about your stay",
            "order": 1,
            "response_rate": 50.0
          },
          {
            "question": "How would you rate the quality of nursing care?",
            "order": 2,
            "response_rate": 100.0
          },
          {
            "question": "Which department did you visit?",
            "order": 3,
            "response_rate": 100.0
          },
          {
            "question": "What aspects of your experience were satisfactory? (Select all that apply)",
            "order": 4,
            "response_rate": 100.0
          },
          {
            "question": "How would you rate the hospital facilities?",
            "order": 5,
            "response_rate": 100.0
          }
        ]
      },
      "insights": [
        {
          "category": "Engagement",
          "severity": "high",
          "message": "Low completion rate (40.0%). Consider improving survey timing and delivery channels."
        },
        {
          "category": "Quality",
          "severity": "positive",
          "message": "Low negative survey rate (0.0%). Excellent patient satisfaction."
        },
        {
          "category": "Questions",
          "severity": "low",
          "message": "Question 1: \"Please share any additional comments about your stay\" has a low response rate (50.0%). Consider making it optional or improving clarity."
        }
      ]
    }
  ],
  "summary": {
    "total_templates": 12,
    "total_surveys_sent": 3949,
    "total_surveys_completed": 3325,
    "overall_completion_rate": 84.2,
    "overall_avg_score": 4.68,
    "total_negative_surveys": 163,
    "overall_negative_rate": 4.9,
    "best_performing_template": {
      "name": "OPD Patient Experience Survey",
      "avg_score": 4.75
    },
    "worst_performing_template": {
      "name": "Outpatient Satisfaction Survey",
      "avg_score": 0.0
    }
  }
}