{
  "fields": {
    "PersonalDetails.ServiceIn.UCIClientID": {
      "label": "UCI",
      "template_path": "PersonalDetails.ServiceIn.UCIClientID",
      "rules": {
        "gate": "has_uci",
        "optional": false
      },
      "max_chars": 10
    },
    "PersonalDetails.ServiceIn.ServiceIn": {
      "label": "Service language",
      "template_path": "PersonalDetails.ServiceIn.ServiceIn",
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "01": "English",
        "02": "French"
      }
    },
    "PersonalDetails.ApplyingFor.RestoreStat": {
      "label": "Restore visitor status",
      "template_path": "PersonalDetails.ApplyingFor.RestoreStat",
      "rules": {
        "gate": null,
        "optional": false
      }
    },
    "PersonalDetails.ApplyingFor.Extend": {
      "label": "Extend visitor status",
      "template_path": "PersonalDetails.ApplyingFor.Extend",
      "rules": {
        "gate": null,
        "optional": false
      }
    },
    "PersonalDetails.ApplyingFor.TRP": {
      "label": "New temporary resident permit",
      "template_path": "PersonalDetails.ApplyingFor.TRP",
      "rules": {
        "gate": null,
        "optional": false
      }
    },
    "PersonalDetails.Name.FamilyName": {
      "label": "Family name",
      "template_path": "PersonalDetails.Name.FamilyName",
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 100
    },
    "PersonalDetails.Name.GivenName": {
      "label": "Given names",
      "template_path": "PersonalDetails.Name.GivenName",
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 100
    },
    "PersonalDetails.AliasName.AliasNameIndicator.AliasNameIndicator": {
      "label": "Other names used",
      "template_path": "PersonalDetails.AliasName.AliasNameIndicator.AliasNameIndicator",
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "PersonalDetails.AliasName.AliasFamilyName": {
      "label": "Other name — Family name",
      "template_path": "PersonalDetails.AliasName.AliasFamilyName",
      "rules": {
        "gate": "has_alias",
        "optional": false
      },
      "max_chars": 100
    },
    "PersonalDetails.AliasName.AliasGivenName": {
      "label": "Other name — Given names",
      "template_path": "PersonalDetails.AliasName.AliasGivenName",
      "rules": {
        "gate": "has_alias",
        "optional": false
      },
      "max_chars": 100
    },
    "PersonalDetails.q3-4-5.sex.Sex": {
      "label": "Sex",
      "template_path": "PersonalDetails.q3-4-5.sex.Sex",
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "Female": "F Female",
        "Male": "M Male",
        "Unknown": "U Unknown",
        "Unspecified": "X Another gender"
      }
    },
    "PersonalDetails.q3-4-5.dob.DOBYear": {
      "label": "Date of birth",
      "template_path": "PersonalDetails.q3-4-5.dob.DOBYear",
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 4
    },
    "PersonalDetails.q3-4-5.dob.DOBMonth": {
      "label": "Date of birth",
      "template_path": "PersonalDetails.q3-4-5.dob.DOBMonth",
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 2
    },
    "PersonalDetails.q3-4-5.dob.DOBDay": {
      "label": "Date of birth",
      "template_path": "PersonalDetails.q3-4-5.dob.DOBDay",
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 2
    },
    "PersonalDetails.q3-4-5.pob.PlaceBirthCity": {
      "label": "City of birth",
      "template_path": "PersonalDetails.q3-4-5.pob.PlaceBirthCity",
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 30
    },
    "PersonalDetails.q3-4-5.pob.PlaceBirthCountry": {
      "label": "Country of birth",
      "template_path": "PersonalDetails.q3-4-5.pob.PlaceBirthCountry",
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "252": "Afghanistan",
        "401": "Aland Island",
        "081": "Albania",
        "131": "Algeria",
        "082": "Andorra",
        "151": "Angola",
        "620": "Anguilla",
        "621": "Antigua And Barbuda",
        "703": "Argentina",
        "049": "Armenia",
        "658": "Aruba",
        "305": "Australia",
        "011": "Austria",
        "050": "Azerbaijan",
        "622": "Bahamas",
        "253": "Bahrain",
        "412": "Bailwick of Jersey",
        "212": "Bangladesh",
        "610": "Barbados",
        "051": "Belarus",
        "012": "Belgium",
        "541": "Belize",
        "160": "Benin",
        "601": "Bermuda",
        "254": "Bhutan",
        "751": "Bolivia",
        "402": "Bonaire, Sint Eustatius, Saba",
        "048": "Bosnia and Herzegovina",
        "153": "Botswana",
        "403": "Bouvet Island",
        "709": "Brazil",
        "404": "British Indian Ocean Territory",
        "633": "British Virgin Islands",
        "255": "Brunei Darussalam",
        "083": "Bulgaria",
        "188": "Burkina Faso",
        "241": "Burma (Myanmar)",
        "154": "Burundi",
        "911": "Cabo Verde",
        "256": "Cambodia",
        "155": "Cameroon",
        "511": "Canada",
        "039": "Canary Islands",
        "624": "Cayman Islands",
        "157": "Central African Republic",
        "156": "Chad",
        "009": "Channel Islands",
        "721": "Chile",
        "202": "China",
        "200": "China (Hong Kong SAR)",
        "198": "China (Macao SAR)",
        "405": "Christmas Island",
        "722": "Colombia",
        "905": "Comoros",
        "840": "Cook Islands",
        "542": "Costa Rica",
        "043": "Croatia",
        "650": "Cuba",
        "406": "Curaçao",
        "221": "Cyprus",
        "015": "Czech Republic",
        "014": "Czechoslovakia",
        "158": "Democratic Rep. of Congo",
        "017": "Denmark",
        "183": "Djibouti",
        "625": "Dominica",
        "651": "Dominican Republic",
        "916": "East Timor",
        "753": "Ecuador",
        "101": "Egypt",
        "543": "El Salvador",
        "002": "England",
        "178": "Equatorial Guinea",
        "162": "Eritrea",
        "018": "Estonia",
        "161": "Ethiopia",
        "912": "Falkland Islands",
        "408": "Faroe Islands",
        "835": "Federated States of Micronesia",
        "801": "Fiji",
        "021": "Finland",
        "821": "Fr. South. and Antarctic Lands",
        "022": "France",
        "754": "French Guiana",
        "845": "French Polynesia",
        "163": "Gabon",
        "164": "Gambia",
        "052": "Georgia",
        "024": "Germany, Federal Republic Of",
        "165": "Ghana",
        "084": "Gibraltar",
        "025": "Greece",
        "521": "Greenland",
        "626": "Grenada",
        "653": "Guadeloupe",
        "832": "Guam",
        "544": "Guatemala",
        "409": "Guernsey",
        "166": "Guinea",
        "167": "Guinea-Bissau",
        "711": "Guyana",
        "654": "Haiti",
        "410": "Heard and MacDonald Islands",
        "545": "Honduras",
        "204": "Hong Kong",
        "026": "Hungary",
        "085": "Iceland",
        "205": "India",
        "222": "Indonesia",
        "223": "Iran",
        "224": "Iraq",
        "027": "Ireland",
        "411": "Isle of Man",
        "206": "Israel",
        "028": "Italy",
        "169": "Ivory Coast",
        "602": "Jamaica",
        "207": "Japan",
        "225": "Jordan",
        "053": "Kazakhstan",
        "132": "Kenya",
        "831": "Kiribati",
        "257": "Korea, North (DPRK)",
        "258": "Korea, South",
        "064": "Kosovo",
        "226": "Kuwait",
        "054": "Kyrgyzstan",
        "260": "Laos",
        "019": "Latvia",
        "208": "Lebanon",
        "152": "Lesotho",
        "170": "Liberia",
        "171": "Libya",
        "086": "Liechtenstein",
        "020": "Lithuania",
        "013": "Luxembourg",
        "261": "Macao",
        "070": "Macedonia",
        "172": "Madagascar",
        "036": "Madeira",
        "111": "Malawi",
        "242": "Malaysia",
        "901": "Maldives",
        "173": "Mali",
        "030": "Malta",
        "834": "Marshall Islands",
        "655": "Martinique",
        "174": "Mauritania",
        "902": "Mauritius",
        "906": "Mayotte",
        "501": "Mexico",
        "055": "Moldova",
        "087": "Monaco",
        "262": "Mongolia",
        "063": "Montenegro",
        "627": "Montserrat",
        "133": "Morocco",
        "175": "Mozambique",
        "122": "Namibia",
        "341": "Nauru",
        "264": "Nepal",
        "652": "Netherlands Antilles, The",
        "031": "Netherlands, The",
        "628": "Nevis",
        "822": "New Caledonia",
        "339": "New Zealand",
        "546": "Nicaragua",
        "176": "Niger",
        "177": "Nigeria",
        "414": "Niue",
        "006": "Northern Ireland",
        "830": "Northern Mariana Islands",
        "032": "Norway",
        "263": "Oman",
        "209": "Pakistan",
        "213": "Palestinian Authority",
        "547": "Panama",
        "342": "Papua New Guinea",
        "755": "Paraguay",
        "723": "Peru",
        "227": "Philippines",
        "842": "Pitcairn Islands",
        "033": "Poland",
        "034": "Portugal",
        "656": "Puerto Rico",
        "265": "Qatar",
        "159": "Republic of Congo",
        "836": "Republic of Palau",
        "903": "Réunion",
        "088": "Romania",
        "056": "Russia",
        "179": "Rwanda",
        "915": "Saint Helena",
        "629": "Saint Kitts and Nevis",
        "630": "Saint Lucia",
        "531": "Saint Pierre and Miquelon",
        "407": "Saint-Barthelemy",
        "415": "Saint-Martin",
        "844": "Samoa",
        "843": "Samoa, American",
        "089": "San Marino",
        "914": "Sao Tome and Principe",
        "231": "Saudi Arabia",
        "007": "Scotland",
        "180": "Senegal",
        "061": "Serbia And Montenegro",
        "062": "Serbia, Republic Of",
        "904": "Seychelles",
        "181": "Sierra Leone",
        "246": "Singapore",
        "416": "Sint-Maarten",
        "016": "Slovakia",
        "047": "Slovenia",
        "824": "Solomon Islands",
        "182": "Somalia",
        "121": "South Africa, Republic Of",
        "189": "South Sudan",
        "037": "Spain",
        "201": "Sri Lanka",
        "631": "St. Vincent and the Grenadines",
        "185": "Sudan",
        "752": "Suriname",
        "186": "Swaziland",
        "040": "Sweden",
        "041": "Switzerland",
        "210": "Syria",
        "203": "Taiwan",
        "057": "Tajikistan",
        "130": "Tanzania",
        "267": "Thailand",
        "268": "Tibet (Autonomous Region)",
        "187": "Togo",
        "417": "Tokelau",
        "846": "Tonga",
        "605": "Trinidad and Tobago",
        "135": "Tunisia",
        "045": "Turkey",
        "058": "Turkmenistan",
        "632": "Turks and Caicos Islands",
        "826": "Tuvalu",
        "418": "U.S. Minor outlying Islands",
        "136": "Uganda",
        "059": "Ukraine",
        "042": "Union Of Soviet Socialist Rep",
        "280": "United Arab Emirates",
        "461": "United States of America",
        "000": "Unknown",
        "724": "Uruguay",
        "060": "Uzbekistan",
        "823": "Vanuatu",
        "090": "Vatican City State",
        "725": "Venezuela",
        "270": "Vietnam",
        "657": "Virgin Islands, U.S.",
        "008": "Wales",
        "841": "Wallis and Futuna Is., Terr.",
        "184": "Western Sahara",
        "273": "Yemen",
        "044": "Yugoslavia",
        "112": "Zambia",
        "113": "Zimbabwe"
      }
    },
    "PersonalDetails.Citizenship.Citizenship": {
      "label": "Citizenship",
      "template_path": "PersonalDetails.Citizenship.Citizenship",
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "252": "Afghanistan",
        "081": "Albania",
        "131": "Algeria",
        "082": "Andorra",
        "151": "Angola",
        "621": "Antigua And Barbuda",
        "703": "Argentina",
        "049": "Armenia",
        "305": "Australia",
        "011": "Austria",
        "050": "Azerbaijan",
        "622": "Bahamas",
        "253": "Bahrain",
        "212": "Bangladesh",
        "610": "Barbados",
        "051": "Belarus",
        "012": "Belgium",
        "541": "Belize",
        "160": "Benin",
        "254": "Bhutan",
        "751": "Bolivia",
        "048": "Bosnia and Herzegovina",
        "153": "Botswana",
        "709": "Brazil",
        "255": "Brunei Darussalam",
        "083": "Bulgaria",
        "188": "Burkina Faso",
        "241": "Burma (Myanmar)",
        "154": "Burundi",
        "911": "Cabo Verde",
        "256": "Cambodia",
        "155": "Cameroon",
        "511": "Canada",
        "157": "Central African Republic",
        "156": "Chad",
        "721": "Chile",
        "202": "China",
        "200": "China (Hong Kong SAR)",
        "198": "China (Macao SAR)",
        "722": "Colombia",
        "905": "Comoros",
        "542": "Costa Rica",
        "043": "Croatia",
        "650": "Cuba",
        "221": "Cyprus",
        "015": "Czech Republic",
        "158": "Democratic Rep. of Congo",
        "017": "Denmark",
        "183": "Djibouti",
        "625": "Dominica",
        "651": "Dominican Republic",
        "916": "East Timor",
        "753": "Ecuador",
        "101": "Egypt",
        "543": "El Salvador",
        "178": "Equatorial Guinea",
        "162": "Eritrea",
        "018": "Estonia",
        "161": "Ethiopia",
        "835": "Federated States of Micronesia",
        "801": "Fiji",
        "021": "Finland",
        "022": "France",
        "163": "Gabon",
        "164": "Gambia",
        "052": "Georgia",
        "024": "Germany, Federal Republic Of",
        "165": "Ghana",
        "025": "Greece",
        "626": "Grenada",
        "544": "Guatemala",
        "166": "Guinea",
        "167": "Guinea-Bissau",
        "711": "Guyana",
        "654": "Haiti",
        "545": "Honduras",
        "026": "Hungary",
        "085": "Iceland",
        "205": "India",
        "222": "Indonesia",
        "223": "Iran",
        "224": "Iraq",
        "027": "Ireland",
        "206": "Israel",
        "028": "Italy",
        "169": "Ivory Coast",
        "602": "Jamaica",
        "207": "Japan",
        "225": "Jordan",
        "053": "Kazakhstan",
        "132": "Kenya",
        "831": "Kiribati",
        "257": "Korea, North (DPRK)",
        "258": "Korea, South",
        "064": "Kosovo",
        "226": "Kuwait",
        "054": "Kyrgyzstan",
        "260": "Laos",
        "019": "Latvia",
        "208": "Lebanon",
        "152": "Lesotho",
        "170": "Liberia",
        "171": "Libya",
        "086": "Liechtenstein",
        "020": "Lithuania",
        "013": "Luxembourg",
        "070": "Macedonia",
        "172": "Madagascar",
        "111": "Malawi",
        "242": "Malaysia",
        "901": "Maldives",
        "173": "Mali",
        "030": "Malta",
        "834": "Marshall Islands",
        "174": "Mauritania",
        "902": "Mauritius",
        "501": "Mexico",
        "055": "Moldova",
        "087": "Monaco",
        "262": "Mongolia",
        "063": "Montenegro",
        "133": "Morocco",
        "175": "Mozambique",
        "122": "Namibia",
        "341": "Nauru",
        "264": "Nepal",
        "031": "Netherlands, The",
        "822": "New Caledonia",
        "339": "New Zealand",
        "546": "Nicaragua",
        "176": "Niger",
        "177": "Nigeria",
        "830": "Northern Mariana Islands",
        "032": "Norway",
        "263": "Oman",
        "209": "Pakistan",
        "213": "Palestinian Authority",
        "547": "Panama",
        "342": "Papua New Guinea",
        "755": "Paraguay",
        "723": "Peru",
        "227": "Philippines",
        "033": "Poland",
        "034": "Portugal",
        "265": "Qatar",
        "159": "Republic of Congo",
        "836": "Republic of Palau",
        "088": "Romania",
        "056": "Russia",
        "179": "Rwanda",
        "629": "Saint Kitts and Nevis",
        "630": "Saint Lucia",
        "844": "Samoa",
        "089": "San Marino",
        "914": "Sao Tome and Principe",
        "231": "Saudi Arabia",
        "180": "Senegal",
        "062": "Serbia, Republic Of",
        "904": "Seychelles",
        "181": "Sierra Leone",
        "246": "Singapore",
        "016": "Slovakia",
        "047": "Slovenia",
        "824": "Solomon Islands",
        "182": "Somalia",
        "121": "South Africa, Republic Of",
        "189": "South Sudan",
        "037": "Spain",
        "201": "Sri Lanka",
        "631": "St. Vincent and the Grenadines",
        "979": "Stateless",
        "185": "Sudan",
        "752": "Suriname",
        "186": "Swaziland",
        "040": "Sweden",
        "041": "Switzerland",
        "210": "Syria",
        "203": "Taiwan",
        "057": "Tajikistan",
        "130": "Tanzania",
        "267": "Thailand",
        "187": "Togo",
        "846": "Tonga",
        "605": "Trinidad and Tobago",
        "135": "Tunisia",
        "045": "Turkey",
        "058": "Turkmenistan",
        "826": "Tuvalu",
        "136": "Uganda",
        "010": "UK - Brit. Ntl. Overseas",
        "004": "UK - Brit. overseas citizen",
        "005": "UK - Brit. overseas terr.",
        "003": "UK - British citizen",
        "059": "Ukraine",
        "280": "United Arab Emirates",
        "461": "United States of America",
        "000": "Unknown",
        "724": "Uruguay",
        "060": "Uzbekistan",
        "823": "Vanuatu",
        "090": "Vatican City State",
        "725": "Venezuela",
        "270": "Vietnam",
        "184": "Western Sahara",
        "273": "Yemen",
        "112": "Zambia",
        "113": "Zimbabwe"
      }
    },
    "PersonalDetails.CurrentCOR.CurrentCOR.Row2.Country": {
      "label": "Current residence — Country",
      "template_path": "PersonalDetails.CurrentCOR.CurrentCOR.Row2.Country",
      "rules": {
        "gate": null,
        "optional": false
      }
    },
    "PersonalDetails.CurrentCOR.CurrentCOR.Row2.Status": {
      "label": "Current residence — Status",
      "template_path": "PersonalDetails.CurrentCOR.CurrentCOR.Row2.Status",
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "01": "Citizen",
        "02": "Permanent resident",
        "03": "Visitor",
        "04": "Worker",
        "05": "Student",
        "06": "Other",
        "07": "Protected Person",
        "08": "Refugee Claimant",
        "09": "Foreign National"
      }
    },
    "PersonalDetails.CurrentCOR.CurrentCOR.Row2.Other": {
      "label": "Current residence — Other status",
      "template_path": "PersonalDetails.CurrentCOR.CurrentCOR.Row2.Other",
      "rules": {
        "gate": "current_status:06",
        "optional": false
      },
      "max_chars": 30
    },
    "PersonalDetails.CurrentCOR.CurrentCOR.Row2.FromDate": {
      "label": "Current residence — from date",
      "template_path": "PersonalDetails.CurrentCOR.CurrentCOR.Row2.FromDate",
      "rules": {
        "gate": "temporary_status",
        "past": true,
        "compare": null,
        "optional": false
      }
    },
    "PersonalDetails.CurrentCOR.CurrentCOR.Row2.ToDate": {
      "label": "Current residence — to date",
      "template_path": "PersonalDetails.CurrentCOR.CurrentCOR.Row2.ToDate",
      "rules": {
        "gate": "temporary_status",
        "past": false,
        "after_today": true,
        "compare": "current_status_from",
        "optional": false
      }
    },
    "PersonalDetails.PrevCOR.PCRIndicator": {
      "label": "Previous countries of residence",
      "template_path": "PersonalDetails.PrevCOR.PCRIndicator",
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "PersonalDetails.PrevCOR.PreviousCOR.Row2.Country": {
      "label": "Previous residence 1 — Country",
      "template_path": "PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row2.Country",
      "rules": {
        "gate": "previous_residence",
        "past": false,
        "compare": null,
        "optional": false
      },
      "choices": {
        "252": "Afghanistan",
        "081": "Albania",
        "131": "Algeria",
        "082": "Andorra",
        "151": "Angola",
        "620": "Anguilla",
        "621": "Antigua And Barbuda",
        "703": "Argentina",
        "049": "Armenia",
        "658": "Aruba",
        "305": "Australia",
        "011": "Austria",
        "050": "Azerbaijan",
        "035": "Azores",
        "622": "Bahamas",
        "253": "Bahrain",
        "212": "Bangladesh",
        "610": "Barbados",
        "051": "Belarus",
        "012": "Belgium",
        "541": "Belize",
        "160": "Benin",
        "601": "Bermuda",
        "254": "Bhutan",
        "751": "Bolivia",
        "048": "Bosnia and Herzegovina",
        "153": "Botswana",
        "709": "Brazil",
        "633": "British Virgin Islands",
        "255": "Brunei Darussalam",
        "083": "Bulgaria",
        "188": "Burkina Faso",
        "241": "Burma (Myanmar)",
        "154": "Burundi",
        "911": "Cabo Verde",
        "256": "Cambodia",
        "155": "Cameroon",
        "511": "Canada",
        "039": "Canary Islands",
        "624": "Cayman Islands",
        "157": "Central African Republic",
        "156": "Chad",
        "009": "Channel Islands",
        "721": "Chile",
        "202": "China",
        "200": "China (Hong Kong SAR)",
        "198": "China (Macao SAR)",
        "722": "Colombia",
        "905": "Comoros",
        "840": "Cook Islands",
        "542": "Costa Rica",
        "043": "Croatia",
        "650": "Cuba",
        "221": "Cyprus",
        "015": "Czech Republic",
        "158": "Democratic Rep. of Congo",
        "017": "Denmark",
        "183": "Djibouti",
        "625": "Dominica",
        "651": "Dominican Republic",
        "916": "East Timor",
        "753": "Ecuador",
        "101": "Egypt",
        "543": "El Salvador",
        "002": "England",
        "178": "Equatorial Guinea",
        "162": "Eritrea",
        "018": "Estonia",
        "161": "Ethiopia",
        "912": "Falkland Islands",
        "835": "Federated States of Micronesia",
        "801": "Fiji",
        "021": "Finland",
        "821": "Fr. South. and Antarctic Lands",
        "022": "France",
        "754": "French Guiana",
        "845": "French Polynesia",
        "163": "Gabon",
        "164": "Gambia",
        "052": "Georgia",
        "024": "Germany, Federal Republic Of",
        "165": "Ghana",
        "084": "Gibraltar",
        "025": "Greece",
        "521": "Greenland",
        "626": "Grenada",
        "653": "Guadeloupe",
        "832": "Guam",
        "544": "Guatemala",
        "166": "Guinea",
        "167": "Guinea-Bissau",
        "711": "Guyana",
        "654": "Haiti",
        "545": "Honduras",
        "204": "Hong Kong",
        "026": "Hungary",
        "085": "Iceland",
        "205": "India",
        "222": "Indonesia",
        "223": "Iran",
        "224": "Iraq",
        "027": "Ireland",
        "206": "Israel",
        "028": "Italy",
        "169": "Ivory Coast",
        "602": "Jamaica",
        "207": "Japan",
        "225": "Jordan",
        "053": "Kazakhstan",
        "132": "Kenya",
        "831": "Kiribati",
        "257": "Korea, North (DPRK)",
        "258": "Korea, South",
        "064": "Kosovo",
        "226": "Kuwait",
        "054": "Kyrgyzstan",
        "260": "Laos",
        "019": "Latvia",
        "208": "Lebanon",
        "152": "Lesotho",
        "170": "Liberia",
        "171": "Libya",
        "086": "Liechtenstein",
        "020": "Lithuania",
        "013": "Luxembourg",
        "261": "Macao",
        "070": "Macedonia",
        "172": "Madagascar",
        "036": "Madeira",
        "111": "Malawi",
        "242": "Malaysia",
        "901": "Maldives",
        "173": "Mali",
        "030": "Malta",
        "834": "Marshall Islands",
        "655": "Martinique",
        "174": "Mauritania",
        "902": "Mauritius",
        "906": "Mayotte",
        "501": "Mexico",
        "055": "Moldova",
        "087": "Monaco",
        "262": "Mongolia",
        "063": "Montenegro",
        "627": "Montserrat",
        "133": "Morocco",
        "175": "Mozambique",
        "122": "Namibia",
        "341": "Nauru",
        "264": "Nepal",
        "652": "Netherlands Antilles, The",
        "031": "Netherlands, The",
        "628": "Nevis",
        "822": "New Caledonia",
        "339": "New Zealand",
        "546": "Nicaragua",
        "176": "Niger",
        "177": "Nigeria",
        "271": "North Vietnam",
        "006": "Northern Ireland",
        "830": "Northern Mariana Islands",
        "032": "Norway",
        "263": "Oman",
        "209": "Pakistan",
        "213": "Palestinian Authority",
        "547": "Panama",
        "342": "Papua New Guinea",
        "755": "Paraguay",
        "723": "Peru",
        "227": "Philippines",
        "842": "Pitcairn Islands",
        "033": "Poland",
        "034": "Portugal",
        "656": "Puerto Rico",
        "265": "Qatar",
        "159": "Republic of Congo",
        "836": "Republic of Palau",
        "903": "Réunion",
        "088": "Romania",
        "056": "Russia",
        "179": "Rwanda",
        "915": "Saint Helena",
        "629": "Saint Kitts and Nevis",
        "630": "Saint Lucia",
        "531": "Saint Pierre and Miquelon",
        "415": "Saint-Martin",
        "844": "Samoa",
        "843": "Samoa, American",
        "089": "San Marino",
        "914": "Sao Tome and Principe",
        "231": "Saudi Arabia",
        "007": "Scotland",
        "180": "Senegal",
        "062": "Serbia, Republic Of",
        "904": "Seychelles",
        "181": "Sierra Leone",
        "246": "Singapore",
        "016": "Slovakia",
        "047": "Slovenia",
        "824": "Solomon Islands",
        "182": "Somalia",
        "121": "South Africa, Republic Of",
        "189": "South Sudan",
        "037": "Spain",
        "201": "Sri Lanka",
        "631": "St. Vincent and the Grenadines",
        "185": "Sudan",
        "752": "Suriname",
        "186": "Swaziland",
        "040": "Sweden",
        "041": "Switzerland",
        "210": "Syria",
        "203": "Taiwan",
        "057": "Tajikistan",
        "130": "Tanzania",
        "267": "Thailand",
        "187": "Togo",
        "846": "Tonga",
        "605": "Trinidad and Tobago",
        "135": "Tunisia",
        "045": "Turkey",
        "058": "Turkmenistan",
        "632": "Turks and Caicos Islands",
        "826": "Tuvalu",
        "136": "Uganda",
        "059": "Ukraine",
        "280": "United Arab Emirates",
        "461": "United States of America",
        "000": "Unknown",
        "724": "Uruguay",
        "060": "Uzbekistan",
        "823": "Vanuatu",
        "090": "Vatican City State",
        "725": "Venezuela",
        "270": "Vietnam",
        "657": "Virgin Islands, U.S.",
        "008": "Wales",
        "841": "Wallis and Futuna Is., Terr.",
        "184": "Western Sahara",
        "273": "Yemen",
        "112": "Zambia",
        "113": "Zimbabwe"
      }
    },
    "PersonalDetails.PrevCOR.PreviousCOR.Row2.Status": {
      "label": "Previous residence 1 — Status",
      "template_path": "PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row2.Status",
      "rules": {
        "gate": "previous_residence",
        "past": false,
        "compare": null,
        "optional": false
      },
      "choices": {
        "01": "Citizen",
        "02": "Permanent resident",
        "03": "Visitor",
        "04": "Worker",
        "05": "Student",
        "06": "Other",
        "07": "Protected Person",
        "08": "Refugee Claimant",
        "09": "Foreign National"
      }
    },
    "PersonalDetails.PrevCOR.PreviousCOR.Row2.Other": {
      "label": "Previous residence 1 — Other status",
      "template_path": "PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row2.Other",
      "rules": {
        "gate": "previous_residence",
        "past": false,
        "compare": null,
        "optional": false
      },
      "max_chars": 30
    },
    "PersonalDetails.PrevCOR.PreviousCOR.Row2.FromDate": {
      "label": "Previous residence 1 — From date",
      "template_path": "PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row2.FromDate",
      "rules": {
        "gate": "previous_residence",
        "past": true,
        "before_today": true,
        "compare": null,
        "optional": false
      }
    },
    "PersonalDetails.PrevCOR.PreviousCOR.Row2.ToDate": {
      "label": "Previous residence 1 — To date",
      "template_path": "PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row2.ToDate",
      "rules": {
        "gate": "previous_residence",
        "past": true,
        "compare": "previous_residences.0.from_date",
        "strict_compare": true,
        "optional": false
      }
    },
    "PersonalDetails.PrevCOR.PreviousCOR.Row3.Country": {
      "label": "Previous residence 2 — Country",
      "template_path": "PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row3.Country",
      "rules": {
        "gate": "previous_residence",
        "past": false,
        "compare": null,
        "optional": false
      },
      "choices": {
        "252": "Afghanistan",
        "081": "Albania",
        "131": "Algeria",
        "082": "Andorra",
        "151": "Angola",
        "620": "Anguilla",
        "621": "Antigua And Barbuda",
        "703": "Argentina",
        "049": "Armenia",
        "658": "Aruba",
        "305": "Australia",
        "011": "Austria",
        "050": "Azerbaijan",
        "035": "Azores",
        "622": "Bahamas",
        "253": "Bahrain",
        "212": "Bangladesh",
        "610": "Barbados",
        "051": "Belarus",
        "012": "Belgium",
        "541": "Belize",
        "160": "Benin",
        "601": "Bermuda",
        "254": "Bhutan",
        "751": "Bolivia",
        "048": "Bosnia and Herzegovina",
        "153": "Botswana",
        "709": "Brazil",
        "633": "British Virgin Islands",
        "255": "Brunei Darussalam",
        "083": "Bulgaria",
        "188": "Burkina Faso",
        "241": "Burma (Myanmar)",
        "154": "Burundi",
        "911": "Cabo Verde",
        "256": "Cambodia",
        "155": "Cameroon",
        "511": "Canada",
        "039": "Canary Islands",
        "624": "Cayman Islands",
        "157": "Central African Republic",
        "156": "Chad",
        "009": "Channel Islands",
        "721": "Chile",
        "202": "China",
        "200": "China (Hong Kong SAR)",
        "198": "China (Macao SAR)",
        "722": "Colombia",
        "905": "Comoros",
        "840": "Cook Islands",
        "542": "Costa Rica",
        "043": "Croatia",
        "650": "Cuba",
        "221": "Cyprus",
        "015": "Czech Republic",
        "158": "Democratic Rep. of Congo",
        "017": "Denmark",
        "183": "Djibouti",
        "625": "Dominica",
        "651": "Dominican Republic",
        "916": "East Timor",
        "753": "Ecuador",
        "101": "Egypt",
        "543": "El Salvador",
        "002": "England",
        "178": "Equatorial Guinea",
        "162": "Eritrea",
        "018": "Estonia",
        "161": "Ethiopia",
        "912": "Falkland Islands",
        "835": "Federated States of Micronesia",
        "801": "Fiji",
        "021": "Finland",
        "821": "Fr. South. and Antarctic Lands",
        "022": "France",
        "754": "French Guiana",
        "845": "French Polynesia",
        "163": "Gabon",
        "164": "Gambia",
        "052": "Georgia",
        "024": "Germany, Federal Republic Of",
        "165": "Ghana",
        "084": "Gibraltar",
        "025": "Greece",
        "521": "Greenland",
        "626": "Grenada",
        "653": "Guadeloupe",
        "832": "Guam",
        "544": "Guatemala",
        "166": "Guinea",
        "167": "Guinea-Bissau",
        "711": "Guyana",
        "654": "Haiti",
        "545": "Honduras",
        "204": "Hong Kong",
        "026": "Hungary",
        "085": "Iceland",
        "205": "India",
        "222": "Indonesia",
        "223": "Iran",
        "224": "Iraq",
        "027": "Ireland",
        "206": "Israel",
        "028": "Italy",
        "169": "Ivory Coast",
        "602": "Jamaica",
        "207": "Japan",
        "225": "Jordan",
        "053": "Kazakhstan",
        "132": "Kenya",
        "831": "Kiribati",
        "257": "Korea, North (DPRK)",
        "258": "Korea, South",
        "064": "Kosovo",
        "226": "Kuwait",
        "054": "Kyrgyzstan",
        "260": "Laos",
        "019": "Latvia",
        "208": "Lebanon",
        "152": "Lesotho",
        "170": "Liberia",
        "171": "Libya",
        "086": "Liechtenstein",
        "020": "Lithuania",
        "013": "Luxembourg",
        "261": "Macao",
        "070": "Macedonia",
        "172": "Madagascar",
        "036": "Madeira",
        "111": "Malawi",
        "242": "Malaysia",
        "901": "Maldives",
        "173": "Mali",
        "030": "Malta",
        "834": "Marshall Islands",
        "655": "Martinique",
        "174": "Mauritania",
        "902": "Mauritius",
        "906": "Mayotte",
        "501": "Mexico",
        "055": "Moldova",
        "087": "Monaco",
        "262": "Mongolia",
        "063": "Montenegro",
        "627": "Montserrat",
        "133": "Morocco",
        "175": "Mozambique",
        "122": "Namibia",
        "341": "Nauru",
        "264": "Nepal",
        "652": "Netherlands Antilles, The",
        "031": "Netherlands, The",
        "628": "Nevis",
        "822": "New Caledonia",
        "339": "New Zealand",
        "546": "Nicaragua",
        "176": "Niger",
        "177": "Nigeria",
        "271": "North Vietnam",
        "006": "Northern Ireland",
        "830": "Northern Mariana Islands",
        "032": "Norway",
        "263": "Oman",
        "209": "Pakistan",
        "213": "Palestinian Authority",
        "547": "Panama",
        "342": "Papua New Guinea",
        "755": "Paraguay",
        "723": "Peru",
        "227": "Philippines",
        "842": "Pitcairn Islands",
        "033": "Poland",
        "034": "Portugal",
        "656": "Puerto Rico",
        "265": "Qatar",
        "159": "Republic of Congo",
        "836": "Republic of Palau",
        "903": "Réunion",
        "088": "Romania",
        "056": "Russia",
        "179": "Rwanda",
        "915": "Saint Helena",
        "629": "Saint Kitts and Nevis",
        "630": "Saint Lucia",
        "531": "Saint Pierre and Miquelon",
        "415": "Saint-Martin",
        "844": "Samoa",
        "843": "Samoa, American",
        "089": "San Marino",
        "914": "Sao Tome and Principe",
        "231": "Saudi Arabia",
        "007": "Scotland",
        "180": "Senegal",
        "062": "Serbia, Republic Of",
        "904": "Seychelles",
        "181": "Sierra Leone",
        "246": "Singapore",
        "016": "Slovakia",
        "047": "Slovenia",
        "824": "Solomon Islands",
        "182": "Somalia",
        "121": "South Africa, Republic Of",
        "189": "South Sudan",
        "037": "Spain",
        "201": "Sri Lanka",
        "631": "St. Vincent and the Grenadines",
        "185": "Sudan",
        "752": "Suriname",
        "186": "Swaziland",
        "040": "Sweden",
        "041": "Switzerland",
        "210": "Syria",
        "203": "Taiwan",
        "057": "Tajikistan",
        "130": "Tanzania",
        "267": "Thailand",
        "187": "Togo",
        "846": "Tonga",
        "605": "Trinidad and Tobago",
        "135": "Tunisia",
        "045": "Turkey",
        "058": "Turkmenistan",
        "632": "Turks and Caicos Islands",
        "826": "Tuvalu",
        "136": "Uganda",
        "059": "Ukraine",
        "280": "United Arab Emirates",
        "461": "United States of America",
        "000": "Unknown",
        "724": "Uruguay",
        "060": "Uzbekistan",
        "823": "Vanuatu",
        "090": "Vatican City State",
        "725": "Venezuela",
        "270": "Vietnam",
        "657": "Virgin Islands, U.S.",
        "008": "Wales",
        "841": "Wallis and Futuna Is., Terr.",
        "184": "Western Sahara",
        "273": "Yemen",
        "112": "Zambia",
        "113": "Zimbabwe"
      }
    },
    "PersonalDetails.PrevCOR.PreviousCOR.Row3.Status": {
      "label": "Previous residence 2 — Status",
      "template_path": "PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row3.Status",
      "rules": {
        "gate": "previous_residence",
        "past": false,
        "compare": null,
        "optional": false
      },
      "choices": {
        "01": "Citizen",
        "02": "Permanent resident",
        "03": "Visitor",
        "04": "Worker",
        "05": "Student",
        "06": "Other",
        "07": "Protected Person",
        "08": "Refugee Claimant",
        "09": "Foreign National"
      }
    },
    "PersonalDetails.PrevCOR.PreviousCOR.Row3.Other": {
      "label": "Previous residence 2 — Other status",
      "template_path": "PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row3.Other",
      "rules": {
        "gate": "previous_residence",
        "past": false,
        "compare": null,
        "optional": false
      },
      "max_chars": 30
    },
    "PersonalDetails.PrevCOR.PreviousCOR.Row3.FromDate": {
      "label": "Previous residence 2 — From date",
      "template_path": "PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row3.FromDate",
      "rules": {
        "gate": "previous_residence",
        "past": true,
        "before_today": true,
        "compare": null,
        "optional": false
      }
    },
    "PersonalDetails.PrevCOR.PreviousCOR.Row3.ToDate": {
      "label": "Previous residence 2 — To date",
      "template_path": "PersonalDetails.PrevCOR.PCOR_tbl.PreviousCOR.Row3.ToDate",
      "rules": {
        "gate": "previous_residence",
        "past": true,
        "compare": "previous_residences.1.from_date",
        "strict_compare": true,
        "optional": false
      }
    },
    "MaritalStatus.Current.MaritalStatus": {
      "label": "Current marital status",
      "template_path": "MaritalStatus.Current.MaritalStatus",
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "09": "Annulled Marriage",
        "03": "Common-Law",
        "04": "Divorced",
        "05": "Legally Separated",
        "01": "Married",
        "02": "Single",
        "00": "Unknown",
        "06": "Widowed"
      }
    },
    "MaritalStatus.Current.b.DateOfMarriage": {
      "label": "Current relationship — Start date",
      "template_path": "MaritalStatus.Current.b.DateOfMarriage",
      "rules": {
        "gate": "married",
        "past": true,
        "optional": false
      }
    },
    "MaritalStatus.Current.c.FamilyName": {
      "label": "Current spouse — Family name",
      "template_path": "MaritalStatus.Current.c.FamilyName",
      "rules": {
        "gate": "married",
        "optional": false
      },
      "max_chars": 100
    },
    "MaritalStatus.Current.c.GivenName": {
      "label": "Current spouse — Given names",
      "template_path": "MaritalStatus.Current.c.GivenName",
      "rules": {
        "gate": "married",
        "optional": false
      },
      "max_chars": 100
    },
    "MaritalStatus.d.SpouseStatus": {
      "label": "Spouse is Canadian citizen or permanent resident",
      "template_path": "MaritalStatus.d.SpouseStatus",
      "rules": {
        "gate": "married",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "MaritalStatus.PrevMarriage.PrevMarriedIndicator": {
      "label": "Previously married or common-law",
      "template_path": "MaritalStatus.PrevMarriage.PrevMarriedIndicator",
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "MaritalStatus.PrevMarriage.PMFamilyName": {
      "label": "Previous spouse — Family name",
      "template_path": "MaritalStatus.PrevMarriage.PMFamilyName",
      "rules": {
        "gate": "previous_marriage",
        "past": false,
        "compare": null,
        "optional": false
      },
      "max_chars": 100
    },
    "MaritalStatus.PrevMarriage.PMGivenName": {
      "label": "Previous spouse — Given names",
      "template_path": "MaritalStatus.PrevMarriage.PMGivenName",
      "rules": {
        "gate": "previous_marriage",
        "past": false,
        "compare": null,
        "optional": false
      },
      "max_chars": 100
    },
    "MaritalStatus.PrevMarriage.TypeOfRelationship": {
      "label": "Previous spouse — Relationship type",
      "template_path": "MaritalStatus.PrevMarriage.TypeOfRelationship",
      "rules": {
        "gate": "previous_marriage",
        "past": false,
        "compare": null,
        "optional": false
      },
      "choices": {
        "03": "Common-Law",
        "01": "Married"
      }
    },
    "MaritalStatus.PrevMarriage.From.FromDate": {
      "label": "Previous spouse — From date",
      "template_path": "MaritalStatus.PrevMarriage.From.FromDate",
      "rules": {
        "gate": "previous_marriage",
        "past": true,
        "compare": null,
        "optional": false
      }
    },
    "MaritalStatus.PrevMarriage.To.ToDate": {
      "label": "Previous spouse — To date",
      "template_path": "MaritalStatus.PrevMarriage.To.ToDate",
      "rules": {
        "gate": "previous_marriage",
        "past": true,
        "compare": "previous_partner.from_date",
        "optional": false
      }
    },
    "MaritalStatus.PrevMarriage.dob.DOBYear": {
      "label": "Previous spouse — Date of birth",
      "template_path": "MaritalStatus.PrevMarriage.dob.DOBYear",
      "rules": {
        "gate": "previous_marriage",
        "past": true,
        "compare": null,
        "optional": false
      },
      "max_chars": 4
    },
    "MaritalStatus.PrevMarriage.dob.DOBMonth": {
      "label": "Previous spouse — Date of birth",
      "template_path": "MaritalStatus.PrevMarriage.dob.DOBMonth",
      "rules": {
        "gate": "previous_marriage",
        "past": true,
        "compare": null,
        "optional": false
      },
      "max_chars": 2
    },
    "MaritalStatus.PrevMarriage.dob.DOBDay": {
      "label": "Previous spouse — Date of birth",
      "template_path": "MaritalStatus.PrevMarriage.dob.DOBDay",
      "rules": {
        "gate": "previous_marriage",
        "past": true,
        "compare": null,
        "optional": false
      },
      "max_chars": 2
    },
    "Languages.nativeLang": {
      "label": "Native language",
      "template_path": "Languages.nativeLang",
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "089": "Ada",
        "501": "Adama",
        "228": "Afar",
        "004": "Afghan",
        "203": "Afrikaans",
        "502": "Agbor",
        "053": "Aka",
        "165": "Akan",
        "503": "Akim",
        "003": "Aklanon",
        "095": "Akra",
        "504": "Akwapim",
        "119": "Albanian",
        "505": "Albanian, Greece",
        "506": "Albanian, Italy",
        "217": "American Sign Lang.",
        "254": "Amharic",
        "250": "Arabic",
        "507": "Arabic Standard",
        "508": "Arabic, Algeria",
        "509": "Arabic, Chad",
        "510": "Arabic, Egypt",
        "511": "Arabic, Irak",
        "512": "Arabic, Lebanon, Levantine",
        "513": "Arabic, Libya",
        "514": "Arabic, Morocco",
        "515": "Arabic, Sudan",
        "516": "Arabic, Syria",
        "517": "Arabic, Tunisia",
        "518": "Arabic, Yemen, Judeo-Yemeni",
        "005": "Aranese",
        "102": "Armenian",
        "519": "Armenian, West",
        "520": "Armenian, Western",
        "171": "Ashanti",
        "255": "Assyrian",
        "521": "Atwot",
        "522": "Azerbaijani, North",
        "523": "Azerbaijani, South",
        "085": "Azeri",
        "524": "Bajuni",
        "525": "Balochi East Pak",
        "526": "Balochi South Pak",
        "527": "Balochi West Pak",
        "528": "Baluchi",
        "008": "Bambara",
        "529": "Bamileke",
        "202": "Bantu",
        "260": "Baoule",
        "530": "Barawa",
        "531": "Barbawa",
        "532": "Bassa",
        "739": "Belarusian",
        "006": "Belen",
        "160": "Bemba",
        "322": "Bengali",
        "533": "Bengali Sylhetti",
        "169": "Beni",
        "231": "Benin",
        "010": "Berber",
        "009": "Bikol",
        "212": "Bini",
        "180": "Bissa",
        "534": "Boguni",
        "011": "Bontok",
        "535": "Bosnian",
        "536": "Brava",
        "152": "Breton",
        "537": "British Sign Language",
        "538": "Brong",
        "539": "Buganda",
        "107": "Bulgarian",
        "308": "Burmese",
        "132": "Busan",
        "540": "Cambodian",
        "300": "Cantonese",
        "541": "Capizeno",
        "121": "Catalan",
        "183": "Cebuano",
        "542": "Chadian Sign Language",
        "216": "Chakma",
        "256": "Chaldean",
        "543": "Changle",
        "211": "Chaocho",
        "015": "Chavacano",
        "544": "Chechen",
        "222": "Chichewa",
        "299": "Chinese",
        "545": "Chinese, Min Nan",
        "546": "Chinese, Yue",
        "547": "Chinese, Yuh",
        "126": "Chowchau",
        "548": "Chung Shan",
        "549": "Comorian",
        "012": "Concani",
        "400": "Creole",
        "550": "Creole, Haiti",
        "098": "Croatian",
        "113": "Czech",
        "551": "Dangbe",
        "142": "Danish",
        "195": "Dari",
        "552": "Dari, Peve",
        "553": "Dari/Farsi, Eastern",
        "090": "Deaf-mute",
        "554": "Dendi",
        "555": "Dhopadhola",
        "556": "Diakanke",
        "557": "Dinka, Northeastern",
        "558": "Dinka, Northwestern",
        "559": "Dinka, South Central",
        "560": "Dinka, Southern",
        "561": "Dinka, Southwestern, Twi, Tuic",
        "135": "Dioula",
        "562": "Divehi",
        "563": "Divehi, Maldivian",
        "564": "Dogri",
        "117": "Dutch",
        "565": "Eastern Armenian",
        "210": "Edo",
        "566": "Edo, Kailo, Ledo",
        "177": "Efik",
        "001": "English",
        "567": "Enping",
        "568": "Eritrean",
        "178": "Esan",
        "103": "Estonian",
        "166": "Ewe",
        "192": "Facilitator/Articulator",
        "232": "Fang",
        "167": "Fanti",
        "223": "Farsi",
        "569": "Farsi, Western",
        "570": "Fiji",
        "571": "Findhi",
        "141": "Finnish",
        "118": "Flemish",
        "572": "Fon",
        "017": "Foochow",
        "023": "Foullah",
        "573": "Frafra",
        "574": "Frafra, Gurenne",
        "002": "French",
        "575": "Fujian",
        "181": "Fukien",
        "170": "Fulani",
        "091": "Fuqing",
        "576": "Futa",
        "168": "Ga",
        "577": "Ga, Adangme-Krobo",
        "151": "Gaelic",
        "578": "Georgian",
        "116": "German",
        "579": "Gio",
        "580": "Gio, Gio-Dan",
        "130": "Greek",
        "138": "Guerze",
        "330": "Gujarati",
        "581": "Gurage",
        "582": "Gurage, East",
        "583": "Gurage, North",
        "584": "Gurage, West",
        "585": "Guyanese",
        "586": "Guyroti",
        "587": "Gypsy",
        "741": "Hadiyya",
        "020": "Hainanese",
        "298": "Hakka",
        "018": "Harara",
        "019": "Harary",
        "215": "Hargar",
        "029": "Hasanya",
        "200": "Hausa",
        "253": "Hebrew",
        "588": "Hebrew, Yemen",
        "589": "Henan/Jinyu",
        "021": "Hiligaynon",
        "321": "Hindi",
        "590": "Hindi Dogri",
        "591": "Hindi, Fijian",
        "592": "Hindi, Hin, Nyaheun",
        "073": "Hindko",
        "593": "Hindko, Northern",
        "594": "Hindko, Southern",
        "595": "Hindu, Hindi, Caribbean",
        "182": "Hokkien",
        "596": "Hubei",
        "597": "Huizhou/Yanzhou",
        "598": "Hunan/Xiang",
        "112": "Hungarian",
        "022": "Ibibio",
        "335": "Icelandic",
        "205": "Igbo",
        "024": "Igorot",
        "184": "Iiongo",
        "599": "Ika",
        "025": "Ilican",
        "600": "Ilocano",
        "304": "Indonesian",
        "601": "Interp. Not Required",
        "602": "Ishen",
        "603": "Isoko",
        "123": "Italian",
        "604": "Itshekiri",
        "225": "Izi",
        "605": "Jadgali, Pakistan",
        "606": "Jamaican",
        "303": "Japanese",
        "030": "Javanese",
        "607": "Jianxi",
        "040": "Jolay",
        "608": "Kabyle",
        "900": "Kacchi",
        "609": "Kaiping",
        "026": "Kakwa",
        "185": "Kandahari",
        "610": "Kangri, India",
        "611": "Kangri, Kanjari",
        "174": "Kankani",
        "612": "Kannada",
        "613": "Kaonde, Dari",
        "027": "Kashmiri",
        "740": "Kazakh",
        "614": "Kepelle",
        "311": "Khmer",
        "615": "Kiboma",
        "186": "Kihavu",
        "129": "Kikongo",
        "616": "Kikuyu",
        "617": "Kikuyu, Gikuyu",
        "618": "Kinaraya",
        "191": "Kinyarwanda",
        "619": "Kinyarwanda, Rwanda",
        "031": "Kirundi",
        "620": "Kirundi, Rundi",
        "213": "Kiswahili",
        "028": "Konkani",
        "305": "Korean",
        "042": "Krio",
        "621": "Krobo",
        "622": "Kru, Klao",
        "623": "Kru, Krumen, Tepo",
        "252": "Kurdish",
        "624": "Kurdish Bandinani, Behdini",
        "625": "Kurdish-Central, Kurdi, Sorani",
        "626": "Kurdish-Northern, Kurmanji,",
        "627": "Kwale, Nigeria",
        "628": "Kwale, Papua",
        "312": "Laotian",
        "629": "Lateh",
        "104": "Latvian",
        "124": "Lebanese",
        "032": "Lengie",
        "630": "Limba",
        "044": "Lingala",
        "631": "Linyawanda",
        "105": "Lithuanian",
        "139": "Lowma",
        "632": "Luba-Kasai",
        "033": "Luganda",
        "034": "Lugisu",
        "633": "Luo",
        "035": "Lutoro",
        "111": "Macedonian",
        "036": "Macena",
        "634": "Maghreb",
        "137": "Mahou",
        "037": "Makonde",
        "226": "Makua",
        "046": "Malagasy",
        "310": "Malay",
        "323": "Malayalam",
        "635": "Malgache, Malagasy",
        "136": "Maligo",
        "636": "Malinke, Jula",
        "188": "Maltese",
        "301": "Mandarin",
        "637": "Mandiga, Mandinga",
        "172": "Mandingo",
        "638": "Mandingo, Maninka",
        "639": "Mandingo, Manya",
        "224": "Maninka",
        "640": "Mano",
        "641": "Marakha",
        "332": "Marathi",
        "500": "Masaba",
        "642": "Mashi",
        "643": "Maymay, Somalia",
        "050": "Mende",
        "644": "Meru",
        "133": "Mina",
        "645": "Mina, Gen-Gbe",
        "646": "Mirpuri",
        "038": "Mizo",
        "647": "Moldovan",
        "648": "Moldovan, Romanian",
        "403": "Mongolian",
        "649": "Mongolian, Halh",
        "650": "Moor, Bimoba",
        "134": "Moore",
        "651": "Moore, Burkina",
        "652": "Moore, Waropen",
        "653": "Morisyen",
        "655": "Nahuatl, Classical",
        "656": "Navajo",
        "654": "Ndebele",
        "657": "Ndebele, South Africa",
        "658": "Ndebele, Zimbabwe",
        "659": "Ndjamena",
        "320": "Nepali",
        "660": "Nigerian, Pidgin",
        "661": "Nigerien",
        "662": "Nobiin",
        "143": "Norwegian",
        "663": "Nuer",
        "664": "Nyanja",
        "051": "Nzema",
        "233": "Okpe",
        "665": "Ora",
        "333": "Oriya",
        "218": "Oromo",
        "666": "Oromo, Borana-Arsi-Gujii",
        "667": "Oromo, Qotu",
        "668": "Oromo, Qotu, West Central",
        "039": "Osal",
        "499": "Other",
        "669": "Ouighour",
        "041": "Pahari",
        "043": "Pampango",
        "670": "Pangasinan",
        "326": "Pashto",
        "671": "Pashto, Central",
        "672": "Pashto, Southern",
        "251": "Persian",
        "219": "Peul",
        "673": "Peul, Benin-Togo",
        "674": "Peul, Bororro",
        "675": "Peul, Fulfulde, Adamawa",
        "676": "Peul, Fulfulde, Jelgoore",
        "045": "Phuockien",
        "083": "Pidgin",
        "677": "Pidgin English",
        "678": "Piugon",
        "115": "Polish",
        "122": "Portuguese",
        "679": "Portuguese, Angola",
        "680": "Portuguese, Brazil",
        "681": "Portuguese, Guinea-Bissau",
        "087": "Poular",
        "324": "Punjabi",
        "682": "Pushta",
        "683": "Pushta, Pushto",
        "684": "Pu-Xian",
        "685": "Quechua",
        "686": "Rindre",
        "901": "Rohingya",
        "687": "Romani, Campathian",
        "688": "Romani, Carpathian",
        "689": "Romani, Cigaly",
        "690": "Romani, Cigany",
        "691": "Romani, Vlach",
        "692": "Romani, Vlach, Gypsy",
        "108": "Romanian",
        "693": "Ronga",
        "047": "Rukiga",
        "048": "Runyankole",
        "101": "Russian",
        "402": "Samoan",
        "694": "Samoli",
        "695": "Sango",
        "696": "Santi",
        "697": "Sarahuley",
        "698": "Saraiki",
        "061": "Scoula",
        "196": "Sechuan",
        "699": "Sefwi",
        "099": "Serbian",
        "109": "Serbo-Croatian",
        "052": "Sesotho",
        "179": "Seswi",
        "738": "Setswana",
        "088": "Seychelles",
        "700": "Seychelles,Creole Fre.,Seselwa",
        "701": "Shai",
        "057": "Shan",
        "702": "Shan Dong",
        "703": "Shan Tao",
        "214": "Shanghainese",
        "013": "Shansai",
        "704": "Shanxi",
        "705": "Shona",
        "706": "Sichuan/Szechuan",
        "707": "Sign Language French",
        "128": "Sindhi",
        "328": "Sinhala",
        "708": "Siyap",
        "114": "Slovak",
        "110": "Slovenian",
        "209": "Somali",
        "709": "Somba",
        "175": "Soninke",
        "710": "Soninke, Marakha",
        "055": "Sotho",
        "711": "Sotho, Northern",
        "712": "Sotho, Southern",
        "120": "Spanish",
        "190": "Suesue",
        "056": "Sukuma",
        "065": "Susu",
        "201": "Swahili",
        "713": "Swahili/Congo",
        "714": "Swahili/Kenya",
        "715": "Swati",
        "716": "Swatow",
        "140": "Swedish",
        "309": "Tagalog",
        "059": "Taichew",
        "062": "Taishanese",
        "717": "Taiwanese",
        "718": "Tajiki",
        "327": "Tamil",
        "194": "Tari",
        "719": "Tatar",
        "189": "Tatshanese",
        "334": "Telugu",
        "720": "Temne",
        "060": "Teochew",
        "307": "Thai",
        "297": "Tibetan",
        "054": "Tichiew",
        "721": "Tigre",
        "722": "Tigrea, Tigre",
        "162": "Tigrinya",
        "176": "Timini",
        "082": "Tiv",
        "049": "Tooro",
        "220": "Tshiluba",
        "131": "Turkish",
        "723": "Turkmen",
        "724": "Turkoman",
        "125": "Twi",
        "234": "Uhrobo",
        "161": "Uigrigma",
        "106": "Ukrainian",
        "725": "Ukwuani, Ukwuani-Aboh",
        "063": "Umbundu",
        "064": "Unama",
        "325": "Urdu",
        "257": "Uzbek",
        "306": "Vietnamese",
        "066": "Visayan",
        "067": "Waray-Waray",
        "150": "Welsh",
        "726": "Wenzhou",
        "173": "Wolof",
        "727": "Xangawe",
        "206": "Xhosa",
        "728": "Xin Hui",
        "729": "Xitswa",
        "730": "Xitswa, Twsa",
        "731": "Yacooba",
        "221": "Yao",
        "732": "Yemenite",
        "197": "Yiboe",
        "100": "Yiddish",
        "733": "Yinping",
        "207": "Yoruba",
        "734": "Yue Yang",
        "735": "Yugoslavian",
        "736": "Zaza",
        "737": "Zaza, Kirmanjki",
        "068": "Zshiluba",
        "069": "Zuganda",
        "208": "Zulu"
      }
    },
    "Languages.communicateLang": {
      "label": "Communication in English/French",
      "template_path": "Languages.communicateLang",
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "English": "English",
        "French": "French",
        "Both": "Both",
        "Neither": "Neither"
      }
    },
    "Languages.FreqLang": {
      "label": "Language most at ease",
      "template_path": "Languages.FreqLang",
      "rules": {
        "gate": "both_languages",
        "optional": false
      },
      "choices": {
        "01": "English",
        "02": "French"
      }
    },
    "Languages.LangTestIndicator": {
      "label": "Language test taken",
      "template_path": "Languages.LangTestIndicator",
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "Passport.PassportNum": {
      "label": "Passport — Number",
      "template_path": "Passport.PassportNum",
      "rules": {
        "gate": null,
        "past": false,
        "compare": null,
        "optional": false
      },
      "max_chars": 20
    },
    "Passport.CountryofIssue": {
      "label": "Passport — Issuing country",
      "template_path": "Passport.CountryofIssue",
      "rules": {
        "gate": null,
        "past": false,
        "compare": null,
        "optional": false
      },
      "choices": {
        "252": "AFG (Afghanistan)",
        "151": "AGO (Angola)",
        "081": "ALB (Albania)",
        "082": "AND (Andorra)",
        "620": "ANG (Anguilla)",
        "280": "ARE (United Arab Emirates)",
        "703": "ARG (Argentina)",
        "049": "ARM (Armenia)",
        "621": "ATG (Antigua And Barbuda)",
        "305": "AUS (Australia)",
        "011": "AUT (Austria)",
        "050": "AZE (Azerbaijan)",
        "154": "BDI (Burundi)",
        "012": "BEL (Belgium)",
        "160": "BEN (Benin)",
        "188": "BFA (Burkina Faso)",
        "212": "BGD (Bangladesh)",
        "083": "BGR (Bulgaria)",
        "253": "BHR (Bahrain)",
        "622": "BHS (Bahamas)",
        "048": "BIH (Bosnia and Herzegovina)",
        "051": "BLR (Belarus)",
        "541": "BLZ (Belize)",
        "601": "BMU (Bermuda)",
        "751": "BOL (Bolivia)",
        "709": "BRA (Brazil)",
        "610": "BRB (Barbados)",
        "255": "BRN (Brunei Darussalam)",
        "254": "BTN (Bhutan)",
        "153": "BWA (Botswana)",
        "157": "CAF (Central African Republic)",
        "511": "CAN (Canada)",
        "041": "CHE (Switzerland)",
        "721": "CHL (Chile)",
        "200": "CHN (China (Hong Kong SAR))",
        "198": "CHN (China (Macao SAR))",
        "202": "CHN (China)",
        "169": "CIV (Ivory Coast)",
        "155": "CMR (Cameroon)",
        "158": "COD (Democratic Rep. of Congo)",
        "159": "COG (Republic of Congo)",
        "722": "COL (Colombia)",
        "905": "COM (Comoros)",
        "911": "CPV (Cabo Verde)",
        "542": "CRI (Costa Rica)",
        "650": "CUB (Cuba)",
        "624": "CYM (Cayman Islands)",
        "221": "CYP (Cyprus)",
        "015": "CZE (Czech Republic)",
        "024": "D (Germany, Federal Republic Of)",
        "183": "DJI (Djibouti)",
        "625": "DMA (Dominica)",
        "017": "DNK (Denmark)",
        "651": "DOM (Dominican Republic)",
        "131": "DZA (Algeria)",
        "753": "ECU (Ecuador)",
        "101": "EGY (Egypt)",
        "162": "ERI (Eritrea)",
        "037": "ESP (Spain)",
        "018": "EST (Estonia)",
        "161": "ETH (Ethiopia)",
        "021": "FIN (Finland)",
        "801": "FJI (Fiji)",
        "022": "FRA (France)",
        "835": "FSM (Federated States of Micronesia)",
        "163": "GAB (Gabon)",
        "005": "GBD (UK - Brit. overseas terr.)",
        "010": "GBN (UK - Brit. Ntl. Overseas)",
        "004": "GBO (UK - Brit. overseas citizen)",
        "917": "GBP (UK - Brit. protected person)",
        "003": "GBR (UK - British citizen)",
        "001": "GBS (UK - British subject)",
        "052": "GEO (Georgia)",
        "165": "GHA (Ghana)",
        "166": "GIN (Guinea)",
        "164": "GMB (Gambia)",
        "167": "GNB (Guinea-Bissau)",
        "178": "GNQ (Equatorial Guinea)",
        "025": "GRC (Greece)",
        "626": "GRD (Grenada)",
        "544": "GTM (Guatemala)",
        "711": "GUY (Guyana)",
        "545": "HND (Honduras)",
        "043": "HRV (Croatia)",
        "654": "HTI (Haiti)",
        "026": "HUN (Hungary)",
        "222": "IDN (Indonesia)",
        "205": "IND (India)",
        "027": "IRL (Ireland)",
        "223": "IRN (Iran)",
        "224": "IRQ (Iraq)",
        "085": "ISL (Iceland)",
        "206": "ISR (Israel)",
        "028": "ITA (Italy)",
        "602": "JAM (Jamaica)",
        "225": "JOR (Jordan)",
        "207": "JPN (Japan)",
        "053": "KAZ (Kazakhstan)",
        "132": "KEN (Kenya)",
        "054": "KGZ (Kyrgyzstan)",
        "256": "KHM (Cambodia)",
        "831": "KIR (Kiribati)",
        "629": "KNA (Saint Kitts and Nevis)",
        "258": "KOR (Korea, South)",
        "226": "KWT (Kuwait)",
        "260": "LAO (Laos)",
        "208": "LBN (Lebanon)",
        "170": "LBR (Liberia)",
        "171": "LBY (Libya)",
        "630": "LCA (Saint Lucia)",
        "086": "LIE (Liechtenstein)",
        "201": "LKA (Sri Lanka)",
        "152": "LSO (Lesotho)",
        "020": "LTU (Lithuania)",
        "013": "LUX (Luxembourg)",
        "019": "LVA (Latvia)",
        "133": "MAR (Morocco)",
        "087": "MCO (Monaco)",
        "055": "MDA (Moldova)",
        "172": "MDG (Madagascar)",
        "901": "MDV (Maldives)",
        "501": "MEX (Mexico)",
        "834": "MHL (Marshall Islands)",
        "070": "MKD (Macedonia)",
        "173": "MLI (Mali)",
        "030": "MLT (Malta)",
        "241": "MMR (Burma (Myanmar))",
        "063": "MNE (Montenegro)",
        "262": "MNG (Mongolia)",
        "175": "MOZ (Mozambique)",
        "174": "MRT (Mauritania)",
        "627": "MSR (Montserrat)",
        "902": "MUS (Mauritius)",
        "111": "MWI (Malawi)",
        "242": "MYS (Malaysia)",
        "122": "NAM (Namibia)",
        "176": "NER (Niger)",
        "177": "NGA (Nigeria)",
        "546": "NIC (Nicaragua)",
        "031": "NLD (Netherlands, The)",
        "032": "NOR (Norway)",
        "264": "NPL (Nepal)",
        "341": "NRU (Nauru)",
        "339": "NZL (New Zealand)",
        "263": "OMN (Oman)",
        "209": "PAK (Pakistan)",
        "547": "PAN (Panama)",
        "723": "PER (Peru)",
        "227": "PHL (Philippines)",
        "836": "PLW (Republic of Palau)",
        "342": "PNG (Papua New Guinea)",
        "033": "POL (Poland)",
        "257": "PRK (Korea, North (DPRK))",
        "034": "PRT (Portugal)",
        "755": "PRY (Paraguay)",
        "213": "PSE (Palestinian Authority)",
        "265": "QAT (Qatar)",
        "064": "RKS (Kosovo)",
        "088": "ROU (Romania)",
        "056": "RUS (Russia)",
        "179": "RWA (Rwanda)",
        "231": "SAU (Saudi Arabia)",
        "185": "SDN (Sudan)",
        "180": "SEN (Senegal)",
        "246": "SGP (Singapore)",
        "915": "SHN (Saint Helena)",
        "824": "SLB (Solomon Islands)",
        "181": "SLE (Sierra Leone)",
        "543": "SLV (El Salvador)",
        "089": "SMR (San Marino)",
        "182": "SOM (Somalia)",
        "062": "SRB (Serbia, Republic Of)",
        "189": "SSD (South Sudan)",
        "914": "STP (Sao Tome and Principe)",
        "752": "SUR (Suriname)",
        "016": "SVK (Slovakia)",
        "047": "SVN (Slovenia)",
        "040": "SWE (Sweden)",
        "186": "SWZ (Swaziland)",
        "904": "SYC (Seychelles)",
        "210": "SYR (Syria)",
        "632": "TCA (Turks and Caicos Islands)",
        "156": "TCD (Chad)",
        "187": "TGO (Togo)",
        "267": "THA (Thailand)",
        "057": "TJK (Tajikistan)",
        "058": "TKM (Turkmenistan)",
        "916": "TLS (East Timor)",
        "846": "TON (Tonga)",
        "605": "TTO (Trinidad and Tobago)",
        "135": "TUN (Tunisia)",
        "045": "TUR (Turkey)",
        "826": "TUV (Tuvalu)",
        "203": "TWN (Taiwan)",
        "130": "TZA (Tanzania)",
        "136": "UGA (Uganda)",
        "059": "UKR (Ukraine)",
        "981": "UNA (UN specialized agency)",
        "980": "UNO (UN or official)",
        "724": "URY (Uruguay)",
        "461": "USA (United States of America)",
        "060": "UZB (Uzbekistan)",
        "090": "VAT (Vatican City State)",
        "631": "VCT (St. Vincent and the Grenadines)",
        "725": "VEN (Venezuela)",
        "633": "VGB (British Virgin Islands)",
        "270": "VNM (Vietnam)",
        "823": "VUT (Vanuatu)",
        "844": "WSM (Samoa)",
        "273": "YEM (Yemen)",
        "121": "ZAF (South Africa, Republic Of)",
        "112": "ZMB (Zambia)",
        "113": "ZWE (Zimbabwe)"
      }
    },
    "Passport.IssueDate": {
      "label": "Passport — Issue date",
      "template_path": "Passport.IssueDate",
      "rules": {
        "gate": null,
        "past": true,
        "compare": null,
        "optional": false
      }
    },
    "Passport.ExpiryDate": {
      "label": "Passport — Expiry date",
      "template_path": "Passport.ExpiryDate",
      "rules": {
        "gate": null,
        "past": false,
        "after_today": true,
        "compare": "passport.issue_date",
        "optional": false
      }
    },
    "natID.natIDdocs.DocNum.DocNum": {
      "label": "National identity document — Number",
      "template_path": "natID.natIDdocs.DocNum.DocNum",
      "rules": {
        "gate": "has_national_id",
        "past": false,
        "compare": null,
        "optional": false
      },
      "max_chars": 20
    },
    "natID.natIDdocs.CountryofIssue.CountryofIssue": {
      "label": "National identity document — Issuing country",
      "template_path": "natID.natIDdocs.CountryofIssue.CountryofIssue",
      "rules": {
        "gate": "has_national_id",
        "past": false,
        "compare": null,
        "optional": false
      },
      "choices": {
        "252": "AFG (Afghanistan)",
        "151": "AGO (Angola)",
        "081": "ALB (Albania)",
        "082": "AND (Andorra)",
        "620": "ANG (Anguilla)",
        "280": "ARE (United Arab Emirates)",
        "703": "ARG (Argentina)",
        "049": "ARM (Armenia)",
        "621": "ATG (Antigua And Barbuda)",
        "305": "AUS (Australia)",
        "011": "AUT (Austria)",
        "050": "AZE (Azerbaijan)",
        "154": "BDI (Burundi)",
        "012": "BEL (Belgium)",
        "160": "BEN (Benin)",
        "188": "BFA (Burkina Faso)",
        "212": "BGD (Bangladesh)",
        "083": "BGR (Bulgaria)",
        "253": "BHR (Bahrain)",
        "622": "BHS (Bahamas)",
        "048": "BIH (Bosnia and Herzegovina)",
        "051": "BLR (Belarus)",
        "541": "BLZ (Belize)",
        "601": "BMU (Bermuda)",
        "751": "BOL (Bolivia)",
        "709": "BRA (Brazil)",
        "610": "BRB (Barbados)",
        "255": "BRN (Brunei Darussalam)",
        "254": "BTN (Bhutan)",
        "153": "BWA (Botswana)",
        "157": "CAF (Central African Republic)",
        "511": "CAN (Canada)",
        "041": "CHE (Switzerland)",
        "721": "CHL (Chile)",
        "200": "CHN (China (Hong Kong SAR))",
        "198": "CHN (China (Macao SAR))",
        "202": "CHN (China)",
        "169": "CIV (Ivory Coast)",
        "155": "CMR (Cameroon)",
        "158": "COD (Democratic Rep. of Congo)",
        "159": "COG (Republic of Congo)",
        "722": "COL (Colombia)",
        "905": "COM (Comoros)",
        "911": "CPV (Cabo Verde)",
        "542": "CRI (Costa Rica)",
        "650": "CUB (Cuba)",
        "624": "CYM (Cayman Islands)",
        "221": "CYP (Cyprus)",
        "015": "CZE (Czech Republic)",
        "024": "D (Germany, Federal Republic Of)",
        "183": "DJI (Djibouti)",
        "625": "DMA (Dominica)",
        "017": "DNK (Denmark)",
        "651": "DOM (Dominican Republic)",
        "131": "DZA (Algeria)",
        "753": "ECU (Ecuador)",
        "101": "EGY (Egypt)",
        "162": "ERI (Eritrea)",
        "037": "ESP (Spain)",
        "018": "EST (Estonia)",
        "161": "ETH (Ethiopia)",
        "021": "FIN (Finland)",
        "801": "FJI (Fiji)",
        "022": "FRA (France)",
        "835": "FSM (Federated States of Micronesia)",
        "163": "GAB (Gabon)",
        "005": "GBD (UK - Brit. overseas terr.)",
        "010": "GBN (UK - Brit. Ntl. Overseas)",
        "004": "GBO (UK - Brit. overseas citizen)",
        "917": "GBP (UK - Brit. protected person)",
        "003": "GBR (UK - British citizen)",
        "001": "GBS (UK - British subject)",
        "052": "GEO (Georgia)",
        "165": "GHA (Ghana)",
        "166": "GIN (Guinea)",
        "164": "GMB (Gambia)",
        "167": "GNB (Guinea-Bissau)",
        "178": "GNQ (Equatorial Guinea)",
        "025": "GRC (Greece)",
        "626": "GRD (Grenada)",
        "544": "GTM (Guatemala)",
        "711": "GUY (Guyana)",
        "545": "HND (Honduras)",
        "043": "HRV (Croatia)",
        "654": "HTI (Haiti)",
        "026": "HUN (Hungary)",
        "222": "IDN (Indonesia)",
        "205": "IND (India)",
        "027": "IRL (Ireland)",
        "223": "IRN (Iran)",
        "224": "IRQ (Iraq)",
        "085": "ISL (Iceland)",
        "206": "ISR (Israel)",
        "028": "ITA (Italy)",
        "602": "JAM (Jamaica)",
        "225": "JOR (Jordan)",
        "207": "JPN (Japan)",
        "053": "KAZ (Kazakhstan)",
        "132": "KEN (Kenya)",
        "054": "KGZ (Kyrgyzstan)",
        "256": "KHM (Cambodia)",
        "831": "KIR (Kiribati)",
        "629": "KNA (Saint Kitts and Nevis)",
        "258": "KOR (Korea, South)",
        "226": "KWT (Kuwait)",
        "260": "LAO (Laos)",
        "208": "LBN (Lebanon)",
        "170": "LBR (Liberia)",
        "171": "LBY (Libya)",
        "630": "LCA (Saint Lucia)",
        "086": "LIE (Liechtenstein)",
        "201": "LKA (Sri Lanka)",
        "152": "LSO (Lesotho)",
        "020": "LTU (Lithuania)",
        "013": "LUX (Luxembourg)",
        "019": "LVA (Latvia)",
        "133": "MAR (Morocco)",
        "087": "MCO (Monaco)",
        "055": "MDA (Moldova)",
        "172": "MDG (Madagascar)",
        "901": "MDV (Maldives)",
        "501": "MEX (Mexico)",
        "834": "MHL (Marshall Islands)",
        "070": "MKD (Macedonia)",
        "173": "MLI (Mali)",
        "030": "MLT (Malta)",
        "241": "MMR (Burma (Myanmar))",
        "063": "MNE (Montenegro)",
        "262": "MNG (Mongolia)",
        "175": "MOZ (Mozambique)",
        "174": "MRT (Mauritania)",
        "627": "MSR (Montserrat)",
        "902": "MUS (Mauritius)",
        "111": "MWI (Malawi)",
        "242": "MYS (Malaysia)",
        "122": "NAM (Namibia)",
        "176": "NER (Niger)",
        "177": "NGA (Nigeria)",
        "546": "NIC (Nicaragua)",
        "031": "NLD (Netherlands, The)",
        "032": "NOR (Norway)",
        "264": "NPL (Nepal)",
        "341": "NRU (Nauru)",
        "339": "NZL (New Zealand)",
        "263": "OMN (Oman)",
        "209": "PAK (Pakistan)",
        "547": "PAN (Panama)",
        "723": "PER (Peru)",
        "227": "PHL (Philippines)",
        "836": "PLW (Republic of Palau)",
        "342": "PNG (Papua New Guinea)",
        "033": "POL (Poland)",
        "257": "PRK (Korea, North (DPRK))",
        "034": "PRT (Portugal)",
        "755": "PRY (Paraguay)",
        "213": "PSE (Palestinian Authority)",
        "265": "QAT (Qatar)",
        "064": "RKS (Kosovo)",
        "088": "ROU (Romania)",
        "056": "RUS (Russia)",
        "179": "RWA (Rwanda)",
        "231": "SAU (Saudi Arabia)",
        "185": "SDN (Sudan)",
        "180": "SEN (Senegal)",
        "246": "SGP (Singapore)",
        "915": "SHN (Saint Helena)",
        "824": "SLB (Solomon Islands)",
        "181": "SLE (Sierra Leone)",
        "543": "SLV (El Salvador)",
        "089": "SMR (San Marino)",
        "182": "SOM (Somalia)",
        "062": "SRB (Serbia, Republic Of)",
        "189": "SSD (South Sudan)",
        "914": "STP (Sao Tome and Principe)",
        "752": "SUR (Suriname)",
        "016": "SVK (Slovakia)",
        "047": "SVN (Slovenia)",
        "040": "SWE (Sweden)",
        "186": "SWZ (Swaziland)",
        "904": "SYC (Seychelles)",
        "210": "SYR (Syria)",
        "632": "TCA (Turks and Caicos Islands)",
        "156": "TCD (Chad)",
        "187": "TGO (Togo)",
        "267": "THA (Thailand)",
        "057": "TJK (Tajikistan)",
        "058": "TKM (Turkmenistan)",
        "916": "TLS (East Timor)",
        "846": "TON (Tonga)",
        "605": "TTO (Trinidad and Tobago)",
        "135": "TUN (Tunisia)",
        "045": "TUR (Turkey)",
        "826": "TUV (Tuvalu)",
        "203": "TWN (Taiwan)",
        "130": "TZA (Tanzania)",
        "136": "UGA (Uganda)",
        "059": "UKR (Ukraine)",
        "981": "UNA (UN specialized agency)",
        "980": "UNO (UN or official)",
        "724": "URY (Uruguay)",
        "461": "USA (United States of America)",
        "060": "UZB (Uzbekistan)",
        "090": "VAT (Vatican City State)",
        "631": "VCT (St. Vincent and the Grenadines)",
        "725": "VEN (Venezuela)",
        "633": "VGB (British Virgin Islands)",
        "270": "VNM (Vietnam)",
        "823": "VUT (Vanuatu)",
        "844": "WSM (Samoa)",
        "273": "YEM (Yemen)",
        "121": "ZAF (South Africa, Republic Of)",
        "112": "ZMB (Zambia)",
        "113": "ZWE (Zimbabwe)"
      }
    },
    "natID.natIDdocs.IssueDate.IssueDate": {
      "label": "National identity document — Issue date",
      "template_path": "natID.natIDdocs.IssueDate.IssueDate",
      "rules": {
        "gate": "has_national_id",
        "past": true,
        "compare": null,
        "optional": true
      }
    },
    "natID.natIDdocs.ExpiryDate": {
      "label": "National identity document — Expiry date",
      "template_path": "natID.natIDdocs.ExpiryDate",
      "rules": {
        "gate": "has_national_id",
        "past": false,
        "compare": "national_id.issue_date",
        "strict_compare": true,
        "optional": true
      }
    },
    "natID.q1.natIDIndicator": {
      "label": "Have a national identity document",
      "template_path": "natID.q1.natIDIndicator",
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "Passport.TaiwanPIN": {
      "label": "Taiwan passport — Personal identification number",
      "template_path": "Passport.TaiwanPIN",
      "rules": {
        "gate": "passport.country:Taiwan",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "Passport.IsraelPassportIndicator": {
      "label": "Israeli national passport",
      "template_path": "Passport.IsraelPassportIndicator",
      "rules": {
        "gate": "passport.country:Israel",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "USCard.q1.usCardIndicator": {
      "label": "US permanent resident card",
      "template_path": "USCard.q1.usCardIndicator",
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "USCard.usCarddocs.DocNum.DocNum": {
      "label": "US permanent resident card — Number",
      "template_path": "USCard.usCarddocs.DocNum.DocNum",
      "rules": {
        "gate": "has_us_card",
        "optional": false
      },
      "max_chars": 20
    },
    "USCard.usCarddocs.ExpiryDate": {
      "label": "US permanent resident card — Expiry",
      "template_path": "USCard.usCarddocs.ExpiryDate",
      "rules": {
        "gate": "has_us_card",
        "after_today": true,
        "optional": false
      }
    },
    "ContactInformation.Resi.SameAsAddr.SameAsMailingInd": {
      "label": "Residential address same as mailing",
      "template_path": "ContactInformation.Resi.SameAsAddr.SameAsMailingInd",
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "ContactInformation.Mailing.AddrLine1.POBox": {
      "label": "Mailing address — P.O. box",
      "template_path": "ContactInformation.Mailing.AddrLine1.POBox",
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 15
    },
    "ContactInformation.Mailing.AddrLine1.AptUnit": {
      "label": "Mailing address — Apartment/unit",
      "template_path": "ContactInformation.Mailing.AddrLine1.AptUnit",
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 10
    },
    "ContactInformation.Mailing.AddrLine1.StreetNum": {
      "label": "Mailing address — Street number",
      "template_path": "ContactInformation.Mailing.AddrLine1.StreetNum",
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 10
    },
    "ContactInformation.Mailing.AddrLine1.Streetname": {
      "label": "Mailing address — Street name",
      "template_path": "ContactInformation.Mailing.AddrLine1.Streetname",
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 100
    },
    "ContactInformation.Mailing.AddrLine2.City": {
      "label": "Mailing address — City/town",
      "template_path": "ContactInformation.Mailing.AddrLine2.City",
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 30
    },
    "ContactInformation.Mailing.AddrLine2.Country": {
      "label": "Mailing address — Country",
      "template_path": "ContactInformation.Mailing.AddrLine2.Country",
      "rules": {
        "gate": null,
        "optional": false
      }
    },
    "ContactInformation.Mailing.AddrLine2.Prov": {
      "label": "Mailing address — Province",
      "template_path": "ContactInformation.Mailing.AddrLine2.Prov",
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "09": "AB",
        "11": "BC",
        "07": "MB",
        "04": "NB",
        "01": "NL",
        "03": "NS",
        "10": "NT",
        "64": "NU",
        "06": "ON",
        "02": "PE",
        "05": "QC",
        "08": "SK",
        "12": "YT"
      }
    },
    "ContactInformation.Mailing.AddrLine2.PostalCode": {
      "label": "Mailing address — Postal code",
      "template_path": "ContactInformation.Mailing.AddrLine2.PostalCode",
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 10
    },
    "ContactInformation.Mailing.AddrLine2.District": {
      "label": "Mailing address — District",
      "template_path": "ContactInformation.Mailing.AddrLine2.District",
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 30
    },
    "ContactInformation.Resi.AddrLine1.AptUnit": {
      "label": "Residential address — Apartment/unit",
      "template_path": "ContactInformation.Resi.AddrLine1.AptUnit",
      "rules": {
        "gate": "separate_address",
        "optional": true
      },
      "max_chars": 10
    },
    "ContactInformation.Resi.AddrLine1.StreetNum": {
      "label": "Residential address — Street number",
      "template_path": "ContactInformation.Resi.AddrLine1.StreetNum",
      "rules": {
        "gate": "separate_address",
        "optional": true
      },
      "max_chars": 10
    },
    "ContactInformation.Resi.AddrLine1.Streetname": {
      "label": "Residential address — Street name",
      "template_path": "ContactInformation.Resi.AddrLine1.Streetname",
      "rules": {
        "gate": "separate_address",
        "optional": false
      },
      "max_chars": 100
    },
    "ContactInformation.Resi.AddrLine2.City": {
      "label": "Residential address — City/town",
      "template_path": "ContactInformation.Resi.AddrLine2.City",
      "rules": {
        "gate": "separate_address",
        "optional": false
      },
      "max_chars": 30
    },
    "ContactInformation.Resi.AddrLine2.Country": {
      "label": "Residential address — Country",
      "template_path": "ContactInformation.Resi.AddrLine2.Country",
      "rules": {
        "gate": "separate_address",
        "optional": false
      }
    },
    "ContactInformation.Resi.AddrLine2.Prov": {
      "label": "Residential address — Province",
      "template_path": "ContactInformation.Resi.AddrLine2.Prov",
      "rules": {
        "gate": "separate_address",
        "optional": false
      },
      "choices": {
        "09": "AB",
        "11": "BC",
        "07": "MB",
        "04": "NB",
        "01": "NL",
        "03": "NS",
        "10": "NT",
        "64": "NU",
        "06": "ON",
        "02": "PE",
        "05": "QC",
        "08": "SK",
        "12": "YT"
      }
    },
    "ContactInformation.Resi.AddrLine2.PostalCode": {
      "label": "Residential address — Postal code",
      "template_path": "ContactInformation.Resi.AddrLine2.PostalCode",
      "rules": {
        "gate": "separate_address",
        "optional": false
      },
      "max_chars": 10
    },
    "ContactInformation.Resi.AddrLine2.District": {
      "label": "Residential address — District",
      "template_path": "ContactInformation.Resi.AddrLine2.District",
      "rules": {
        "gate": "separate_address",
        "optional": true
      },
      "max_chars": 30
    },
    "ContactInformation.q3-4.Phone.CanOtherInd.CanadaUS": {
      "label": "Primary telephone — Canada/US",
      "template_path": "ContactInformation.q3-4.Phone.CanOtherInd.CanadaUS",
      "rules": {
        "gate": null,
        "optional": false
      }
    },
    "ContactInformation.q3-4.Phone.CanOtherInd.Other": {
      "label": "Primary telephone — International",
      "template_path": "ContactInformation.q3-4.Phone.CanOtherInd.Other",
      "rules": {
        "gate": null,
        "optional": false
      }
    },
    "ContactInformation.q3-4.Phone.ActualNumber": {
      "label": "Primary telephone — Number",
      "template_path": "ContactInformation.q3-4.Phone.ActualNumber",
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 20
    },
    "ContactInformation.q3-4.Phone.NumberCountry": {
      "label": "Primary telephone — Country code",
      "template_path": "ContactInformation.q3-4.Phone.NumberCountry",
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 4
    },
    "ContactInformation.q3-4.Phone.NumberExt": {
      "label": "Primary telephone — Extension",
      "template_path": "ContactInformation.q3-4.Phone.NumberExt",
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 5
    },
    "ContactInformation.q3-4.Phone.NANumber.AreaCode": {
      "label": "Primary telephone — Area code",
      "template_path": "ContactInformation.q3-4.Phone.NANumber.AreaCode",
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 3
    },
    "ContactInformation.q3-4.Phone.NANumber.FirstThree": {
      "label": "Primary telephone — Number",
      "template_path": "ContactInformation.q3-4.Phone.NANumber.FirstThree",
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 3
    },
    "ContactInformation.q3-4.Phone.NANumber.LastFive": {
      "label": "Primary telephone — Number",
      "template_path": "ContactInformation.q3-4.Phone.NANumber.LastFive",
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 4
    },
    "ContactInformation.q3-4.Phone.IntlNumber.IntlNumber": {
      "label": "Primary telephone — Number",
      "template_path": "ContactInformation.q3-4.Phone.IntlNumber.IntlNumber",
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 20
    },
    "ContactInformation.q3-4.Phone.Type": {
      "label": "Primary telephone — Type",
      "template_path": "ContactInformation.q3-4.Phone.Type",
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "01": "Residence",
        "02": "Cellular",
        "03": "Business"
      }
    },
    "ContactInformation.q3-4.AltPhone.CanOtherInd.CanadaUS": {
      "label": "Alternate telephone — Canada/US",
      "template_path": "ContactInformation.q3-4.AltPhone.CanOtherInd.CanadaUS",
      "rules": {
        "gate": null,
        "optional": true
      }
    },
    "ContactInformation.q3-4.AltPhone.CanOtherInd.Other": {
      "label": "Alternate telephone — International",
      "template_path": "ContactInformation.q3-4.AltPhone.CanOtherInd.Other",
      "rules": {
        "gate": null,
        "optional": true
      }
    },
    "ContactInformation.q3-4.AltPhone.ActualNumber": {
      "label": "Alternate telephone — Number",
      "template_path": "ContactInformation.q3-4.AltPhone.ActualNumber",
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 20
    },
    "ContactInformation.q3-4.AltPhone.NumberCountry": {
      "label": "Alternate telephone — Country code",
      "template_path": "ContactInformation.q3-4.AltPhone.NumberCountry",
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 4
    },
    "ContactInformation.q3-4.AltPhone.NumberExt": {
      "label": "Alternate telephone — Extension",
      "template_path": "ContactInformation.q3-4.AltPhone.NumberExt",
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 5
    },
    "ContactInformation.q3-4.AltPhone.NANumber.AreaCode": {
      "label": "Alternate telephone — Area code",
      "template_path": "ContactInformation.q3-4.AltPhone.NANumber.AreaCode",
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 3
    },
    "ContactInformation.q3-4.AltPhone.NANumber.FirstThree": {
      "label": "Alternate telephone — Number",
      "template_path": "ContactInformation.q3-4.AltPhone.NANumber.FirstThree",
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 3
    },
    "ContactInformation.q3-4.AltPhone.NANumber.LastFive": {
      "label": "Alternate telephone — Number",
      "template_path": "ContactInformation.q3-4.AltPhone.NANumber.LastFive",
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 4
    },
    "ContactInformation.q3-4.AltPhone.IntlNumber.IntlNumber": {
      "label": "Alternate telephone — Number",
      "template_path": "ContactInformation.q3-4.AltPhone.IntlNumber.IntlNumber",
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 20
    },
    "ContactInformation.q3-4.AltPhone.Type": {
      "label": "Alternate telephone — Type",
      "template_path": "ContactInformation.q3-4.AltPhone.Type",
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "01": "Residence",
        "02": "Cellular",
        "03": "Business"
      }
    },
    "ContactInformation.q5-6.Fax.CanOtherInd.CanadaUS": {
      "label": "Fax — Canada/US",
      "template_path": "ContactInformation.q5-6.Fax.CanOtherInd.CanadaUS",
      "rules": {
        "gate": null,
        "optional": true
      }
    },
    "ContactInformation.q5-6.Fax.CanOtherInd.Other": {
      "label": "Fax — International",
      "template_path": "ContactInformation.q5-6.Fax.CanOtherInd.Other",
      "rules": {
        "gate": null,
        "optional": true
      }
    },
    "ContactInformation.q5-6.Fax.ActualNumber": {
      "label": "Fax — Number",
      "template_path": "ContactInformation.q5-6.Fax.ActualNumber",
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 20
    },
    "ContactInformation.q5-6.Fax.NumberCountry": {
      "label": "Fax — Country code",
      "template_path": "ContactInformation.q5-6.Fax.NumberCountry",
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 4
    },
    "ContactInformation.q5-6.Fax.NumberExt": {
      "label": "Fax — Extension",
      "template_path": "ContactInformation.q5-6.Fax.NumberExt",
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 5
    },
    "ContactInformation.q5-6.Fax.NANumber.AreaCode": {
      "label": "Fax — Area code",
      "template_path": "ContactInformation.q5-6.Fax.NANumber.AreaCode",
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 3
    },
    "ContactInformation.q5-6.Fax.NANumber.FirstThree": {
      "label": "Fax — Number",
      "template_path": "ContactInformation.q5-6.Fax.NANumber.FirstThree",
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 3
    },
    "ContactInformation.q5-6.Fax.NANumber.LastFive": {
      "label": "Fax — Number",
      "template_path": "ContactInformation.q5-6.Fax.NANumber.LastFive",
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 4
    },
    "ContactInformation.q5-6.Fax.IntlNumber.IntlNumber": {
      "label": "Fax — Number",
      "template_path": "ContactInformation.q5-6.Fax.IntlNumber.IntlNumber",
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 20
    },
    "ContactInformation.q5-6.Email.Email": {
      "label": "Email address",
      "template_path": "ContactInformation.q5-6.Email.Email",
      "rules": {
        "gate": null,
        "optional": true
      },
      "max_chars": 100
    },
    "ComingIntoCda.OrigEntry.DateLastEntry": {
      "label": "Original entry — Date",
      "template_path": "ComingIntoCda.OrigEntry.DateLastEntry",
      "rules": {
        "gate": null,
        "past": true,
        "compare": null,
        "optional": false
      }
    },
    "ComingIntoCda.OrigEntry.Place": {
      "label": "Original entry — Place",
      "template_path": "ComingIntoCda.OrigEntry.Place",
      "rules": {
        "gate": null,
        "past": false,
        "compare": null,
        "optional": false
      },
      "max_chars": 30
    },
    "ComingIntoCda.RecentEntry.DateLastEntry": {
      "label": "Most recent entry — Date",
      "template_path": "ComingIntoCda.RecentEntry.DateLastEntry",
      "rules": {
        "gate": "different_latest_entry",
        "past": true,
        "compare": "original_entry.date",
        "strict_compare": true,
        "optional": false
      }
    },
    "ComingIntoCda.RecentEntry.Place": {
      "label": "Most recent entry — Place",
      "template_path": "ComingIntoCda.RecentEntry.Place",
      "rules": {
        "gate": "different_latest_entry",
        "past": false,
        "compare": null,
        "optional": false
      },
      "max_chars": 30
    },
    "ComingIntoCda.PurposeOfVisit.PurposeOfVisit": {
      "label": "Original purpose of entry",
      "template_path": "ComingIntoCda.PurposeOfVisit.PurposeOfVisit",
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "01": "Business",
        "02": "Tourism",
        "04": "Study",
        "05": "Work",
        "03": "Other",
        "06": "Family Visit"
      }
    },
    "ComingIntoCda.PurposeOfVisit.Other": {
      "label": "Original purpose — Other details",
      "template_path": "ComingIntoCda.PurposeOfVisit.Other",
      "rules": {
        "gate": "original_purpose:03",
        "optional": false
      },
      "max_chars": 50
    },
    "ComingIntoCda.PrevDocNum.docNum": {
      "label": "Most recent visitor record or permit number",
      "template_path": "ComingIntoCda.PrevDocNum.docNum",
      "rules": {
        "gate": "has_latest_document",
        "optional": false
      },
      "max_chars": 10
    },
    "DetailsOfVisit.Purpose.Purpose": {
      "label": "Current purpose of stay",
      "template_path": "DetailsOfVisit.Purpose.Purpose",
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "01": "Business",
        "02": "Tourism",
        "04": "Short-Term Studies",
        "05": "Returning Student",
        "06": "Returning Worker",
        "07": "Super Visa: For Parents or Grandparents",
        "03": "Other",
        "08": "Family Visit",
        "13": "Visit"
      }
    },
    "DetailsOfVisit.Purpose.Other": {
      "label": "Current purpose — Other details",
      "template_path": "DetailsOfVisit.Purpose.Other",
      "rules": {
        "gate": "visit_purpose:03",
        "optional": false
      },
      "max_chars": 50
    },
    "DetailsOfVisit.Purpose.Stay.FromDate": {
      "label": "Intended stay — from date",
      "template_path": "DetailsOfVisit.Purpose.Stay.FromDate",
      "rules": {
        "gate": null,
        "not_past": true,
        "compare": null,
        "optional": false
      }
    },
    "DetailsOfVisit.Purpose.Stay.ToDate": {
      "label": "Intended stay — to date",
      "template_path": "DetailsOfVisit.Purpose.Stay.ToDate",
      "rules": {
        "gate": null,
        "not_past": true,
        "compare": "stay_from",
        "optional": false
      }
    },
    "DetailsOfVisit.Funds.FundsAvail": {
      "label": "Funds available (CAD)",
      "template_path": "DetailsOfVisit.Funds.FundsAvail",
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 12
    },
    "DetailsOfVisit.Funds.ExpPaidBy": {
      "label": "Expenses paid by",
      "template_path": "DetailsOfVisit.Funds.ExpPaidBy",
      "rules": {
        "gate": null,
        "optional": false
      },
      "choices": {
        "Myself": "Myself",
        "Parents": "Parents",
        "Other": "Other"
      }
    },
    "DetailsOfVisit.Funds.Other": {
      "label": "Expenses — Other payer details",
      "template_path": "DetailsOfVisit.Funds.Other",
      "rules": {
        "gate": "paid_by:Other",
        "optional": false
      },
      "max_chars": 50
    },
    "DetailsOfVisit.WillVisit.VisitList.Rec1.Name": {
      "label": "Host 1 — Name",
      "template_path": "DetailsOfVisit.WillVisit.VisitList.Rec1.Name",
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 150
    },
    "DetailsOfVisit.WillVisit.VisitList.Rec1.Relationship": {
      "label": "Host 1 — Relationship",
      "template_path": "DetailsOfVisit.WillVisit.VisitList.Rec1.Relationship",
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 50
    },
    "DetailsOfVisit.WillVisit.VisitList.Rec1.Addr": {
      "label": "Host 1 — Address in Canada",
      "template_path": "DetailsOfVisit.WillVisit.VisitList.Rec1.Addr",
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 150
    },
    "DetailsOfVisit.WillVisit.VisitList.Rec2.Name": {
      "label": "Host 2 — Name",
      "template_path": "DetailsOfVisit.WillVisit.VisitList.Rec2.Name",
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 150
    },
    "DetailsOfVisit.WillVisit.VisitList.Rec2.Relationship": {
      "label": "Host 2 — Relationship",
      "template_path": "DetailsOfVisit.WillVisit.VisitList.Rec2.Relationship",
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 50
    },
    "DetailsOfVisit.WillVisit.VisitList.Rec2.Addr": {
      "label": "Host 2 — Address in Canada",
      "template_path": "DetailsOfVisit.WillVisit.VisitList.Rec2.Addr",
      "rules": {
        "gate": null,
        "optional": false
      },
      "max_chars": 150
    },
    "Education.EducationIndicator": {
      "label": "Post-secondary education",
      "template_path": "Education.EducationIndicator",
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "Education.EduLine1.From.YYYY": {
      "label": "Education — From date",
      "template_path": "Education.EduLine1.From.YYYY",
      "rules": {
        "gate": "has_education",
        "past": true,
        "optional": false
      },
      "max_chars": 4
    },
    "Education.EduLine1.From.MM": {
      "label": "Education — From date",
      "template_path": "Education.EduLine1.From.MM",
      "rules": {
        "gate": "has_education",
        "past": true,
        "optional": false
      },
      "max_chars": 2
    },
    "Education.EduLine2.To.YYYY": {
      "label": "Education — To date",
      "template_path": "Education.EduLine2.To.YYYY",
      "rules": {
        "gate": "has_education",
        "past": true,
        "optional": false
      },
      "max_chars": 4
    },
    "Education.EduLine2.To.MM": {
      "label": "Education — To date",
      "template_path": "Education.EduLine2.To.MM",
      "rules": {
        "gate": "has_education",
        "past": true,
        "optional": false
      },
      "max_chars": 2
    },
    "Education.EduLine1.FieldOfStudy": {
      "label": "Education — Field of study",
      "template_path": "Education.EduLine1.FieldOfStudy",
      "rules": {
        "gate": "has_education",
        "past": false,
        "optional": false
      },
      "max_chars": 30
    },
    "Education.EduLine1.School": {
      "label": "Education — Institution",
      "template_path": "Education.EduLine1.School",
      "rules": {
        "gate": "has_education",
        "past": false,
        "optional": false
      },
      "max_chars": 75
    },
    "Education.EduLine2.City": {
      "label": "Education — City/town",
      "template_path": "Education.EduLine2.City",
      "rules": {
        "gate": "has_education",
        "past": false,
        "optional": false
      },
      "max_chars": 30
    },
    "Education.EduLine2.Country": {
      "label": "Education — Country",
      "template_path": "Education.EduLine2.Country",
      "rules": {
        "gate": "has_education",
        "past": false,
        "optional": false
      },
      "choices": {
        "252": "Afghanistan",
        "401": "Aland Island",
        "081": "Albania",
        "131": "Algeria",
        "082": "Andorra",
        "151": "Angola",
        "620": "Anguilla",
        "621": "Antigua And Barbuda",
        "703": "Argentina",
        "049": "Armenia",
        "658": "Aruba",
        "305": "Australia",
        "011": "Austria",
        "050": "Azerbaijan",
        "622": "Bahamas",
        "253": "Bahrain",
        "412": "Bailwick of Jersey",
        "212": "Bangladesh",
        "610": "Barbados",
        "051": "Belarus",
        "012": "Belgium",
        "541": "Belize",
        "160": "Benin",
        "601": "Bermuda",
        "254": "Bhutan",
        "751": "Bolivia",
        "402": "Bonaire, Sint Eustatius, Saba",
        "048": "Bosnia and Herzegovina",
        "153": "Botswana",
        "403": "Bouvet Island",
        "709": "Brazil",
        "404": "British Indian Ocean Territory",
        "633": "British Virgin Islands",
        "255": "Brunei Darussalam",
        "083": "Bulgaria",
        "188": "Burkina Faso",
        "241": "Burma (Myanmar)",
        "154": "Burundi",
        "911": "Cabo Verde",
        "256": "Cambodia",
        "155": "Cameroon",
        "511": "Canada",
        "039": "Canary Islands",
        "624": "Cayman Islands",
        "157": "Central African Republic",
        "156": "Chad",
        "009": "Channel Islands",
        "721": "Chile",
        "202": "China",
        "200": "China (Hong Kong SAR)",
        "198": "China (Macao SAR)",
        "405": "Christmas Island",
        "722": "Colombia",
        "905": "Comoros",
        "840": "Cook Islands",
        "542": "Costa Rica",
        "043": "Croatia",
        "650": "Cuba",
        "406": "Curaçao",
        "221": "Cyprus",
        "015": "Czech Republic",
        "014": "Czechoslovakia",
        "158": "Democratic Rep. of Congo",
        "017": "Denmark",
        "183": "Djibouti",
        "625": "Dominica",
        "651": "Dominican Republic",
        "916": "East Timor",
        "753": "Ecuador",
        "101": "Egypt",
        "543": "El Salvador",
        "002": "England",
        "178": "Equatorial Guinea",
        "162": "Eritrea",
        "018": "Estonia",
        "161": "Ethiopia",
        "912": "Falkland Islands",
        "408": "Faroe Islands",
        "835": "Federated States of Micronesia",
        "801": "Fiji",
        "021": "Finland",
        "821": "Fr. South. and Antarctic Lands",
        "022": "France",
        "754": "French Guiana",
        "845": "French Polynesia",
        "163": "Gabon",
        "164": "Gambia",
        "052": "Georgia",
        "024": "Germany, Federal Republic Of",
        "165": "Ghana",
        "084": "Gibraltar",
        "025": "Greece",
        "521": "Greenland",
        "626": "Grenada",
        "653": "Guadeloupe",
        "832": "Guam",
        "544": "Guatemala",
        "409": "Guernsey",
        "166": "Guinea",
        "167": "Guinea-Bissau",
        "711": "Guyana",
        "654": "Haiti",
        "410": "Heard and MacDonald Islands",
        "545": "Honduras",
        "204": "Hong Kong",
        "026": "Hungary",
        "085": "Iceland",
        "205": "India",
        "222": "Indonesia",
        "223": "Iran",
        "224": "Iraq",
        "027": "Ireland",
        "411": "Isle of Man",
        "206": "Israel",
        "028": "Italy",
        "169": "Ivory Coast",
        "602": "Jamaica",
        "207": "Japan",
        "225": "Jordan",
        "053": "Kazakhstan",
        "132": "Kenya",
        "831": "Kiribati",
        "257": "Korea, North (DPRK)",
        "258": "Korea, South",
        "064": "Kosovo",
        "226": "Kuwait",
        "054": "Kyrgyzstan",
        "260": "Laos",
        "019": "Latvia",
        "208": "Lebanon",
        "152": "Lesotho",
        "170": "Liberia",
        "171": "Libya",
        "086": "Liechtenstein",
        "020": "Lithuania",
        "013": "Luxembourg",
        "261": "Macao",
        "070": "Macedonia",
        "172": "Madagascar",
        "036": "Madeira",
        "111": "Malawi",
        "242": "Malaysia",
        "901": "Maldives",
        "173": "Mali",
        "030": "Malta",
        "834": "Marshall Islands",
        "655": "Martinique",
        "174": "Mauritania",
        "902": "Mauritius",
        "906": "Mayotte",
        "501": "Mexico",
        "055": "Moldova",
        "087": "Monaco",
        "262": "Mongolia",
        "063": "Montenegro",
        "627": "Montserrat",
        "133": "Morocco",
        "175": "Mozambique",
        "122": "Namibia",
        "341": "Nauru",
        "264": "Nepal",
        "652": "Netherlands Antilles, The",
        "031": "Netherlands, The",
        "628": "Nevis",
        "822": "New Caledonia",
        "339": "New Zealand",
        "546": "Nicaragua",
        "176": "Niger",
        "177": "Nigeria",
        "414": "Niue",
        "006": "Northern Ireland",
        "830": "Northern Mariana Islands",
        "032": "Norway",
        "263": "Oman",
        "209": "Pakistan",
        "213": "Palestinian Authority",
        "547": "Panama",
        "342": "Papua New Guinea",
        "755": "Paraguay",
        "723": "Peru",
        "227": "Philippines",
        "842": "Pitcairn Islands",
        "033": "Poland",
        "034": "Portugal",
        "656": "Puerto Rico",
        "265": "Qatar",
        "159": "Republic of Congo",
        "836": "Republic of Palau",
        "903": "Réunion",
        "088": "Romania",
        "056": "Russia",
        "179": "Rwanda",
        "915": "Saint Helena",
        "629": "Saint Kitts and Nevis",
        "630": "Saint Lucia",
        "531": "Saint Pierre and Miquelon",
        "407": "Saint-Barthelemy",
        "415": "Saint-Martin",
        "844": "Samoa",
        "843": "Samoa, American",
        "089": "San Marino",
        "914": "Sao Tome and Principe",
        "231": "Saudi Arabia",
        "007": "Scotland",
        "180": "Senegal",
        "061": "Serbia And Montenegro",
        "062": "Serbia, Republic Of",
        "904": "Seychelles",
        "181": "Sierra Leone",
        "246": "Singapore",
        "416": "Sint-Maarten",
        "016": "Slovakia",
        "047": "Slovenia",
        "824": "Solomon Islands",
        "182": "Somalia",
        "121": "South Africa, Republic Of",
        "189": "South Sudan",
        "037": "Spain",
        "201": "Sri Lanka",
        "631": "St. Vincent and the Grenadines",
        "185": "Sudan",
        "752": "Suriname",
        "186": "Swaziland",
        "040": "Sweden",
        "041": "Switzerland",
        "210": "Syria",
        "203": "Taiwan",
        "057": "Tajikistan",
        "130": "Tanzania",
        "267": "Thailand",
        "268": "Tibet (Autonomous Region)",
        "187": "Togo",
        "417": "Tokelau",
        "846": "Tonga",
        "605": "Trinidad and Tobago",
        "135": "Tunisia",
        "045": "Turkey",
        "058": "Turkmenistan",
        "632": "Turks and Caicos Islands",
        "826": "Tuvalu",
        "418": "U.S. Minor outlying Islands",
        "136": "Uganda",
        "059": "Ukraine",
        "042": "Union Of Soviet Socialist Rep",
        "280": "United Arab Emirates",
        "461": "United States of America",
        "000": "Unknown",
        "724": "Uruguay",
        "060": "Uzbekistan",
        "823": "Vanuatu",
        "090": "Vatican City State",
        "725": "Venezuela",
        "270": "Vietnam",
        "657": "Virgin Islands, U.S.",
        "008": "Wales",
        "841": "Wallis and Futuna Is., Terr.",
        "184": "Western Sahara",
        "273": "Yemen",
        "044": "Yugoslavia",
        "112": "Zambia",
        "113": "Zimbabwe"
      }
    },
    "Education.EduLine2.Prov": {
      "label": "Education — Province/state",
      "template_path": "Education.EduLine2.Prov",
      "rules": {
        "gate": "has_education",
        "past": false,
        "optional": false
      },
      "choices": {
        "09": "AB",
        "11": "BC",
        "07": "MB",
        "04": "NB",
        "01": "NL",
        "03": "NS",
        "10": "NT",
        "64": "NU",
        "06": "ON",
        "02": "PE",
        "05": "QC",
        "08": "SK",
        "12": "YT"
      },
      "state_choices": {
        "13": "AL",
        "14": "AK",
        "15": "AZ",
        "16": "AR",
        "17": "CA",
        "18": "CO",
        "19": "CT",
        "20": "DE",
        "21": "DC",
        "22": "FL",
        "23": "GA",
        "24": "HI",
        "25": "ID",
        "26": "IL",
        "27": "IN",
        "28": "IA",
        "29": "KS",
        "30": "KY",
        "31": "LA",
        "32": "ME",
        "33": "MD",
        "34": "MA",
        "35": "MI",
        "36": "MN",
        "37": "MS",
        "38": "MO",
        "39": "MT",
        "40": "NE",
        "41": "NV",
        "42": "NH",
        "43": "NJ",
        "44": "NM",
        "45": "NY",
        "46": "NC",
        "47": "ND",
        "48": "OH",
        "49": "OK",
        "50": "OR",
        "51": "PA",
        "52": "RI",
        "53": "SC",
        "54": "SD",
        "55": "TN",
        "56": "TX",
        "57": "UT",
        "58": "VT",
        "59": "VA",
        "60": "WA",
        "61": "WV",
        "62": "WI",
        "63": "WY",
        "66": "AS",
        "67": "FM",
        "68": "GU",
        "69": "MH",
        "70": "MP",
        "71": "PW",
        "72": "VI",
        "PR": "PR"
      }
    },
    "Employment.EmpRec1.Line1.From.YYYY": {
      "label": "Employment 1 — From date",
      "template_path": "Employment.EmpRec1.Line1.From.YYYY",
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 4
    },
    "Employment.EmpRec1.Line1.From.MM": {
      "label": "Employment 1 — From date",
      "template_path": "Employment.EmpRec1.Line1.From.MM",
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 2
    },
    "Employment.EmpRec1.Line2.To.YYYY": {
      "label": "Employment 1 — To date",
      "template_path": "Employment.EmpRec1.Line2.To.YYYY",
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 4
    },
    "Employment.EmpRec1.Line2.To.MM": {
      "label": "Employment 1 — To date",
      "template_path": "Employment.EmpRec1.Line2.To.MM",
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 2
    },
    "Employment.EmpRec1.Line1.Occupation": {
      "label": "Employment 1 — Occupation/activity",
      "template_path": "Employment.EmpRec1.Line1.Occupation",
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "max_chars": 75
    },
    "Employment.EmpRec1.Line1.Employer": {
      "label": "Employment 1 — Employer",
      "template_path": "Employment.EmpRec1.Line1.Employer",
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "max_chars": 75
    },
    "Employment.EmpRec1.Line2.City": {
      "label": "Employment 1 — City/town",
      "template_path": "Employment.EmpRec1.Line2.City",
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "max_chars": 30
    },
    "Employment.EmpRec1.Line2.Country": {
      "label": "Employment 1 — Country",
      "template_path": "Employment.EmpRec1.Line2.Country",
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "choices": {
        "252": "Afghanistan",
        "401": "Aland Island",
        "081": "Albania",
        "131": "Algeria",
        "082": "Andorra",
        "151": "Angola",
        "620": "Anguilla",
        "621": "Antigua And Barbuda",
        "703": "Argentina",
        "049": "Armenia",
        "658": "Aruba",
        "305": "Australia",
        "011": "Austria",
        "050": "Azerbaijan",
        "622": "Bahamas",
        "253": "Bahrain",
        "412": "Bailwick of Jersey",
        "212": "Bangladesh",
        "610": "Barbados",
        "051": "Belarus",
        "012": "Belgium",
        "541": "Belize",
        "160": "Benin",
        "601": "Bermuda",
        "254": "Bhutan",
        "751": "Bolivia",
        "402": "Bonaire, Sint Eustatius, Saba",
        "048": "Bosnia and Herzegovina",
        "153": "Botswana",
        "403": "Bouvet Island",
        "709": "Brazil",
        "404": "British Indian Ocean Territory",
        "633": "British Virgin Islands",
        "255": "Brunei Darussalam",
        "083": "Bulgaria",
        "188": "Burkina Faso",
        "241": "Burma (Myanmar)",
        "154": "Burundi",
        "911": "Cabo Verde",
        "256": "Cambodia",
        "155": "Cameroon",
        "511": "Canada",
        "039": "Canary Islands",
        "624": "Cayman Islands",
        "157": "Central African Republic",
        "156": "Chad",
        "009": "Channel Islands",
        "721": "Chile",
        "202": "China",
        "200": "China (Hong Kong SAR)",
        "198": "China (Macao SAR)",
        "405": "Christmas Island",
        "722": "Colombia",
        "905": "Comoros",
        "840": "Cook Islands",
        "542": "Costa Rica",
        "043": "Croatia",
        "650": "Cuba",
        "406": "Curaçao",
        "221": "Cyprus",
        "015": "Czech Republic",
        "014": "Czechoslovakia",
        "158": "Democratic Rep. of Congo",
        "017": "Denmark",
        "183": "Djibouti",
        "625": "Dominica",
        "651": "Dominican Republic",
        "916": "East Timor",
        "753": "Ecuador",
        "101": "Egypt",
        "543": "El Salvador",
        "002": "England",
        "178": "Equatorial Guinea",
        "162": "Eritrea",
        "018": "Estonia",
        "161": "Ethiopia",
        "912": "Falkland Islands",
        "408": "Faroe Islands",
        "835": "Federated States of Micronesia",
        "801": "Fiji",
        "021": "Finland",
        "821": "Fr. South. and Antarctic Lands",
        "022": "France",
        "754": "French Guiana",
        "845": "French Polynesia",
        "163": "Gabon",
        "164": "Gambia",
        "052": "Georgia",
        "024": "Germany, Federal Republic Of",
        "165": "Ghana",
        "084": "Gibraltar",
        "025": "Greece",
        "521": "Greenland",
        "626": "Grenada",
        "653": "Guadeloupe",
        "832": "Guam",
        "544": "Guatemala",
        "409": "Guernsey",
        "166": "Guinea",
        "167": "Guinea-Bissau",
        "711": "Guyana",
        "654": "Haiti",
        "410": "Heard and MacDonald Islands",
        "545": "Honduras",
        "204": "Hong Kong",
        "026": "Hungary",
        "085": "Iceland",
        "205": "India",
        "222": "Indonesia",
        "223": "Iran",
        "224": "Iraq",
        "027": "Ireland",
        "411": "Isle of Man",
        "206": "Israel",
        "028": "Italy",
        "169": "Ivory Coast",
        "602": "Jamaica",
        "207": "Japan",
        "225": "Jordan",
        "053": "Kazakhstan",
        "132": "Kenya",
        "831": "Kiribati",
        "257": "Korea, North (DPRK)",
        "258": "Korea, South",
        "064": "Kosovo",
        "226": "Kuwait",
        "054": "Kyrgyzstan",
        "260": "Laos",
        "019": "Latvia",
        "208": "Lebanon",
        "152": "Lesotho",
        "170": "Liberia",
        "171": "Libya",
        "086": "Liechtenstein",
        "020": "Lithuania",
        "013": "Luxembourg",
        "261": "Macao",
        "070": "Macedonia",
        "172": "Madagascar",
        "036": "Madeira",
        "111": "Malawi",
        "242": "Malaysia",
        "901": "Maldives",
        "173": "Mali",
        "030": "Malta",
        "834": "Marshall Islands",
        "655": "Martinique",
        "174": "Mauritania",
        "902": "Mauritius",
        "906": "Mayotte",
        "501": "Mexico",
        "055": "Moldova",
        "087": "Monaco",
        "262": "Mongolia",
        "063": "Montenegro",
        "627": "Montserrat",
        "133": "Morocco",
        "175": "Mozambique",
        "122": "Namibia",
        "341": "Nauru",
        "264": "Nepal",
        "652": "Netherlands Antilles, The",
        "031": "Netherlands, The",
        "628": "Nevis",
        "822": "New Caledonia",
        "339": "New Zealand",
        "546": "Nicaragua",
        "176": "Niger",
        "177": "Nigeria",
        "414": "Niue",
        "006": "Northern Ireland",
        "830": "Northern Mariana Islands",
        "032": "Norway",
        "263": "Oman",
        "209": "Pakistan",
        "213": "Palestinian Authority",
        "547": "Panama",
        "342": "Papua New Guinea",
        "755": "Paraguay",
        "723": "Peru",
        "227": "Philippines",
        "842": "Pitcairn Islands",
        "033": "Poland",
        "034": "Portugal",
        "656": "Puerto Rico",
        "265": "Qatar",
        "159": "Republic of Congo",
        "836": "Republic of Palau",
        "903": "Réunion",
        "088": "Romania",
        "056": "Russia",
        "179": "Rwanda",
        "915": "Saint Helena",
        "629": "Saint Kitts and Nevis",
        "630": "Saint Lucia",
        "531": "Saint Pierre and Miquelon",
        "407": "Saint-Barthelemy",
        "415": "Saint-Martin",
        "844": "Samoa",
        "843": "Samoa, American",
        "089": "San Marino",
        "914": "Sao Tome and Principe",
        "231": "Saudi Arabia",
        "007": "Scotland",
        "180": "Senegal",
        "061": "Serbia And Montenegro",
        "062": "Serbia, Republic Of",
        "904": "Seychelles",
        "181": "Sierra Leone",
        "246": "Singapore",
        "416": "Sint-Maarten",
        "016": "Slovakia",
        "047": "Slovenia",
        "824": "Solomon Islands",
        "182": "Somalia",
        "121": "South Africa, Republic Of",
        "189": "South Sudan",
        "037": "Spain",
        "201": "Sri Lanka",
        "631": "St. Vincent and the Grenadines",
        "185": "Sudan",
        "752": "Suriname",
        "186": "Swaziland",
        "040": "Sweden",
        "041": "Switzerland",
        "210": "Syria",
        "203": "Taiwan",
        "057": "Tajikistan",
        "130": "Tanzania",
        "267": "Thailand",
        "268": "Tibet (Autonomous Region)",
        "187": "Togo",
        "417": "Tokelau",
        "846": "Tonga",
        "605": "Trinidad and Tobago",
        "135": "Tunisia",
        "045": "Turkey",
        "058": "Turkmenistan",
        "632": "Turks and Caicos Islands",
        "826": "Tuvalu",
        "418": "U.S. Minor outlying Islands",
        "136": "Uganda",
        "059": "Ukraine",
        "042": "Union Of Soviet Socialist Rep",
        "280": "United Arab Emirates",
        "461": "United States of America",
        "000": "Unknown",
        "724": "Uruguay",
        "060": "Uzbekistan",
        "823": "Vanuatu",
        "090": "Vatican City State",
        "725": "Venezuela",
        "270": "Vietnam",
        "657": "Virgin Islands, U.S.",
        "008": "Wales",
        "841": "Wallis and Futuna Is., Terr.",
        "184": "Western Sahara",
        "273": "Yemen",
        "044": "Yugoslavia",
        "112": "Zambia",
        "113": "Zimbabwe"
      }
    },
    "Employment.EmpRec1.Line2.ProvState": {
      "label": "Employment 1 — Province/state",
      "template_path": "Employment.EmpRec1.Line2.ProvState",
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "choices": {
        "09": "AB",
        "11": "BC",
        "07": "MB",
        "04": "NB",
        "01": "NL",
        "03": "NS",
        "10": "NT",
        "64": "NU",
        "06": "ON",
        "02": "PE",
        "05": "QC",
        "08": "SK",
        "12": "YT"
      },
      "state_choices": {
        "13": "AL",
        "14": "AK",
        "15": "AZ",
        "16": "AR",
        "17": "CA",
        "18": "CO",
        "19": "CT",
        "20": "DE",
        "21": "DC",
        "22": "FL",
        "23": "GA",
        "24": "HI",
        "25": "ID",
        "26": "IL",
        "27": "IN",
        "28": "IA",
        "29": "KS",
        "30": "KY",
        "31": "LA",
        "32": "ME",
        "33": "MD",
        "34": "MA",
        "35": "MI",
        "36": "MN",
        "37": "MS",
        "38": "MO",
        "39": "MT",
        "40": "NE",
        "41": "NV",
        "42": "NH",
        "43": "NJ",
        "44": "NM",
        "45": "NY",
        "46": "NC",
        "47": "ND",
        "48": "OH",
        "49": "OK",
        "50": "OR",
        "51": "PA",
        "52": "RI",
        "53": "SC",
        "54": "SD",
        "55": "TN",
        "56": "TX",
        "57": "UT",
        "58": "VT",
        "59": "VA",
        "60": "WA",
        "61": "WV",
        "62": "WI",
        "63": "WY",
        "66": "AS",
        "67": "FM",
        "68": "GU",
        "69": "MH",
        "70": "MP",
        "71": "PW",
        "72": "VI",
        "PR": "PR"
      }
    },
    "Employment.EmpRec2.Line1.From.YYYY": {
      "label": "Employment 2 — From date",
      "template_path": "Employment.EmpRec2.Line1.From.YYYY",
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 4
    },
    "Employment.EmpRec2.Line1.From.MM": {
      "label": "Employment 2 — From date",
      "template_path": "Employment.EmpRec2.Line1.From.MM",
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 2
    },
    "Employment.EmpRec2.Line2.To.YYYY": {
      "label": "Employment 2 — To date",
      "template_path": "Employment.EmpRec2.Line2.To.YYYY",
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 4
    },
    "Employment.EmpRec2.Line2.To.MM": {
      "label": "Employment 2 — To date",
      "template_path": "Employment.EmpRec2.Line2.To.MM",
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 2
    },
    "Employment.EmpRec2.Line1.Occupation": {
      "label": "Employment 2 — Occupation/activity",
      "template_path": "Employment.EmpRec2.Line1.Occupation",
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "max_chars": 75
    },
    "Employment.EmpRec2.Line1.Employer": {
      "label": "Employment 2 — Employer",
      "template_path": "Employment.EmpRec2.Line1.Employer",
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "max_chars": 75
    },
    "Employment.EmpRec2.Line2.City": {
      "label": "Employment 2 — City/town",
      "template_path": "Employment.EmpRec2.Line2.City",
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "max_chars": 30
    },
    "Employment.EmpRec2.Line2.Country": {
      "label": "Employment 2 — Country",
      "template_path": "Employment.EmpRec2.Line2.Country",
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "choices": {
        "252": "Afghanistan",
        "401": "Aland Island",
        "081": "Albania",
        "131": "Algeria",
        "082": "Andorra",
        "151": "Angola",
        "620": "Anguilla",
        "621": "Antigua And Barbuda",
        "703": "Argentina",
        "049": "Armenia",
        "658": "Aruba",
        "305": "Australia",
        "011": "Austria",
        "050": "Azerbaijan",
        "622": "Bahamas",
        "253": "Bahrain",
        "412": "Bailwick of Jersey",
        "212": "Bangladesh",
        "610": "Barbados",
        "051": "Belarus",
        "012": "Belgium",
        "541": "Belize",
        "160": "Benin",
        "601": "Bermuda",
        "254": "Bhutan",
        "751": "Bolivia",
        "402": "Bonaire, Sint Eustatius, Saba",
        "048": "Bosnia and Herzegovina",
        "153": "Botswana",
        "403": "Bouvet Island",
        "709": "Brazil",
        "404": "British Indian Ocean Territory",
        "633": "British Virgin Islands",
        "255": "Brunei Darussalam",
        "083": "Bulgaria",
        "188": "Burkina Faso",
        "241": "Burma (Myanmar)",
        "154": "Burundi",
        "911": "Cabo Verde",
        "256": "Cambodia",
        "155": "Cameroon",
        "511": "Canada",
        "039": "Canary Islands",
        "624": "Cayman Islands",
        "157": "Central African Republic",
        "156": "Chad",
        "009": "Channel Islands",
        "721": "Chile",
        "202": "China",
        "200": "China (Hong Kong SAR)",
        "198": "China (Macao SAR)",
        "405": "Christmas Island",
        "722": "Colombia",
        "905": "Comoros",
        "840": "Cook Islands",
        "542": "Costa Rica",
        "043": "Croatia",
        "650": "Cuba",
        "406": "Curaçao",
        "221": "Cyprus",
        "015": "Czech Republic",
        "014": "Czechoslovakia",
        "158": "Democratic Rep. of Congo",
        "017": "Denmark",
        "183": "Djibouti",
        "625": "Dominica",
        "651": "Dominican Republic",
        "916": "East Timor",
        "753": "Ecuador",
        "101": "Egypt",
        "543": "El Salvador",
        "002": "England",
        "178": "Equatorial Guinea",
        "162": "Eritrea",
        "018": "Estonia",
        "161": "Ethiopia",
        "912": "Falkland Islands",
        "408": "Faroe Islands",
        "835": "Federated States of Micronesia",
        "801": "Fiji",
        "021": "Finland",
        "821": "Fr. South. and Antarctic Lands",
        "022": "France",
        "754": "French Guiana",
        "845": "French Polynesia",
        "163": "Gabon",
        "164": "Gambia",
        "052": "Georgia",
        "024": "Germany, Federal Republic Of",
        "165": "Ghana",
        "084": "Gibraltar",
        "025": "Greece",
        "521": "Greenland",
        "626": "Grenada",
        "653": "Guadeloupe",
        "832": "Guam",
        "544": "Guatemala",
        "409": "Guernsey",
        "166": "Guinea",
        "167": "Guinea-Bissau",
        "711": "Guyana",
        "654": "Haiti",
        "410": "Heard and MacDonald Islands",
        "545": "Honduras",
        "204": "Hong Kong",
        "026": "Hungary",
        "085": "Iceland",
        "205": "India",
        "222": "Indonesia",
        "223": "Iran",
        "224": "Iraq",
        "027": "Ireland",
        "411": "Isle of Man",
        "206": "Israel",
        "028": "Italy",
        "169": "Ivory Coast",
        "602": "Jamaica",
        "207": "Japan",
        "225": "Jordan",
        "053": "Kazakhstan",
        "132": "Kenya",
        "831": "Kiribati",
        "257": "Korea, North (DPRK)",
        "258": "Korea, South",
        "064": "Kosovo",
        "226": "Kuwait",
        "054": "Kyrgyzstan",
        "260": "Laos",
        "019": "Latvia",
        "208": "Lebanon",
        "152": "Lesotho",
        "170": "Liberia",
        "171": "Libya",
        "086": "Liechtenstein",
        "020": "Lithuania",
        "013": "Luxembourg",
        "261": "Macao",
        "070": "Macedonia",
        "172": "Madagascar",
        "036": "Madeira",
        "111": "Malawi",
        "242": "Malaysia",
        "901": "Maldives",
        "173": "Mali",
        "030": "Malta",
        "834": "Marshall Islands",
        "655": "Martinique",
        "174": "Mauritania",
        "902": "Mauritius",
        "906": "Mayotte",
        "501": "Mexico",
        "055": "Moldova",
        "087": "Monaco",
        "262": "Mongolia",
        "063": "Montenegro",
        "627": "Montserrat",
        "133": "Morocco",
        "175": "Mozambique",
        "122": "Namibia",
        "341": "Nauru",
        "264": "Nepal",
        "652": "Netherlands Antilles, The",
        "031": "Netherlands, The",
        "628": "Nevis",
        "822": "New Caledonia",
        "339": "New Zealand",
        "546": "Nicaragua",
        "176": "Niger",
        "177": "Nigeria",
        "414": "Niue",
        "006": "Northern Ireland",
        "830": "Northern Mariana Islands",
        "032": "Norway",
        "263": "Oman",
        "209": "Pakistan",
        "213": "Palestinian Authority",
        "547": "Panama",
        "342": "Papua New Guinea",
        "755": "Paraguay",
        "723": "Peru",
        "227": "Philippines",
        "842": "Pitcairn Islands",
        "033": "Poland",
        "034": "Portugal",
        "656": "Puerto Rico",
        "265": "Qatar",
        "159": "Republic of Congo",
        "836": "Republic of Palau",
        "903": "Réunion",
        "088": "Romania",
        "056": "Russia",
        "179": "Rwanda",
        "915": "Saint Helena",
        "629": "Saint Kitts and Nevis",
        "630": "Saint Lucia",
        "531": "Saint Pierre and Miquelon",
        "407": "Saint-Barthelemy",
        "415": "Saint-Martin",
        "844": "Samoa",
        "843": "Samoa, American",
        "089": "San Marino",
        "914": "Sao Tome and Principe",
        "231": "Saudi Arabia",
        "007": "Scotland",
        "180": "Senegal",
        "061": "Serbia And Montenegro",
        "062": "Serbia, Republic Of",
        "904": "Seychelles",
        "181": "Sierra Leone",
        "246": "Singapore",
        "416": "Sint-Maarten",
        "016": "Slovakia",
        "047": "Slovenia",
        "824": "Solomon Islands",
        "182": "Somalia",
        "121": "South Africa, Republic Of",
        "189": "South Sudan",
        "037": "Spain",
        "201": "Sri Lanka",
        "631": "St. Vincent and the Grenadines",
        "185": "Sudan",
        "752": "Suriname",
        "186": "Swaziland",
        "040": "Sweden",
        "041": "Switzerland",
        "210": "Syria",
        "203": "Taiwan",
        "057": "Tajikistan",
        "130": "Tanzania",
        "267": "Thailand",
        "268": "Tibet (Autonomous Region)",
        "187": "Togo",
        "417": "Tokelau",
        "846": "Tonga",
        "605": "Trinidad and Tobago",
        "135": "Tunisia",
        "045": "Turkey",
        "058": "Turkmenistan",
        "632": "Turks and Caicos Islands",
        "826": "Tuvalu",
        "418": "U.S. Minor outlying Islands",
        "136": "Uganda",
        "059": "Ukraine",
        "042": "Union Of Soviet Socialist Rep",
        "280": "United Arab Emirates",
        "461": "United States of America",
        "000": "Unknown",
        "724": "Uruguay",
        "060": "Uzbekistan",
        "823": "Vanuatu",
        "090": "Vatican City State",
        "725": "Venezuela",
        "270": "Vietnam",
        "657": "Virgin Islands, U.S.",
        "008": "Wales",
        "841": "Wallis and Futuna Is., Terr.",
        "184": "Western Sahara",
        "273": "Yemen",
        "044": "Yugoslavia",
        "112": "Zambia",
        "113": "Zimbabwe"
      }
    },
    "Employment.EmpRec2.Line2.ProvState": {
      "label": "Employment 2 — Province/state",
      "template_path": "Employment.EmpRec2.Line2.ProvState",
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "choices": {
        "09": "AB",
        "11": "BC",
        "07": "MB",
        "04": "NB",
        "01": "NL",
        "03": "NS",
        "10": "NT",
        "64": "NU",
        "06": "ON",
        "02": "PE",
        "05": "QC",
        "08": "SK",
        "12": "YT"
      },
      "state_choices": {
        "13": "AL",
        "14": "AK",
        "15": "AZ",
        "16": "AR",
        "17": "CA",
        "18": "CO",
        "19": "CT",
        "20": "DE",
        "21": "DC",
        "22": "FL",
        "23": "GA",
        "24": "HI",
        "25": "ID",
        "26": "IL",
        "27": "IN",
        "28": "IA",
        "29": "KS",
        "30": "KY",
        "31": "LA",
        "32": "ME",
        "33": "MD",
        "34": "MA",
        "35": "MI",
        "36": "MN",
        "37": "MS",
        "38": "MO",
        "39": "MT",
        "40": "NE",
        "41": "NV",
        "42": "NH",
        "43": "NJ",
        "44": "NM",
        "45": "NY",
        "46": "NC",
        "47": "ND",
        "48": "OH",
        "49": "OK",
        "50": "OR",
        "51": "PA",
        "52": "RI",
        "53": "SC",
        "54": "SD",
        "55": "TN",
        "56": "TX",
        "57": "UT",
        "58": "VT",
        "59": "VA",
        "60": "WA",
        "61": "WV",
        "62": "WI",
        "63": "WY",
        "66": "AS",
        "67": "FM",
        "68": "GU",
        "69": "MH",
        "70": "MP",
        "71": "PW",
        "72": "VI",
        "PR": "PR"
      }
    },
    "Employment2.EmpRec3.Line1.From.YYYY": {
      "label": "Employment 3 — From date",
      "template_path": "Employment2.EmpRec3.Line1.From.YYYY",
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 4
    },
    "Employment2.EmpRec3.Line1.From.MM": {
      "label": "Employment 3 — From date",
      "template_path": "Employment2.EmpRec3.Line1.From.MM",
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 2
    },
    "Employment2.EmpRec3.Line2.To.YYYY": {
      "label": "Employment 3 — To date",
      "template_path": "Employment2.EmpRec3.Line2.To.YYYY",
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 4
    },
    "Employment2.EmpRec3.Line2.To.MM": {
      "label": "Employment 3 — To date",
      "template_path": "Employment2.EmpRec3.Line2.To.MM",
      "rules": {
        "gate": null,
        "past": true,
        "optional": false
      },
      "max_chars": 2
    },
    "Employment2.EmpRec3.Line1.Occupation": {
      "label": "Employment 3 — Occupation/activity",
      "template_path": "Employment2.EmpRec3.Line1.Occupation",
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "max_chars": 75
    },
    "Employment2.EmpRec3.Line1.Employer": {
      "label": "Employment 3 — Employer",
      "template_path": "Employment2.EmpRec3.Line1.Employer",
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "max_chars": 75
    },
    "Employment2.EmpRec3.Line2.City": {
      "label": "Employment 3 — City/town",
      "template_path": "Employment2.EmpRec3.Line2.City",
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "max_chars": 30
    },
    "Employment2.EmpRec3.Line2.Country": {
      "label": "Employment 3 — Country",
      "template_path": "Employment2.EmpRec3.Line2.Country",
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "choices": {
        "252": "Afghanistan",
        "401": "Aland Island",
        "081": "Albania",
        "131": "Algeria",
        "082": "Andorra",
        "151": "Angola",
        "620": "Anguilla",
        "621": "Antigua And Barbuda",
        "703": "Argentina",
        "049": "Armenia",
        "658": "Aruba",
        "305": "Australia",
        "011": "Austria",
        "050": "Azerbaijan",
        "622": "Bahamas",
        "253": "Bahrain",
        "412": "Bailwick of Jersey",
        "212": "Bangladesh",
        "610": "Barbados",
        "051": "Belarus",
        "012": "Belgium",
        "541": "Belize",
        "160": "Benin",
        "601": "Bermuda",
        "254": "Bhutan",
        "751": "Bolivia",
        "402": "Bonaire, Sint Eustatius, Saba",
        "048": "Bosnia and Herzegovina",
        "153": "Botswana",
        "403": "Bouvet Island",
        "709": "Brazil",
        "404": "British Indian Ocean Territory",
        "633": "British Virgin Islands",
        "255": "Brunei Darussalam",
        "083": "Bulgaria",
        "188": "Burkina Faso",
        "241": "Burma (Myanmar)",
        "154": "Burundi",
        "911": "Cabo Verde",
        "256": "Cambodia",
        "155": "Cameroon",
        "511": "Canada",
        "039": "Canary Islands",
        "624": "Cayman Islands",
        "157": "Central African Republic",
        "156": "Chad",
        "009": "Channel Islands",
        "721": "Chile",
        "202": "China",
        "200": "China (Hong Kong SAR)",
        "198": "China (Macao SAR)",
        "405": "Christmas Island",
        "722": "Colombia",
        "905": "Comoros",
        "840": "Cook Islands",
        "542": "Costa Rica",
        "043": "Croatia",
        "650": "Cuba",
        "406": "Curaçao",
        "221": "Cyprus",
        "015": "Czech Republic",
        "014": "Czechoslovakia",
        "158": "Democratic Rep. of Congo",
        "017": "Denmark",
        "183": "Djibouti",
        "625": "Dominica",
        "651": "Dominican Republic",
        "916": "East Timor",
        "753": "Ecuador",
        "101": "Egypt",
        "543": "El Salvador",
        "002": "England",
        "178": "Equatorial Guinea",
        "162": "Eritrea",
        "018": "Estonia",
        "161": "Ethiopia",
        "912": "Falkland Islands",
        "408": "Faroe Islands",
        "835": "Federated States of Micronesia",
        "801": "Fiji",
        "021": "Finland",
        "821": "Fr. South. and Antarctic Lands",
        "022": "France",
        "754": "French Guiana",
        "845": "French Polynesia",
        "163": "Gabon",
        "164": "Gambia",
        "052": "Georgia",
        "024": "Germany, Federal Republic Of",
        "165": "Ghana",
        "084": "Gibraltar",
        "025": "Greece",
        "521": "Greenland",
        "626": "Grenada",
        "653": "Guadeloupe",
        "832": "Guam",
        "544": "Guatemala",
        "409": "Guernsey",
        "166": "Guinea",
        "167": "Guinea-Bissau",
        "711": "Guyana",
        "654": "Haiti",
        "410": "Heard and MacDonald Islands",
        "545": "Honduras",
        "204": "Hong Kong",
        "026": "Hungary",
        "085": "Iceland",
        "205": "India",
        "222": "Indonesia",
        "223": "Iran",
        "224": "Iraq",
        "027": "Ireland",
        "411": "Isle of Man",
        "206": "Israel",
        "028": "Italy",
        "169": "Ivory Coast",
        "602": "Jamaica",
        "207": "Japan",
        "225": "Jordan",
        "053": "Kazakhstan",
        "132": "Kenya",
        "831": "Kiribati",
        "257": "Korea, North (DPRK)",
        "258": "Korea, South",
        "064": "Kosovo",
        "226": "Kuwait",
        "054": "Kyrgyzstan",
        "260": "Laos",
        "019": "Latvia",
        "208": "Lebanon",
        "152": "Lesotho",
        "170": "Liberia",
        "171": "Libya",
        "086": "Liechtenstein",
        "020": "Lithuania",
        "013": "Luxembourg",
        "261": "Macao",
        "070": "Macedonia",
        "172": "Madagascar",
        "036": "Madeira",
        "111": "Malawi",
        "242": "Malaysia",
        "901": "Maldives",
        "173": "Mali",
        "030": "Malta",
        "834": "Marshall Islands",
        "655": "Martinique",
        "174": "Mauritania",
        "902": "Mauritius",
        "906": "Mayotte",
        "501": "Mexico",
        "055": "Moldova",
        "087": "Monaco",
        "262": "Mongolia",
        "063": "Montenegro",
        "627": "Montserrat",
        "133": "Morocco",
        "175": "Mozambique",
        "122": "Namibia",
        "341": "Nauru",
        "264": "Nepal",
        "652": "Netherlands Antilles, The",
        "031": "Netherlands, The",
        "628": "Nevis",
        "822": "New Caledonia",
        "339": "New Zealand",
        "546": "Nicaragua",
        "176": "Niger",
        "177": "Nigeria",
        "414": "Niue",
        "006": "Northern Ireland",
        "830": "Northern Mariana Islands",
        "032": "Norway",
        "263": "Oman",
        "209": "Pakistan",
        "213": "Palestinian Authority",
        "547": "Panama",
        "342": "Papua New Guinea",
        "755": "Paraguay",
        "723": "Peru",
        "227": "Philippines",
        "842": "Pitcairn Islands",
        "033": "Poland",
        "034": "Portugal",
        "656": "Puerto Rico",
        "265": "Qatar",
        "159": "Republic of Congo",
        "836": "Republic of Palau",
        "903": "Réunion",
        "088": "Romania",
        "056": "Russia",
        "179": "Rwanda",
        "915": "Saint Helena",
        "629": "Saint Kitts and Nevis",
        "630": "Saint Lucia",
        "531": "Saint Pierre and Miquelon",
        "407": "Saint-Barthelemy",
        "415": "Saint-Martin",
        "844": "Samoa",
        "843": "Samoa, American",
        "089": "San Marino",
        "914": "Sao Tome and Principe",
        "231": "Saudi Arabia",
        "007": "Scotland",
        "180": "Senegal",
        "061": "Serbia And Montenegro",
        "062": "Serbia, Republic Of",
        "904": "Seychelles",
        "181": "Sierra Leone",
        "246": "Singapore",
        "416": "Sint-Maarten",
        "016": "Slovakia",
        "047": "Slovenia",
        "824": "Solomon Islands",
        "182": "Somalia",
        "121": "South Africa, Republic Of",
        "189": "South Sudan",
        "037": "Spain",
        "201": "Sri Lanka",
        "631": "St. Vincent and the Grenadines",
        "185": "Sudan",
        "752": "Suriname",
        "186": "Swaziland",
        "040": "Sweden",
        "041": "Switzerland",
        "210": "Syria",
        "203": "Taiwan",
        "057": "Tajikistan",
        "130": "Tanzania",
        "267": "Thailand",
        "268": "Tibet (Autonomous Region)",
        "187": "Togo",
        "417": "Tokelau",
        "846": "Tonga",
        "605": "Trinidad and Tobago",
        "135": "Tunisia",
        "045": "Turkey",
        "058": "Turkmenistan",
        "632": "Turks and Caicos Islands",
        "826": "Tuvalu",
        "418": "U.S. Minor outlying Islands",
        "136": "Uganda",
        "059": "Ukraine",
        "042": "Union Of Soviet Socialist Rep",
        "280": "United Arab Emirates",
        "461": "United States of America",
        "000": "Unknown",
        "724": "Uruguay",
        "060": "Uzbekistan",
        "823": "Vanuatu",
        "090": "Vatican City State",
        "725": "Venezuela",
        "270": "Vietnam",
        "657": "Virgin Islands, U.S.",
        "008": "Wales",
        "841": "Wallis and Futuna Is., Terr.",
        "184": "Western Sahara",
        "273": "Yemen",
        "044": "Yugoslavia",
        "112": "Zambia",
        "113": "Zimbabwe"
      }
    },
    "Employment2.EmpRec3.Line2.ProvState": {
      "label": "Employment 3 — Province/state",
      "template_path": "Employment2.EmpRec3.Line2.ProvState",
      "rules": {
        "gate": null,
        "past": false,
        "optional": false
      },
      "choices": {
        "09": "AB",
        "11": "BC",
        "07": "MB",
        "04": "NB",
        "01": "NL",
        "03": "NS",
        "10": "NT",
        "64": "NU",
        "06": "ON",
        "02": "PE",
        "05": "QC",
        "08": "SK",
        "12": "YT"
      },
      "state_choices": {
        "13": "AL",
        "14": "AK",
        "15": "AZ",
        "16": "AR",
        "17": "CA",
        "18": "CO",
        "19": "CT",
        "20": "DE",
        "21": "DC",
        "22": "FL",
        "23": "GA",
        "24": "HI",
        "25": "ID",
        "26": "IL",
        "27": "IN",
        "28": "IA",
        "29": "KS",
        "30": "KY",
        "31": "LA",
        "32": "ME",
        "33": "MD",
        "34": "MA",
        "35": "MI",
        "36": "MN",
        "37": "MS",
        "38": "MO",
        "39": "MT",
        "40": "NE",
        "41": "NV",
        "42": "NH",
        "43": "NJ",
        "44": "NM",
        "45": "NY",
        "46": "NC",
        "47": "ND",
        "48": "OH",
        "49": "OK",
        "50": "OR",
        "51": "PA",
        "52": "RI",
        "53": "SC",
        "54": "SD",
        "55": "TN",
        "56": "TX",
        "57": "UT",
        "58": "VT",
        "59": "VA",
        "60": "WA",
        "61": "WV",
        "62": "WI",
        "63": "WY",
        "66": "AS",
        "67": "FM",
        "68": "GU",
        "69": "MH",
        "70": "MP",
        "71": "PW",
        "72": "VI",
        "PR": "PR"
      }
    },
    "BackgroundInfo.HealthQ.qANY": {
      "label": "Tuberculosis or close contact",
      "template_path": "BackgroundInfo.HealthQ.qANY",
      "rules": {
        "gate": "adult",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "BackgroundInfo.HealthQ.qBNY": {
      "label": "Physical/mental condition requiring services",
      "template_path": "BackgroundInfo.HealthQ.qBNY",
      "rules": {
        "gate": "adult",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "BackgroundInfo.PrevApplied.qANY": {
      "label": "Overstay, unauthorized study or work in Canada",
      "template_path": "BackgroundInfo.PrevApplied.qANY",
      "rules": {
        "gate": "adult",
        "optional": false
      },
      "allowed_values": [
        "Y",
        "N"
      ]
    },
    "BackgroundInfo.PrevApplied.qBNY": {
      "label": "Visa/permit refusal, denied entry or ordered to leave",
      "template_path": "BackgroundInfo.PrevApplied.qBNY",
      "rules": {
        "gate": "adult",
        "optional": false
      },
      "allowed_values": [
        "Y",
        "N"
      ]
    },
    "BackgroundInfo.PrevApplied.qCNY": {
      "label": "Previously applied to enter or remain in Canada",
      "template_path": "BackgroundInfo.PrevApplied.qCNY",
      "rules": {
        "gate": "adult",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "BackgroundInfo.Criminal.qANY": {
      "label": "Criminal offences",
      "template_path": "BackgroundInfo.Criminal.qANY",
      "rules": {
        "gate": "adult",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "BackgroundInfo.Military.qANY": {
      "label": "Military/militia/security/police service",
      "template_path": "BackgroundInfo.Military.qANY",
      "rules": {
        "gate": "adult",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "BackgroundInfo.GovPosition.qGovtNY": {
      "label": "Association with groups using violence or crime",
      "template_path": "BackgroundInfo.GovPosition.qGovtNY",
      "rules": {
        "gate": "adult",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "BackgroundInfo.Illtreatment.qWitnessNY": {
      "label": "Ill-treatment, looting or religious desecration",
      "template_path": "BackgroundInfo.Illtreatment.qWitnessNY",
      "rules": {
        "gate": "adult",
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    },
    "BackgroundInfo.HealthQ.MedicalDetails": {
      "label": "Medical explanation",
      "template_path": "BackgroundInfo.HealthQ.MedicalDetails",
      "rules": {
        "gate": "any_yes",
        "optional": false
      },
      "max_chars": 200
    },
    "BackgroundInfo.PrevApplied.refusedDetails": {
      "label": "Immigration history explanation",
      "template_path": "BackgroundInfo.PrevApplied.refusedDetails",
      "rules": {
        "gate": "any_yes",
        "optional": false
      },
      "max_chars": 200
    },
    "BackgroundInfo.Criminal.refusedDetails": {
      "label": "Criminal explanation",
      "template_path": "BackgroundInfo.Criminal.refusedDetails",
      "rules": {
        "gate": "any_yes",
        "optional": false
      },
      "max_chars": 200
    },
    "BackgroundInfo.Military.militaryServiceDetails": {
      "label": "Military service details",
      "template_path": "BackgroundInfo.Military.militaryServiceDetails",
      "rules": {
        "gate": "any_yes",
        "optional": false
      },
      "max_chars": 200
    },
    "Signature.FutureComm": {
      "label": "Consent to future contact",
      "template_path": "Consent1.Signature.FutureComm",
      "rules": {
        "gate": null,
        "optional": false
      },
      "allowed_values": [
        "N",
        "Y"
      ]
    }
  },
  "manual": {
    "manual.adobe": "Review and validate in Adobe Reader.",
    "manual.signatures": "Review declarations; sign and date manually."
  }
}
