{
  "@context": {
    "ixo": "https://w3id.org/ixo/ns/protocol/",
    "@id": "@type",
    "type": "@type",
    "@protected": true
  },
  "type": "ixo:entity#surveyTemplate",
  "question": {
    "title": "Device Swap Form",
    "description": "Record and manage the replacement of a stove device assigned to a customer.",
    "pages": [
      {
        "name": "device_swap_details",
        "elements": [
          {
            "type": "panel",
            "name": "customer_information_panel",
            "elements": [
              {
                "type": "text",
                "name": "schema:name",
                "title": "Customer Name",
                "isRequired": true
              },
              {
                "type": "text",
                "name": "ecs:contract_reference",
                "title": "Contract Reference",
                "isRequired": true
              },
              {
                "type": "text",
                "name": "schema:country",
                "title": "Country",
                "isRequired": true
              }
            ],
            "title": "Customer Information"
          },
          {
            "type": "panel",
            "name": "current_device_panel",
            "elements": [
              {
                "type": "text",
                "name": "ecs:current_device_id",
                "title": "Current Device ID",
                "description": "Serial number or identifier of the currently assigned stove",
                "isRequired": true
              },
              {
                "type": "text",
                "name": "ecs:current_uid",
                "title": "Current UID",
                "description": "Unique device identifier (UID) linked to the stove",
                "isRequired": true
              }
            ],
            "title": "Current Device Information"
          },
          {
            "type": "panel",
            "name": "swap_details_panel",
            "elements": [
              {
                "type": "dropdown",
                "name": "ecs:swap_reason",
                "title": "Swapping Reason",
                "isRequired": true,
                "choices": [
                  "Damaged Stove",
                  "Wrong Assignment During Onboarding",
                  "Wrongly Mapped"
                ]
              },
              {
                "type": "text",
                "name": "ecs:new_device_id",
                "title": "New Device ID",
                "description": "Serial number or identifier of the replacement stove",
                "isRequired": true
              }
            ],
            "title": "Swap Details"
          }
        ]
      }
    ],
    "completeText": "Submit Device Swap"
  }
}