From f824ca2ba7dd89289c67f5cef2069b7de05366db Mon Sep 17 00:00:00 2001 From: fatmakhan0395 <145523589+fatmakhan0395@users.noreply.github.com> Date: Mon, 9 Dec 2024 10:30:02 -0800 Subject: [PATCH] updated version --- dist/22-10216-schema.json | 2560 +++++++++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 2561 insertions(+), 1 deletion(-) create mode 100644 dist/22-10216-schema.json diff --git a/dist/22-10216-schema.json b/dist/22-10216-schema.json new file mode 100644 index 00000000..c5142d62 --- /dev/null +++ b/dist/22-10216-schema.json @@ -0,0 +1,2560 @@ +{ + "$schema": "http://json-schema.org/draft-04/schema#", + "title": "22-10216 5% EXEMPTION REQUEST FROM 85/15 REPORTING REQUIREMENT GENERAL INFORMATION (22-10216)", + "type": "object", + "additionalProperties": false, + "definitions": { + "usaPhone": { + "type": "string", + "pattern": "^\\d{10}$" + }, + "fullName": { + "type": "object", + "properties": { + "first": { + "type": "string", + "minLength": 1, + "maxLength": 30 + }, + "middle": { + "type": "string", + "maxLength": 30 + }, + "last": { + "type": "string", + "minLength": 1, + "maxLength": 30 + }, + "suffix": { + "type": "string", + "enum": [ + "Jr.", + "Sr.", + "II", + "III", + "IV" + ] + } + }, + "required": [ + "first", + "last" + ] + }, + "teraQuestions": { + "hasTeraResponse": { + "type": "boolean" + }, + "radiationCleanupEfforts": { + "type": "boolean" + }, + "gulfWarService": { + "type": "boolean" + }, + "gulfWarStartDate": { + "pattern": "^(\\d{4}|XXXX)-(0[1-9]|1[0-2]|XX)-(0[1-9]|[1-2][0-9]|3[0-1]|XX)$", + "type": "string" + }, + "gulfWarEndDate": { + "pattern": "^(\\d{4}|XXXX)-(0[1-9]|1[0-2]|XX)-(0[1-9]|[1-2][0-9]|3[0-1]|XX)$", + "type": "string" + }, + "combatOperationService": { + "type": "boolean" + }, + "exposedToAgentOrange": { + "type": "boolean" + }, + "agentOrangeStartDate": { + "pattern": "^(\\d{4}|XXXX)-(0[1-9]|1[0-2]|XX)-(0[1-9]|[1-2][0-9]|3[0-1]|XX)$", + "type": "string" + }, + "agentOrangeEndDate": { + "pattern": "^(\\d{4}|XXXX)-(0[1-9]|1[0-2]|XX)-(0[1-9]|[1-2][0-9]|3[0-1]|XX)$", + "type": "string" + }, + "exposureToAirPollutants": { + "type": "boolean" + }, + "exposureToAsbestos": { + "type": "boolean" + }, + "exposureToChemicals": { + "type": "boolean" + }, + "exposureToContaminatedWater": { + "type": "boolean" + }, + "exposureToMustardGas": { + "type": "boolean" + }, + "exposureToOccupationalHazards": { + "type": "boolean" + }, + "exposureToRadiation": { + "type": "boolean" + }, + "exposureToShad": { + "type": "boolean" + }, + "exposureToWarfareAgents": { + "type": "boolean" + }, + "exposureToOther": { + "type": "boolean" + }, + "otherToxicExposure": { + "type": "string", + "maxLength": 100, + "pattern": "^[a-zA-Z0-9,.?! ]*$" + }, + "toxicExposureStartDate": { + "pattern": "^(\\d{4}|XXXX)-(0[1-9]|1[0-2]|XX)-(0[1-9]|[1-2][0-9]|3[0-1]|XX)$", + "type": "string" + }, + "toxicExposureEndDate": { + "pattern": "^(\\d{4}|XXXX)-(0[1-9]|1[0-2]|XX)-(0[1-9]|[1-2][0-9]|3[0-1]|XX)$", + "type": "string" + } + }, + "fullNameNoSuffix": { + "type": "object", + "additionalProperties": false, + "required": [ + "first", + "last" + ], + "properties": { + "first": { + "type": "string", + "minLength": 1, + "maxLength": 30 + }, + "middle": { + "type": "string", + "maxLength": 30 + }, + "last": { + "type": "string", + "minLength": 1, + "maxLength": 30 + } + } + }, + "otherIncome": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "amount": { + "type": "integer" + } + } + }, + "address": { + "type": "object", + "oneOf": [ + { + "properties": { + "country": { + "type": "string", + "enum": [ + "CAN" + ] + }, + "state": { + "type": "string", + "enum": [ + "AB", + "BC", + "MB", + "NB", + "NL", + "NT", + "NS", + "NU", + "ON", + "PE", + "QC", + "SK", + "YT" + ] + }, + "postalCode": { + "type": "string", + "maxLength": 10 + } + } + }, + { + "properties": { + "country": { + "type": "string", + "enum": [ + "MEX" + ] + }, + "state": { + "type": "string", + "enum": [ + "aguascalientes", + "baja-california-norte", + "baja-california-sur", + "campeche", + "chiapas", + "chihuahua", + "coahuila", + "colima", + "distrito-federal", + "durango", + "guanajuato", + "guerrero", + "hidalgo", + "jalisco", + "mexico", + "michoacan", + "morelos", + "nayarit", + "nuevo-leon", + "oaxaca", + "puebla", + "queretaro", + "quintana-roo", + "san-luis-potosi", + "sinaloa", + "sonora", + "tabasco", + "tamaulipas", + "tlaxcala", + "veracruz", + "yucatan", + "zacatecas" + ] + }, + "postalCode": { + "type": "string", + "maxLength": 10 + } + } + }, + { + "properties": { + "country": { + "type": "string", + "enum": [ + "USA" + ] + }, + "state": { + "type": "string", + "enum": [ + "AL", + "AK", + "AS", + "AZ", + "AR", + "AA", + "AE", + "AP", + "CA", + "CO", + "CT", + "DE", + "DC", + "FM", + "FL", + "GA", + "GU", + "HI", + "ID", + "IL", + "IN", + "IA", + "KS", + "KY", + "LA", + "ME", + "MH", + "MD", + "MA", + "MI", + "MN", + "MS", + "MO", + "MT", + "NE", + "NV", + "NH", + "NJ", + "NM", + "NY", + "NC", + "ND", + "MP", + "OH", + "OK", + "OR", + "PW", + "PA", + "PR", + "RI", + "SC", + "SD", + "TN", + "TX", + "UT", + "VT", + "VI", + "VA", + "WA", + "WV", + "WI", + "WY" + ] + }, + "postalCode": { + "type": "string", + "maxLength": 10 + } + } + }, + { + "properties": { + "country": { + "not": { + "type": "string", + "enum": [ + "CAN", + "MEX", + "USA" + ] + } + }, + "state": { + "type": "string", + "maxLength": 51 + }, + "postalCode": { + "type": "string", + "maxLength": 51 + } + } + } + ], + "properties": { + "street": { + "type": "string", + "minLength": 1, + "maxLength": 50 + }, + "street2": { + "type": "string", + "minLength": 1, + "maxLength": 50 + }, + "city": { + "type": "string", + "minLength": 1, + "maxLength": 51 + } + } + }, + "usAddress": { + "type": "object", + "additionalProperties": false, + "required": [ + "street", + "city", + "state", + "postalCode" + ], + "properties": { + "street": { + "type": "string", + "minLength": 1, + "maxLength": 50 + }, + "street2": { + "type": "string", + "minLength": 1, + "maxLength": 50 + }, + "city": { + "type": "string", + "minLength": 1, + "maxLength": 51 + }, + "state": { + "type": "string", + "enum": [ + "AL", + "AK", + "AS", + "AZ", + "AR", + "AA", + "AE", + "AP", + "CA", + "CO", + "CT", + "DE", + "DC", + "FM", + "FL", + "GA", + "GU", + "HI", + "ID", + "IL", + "IN", + "IA", + "KS", + "KY", + "LA", + "ME", + "MH", + "MD", + "MA", + "MI", + "MN", + "MS", + "MO", + "MT", + "NE", + "NV", + "NH", + "NJ", + "NM", + "NY", + "NC", + "ND", + "MP", + "OH", + "OK", + "OR", + "PW", + "PA", + "PR", + "RI", + "SC", + "SD", + "TN", + "TX", + "UT", + "VT", + "VI", + "VA", + "WA", + "WV", + "WI", + "WY" + ] + }, + "postalCode": { + "type": "string", + "pattern": "^(\\d{5})(?:[-](\\d{4}))?$" + } + } + }, + "profileAddress": { + "type": "object", + "properties": { + "isMilitary": { + "type": "boolean" + }, + "view:militaryBaseDescription": { + "type": "object", + "properties": {} + }, + "country": { + "type": "string", + "enum": [ + "USA", + "AFG", + "ALB", + "DZA", + "AND", + "AGO", + "AIA", + "ATA", + "ATG", + "ARG", + "ARM", + "ABW", + "AUS", + "AUT", + "AZE", + "BHS", + "BHR", + "BGD", + "BRB", + "BLR", + "BEL", + "BLZ", + "BEN", + "BMU", + "BTN", + "BOL", + "BIH", + "BWA", + "BVT", + "BRA", + "IOT", + "BRN", + "BGR", + "BFA", + "BDI", + "KHM", + "CMR", + "CAN", + "CPV", + "CYM", + "CAF", + "TCD", + "CHL", + "CHN", + "CXR", + "CCK", + "COL", + "COM", + "COG", + "COD", + "COK", + "CRI", + "CIV", + "HRV", + "CUB", + "CYP", + "CZE", + "DNK", + "DJI", + "DMA", + "DOM", + "ECU", + "EGY", + "SLV", + "GNQ", + "ERI", + "EST", + "ETH", + "FLK", + "FRO", + "FJI", + "FIN", + "FRA", + "GUF", + "PYF", + "ATF", + "GAB", + "GMB", + "GEO", + "DEU", + "GHA", + "GIB", + "GRC", + "GRL", + "GRD", + "GLP", + "GTM", + "GIN", + "GNB", + "GUY", + "HTI", + "HMD", + "HND", + "HKG", + "HUN", + "ISL", + "IND", + "IDN", + "IRN", + "IRQ", + "IRL", + "ISR", + "ITA", + "JAM", + "JPN", + "JOR", + "KAZ", + "KEN", + "KIR", + "PRK", + "KOR", + "KWT", + "KGZ", + "LAO", + "LVA", + "LBN", + "LSO", + "LBR", + "LBY", + "LIE", + "LTU", + "LUX", + "MAC", + "MKD", + "MDG", + "MWI", + "MYS", + "MDV", + "MLI", + "MLT", + "MTQ", + "MRT", + "MUS", + "MYT", + "MEX", + "FSM", + "MDA", + "MCO", + "MNG", + "MSR", + "MAR", + "MOZ", + "MMR", + "NAM", + "NRU", + "NPL", + "ANT", + "NLD", + "NCL", + "NZL", + "NIC", + "NER", + "NGA", + "NIU", + "NFK", + "NOR", + "OMN", + "PAK", + "PAN", + "PNG", + "PRY", + "PER", + "PHL", + "PCN", + "POL", + "PRT", + "QAT", + "REU", + "ROU", + "RUS", + "RWA", + "SHN", + "KNA", + "LCA", + "SPM", + "VCT", + "SMR", + "STP", + "SAU", + "SEN", + "SCG", + "SYC", + "SLE", + "SGP", + "SVK", + "SVN", + "SLB", + "SOM", + "ZAF", + "SGS", + "ESP", + "LKA", + "SDN", + "SUR", + "SWZ", + "SWE", + "CHE", + "SYR", + "TWN", + "TJK", + "TZA", + "THA", + "TLS", + "TGO", + "TKL", + "TON", + "TTO", + "TUN", + "TUR", + "TKM", + "TCA", + "TUV", + "UGA", + "UKR", + "ARE", + "GBR", + "URY", + "UZB", + "VUT", + "VAT", + "VEN", + "VNM", + "VGB", + "WLF", + "ESH", + "YEM", + "ZMB", + "ZWE" + ], + "enumNames": [ + "United States", + "Afghanistan", + "Albania", + "Algeria", + "Andorra", + "Angola", + "Anguilla", + "Antarctica", + "Antigua", + "Argentina", + "Armenia", + "Aruba", + "Australia", + "Austria", + "Azerbaijan", + "Bahamas", + "Bahrain", + "Bangladesh", + "Barbados", + "Belarus", + "Belgium", + "Belize", + "Benin", + "Bermuda", + "Bhutan", + "Bolivia", + "Bosnia", + "Botswana", + "Bouvet Island", + "Brazil", + "British Indian Ocean Territories", + "Brunei Darussalam", + "Bulgaria", + "Burkina Faso", + "Burundi", + "Cambodia", + "Cameroon", + "Canada", + "Cape Verde", + "Cayman", + "Central African Republic", + "Chad", + "Chile", + "China", + "Christmas Island", + "Cocos Islands", + "Colombia", + "Comoros", + "Congo", + "Democratic Republic of the Congo", + "Cook Islands", + "Costa Rica", + "Ivory Coast", + "Croatia", + "Cuba", + "Cyprus", + "Czech Republic", + "Denmark", + "Djibouti", + "Dominica", + "Dominican Republic", + "Ecuador", + "Egypt", + "El Salvador", + "Equatorial Guinea", + "Eritrea", + "Estonia", + "Ethiopia", + "Falkland Islands", + "Faroe Islands", + "Fiji", + "Finland", + "France", + "French Guiana", + "French Polynesia", + "French Southern Territories", + "Gabon", + "Gambia", + "Georgia", + "Germany", + "Ghana", + "Gibraltar", + "Greece", + "Greenland", + "Grenada", + "Guadeloupe", + "Guatemala", + "Guinea", + "Guinea-Bissau", + "Guyana", + "Haiti", + "Heard Island", + "Honduras", + "Hong Kong", + "Hungary", + "Iceland", + "India", + "Indonesia", + "Iran", + "Iraq", + "Ireland", + "Israel", + "Italy", + "Jamaica", + "Japan", + "Jordan", + "Kazakhstan", + "Kenya", + "Kiribati", + "North Korea", + "South Korea", + "Kuwait", + "Kyrgyzstan", + "Laos", + "Latvia", + "Lebanon", + "Lesotho", + "Liberia", + "Libya", + "Liechtenstein", + "Lithuania", + "Luxembourg", + "Macao", + "Macedonia", + "Madagascar", + "Malawi", + "Malaysia", + "Maldives", + "Mali", + "Malta", + "Martinique", + "Mauritania", + "Mauritius", + "Mayotte", + "Mexico", + "Micronesia", + "Moldova", + "Monaco", + "Mongolia", + "Montserrat", + "Morocco", + "Mozambique", + "Myanmar", + "Namibia", + "Nauru", + "Nepal", + "Netherlands Antilles", + "Netherlands", + "New Caledonia", + "New Zealand", + "Nicaragua", + "Niger", + "Nigeria", + "Niue", + "Norfolk", + "Norway", + "Oman", + "Pakistan", + "Panama", + "Papua New Guinea", + "Paraguay", + "Peru", + "Philippines", + "Pitcairn", + "Poland", + "Portugal", + "Qatar", + "Reunion", + "Romania", + "Russia", + "Rwanda", + "Saint Helena", + "Saint Kitts and Nevis", + "Saint Lucia", + "Saint Pierre and Miquelon", + "Saint Vincent and the Grenadines", + "San Marino", + "Sao Tome and Principe", + "Saudi Arabia", + "Senegal", + "Serbia", + "Seychelles", + "Sierra Leone", + "Singapore", + "Slovakia", + "Slovenia", + "Solomon Islands", + "Somalia", + "South Africa", + "South Georgia and the South Sandwich Islands", + "Spain", + "Sri Lanka", + "Sudan", + "Suriname", + "Swaziland", + "Sweden", + "Switzerland", + "Syrian Arab Republic", + "Taiwan", + "Tajikistan", + "Tanzania", + "Thailand", + "Timor-Leste", + "Togo", + "Tokelau", + "Tonga", + "Trinidad and Tobago", + "Tunisia", + "Turkey", + "Turkmenistan", + "Turks and Caicos Islands", + "Tuvalu", + "Uganda", + "Ukraine", + "United Arab Emirates", + "United Kingdom", + "Uruguay", + "Uzbekistan", + "Vanuatu", + "Vatican", + "Venezuela", + "Vietnam", + "British Virgin Islands", + "Wallis and Futuna", + "Western Sahara", + "Yemen", + "Zambia", + "Zimbabwe" + ] + }, + "street": { + "type": "string", + "minLength": 1, + "maxLength": 100 + }, + "street2": { + "type": "string", + "minLength": 1, + "maxLength": 100 + }, + "street3": { + "type": "string", + "minLength": 1, + "maxLength": 100 + }, + "city": { + "type": "string", + "minLength": 1, + "maxLength": 100 + }, + "state": { + "type": "string" + }, + "postalCode": { + "type": "string" + } + } + }, + "phone": { + "type": "string", + "minLength": 10 + }, + "ssn": { + "type": "string", + "pattern": "^[0-9]{9}$" + }, + "ssnLastFour": { + "type": "string", + "pattern": "^(?!0000)[0-9]{4}$" + }, + "school": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "address": { + "$ref": "#/definitions/address" + } + } + }, + "centralMailVaFile": { + "type": "string", + "pattern": "^\\d{8,9}$" + }, + "bankAccount": { + "type": "object", + "properties": { + "accountType": { + "type": "string", + "enum": [ + "checking", + "savings" + ] + }, + "routingNumber": { + "type": "string", + "pattern": "^\\d{9}$" + }, + "accountNumber": { + "type": "string" + } + } + }, + "serviceBefore1977": { + "type": "object", + "properties": { + "married": { + "type": "boolean" + }, + "haveDependents": { + "type": "boolean" + }, + "parentDependent": { + "type": "boolean" + } + }, + "required": [ + "married", + "haveDependents", + "parentDependent" + ] + }, + "dateRange": { + "type": "object", + "properties": { + "from": { + "$ref": "#/definitions/date" + }, + "to": { + "$ref": "#/definitions/date" + } + } + }, + "date": { + "pattern": "^(\\d{4}|XXXX)-(0[1-9]|1[0-2]|XX)-(0[1-9]|[1-2][0-9]|3[0-1]|XX)$", + "type": "string" + }, + "nullableDate": { + "pattern": "^(\\d{4}|XXXX)-(0[1-9]|1[0-2]|XX)-(0[1-9]|[1-2][0-9]|3[0-1]|XX)$", + "type": [ + "string", + "null" + ] + }, + "minimumYearDate": { + "pattern": "^(?:19|20)[0-9][0-9]-(0[1-9]|1[0-2]|XX)-(0[1-9]|[1-2][0-9]|3[0-1]|XX)$", + "type": "string" + }, + "minimumYearDateRange": { + "type": "object", + "properties": { + "startDate": { + "$ref": "#/definitions/minimumYearDate" + }, + "endDate": { + "$ref": "#/definitions/minimumYearDate" + } + } + }, + "requiredDate": { + "type": "string", + "pattern": "^\\d{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|3[0-1])$" + }, + "rejectOnlyWhitespace": { + "pattern": "^.*\\S.*" + }, + "dischargeType": { + "type": "string", + "enum": [ + "honorable", + "general", + "other", + "bad-conduct", + "dishonorable", + "undesirable" + ] + }, + "educationType": { + "type": "string", + "enum": [ + "college", + "correspondence", + "apprenticeship", + "flightTraining", + "testReimbursement", + "licensingReimbursement", + "tuitionTopUp" + ] + }, + "educationTypeUpdate": { + "type": "string", + "enum": [ + "college", + "nonCollegeDegree", + "apprenticeship", + "flightTraining", + "testReimbursement", + "licensingReimbursement", + "prepCourseForLoC", + "correspondence" + ] + }, + "preferredContactMethod": { + "type": "string", + "enum": [ + "mail", + "email", + "mobile", + "phone" + ] + }, + "privacyAgreementAccepted": { + "type": "boolean", + "enum": [ + true + ] + }, + "gender": { + "type": "string", + "enum": [ + "F", + "M" + ] + }, + "postHighSchoolTrainings": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "city": { + "type": "string" + }, + "state": { + "type": "string", + "enum": [ + "AL", + "AK", + "AS", + "AZ", + "AR", + "AA", + "AE", + "AP", + "CA", + "CO", + "CT", + "DE", + "DC", + "FM", + "FL", + "GA", + "GU", + "HI", + "ID", + "IL", + "IN", + "IA", + "KS", + "KY", + "LA", + "ME", + "MH", + "MD", + "MA", + "MI", + "MN", + "MS", + "MO", + "MT", + "NE", + "NV", + "NH", + "NJ", + "NM", + "NY", + "NC", + "ND", + "MP", + "OH", + "OK", + "OR", + "PW", + "PA", + "PR", + "RI", + "SC", + "SD", + "TN", + "TX", + "UT", + "VT", + "VI", + "VA", + "WA", + "WV", + "WI", + "WY" + ] + }, + "dateRange": { + "$ref": "#/definitions/dateRange" + }, + "hours": { + "type": "number" + }, + "hoursType": { + "type": "string", + "enum": [ + "semester", + "quarter", + "clock" + ] + }, + "degreeReceived": { + "type": "string" + }, + "major": { + "type": "string" + } + } + } + }, + "nonMilitaryJobs": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "months": { + "type": "number" + }, + "licenseOrRating": { + "type": "string" + }, + "postMilitaryJob": { + "type": "boolean" + } + } + } + }, + "secondaryContact": { + "type": "object", + "properties": { + "fullName": { + "type": "string" + }, + "sameAddress": { + "type": "boolean" + }, + "address": { + "$ref": "#/definitions/address" + }, + "phone": { + "$ref": "#/definitions/phone" + } + } + }, + "vaFileNumber": { + "type": "string", + "pattern": "^[cC]{0,1}\\d{7,9}$" + }, + "veteranServiceNumber": { + "type": "string", + "pattern": "^[A-Z]{0,2}\\d{5,8}$" + }, + "relationship": { + "type": "string", + "enum": [ + "spouse", + "child" + ] + }, + "toursOfDuty": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateRange": { + "$ref": "#/definitions/dateRange" + }, + "serviceBranch": { + "type": "string" + }, + "serviceStatus": { + "type": "string" + }, + "applyPeriodToSelected": { + "type": "boolean" + }, + "benefitsToApplyTo": { + "type": "string" + } + }, + "required": [ + "dateRange", + "serviceBranch" + ] + } + }, + "educationProgram": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "address": { + "$ref": "#/definitions/address" + }, + "educationType": { + "$ref": "#/definitions/educationType" + } + } + }, + "currentlyActiveDuty": { + "type": "object", + "properties": { + "yes": { + "type": "boolean" + }, + "onTerminalLeave": { + "type": "boolean" + }, + "nonVaAssistance": { + "type": "boolean" + } + } + }, + "bankAccountChange": { + "type": "string", + "enum": [ + "noChange", + "startUpdate", + "stop" + ] + }, + "bankAccountChangeUpdate": { + "type": "string", + "enum": [ + "noChange", + "startUpdate" + ] + }, + "maritalStatus": { + "type": "string", + "enum": [ + "Married", + "Never Married", + "Separated", + "Widowed", + "Divorced" + ] + }, + "netWorthAccount": { + "type": "object", + "properties": { + "amount": { + "type": "integer" + }, + "interest": { + "type": "boolean" + } + } + }, + "relationshipAndChildName": { + "type": "object", + "properties": { + "relationship": { + "type": "string", + "enum": [ + "spouse", + "child", + "self" + ] + }, + "childFullName": { + "$ref": "#/definitions/fullName" + } + } + }, + "relationshipAndChildType": { + "type": "string", + "enum": [ + "spouse", + "adopted", + "biological", + "step" + ] + }, + "hcaVeteranContacts": { + "type": "array", + "items": { + "type": "object", + "properties": { + "fullName": { + "type": "object", + "properties": { + "first": { + "type": "string", + "minLength": 1, + "maxLength": 25, + "pattern": "^.*\\S.*" + }, + "middle": { + "type": "string", + "maxLength": 30 + }, + "last": { + "type": "string", + "minLength": 2, + "maxLength": 35, + "pattern": "^.*\\S.*" + }, + "suffix": { + "type": "string", + "enum": [ + "Jr.", + "Sr.", + "II", + "III", + "IV" + ] + } + }, + "required": [ + "first", + "last" + ] + }, + "primaryPhone": { + "type": "string", + "pattern": "^[0-9]{10}$" + }, + "alternatePhone": { + "type": "string", + "pattern": "^[0-9]{10}$" + }, + "address": { + "type": "object", + "oneOf": [ + { + "properties": { + "country": { + "type": "string", + "enum": [ + "CAN" + ] + }, + "state": { + "type": "string", + "enum": [ + "AB", + "BC", + "MB", + "NB", + "NL", + "NT", + "NS", + "NU", + "ON", + "PE", + "QC", + "SK", + "YT" + ] + } + } + }, + { + "properties": { + "country": { + "type": "string", + "enum": [ + "MEX" + ] + }, + "state": { + "type": "string", + "enum": [ + "aguascalientes", + "baja-california-norte", + "baja-california-sur", + "campeche", + "chiapas", + "chihuahua", + "coahuila", + "colima", + "distrito-federal", + "durango", + "guanajuato", + "guerrero", + "hidalgo", + "jalisco", + "mexico", + "michoacan", + "morelos", + "nayarit", + "nuevo-leon", + "oaxaca", + "puebla", + "queretaro", + "quintana-roo", + "san-luis-potosi", + "sinaloa", + "sonora", + "tabasco", + "tamaulipas", + "tlaxcala", + "veracruz", + "yucatan", + "zacatecas" + ] + } + } + }, + { + "properties": { + "country": { + "type": "string", + "enum": [ + "USA" + ] + }, + "state": { + "type": "string", + "enum": [ + "AL", + "AK", + "AS", + "AZ", + "AR", + "AA", + "AE", + "AP", + "CA", + "CO", + "CT", + "DE", + "DC", + "FM", + "FL", + "GA", + "GU", + "HI", + "ID", + "IL", + "IN", + "IA", + "KS", + "KY", + "LA", + "ME", + "MH", + "MD", + "MA", + "MI", + "MN", + "MS", + "MO", + "MT", + "NE", + "NV", + "NH", + "NJ", + "NM", + "NY", + "NC", + "ND", + "MP", + "OH", + "OK", + "OR", + "PW", + "PA", + "PR", + "RI", + "SC", + "SD", + "TN", + "TX", + "UT", + "VT", + "VI", + "VA", + "WA", + "WV", + "WI", + "WY" + ] + } + } + }, + { + "properties": { + "country": { + "not": { + "type": "string", + "enum": [ + "CAN", + "MEX", + "USA" + ] + } + }, + "provinceCode": { + "type": "string", + "maxLength": 51, + "pattern": "^.*\\S.*" + } + } + } + ], + "properties": { + "street": { + "type": "string", + "minLength": 1, + "maxLength": 30, + "pattern": "^.*\\S.*" + }, + "street2": { + "type": "string", + "maxLength": 30 + }, + "street3": { + "type": "string", + "maxLength": 30 + }, + "city": { + "type": "string", + "minLength": 1, + "maxLength": 30, + "pattern": "^.*\\S.*" + }, + "postalCode": { + "type": "string", + "maxLength": 51, + "pattern": "^.*\\S.*" + } + }, + "required": [ + "street", + "city", + "country" + ] + }, + "relationship": { + "type": "string", + "enum": [ + "BROTHER", + "SISTER", + "SON", + "STEPCHILD", + "UNRELATED FRIEND", + "WARD", + "WIFE", + "CHILD-IN-LAW", + "DAUGHTER", + "EXTENDED FAMILY MEMBER", + "FATHER", + "GRANDCHILD", + "HUSBAND", + "MOTHER", + "NIECE/NEPHEW" + ] + }, + "contactType": { + "type": "string", + "enum": [ + "Primary Next of Kin", + "Other Next of Kin", + "Emergency Contact", + "Other emergency contact" + ] + } + }, + "required": [ + "fullName", + "primaryPhone", + "address", + "relationship", + "contactType" + ] + } + }, + "marriages": { + "type": "array", + "items": { + "type": "object", + "properties": { + "dateOfMarriage": { + "$ref": "#/definitions/date" + }, + "locationOfMarriage": { + "type": "string" + }, + "otherExplanation": { + "type": "string" + }, + "marriageType": { + "type": "string" + }, + "spouseFullName": { + "$ref": "#/definitions/fullName" + }, + "dateOfSeparation": { + "$ref": "#/definitions/date" + }, + "locationOfSeparation": { + "type": "string" + }, + "reasonForSeparation": { + "type": "string" + } + } + } + }, + "files": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "size": { + "type": "integer" + }, + "confirmationCode": { + "type": "string" + } + } + } + }, + "requiredServiceHistory": { + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "required": [ + "serviceBranch", + "dischargeType" + ], + "properties": { + "serviceBranch": { + "type": "string" + }, + "dateRange": { + "type": "object", + "required": [ + "from", + "to" + ], + "properties": { + "from": { + "$ref": "#/definitions/date" + }, + "to": { + "$ref": "#/definitions/date" + } + } + }, + "dischargeType": { + "type": "string", + "enum": [ + "honorable", + "general", + "other", + "bad-conduct", + "dishonorable", + "undesirable" + ] + } + } + } + }, + "serviceHistory": { + "type": "array", + "items": { + "type": "object", + "properties": { + "serviceBranch": { + "type": "string" + }, + "dateRange": { + "$ref": "#/definitions/dateRange" + }, + "dischargeType": { + "type": "string", + "enum": [ + "honorable", + "general", + "other", + "bad-conduct", + "dishonorable", + "undesirable" + ] + } + } + } + }, + "usaPostalCode": { + "type": "string", + "pattern": "^(\\d{5})(?:[-](\\d{4}))?$" + }, + "centralMailAddress": { + "type": "object", + "oneOf": [ + { + "properties": { + "country": { + "type": "string", + "enum": [ + "CAN" + ] + }, + "state": { + "type": "string", + "enum": [ + "AB", + "BC", + "MB", + "NB", + "NL", + "NT", + "NS", + "NU", + "ON", + "PE", + "QC", + "SK", + "YT" + ] + }, + "postalCode": { + "type": "string", + "maxLength": 10 + } + } + }, + { + "properties": { + "country": { + "type": "string", + "enum": [ + "MEX" + ] + }, + "state": { + "type": "string", + "enum": [ + "aguascalientes", + "baja-california-norte", + "baja-california-sur", + "campeche", + "chiapas", + "chihuahua", + "coahuila", + "colima", + "distrito-federal", + "durango", + "guanajuato", + "guerrero", + "hidalgo", + "jalisco", + "mexico", + "michoacan", + "morelos", + "nayarit", + "nuevo-leon", + "oaxaca", + "puebla", + "queretaro", + "quintana-roo", + "san-luis-potosi", + "sinaloa", + "sonora", + "tabasco", + "tamaulipas", + "tlaxcala", + "veracruz", + "yucatan", + "zacatecas" + ] + }, + "postalCode": { + "type": "string", + "maxLength": 10 + } + } + }, + { + "properties": { + "country": { + "type": "string", + "enum": [ + "USA" + ] + }, + "state": { + "type": "string", + "enum": [ + "AL", + "AK", + "AS", + "AZ", + "AR", + "AA", + "AE", + "AP", + "CA", + "CO", + "CT", + "DE", + "DC", + "FM", + "FL", + "GA", + "GU", + "HI", + "ID", + "IL", + "IN", + "IA", + "KS", + "KY", + "LA", + "ME", + "MH", + "MD", + "MA", + "MI", + "MN", + "MS", + "MO", + "MT", + "NE", + "NV", + "NH", + "NJ", + "NM", + "NY", + "NC", + "ND", + "MP", + "OH", + "OK", + "OR", + "PW", + "PA", + "PR", + "RI", + "SC", + "SD", + "TN", + "TX", + "UT", + "VT", + "VI", + "VA", + "WA", + "WV", + "WI", + "WY" + ] + }, + "postalCode": { + "type": "string", + "pattern": "^(\\d{5})(?:[-](\\d{4}))?$" + } + } + }, + { + "properties": { + "country": { + "not": { + "type": "string", + "enum": [ + "CAN", + "MEX", + "USA" + ] + } + }, + "state": { + "type": "string", + "maxLength": 51 + }, + "postalCode": { + "type": "string", + "maxLength": 51 + } + } + } + ], + "properties": { + "street": { + "type": "string", + "minLength": 1, + "maxLength": 50 + }, + "street2": { + "type": "string", + "minLength": 1, + "maxLength": 50 + }, + "city": { + "type": "string", + "minLength": 1, + "maxLength": 51 + } + }, + "required": [ + "postalCode" + ] + }, + "year": { + "type": "integer", + "minimum": 1900 + }, + "form4142": { + "type": "object", + "properties": { + "limitedConsent": { + "type": "string" + }, + "providerFacility": { + "type": "array", + "required": [ + "providerFacilityName", + "treatmentDateRange", + "providerFacilityAddress" + ], + "items": { + "type": "object", + "properties": { + "providerFacilityName": { + "type": "string" + }, + "treatmentDateRange": { + "type": "array", + "items": { + "$ref": "#/definitions/dateRange" + } + }, + "providerFacilityAddress": { + "$ref": "#/definitions/centralMailAddress" + } + } + } + }, + "privacyAgreementAccepted": { + "$ref": "#/definitions/privacyAgreementAccepted" + } + } + }, + "email": { + "type": "string", + "maxLength": 256, + "format": "email" + }, + "hcaFullName": { + "type": "object", + "properties": { + "first": { + "type": "string", + "minLength": 1, + "maxLength": 25, + "pattern": "^.*\\S.*" + }, + "middle": { + "type": "string", + "maxLength": 30 + }, + "last": { + "type": "string", + "minLength": 2, + "maxLength": 35, + "pattern": "^.*\\S.*" + }, + "suffix": { + "type": "string", + "enum": [ + "Jr.", + "Sr.", + "II", + "III", + "IV" + ] + } + }, + "required": [ + "first", + "last" + ] + }, + "uuid": { + "type": "string", + "format": "uuid" + }, + "hcaMonetaryValue": { + "type": "number", + "minimum": 0, + "maximum": 9999999.99 + }, + "hcaDependents": { + "type": "array", + "items": { + "type": "object", + "properties": { + "fullName": { + "type": "object", + "properties": { + "first": { + "type": "string", + "minLength": 1, + "maxLength": 25, + "pattern": "^.*\\S.*" + }, + "middle": { + "type": "string", + "maxLength": 30 + }, + "last": { + "type": "string", + "minLength": 2, + "maxLength": 35, + "pattern": "^.*\\S.*" + }, + "suffix": { + "type": "string", + "enum": [ + "Jr.", + "Sr.", + "II", + "III", + "IV" + ] + } + }, + "required": [ + "first", + "last" + ] + }, + "dependentRelation": { + "enum": [ + "Daughter", + "Son", + "Stepson", + "Stepdaughter", + "Father", + "Mother", + "Spouse", + "Other" + ], + "type": "string" + }, + "socialSecurityNumber": { + "type": "string", + "pattern": "^[0-9]{9}$" + }, + "becameDependent": { + "format": "date", + "type": "string" + }, + "dateOfBirth": { + "format": "date", + "type": "string" + }, + "disabledBefore18": { + "type": "boolean" + }, + "attendedSchoolLastYear": { + "type": "boolean" + }, + "dependentEducationExpenses": { + "type": "number", + "minimum": 0, + "maximum": 9999999.99 + }, + "cohabitedLastYear": { + "type": "boolean" + }, + "receivedSupportLastYear": { + "type": "boolean" + }, + "grossIncome": { + "type": "number", + "minimum": 0, + "maximum": 9999999.99 + }, + "netIncome": { + "type": "number", + "minimum": 0, + "maximum": 9999999.99 + }, + "otherIncome": { + "type": "number", + "minimum": 0, + "maximum": 9999999.99 + } + } + } + }, + "hcaAddress": { + "type": "object", + "oneOf": [ + { + "properties": { + "country": { + "type": "string", + "enum": [ + "CAN" + ] + }, + "state": { + "type": "string", + "enum": [ + "AB", + "BC", + "MB", + "NB", + "NL", + "NT", + "NS", + "NU", + "ON", + "PE", + "QC", + "SK", + "YT" + ] + } + } + }, + { + "properties": { + "country": { + "type": "string", + "enum": [ + "MEX" + ] + }, + "state": { + "type": "string", + "enum": [ + "aguascalientes", + "baja-california-norte", + "baja-california-sur", + "campeche", + "chiapas", + "chihuahua", + "coahuila", + "colima", + "distrito-federal", + "durango", + "guanajuato", + "guerrero", + "hidalgo", + "jalisco", + "mexico", + "michoacan", + "morelos", + "nayarit", + "nuevo-leon", + "oaxaca", + "puebla", + "queretaro", + "quintana-roo", + "san-luis-potosi", + "sinaloa", + "sonora", + "tabasco", + "tamaulipas", + "tlaxcala", + "veracruz", + "yucatan", + "zacatecas" + ] + } + } + }, + { + "properties": { + "country": { + "type": "string", + "enum": [ + "USA" + ] + }, + "state": { + "type": "string", + "enum": [ + "AL", + "AK", + "AS", + "AZ", + "AR", + "AA", + "AE", + "AP", + "CA", + "CO", + "CT", + "DE", + "DC", + "FM", + "FL", + "GA", + "GU", + "HI", + "ID", + "IL", + "IN", + "IA", + "KS", + "KY", + "LA", + "ME", + "MH", + "MD", + "MA", + "MI", + "MN", + "MS", + "MO", + "MT", + "NE", + "NV", + "NH", + "NJ", + "NM", + "NY", + "NC", + "ND", + "MP", + "OH", + "OK", + "OR", + "PW", + "PA", + "PR", + "RI", + "SC", + "SD", + "TN", + "TX", + "UT", + "VT", + "VI", + "VA", + "WA", + "WV", + "WI", + "WY" + ] + } + } + }, + { + "properties": { + "country": { + "not": { + "type": "string", + "enum": [ + "CAN", + "MEX", + "USA" + ] + } + }, + "provinceCode": { + "type": "string", + "maxLength": 51, + "pattern": "^.*\\S.*" + } + } + } + ], + "properties": { + "street": { + "type": "string", + "minLength": 1, + "maxLength": 30, + "pattern": "^.*\\S.*" + }, + "street2": { + "type": "string", + "maxLength": 30 + }, + "street3": { + "type": "string", + "maxLength": 30 + }, + "city": { + "type": "string", + "minLength": 1, + "maxLength": 30, + "pattern": "^.*\\S.*" + }, + "postalCode": { + "type": "string", + "maxLength": 51, + "pattern": "^.*\\S.*" + } + }, + "required": [ + "street", + "city", + "country" + ] + }, + "sigiGenders": { + "type": "string", + "enum": [ + "NB", + "M", + "F", + "TM", + "TF", + "O", + "NA" + ] + }, + "hcaPhone": { + "type": "string", + "pattern": "^[0-9]{10}$" + }, + "insuranceProvider": { + "type": "object", + "properties": { + "insuranceName": { + "type": "string", + "maxLength": 100, + "pattern": "^.*\\S.*" + }, + "insurancePolicyHolderName": { + "type": "string", + "maxLength": 50, + "pattern": "^.*\\S.*" + }, + "insurancePolicyNumber": { + "type": "string", + "maxLength": 30, + "pattern": "^.*\\S.*" + }, + "insuranceGroupCode": { + "type": "string", + "maxLength": 30, + "pattern": "^.*\\S.*" + } + }, + "anyOf": [ + { + "required": [ + "insurancePolicyNumber" + ] + }, + { + "required": [ + "insuranceGroupCode" + ] + } + ] + }, + "hcaEmail": { + "type": "string", + "pattern": "^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$" + }, + "yesNoSchema": { + "type": "boolean" + }, + "benefitsIntakeFullName": { + "type": "object", + "properties": { + "first": { + "type": "string", + "minLength": 1, + "maxLength": 30, + "pattern": ".*[A-Za-z]+.*" + }, + "middle": { + "type": "string", + "maxLength": 30 + }, + "last": { + "type": "string", + "minLength": 1, + "maxLength": 30, + "pattern": ".*[A-Za-z]+.*" + }, + "suffix": { + "type": "string", + "enum": [ + "Jr.", + "Sr.", + "II", + "III", + "IV" + ] + } + }, + "required": [ + "first", + "last" + ] + } + }, + "properties": { + "institutionDetails": { + "type": "object", + "required": [ + "institutionName", + "facilityCode", + "termStartDate" + ], + "properties": { + "institutionName": { + "type": "string" + }, + "facilityCode": { + "type": "string" + }, + "termStartDate": { + "$ref": "#/definitions/date" + }, + "dateOfCalculations": { + "$ref": "#/definitions/date" + } + } + }, + "studentRatioCalcChapter": { + "type": "object", + "required": [ + "beneficiaryStudent", + "numOfStudent", + "dateOfCalculation" + ], + "properties": { + "beneficiaryStudent": { + "type": "number" + }, + "numOfStudent": { + "type": "number" + }, + "dateOfCalculation": { + "$ref": "#/definitions/date" + } + } + } + } +} diff --git a/package.json b/package.json index 72a83065..a133d87f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vets-json-schema", - "version": "24.6.2", + "version": "24.6.3", "license": "CC0-1.0", "repository": { "type": "git",