- generic [ref=e2]:
  - complementary [ref=e3]:
    - generic [ref=e4]:
      - img "Al Hammadi" [ref=e6]
      - img "Al Hammadi" [ref=e8]
    - navigation [ref=e9]:
      - link [ref=e10] [cursor=pointer]:
        - /url: /analytics/dashboard/
        - img [ref=e11]
      - link [ref=e16] [cursor=pointer]:
        - /url: /
        - img [ref=e17]
      - button [ref=e20] [cursor=pointer]:
        - img [ref=e21]
      - link [ref=e22] [cursor=pointer]:
        - /url: /complaints/
        - img [ref=e23]
      - link [ref=e26] [cursor=pointer]:
        - /url: /inquiries/
        - img [ref=e27]
      - link [ref=e30] [cursor=pointer]:
        - /url: /observations/
        - img [ref=e31]
      - button [ref=e35] [cursor=pointer]:
        - img [ref=e36]
      - link [ref=e40] [cursor=pointer]:
        - /url: /appreciation/
        - img [ref=e41]
      - link [ref=e43] [cursor=pointer]:
        - /url: /suggestions/?feedback_type=suggestion
        - img [ref=e44]
      - button [ref=e47] [cursor=pointer]:
        - img [ref=e48]
      - button [ref=e52] [cursor=pointer]:
        - img [ref=e53]
      - link [ref=e58] [cursor=pointer]:
        - /url: /organizations/departments/
        - img [ref=e59]
      - link [ref=e63] [cursor=pointer]:
        - /url: /organizations/patients/
        - img [ref=e64]
      - link [ref=e67] [cursor=pointer]:
        - /url: /social/
        - img [ref=e68]
      - button [ref=e75] [cursor=pointer]:
        - img [ref=e76]
      - button [ref=e81] [cursor=pointer]:
        - img [ref=e82]
      - button [ref=e89] [cursor=pointer]:
        - img [ref=e90]
      - link [ref=e93] [cursor=pointer]:
        - /url: /notifications/send-sms/
        - img [ref=e94]
      - link [ref=e96] [cursor=pointer]:
        - /url: /config/
        - img [ref=e97]
      - link [ref=e100] [cursor=pointer]:
        - /url: /complaints/trash/
        - img [ref=e101]
      - link [ref=e104] [cursor=pointer]:
        - /url: /accounts/acknowledgements/my-acknowledgements/
        - img [ref=e105]
      - button [ref=e111] [cursor=pointer]:
        - img [ref=e112]
      - button [ref=e115] [cursor=pointer]:
        - img [ref=e116]
    - generic [ref=e120]:
      - paragraph [ref=e122]: Hospital
      - generic [ref=e123]:
        - combobox [ref=e124] [cursor=pointer]:
          - option "NUZHA" [selected]
          - option "SUWAIDI"
        - generic:
          - img
    - button [ref=e126] [cursor=pointer]:
      - img [ref=e127]
    - generic [ref=e130]:
      - link "🇬🇧" [ref=e131] [cursor=pointer]:
        - /url: /core/set-language/?language=en
        - generic [ref=e132]: 🇬🇧
      - link "🇸🇦" [ref=e133] [cursor=pointer]:
        - /url: /core/set-language/?language=ar
        - generic [ref=e134]: 🇸🇦
  - generic [ref=e135]:
    - banner [ref=e136]:
      - generic [ref=e137]:
        - heading "Good morning, PX! ☀️" [level=2] [ref=e138]
        - paragraph [ref=e139]: Welcome to PX360 Patient Experience Management
      - generic [ref=e140]:
        - generic [ref=e141]:
          - img [ref=e142]
          - textbox "Search..." [ref=e145]
        - button "3" [ref=e147] [cursor=pointer]:
          - img [ref=e148]
          - generic [ref=e151]: "3"
        - generic [ref=e152]:
          - link "🇬🇧 English" [ref=e153] [cursor=pointer]:
            - /url: /core/set-language/?language=en
            - generic [ref=e154]: 🇬🇧
            - generic [ref=e155]: English
          - link "🇸🇦 Arabic" [ref=e156] [cursor=pointer]:
            - /url: /core/set-language/?language=ar
            - generic [ref=e157]: 🇸🇦
            - generic [ref=e158]: Arabic
        - button "PX Admin PX Admin P" [ref=e160] [cursor=pointer]:
          - generic [ref=e161]:
            - generic [ref=e162]: PX Admin
            - generic [ref=e163]: PX Admin
          - generic [ref=e164]: P
          - img [ref=e165]
    - main [ref=e167]:
      - generic [ref=e168]:
        - generic [ref=e170]:
          - generic [ref=e171]:
            - heading "Create Survey Template" [level=1] [ref=e172]:
              - img [ref=e173]
              - text: Create Survey Template
            - paragraph [ref=e176]: Create a new survey template with questions
          - link "Back to Templates" [ref=e177] [cursor=pointer]:
            - /url: /surveys/templates/
            - img [ref=e178]
            - text: Back to Templates
        - generic [ref=e182]:
          - generic [ref=e183]:
            - img [ref=e185]
            - heading "General Settings" [level=2] [ref=e188]
          - generic [ref=e189]:
            - generic [ref=e190]:
              - generic [ref=e191]: Template Name (English) *
              - textbox "Template Name (English) *" [ref=e192]:
                - /placeholder: e.g., MD Consultation Feedback
            - generic [ref=e193]:
              - text: Template Name (Arabic)
              - textbox "Template Name (Arabic)" [ref=e194]:
                - /placeholder: الاسم بالعربية
          - generic [ref=e195]:
            - generic [ref=e196]:
              - generic [ref=e197]: Survey Type *
              - combobox "Survey Type *" [ref=e198]:
                - option "Journey Stage Survey" [selected]
                - option "Complaint Resolution Satisfaction"
                - option "General Feedback"
                - option "Net Promoter Score"
            - generic [ref=e199]:
              - generic [ref=e200]: Scoring Method *
              - combobox "Scoring Method *" [ref=e201]:
                - option "Average Score" [selected]
                - option "Weighted Average"
                - option "NPS Calculation"
          - generic [ref=e202]:
            - generic [ref=e203]:
              - text: Negative Threshold
              - spinbutton "Negative Threshold" [ref=e204]: "3.0"
              - paragraph [ref=e205]: Score below this is flagged as negative
            - generic [ref=e207] [cursor=pointer]:
              - checkbox "Active template" [checked] [ref=e208]
              - generic [ref=e209]: Active template
          - separator [ref=e210]
          - generic [ref=e212]:
            - img [ref=e214]
            - heading "Questions" [level=2] [ref=e217]
          - generic [ref=e218]:
            - generic [ref=e219]:
              - generic [ref=e220]:
                - heading "Question 1" [level=3] [ref=e221]:
                  - img [ref=e222]
                  - text: Question 1
                - button "Remove question" [ref=e225] [cursor=pointer]:
                  - img [ref=e226]
              - generic [ref=e229]:
                - generic [ref=e230]:
                  - generic [ref=e231]: Question (English) *
                  - textbox "Enter question in English" [ref=e232]
                - generic [ref=e233]:
                  - text: Question (Arabic)
                  - textbox "أدخل السؤال بالعربية" [ref=e234]
              - generic [ref=e235]:
                - generic [ref=e236]:
                  - generic [ref=e237]: Question Type *
                  - combobox [ref=e238]:
                    - option "Rating (1-5 stars)" [selected]
                    - option "NPS (0-10)"
                    - option "Yes/No"
                    - option "Multiple Choice"
                    - option "Text (Short Answer)"
                    - option "Text Area (Long Answer)"
                    - option "Likert Scale (1-5)"
                - generic [ref=e239]:
                  - text: Order
                  - spinbutton [ref=e240]: "0"
                - generic [ref=e242] [cursor=pointer]:
                  - checkbox "Required" [checked] [ref=e243]
                  - generic [ref=e244]: Required
              - generic [ref=e245]:
                - generic [ref=e246]:
                  - generic [ref=e247] [cursor=pointer]:
                    - checkbox "Base Question (always included)" [ref=e248]
                    - generic [ref=e249]: Base Question (always included)
                  - paragraph [ref=e250]: Base questions are always shown regardless of patient events
                - generic [ref=e251]:
                  - text: Event Type
                  - textbox "e.g., Lab Bill, Triage (leave blank for base questions)" [ref=e252]
                  - paragraph [ref=e253]: HIS event type that triggers this question (leave blank for base)
                  - button "Show Visit Timeline Events" [ref=e254] [cursor=pointer]:
                    - img [ref=e255]
                    - text: Show Visit Timeline Events
              - generic [ref=e257] [cursor=pointer]:
                - checkbox "Conditional (hidden by default, shown only via routing rules)" [ref=e258]
                - generic [ref=e259]: Conditional (hidden by default, shown only via routing rules)
            - generic [ref=e260]:
              - generic [ref=e261]:
                - heading "Question 2" [level=3] [ref=e262]:
                  - img [ref=e263]
                  - text: Question 2
                - button "Remove question" [ref=e266] [cursor=pointer]:
                  - img [ref=e267]
              - generic [ref=e270]:
                - generic [ref=e271]:
                  - generic [ref=e272]: Question (English) *
                  - textbox "Enter question in English" [ref=e273]
                - generic [ref=e274]:
                  - text: Question (Arabic)
                  - textbox "أدخل السؤال بالعربية" [ref=e275]
              - generic [ref=e276]:
                - generic [ref=e277]:
                  - generic [ref=e278]: Question Type *
                  - combobox [ref=e279]:
                    - option "Rating (1-5 stars)" [selected]
                    - option "NPS (0-10)"
                    - option "Yes/No"
                    - option "Multiple Choice"
                    - option "Text (Short Answer)"
                    - option "Text Area (Long Answer)"
                    - option "Likert Scale (1-5)"
                - generic [ref=e280]:
                  - text: Order
                  - spinbutton [ref=e281]: "0"
                - generic [ref=e283] [cursor=pointer]:
                  - checkbox "Required" [checked] [ref=e284]
                  - generic [ref=e285]: Required
              - generic [ref=e286]:
                - generic [ref=e287]:
                  - generic [ref=e288] [cursor=pointer]:
                    - checkbox "Base Question (always included)" [ref=e289]
                    - generic [ref=e290]: Base Question (always included)
                  - paragraph [ref=e291]: Base questions are always shown regardless of patient events
                - generic [ref=e292]:
                  - text: Event Type
                  - textbox "e.g., Lab Bill, Triage (leave blank for base questions)" [ref=e293]
                  - paragraph [ref=e294]: HIS event type that triggers this question (leave blank for base)
                  - button "Show Visit Timeline Events" [ref=e295] [cursor=pointer]:
                    - img [ref=e296]
                    - text: Show Visit Timeline Events
              - generic [ref=e298] [cursor=pointer]:
                - checkbox "Conditional (hidden by default, shown only via routing rules)" [ref=e299]
                - generic [ref=e300]: Conditional (hidden by default, shown only via routing rules)
          - button "Add Question" [ref=e302] [cursor=pointer]:
            - img [ref=e303]
            - text: Add Question
          - separator [ref=e304]
          - generic [ref=e305]:
            - generic [ref=e306]:
              - img [ref=e308]
              - generic [ref=e312]:
                - heading "Routing Rules" [level=2] [ref=e313]
                - paragraph [ref=e314]: Define conditional logic to skip questions or end the survey based on answers
            - button "Add Rule" [ref=e315] [cursor=pointer]:
              - img [ref=e316]
              - text: Add Rule
          - generic [ref=e317]:
            - link "Cancel" [ref=e318] [cursor=pointer]:
              - /url: /surveys/templates/
              - img [ref=e319]
              - text: Cancel
            - generic [ref=e322]:
              - button "Save & Continue Editing" [ref=e323] [cursor=pointer]:
                - img [ref=e324]
                - text: Save & Continue Editing
              - button "Create Template" [ref=e328] [cursor=pointer]:
                - img [ref=e329]
                - text: Create Template
    - contentinfo [ref=e331]:
      - paragraph [ref=e332]:
        - text: Powered by
        - link "tenhal.sa" [ref=e333] [cursor=pointer]:
          - /url: https://tenhal.sa