{
  "@context": {
    "ixo": "https://w3id.org/ixo/ns/protocol/",
    "@id": "@type",
    "type": "@type",
    "@protected": true
  },
  "type": "ixo:entity#surveyTemplate",
  "question": {
    "pages": [
      {
        "name": "delivery",
        "title": "Passport delivery",
        "elements": [
          {
            "type": "text",
            "name": "applicationRef",
            "title": "Passport application reference",
            "description": "The reference printed on the delivery manifest for this passport.",
            "isRequired": true
          },
          {
            "type": "text",
            "name": "recipientIdNumber",
            "title": "Recipient's national ID number",
            "description": "The ID document you checked at handover.",
            "isRequired": true
          },
          {
            "type": "radiogroup",
            "name": "recipientType",
            "title": "Who received the passport?",
            "isRequired": true,
            "choices": [
              { "value": "applicant", "text": "The applicant in person" },
              { "value": "authorized_proxy", "text": "An authorised proxy with a letter of authority" }
            ]
          },
          {
            "type": "boolean",
            "name": "idVerified",
            "title": "I checked the recipient's photo ID against the passport before handing it over",
            "isRequired": true
          },
          {
            "type": "text",
            "inputType": "date",
            "name": "dispatchedDate",
            "title": "Date the passport was dispatched to you",
            "isRequired": true
          },
          {
            "type": "text",
            "inputType": "datetime-local",
            "name": "deliveredAt",
            "title": "Date and time of handover",
            "isRequired": true
          },
          {
            "type": "file",
            "name": "handoverPhoto",
            "title": "Handover photo",
            "description": "A photo taken at the handover showing the passport and the recipient.",
            "acceptedTypes": "image/*",
            "isRequired": true
          },
          {
            "type": "comment",
            "name": "notes",
            "title": "Notes",
            "description": "Anything unusual about this delivery."
          }
        ]
      }
    ]
  }
}
