Created
August 15, 2019 09:50
-
-
Save JamesGardiner/fe0cfbd6a85ee0045134b8fb65a54eff to your computer and use it in GitHub Desktop.
hh-accomodation-eng-wls-changes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data_version": "0.0.3", | |
"description": "Census England Household Schema", | |
"hub": { | |
"enabled": true | |
}, | |
"legal_basis": "Voluntary", | |
"metadata": [ | |
{ | |
"name": "user_id", | |
"type": "string" | |
}, | |
{ | |
"name": "period_id", | |
"type": "string" | |
}, | |
{ | |
"name": "display_address", | |
"type": "string" | |
} | |
], | |
"mime_type": "application/json/ons/eq", | |
"navigation": { | |
"visible": false | |
}, | |
"schema_version": "0.0.1", | |
"sections": [ | |
{ | |
"groups": [ | |
{ | |
"blocks": [ | |
{ | |
"content": { | |
"contents": [ | |
{ | |
"description": "In this section, we’re going to ask you about the accommodation you live in." | |
}, | |
{ | |
"list": [ | |
"Type of property, and if it’s owned or rented", | |
"Type of landlord if rented, for example housing association, council or private", | |
"Type of central heating" | |
], | |
"title": "You will need to know" | |
} | |
], | |
"title": "Household accommodation" | |
}, | |
"id": "accommodation-introduction", | |
"type": "Interstitial" | |
}, | |
{ | |
"id": "accommodation-type", | |
"question": { | |
"answers": [ | |
{ | |
"id": "accommodation-type-answer", | |
"mandatory": false, | |
"options": [ | |
{ | |
"label": "Whole house or bungalow", | |
"value": "Whole house or bungalow" | |
}, | |
{ | |
"description": "Including purpose-built flats and flats within converted and shared houses", | |
"label": "Flat, maisonette or apartment", | |
"value": "Flat, maisonette or apartment" | |
}, | |
{ | |
"label": "Caravan or other mobile or temporary structure", | |
"value": "Caravan or other mobile or temporary structure" | |
} | |
], | |
"type": "Radio" | |
} | |
], | |
"id": "accommodation-type-question", | |
"title": { | |
"placeholders": [ | |
{ | |
"placeholder": "address", | |
"value": { | |
"identifier": "display_address", | |
"source": "metadata" | |
} | |
} | |
], | |
"text": "What type of accommodation is <em>{address}</em>?" | |
}, | |
"type": "General" | |
}, | |
"routing_rules": [ | |
{ | |
"goto": { | |
"block": "type-of-house", | |
"when": [ | |
{ | |
"condition": "equals", | |
"id": "accommodation-type-answer", | |
"value": "Whole house or bungalow" | |
} | |
] | |
} | |
}, | |
{ | |
"goto": { | |
"block": "type-of-flat", | |
"when": [ | |
{ | |
"condition": "equals", | |
"id": "accommodation-type-answer", | |
"value": "Flat, maisonette or apartment" | |
} | |
] | |
} | |
}, | |
{ | |
"goto": { | |
"block": "self-contained" | |
} | |
} | |
], | |
"type": "Question" | |
}, | |
{ | |
"id": "type-of-house", | |
"question": { | |
"answers": [ | |
{ | |
"id": "type-of-house-answer", | |
"mandatory": false, | |
"options": [ | |
{ | |
"label": "Detached", | |
"value": "Detached" | |
}, | |
{ | |
"label": "Semi-detached", | |
"value": "Semi-detached" | |
}, | |
{ | |
"description": "Including end-terrace", | |
"label": "Terraced", | |
"value": "Terraced" | |
} | |
], | |
"type": "Radio" | |
} | |
], | |
"id": "type-of-house-question", | |
"title": "Which of the following is your house or bungalow?", | |
"type": "General" | |
}, | |
"routing_rules": [ | |
{ | |
"goto": { | |
"block": "self-contained" | |
} | |
} | |
], | |
"type": "Question" | |
}, | |
{ | |
"id": "type-of-flat", | |
"question": { | |
"answers": [ | |
{ | |
"id": "type-of-flat-answer", | |
"mandatory": false, | |
"options": [ | |
{ | |
"label": "In a purpose-built block of flats or tenement", | |
"value": "In a purpose-built block of flats or tenement" | |
}, | |
{ | |
"description": "Including bedsits", | |
"label": "Part of a converted or shared house", | |
"value": "Part of a converted or shared house" | |
}, | |
{ | |
"description": "For example, in an office building, hotel, or over a shop", | |
"label": "In a commercial building", | |
"value": "In a commercial building" | |
} | |
], | |
"type": "Radio" | |
} | |
], | |
"id": "type-of-flat-question", | |
"title": "Where is your flat, maisonette or apartment?", | |
"type": "General" | |
}, | |
"routing_rules": [ | |
{ | |
"goto": { | |
"block": "self-contained" | |
} | |
} | |
], | |
"type": "Question" | |
}, | |
{ | |
"id": "self-contained", | |
"question": { | |
"answers": [ | |
{ | |
"id": "self-contained-answer", | |
"mandatory": false, | |
"options": [ | |
{ | |
"label": "Yes", | |
"value": "Yes" | |
}, | |
{ | |
"label": "No, one or more rooms are shared with another household", | |
"value": "No" | |
} | |
], | |
"type": "Radio" | |
} | |
], | |
"definitions": [ | |
{ | |
"contents": [ | |
{ | |
"description": "One person living alone; or a group of people, who are not necessarily related, living at the same address who share cooking facilities and share a living room or sitting room or dining area." | |
} | |
], | |
"title": "What is a “household”?" | |
} | |
], | |
"id": "self-contained-question", | |
"title": "Are all the rooms in this accommodation, including the kitchen, bathroom and toilet, behind a door that only this household can use?", | |
"type": "General" | |
}, | |
"type": "Question" | |
}, | |
{ | |
"id": "number-of-bedrooms", | |
"question": { | |
"answers": [ | |
{ | |
"id": "number-of-bedrooms-answer", | |
"label": "Number of bedrooms", | |
"mandatory": false, | |
"max_value": { | |
"value": 99 | |
}, | |
"type": "Number" | |
} | |
], | |
"guidance": { | |
"contents": [ | |
{ | |
"title": "Include all rooms built or converted for use as bedrooms" | |
} | |
] | |
}, | |
"id": "number-of-bedrooms-question", | |
"title": "How many bedrooms are available for use only by this household?", | |
"type": "General" | |
}, | |
"routing_rules": [ | |
{ | |
"goto": { | |
"block": "central-heating" | |
} | |
} | |
], | |
"type": "Question" | |
}, | |
{ | |
"id": "central-heating", | |
"question": { | |
"answers": [ | |
{ | |
"id": "central-heating-answer", | |
"mandatory": false, | |
"options": [ | |
{ | |
"label": "No central heating", | |
"value": "No central heating" | |
}, | |
{ | |
"label": "Mains gas", | |
"value": "Mains gas" | |
}, | |
{ | |
"label": "Tank or bottled gas", | |
"value": "Tank or bottled gas" | |
}, | |
{ | |
"description": "Including storage heaters", | |
"label": "Electric", | |
"value": "Electric" | |
}, | |
{ | |
"label": "Oil", | |
"value": "Oil" | |
}, | |
{ | |
"description": "For example, logs, waste wood or pellets", | |
"label": "Wood", | |
"value": "Wood" | |
}, | |
{ | |
"description": "For example, coal", | |
"label": "Solid fuel", | |
"value": "Solid fuel" | |
}, | |
{ | |
"description": "For example, solar thermal or heat pumps", | |
"label": "Renewable energy", | |
"value": "Renewable energy" | |
}, | |
{ | |
"label": "District or communal heat networks", | |
"value": "District or communal heat networks" | |
}, | |
{ | |
"label": "Other", | |
"value": "Other" | |
} | |
], | |
"type": "Checkbox" | |
} | |
], | |
"guidance": { | |
"contents": [ | |
{ | |
"title": "Include central heating systems that generate heat for multiple rooms whether or not you use them" | |
} | |
] | |
}, | |
"id": "central-heating-question", | |
"title": { | |
"placeholders": [ | |
{ | |
"placeholder": "address", | |
"value": { | |
"identifier": "display_address", | |
"source": "metadata" | |
} | |
} | |
], | |
"text": "What type of central heating does <em>{address}</em> have?" | |
}, | |
"type": "General" | |
}, | |
"type": "Question" | |
}, | |
{ | |
"id": "own-or-rent", | |
"question": { | |
"answers": [ | |
{ | |
"id": "own-or-rent-answer", | |
"mandatory": true, | |
"options": [ | |
{ | |
"label": "Owns outright", | |
"value": "Owns outright" | |
}, | |
{ | |
"label": "Owns with a mortgage or loan", | |
"value": "Owns with a mortgage or loan" | |
}, | |
{ | |
"description": "Shared ownership", | |
"label": "Part owns and part rents", | |
"value": "Part owns and part rents" | |
}, | |
{ | |
"description": "With or without housing benefit", | |
"label": "Rents", | |
"value": "Rents" | |
}, | |
{ | |
"label": "Lives here rent free", | |
"value": "Lives here rent free" | |
} | |
], | |
"type": "Radio" | |
} | |
], | |
"id": "own-or-rent-question", | |
"title": { | |
"placeholders": [ | |
{ | |
"placeholder": "address", | |
"value": { | |
"identifier": "display_address", | |
"source": "metadata" | |
} | |
} | |
], | |
"text": "Does your household own or rent <em>{address}</em>?" | |
}, | |
"type": "General" | |
}, | |
"routing_rules": [ | |
{ | |
"goto": { | |
"block": "number-of-vehicles", | |
"when": [ | |
{ | |
"condition": "equals", | |
"id": "own-or-rent-answer", | |
"value": "Owns outright" | |
} | |
] | |
} | |
}, | |
{ | |
"goto": { | |
"block": "number-of-vehicles", | |
"when": [ | |
{ | |
"condition": "equals", | |
"id": "own-or-rent-answer", | |
"value": "Owns with a mortgage or loan" | |
} | |
] | |
} | |
}, | |
{ | |
"goto": { | |
"block": "who-rent-from" | |
} | |
} | |
], | |
"type": "Question" | |
}, | |
{ | |
"id": "who-rent-from", | |
"question": { | |
"answers": [ | |
{ | |
"id": "who-rent-from-answer", | |
"mandatory": false, | |
"options": [ | |
{ | |
"label": "Housing association, housing co-operative, charitable trust, registered social landlord", | |
"value": "Housing association, housing co-operative, charitable trust, registered social landlord" | |
}, | |
{ | |
"label": "Council or local authority", | |
"value": "Council or local authority" | |
}, | |
{ | |
"label": "Private landlord or letting agency", | |
"value": "Private landlord or letting agency" | |
}, | |
{ | |
"label": "Employer of a household member", | |
"value": "Employer of a household member" | |
}, | |
{ | |
"label": "Relative or friend of a household member", | |
"value": "Relative or friend of a household member" | |
}, | |
{ | |
"label": "Other", | |
"value": "Other" | |
} | |
], | |
"type": "Radio" | |
} | |
], | |
"id": "who-rent-from-question", | |
"title": "Who is your landlord?", | |
"type": "General" | |
}, | |
"type": "Question" | |
}, | |
{ | |
"id": "number-of-vehicles", | |
"question": { | |
"answers": [ | |
{ | |
"id": "number-of-vehicles-answer", | |
"mandatory": false, | |
"options": [ | |
{ | |
"label": "None", | |
"value": "None" | |
}, | |
{ | |
"label": "1", | |
"value": "1" | |
}, | |
{ | |
"label": "2", | |
"value": "2" | |
}, | |
{ | |
"label": "3", | |
"value": "3" | |
}, | |
{ | |
"description": "Select to enter number", | |
"detail_answer": { | |
"id": "number-of-vehicles-answer-other", | |
"label": "Enter the number of cars or vans", | |
"mandatory": false, | |
"type": "TextField" | |
}, | |
"label": "4 or more", | |
"value": "4 or more" | |
} | |
], | |
"type": "Radio" | |
} | |
], | |
"guidance": { | |
"contents": [ | |
{ | |
"title": "Include any company cars or vans available for private use." | |
} | |
] | |
}, | |
"id": "number-of-vehicles-question", | |
"title": "In total, how many cars or vans are owned, or available for use, by members of this household?", | |
"type": "General" | |
}, | |
"type": "Question" | |
}, | |
{ | |
"id": "currency-section-summary", | |
"type": "SectionSummary" | |
} | |
], | |
"id": "accommodation-group", | |
"title": "Household accommodation" | |
} | |
], | |
"id": "accommodation-section", | |
"title": "Household accommodation" | |
} | |
], | |
"survey_id": "census", | |
"theme": "census", | |
"title": "2019 Census Test" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment