{
  "@context": {
    "ixo": "https://w3id.org/ixo/ns/protocol/",
    "@id": "@type",
    "type": "@type",
    "@protected": true
  },
  "type": "ixo:entity#surveyTemplate",
  "question": {
    "pages": [
      {
        "name": "delivery",
        "elements": [
          {
            "type": "dropdown",
            "name": "clinicId",
            "title": "Clinic",
            "isRequired": true,
            "choices": [
              { "value": "CL-A", "text": "Clinic A" },
              { "value": "CL-B", "text": "Clinic B" },
              { "value": "CL-C", "text": "Clinic C" }
            ]
          },
          {
            "type": "text",
            "inputType": "datetime-local",
            "name": "deliveryDate",
            "title": "Delivery date",
            "isRequired": true
          },
          {
            "type": "text",
            "inputType": "number",
            "name": "quantity",
            "title": "Units delivered",
            "isRequired": true
          },
          {
            "type": "file",
            "name": "deliveryPhoto",
            "title": "Delivery photo",
            "acceptedTypes": "image/*"
          },
          {
            "type": "file",
            "name": "deliveryNote",
            "title": "Signed delivery note",
            "acceptedTypes": "application/pdf,image/*"
          },
          {
            "type": "comment",
            "name": "notes",
            "title": "Notes"
          }
        ]
      }
    ]
  }
}
