diff --git a/schemas/business/en/qsl_0002.json b/schemas/business/en/qsl_0002.json new file mode 100644 index 00000000..ee4873e2 --- /dev/null +++ b/schemas/business/en/qsl_0002.json @@ -0,0 +1,1020 @@ +{ + "language": "en", + "mime_type": "application/json/ons/eq", + "schema_version": "0.0.1", + "data_version": "0.0.3", + "preview_questions": false, + "survey_id": "066", + "form_type": "0002", + "legal_basis": "Notice is given under section 1 of the Statistics of Trade Act 1947.", + "answer_codes": [ + { + "answer_id": "answerb427a398-480d-4fc1-91d6-b930a869315e", + "code": "999" + }, + { + "answer_id": "answer3d5784ee-9741-4589-8d28-f192cbab50c9", + "code": "996" + }, + { + "answer_id": "answer98bc5bc5-b9af-4fae-aa4e-64e810357300", + "code": "601" + }, + { + "answer_id": "answer2a6ee61e-c40e-4d26-a507-5cebb8bf7e0d", + "code": "602" + }, + { + "answer_id": "answer1171dbc1-0882-451b-8437-6adebe9e349e", + "code": "603" + }, + { + "answer_id": "answer62d1d1aa-af02-4c19-ba7d-25e8a5dd43f7", + "code": "604" + }, + { + "answer_id": "answerc241e62b-71c3-47e1-9acd-44d3e2bc8987", + "code": "605" + }, + { + "answer_id": "answer3b391445-02ec-4af2-8c71-410e74a7dac1", + "code": "606" + }, + { + "answer_id": "answer728f5cf3-eb42-4476-801d-d8cbad4cc113", + "code": "607" + }, + { + "answer_id": "answer09667e4f-0d8d-4142-b6c9-25c06653b619", + "code": "147" + }, + { + "answer_id": "answer82187e34-59f3-4d9a-a040-8313229698a3", + "code": "146" + } + ], + "title": "Quarterly Survey of Building Materials Sand and Gravel (land-won)", + "questionnaire_flow": { + "type": "Hub", + "options": { + "required_completed_sections": [ + "section94239ebc-f85a-4a9d-8178-cc640a9d726a" + ] + } + }, + "sections": [ + { + "id": "section94239ebc-f85a-4a9d-8178-cc640a9d726a", + "title": "Introduction", + "show_on_hub": false, + "groups": [ + { + "id": "group94239ebc-f85a-4a9d-8178-cc640a9d726a", + "title": "Introduction", + "blocks": [ + { + "id": "introduction", + "type": "Introduction", + "primary_content": [ + { + "id": "primary", + "title": { + "text": "You are completing this for {ru_name} {trad_as}", + "placeholders": [ + { + "placeholder": "ru_name", + "value": { + "source": "metadata", + "identifier": "ru_name" + } + }, + { + "placeholder": "trad_as", + "transforms": [ + { + "transform": "conditional_trad_as", + "arguments": { + "trad_as": { + "source": "metadata", + "identifier": "trad_as" + } + } + } + ] + } + ] + }, + "contents": [ + { + "description": { + "text": "If the company details or structure have changed contact us on {telephone_number_link} or email {email_link}", + "placeholders": [ + { + "placeholder": "telephone_number_link", + "transforms": [ + { + "transform": "telephone_number_link", + "arguments": { + "telephone_number": "0300 1234 931" + } + } + ] + }, + { + "placeholder": "email_link", + "transforms": [ + { + "transform": "email_link", + "arguments": { + "email_address": "surveys@ons.gov.uk", + "email_subject": "Change of details", + "email_subject_append": { + "identifier": "ru_ref", + "source": "metadata" + } + } + } + ] + } + ] + } + } + ] + }, + { + "id": "additional-guidance", + "contents": [ + { + "guidance": { + "contents": [ + { + "title": "Important Notice" + }, + { + "description": "This questionnaire has been designed for online mode. You may notice changes compared with the paper version, such as to the ordering of questions and sections." + }, + { + "description": "There is additional guidance throughout the questionnaire. However, if you require support then please contact us on 0300 1234 931 or via email at surveys@ons.gov.uk." + } + ] + } + } + ] + }, + { + "id": "description", + "contents": [ + { + "list": [ + "You have been selected to complete the Quarterly Survey of Building Materials Sand and Gravel (Land-won).", + "This survey is conducted by the Office for National Statistics on behalf of the Department for Business and Trade (DBT).", + { + "text": "Data should relate to your business's local unit {localunits_name}, {localunits_address}.", + "placeholders": [ + { + "placeholder": "localunits_name", + "value": { + "source": "supplementary_data", + "identifier": "local-units", + "selectors": ["name"] + } + }, + { + "placeholder": "localunits_address", + "transforms": [ + { + "transform": "concatenate_list", + "arguments": { + "list_to_concatenate": [ + { + "source": "supplementary_data", + "identifier": "local-units", + "selectors": ["address"] + } + ], + "delimiter": ", " + } + } + ] + } + ] + }, + "We will treat your data securely and confidentially.", + "You cannot appeal your selection. Your business was selected to give us a comprehensive view of the UK economy.", + "You still need to complete this survey even if it does not seem relevant. All returns are important as it helps us produce better statistics.", + "You can provide informed estimates if actual figures are not available.", + "You can save a copy of your answers at the end of this questionnaire using the ‘Download as PDF’ button." + ] + } + ] + } + ], + "preview_content": { + "id": "preview", + "title": "Information you need", + "contents": [ + { + "description": "This survey collects information on land-won, blasted and recycled sand and gravel your business has sold in the reporting period." + }, + { + "description": "View more information about this survey (this link opens in a new tab)" + }, + { + "description": { + "text": "Data you provide should relate to your business's local unit {localunits_name}, {localunits_address}.", + "placeholders": [ + { + "placeholder": "localunits_name", + "value": { + "source": "supplementary_data", + "identifier": "local-units", + "selectors": ["name"] + } + }, + { + "placeholder": "localunits_address", + "transforms": [ + { + "transform": "concatenate_list", + "arguments": { + "list_to_concatenate": [ + { + "source": "supplementary_data", + "identifier": "local-units", + "selectors": ["address"] + } + ], + "delimiter": ", " + } + } + ] + } + ] + } + }, + { + "description": "The materials included in this survey are:" + }, + { + "list": [ + "sand", + "gravel, pebbles, shingle and flint", + "sand and gravel used for constructional fill" + ] + }, + { + "description": "The survey has the following section:" + } + ], + "questions": [ + { + "question": "Details of sales for your business's local unit", + "contents": [ + { + "description": { + "text": "This section asks for confirmation of the materials sold for the period {ref_p_start_date} to {ref_p_end_date} and the details of sales for the materials you have selected.", + "placeholders": [ + { + "placeholder": "ref_p_start_date", + "transforms": [ + { + "transform": "format_date", + "arguments": { + "date_to_format": { + "source": "metadata", + "identifier": "ref_p_start_date" + }, + "date_format": "d MMMM yyyy" + } + } + ] + }, + { + "placeholder": "ref_p_end_date", + "transforms": [ + { + "transform": "format_date", + "arguments": { + "date_to_format": { + "source": "metadata", + "identifier": "ref_p_end_date" + }, + "date_format": "d MMMM yyyy" + } + } + ] + } + ] + } + }, + { + "description": "This includes:" + }, + { + "description": "Sand:" + }, + { + "list": [ + "sand produced for asphalt", + "sand produced for use in mortar", + "sand produced for concreting" + ] + }, + { + "description": "Gravel, pebbles, shingle and flint:" + }, + { + "list": [ + "gravel coated with bituminous binder", + "gravel produced for concrete aggregate", + "other screened and graded gravels" + ] + }, + { + "description": "Sand and gravel used for constructional fill" + }, + { + "description": "Report your figures in tonnes." + } + ] + } + ] + }, + "secondary_content": [ + { + "id": "secondary-content", + "contents": [ + { + "title": "How we use your data" + }, + { + "list": [ + "DBT uses the information for monitoring trends in the construction industries.", + "For the benefit of industry, and the public generally, building materials information is published by DBT in their Monthly Statistics of Building Materials & Components (this link opens in a new tab)." + ] + } + ] + } + ] + } + ] + } + ], + "repeat": { + "for_list": "local-units", + "title": { + "text": "Details of sales for {localunits_name}", + "placeholders": [ + { + "placeholder": "localunits_name", + "value": { + "source": "supplementary_data", + "identifier": "local-units", + "selectors": ["name"] + } + } + ] + } + } + }, + { + "id": "details-of-sales-section", + "title": "Details of sales for [local-units - name]", + "repeat": { + "for_list": "local-units", + "title": { + "text": "Details of sales for {localunits_name}", + "placeholders": [ + { + "placeholder": "localunits_name", + "value": { + "source": "supplementary_data", + "identifier": "local-units", + "selectors": ["name"] + } + } + ] + } + }, + "summary": { + "show_on_completion": true, + "page_title": "Details of sales section", + "collapsible": false + }, + "show_on_hub": true, + "groups": [ + { + "id": "groupdetails-of-sales-section", + "blocks": [ + { + "type": "Interstitial", + "id": "details-of-sales-introduction", + "page_title": "Details of sales introduction", + "content": { + "title": { + "text": "Details of sales for {localunits_name}", + "placeholders": [ + { + "placeholder": "localunits_name", + "value": { + "source": "supplementary_data", + "identifier": "local-units", + "selectors": ["name"] + } + } + ] + }, + "contents": [ + { + "description": { + "text": "This section asks for confirmation of the materials sold for the period {ref_p_start_date} to {ref_p_end_date} and the details of sales for the materials you have selected.", + "placeholders": [ + { + "placeholder": "ref_p_start_date", + "transforms": [ + { + "transform": "format_date", + "arguments": { + "date_to_format": { + "source": "metadata", + "identifier": "ref_p_start_date" + }, + "date_format": "d MMMM yyyy" + } + } + ] + }, + { + "placeholder": "ref_p_end_date", + "transforms": [ + { + "transform": "format_date", + "arguments": { + "date_to_format": { + "source": "metadata", + "identifier": "ref_p_end_date" + }, + "date_format": "d MMMM yyyy" + } + } + ] + } + ] + } + }, + { + "description": { + "text": "Complete this section for the local unit {localunits_name}, {localunits_address}.", + "placeholders": [ + { + "placeholder": "localunits_name", + "value": { + "source": "supplementary_data", + "identifier": "local-units", + "selectors": ["name"] + } + }, + { + "placeholder": "localunits_address", + "transforms": [ + { + "transform": "concatenate_list", + "arguments": { + "list_to_concatenate": [ + { + "source": "supplementary_data", + "identifier": "local-units", + "selectors": ["address"] + } + ], + "delimiter": ", " + } + } + ] + } + ] + } + }, + { + "description": "This includes:" + }, + { + "description": "Sand:" + }, + { + "list": [ + "sand produced for asphalt", + "sand produced for use in mortar", + "sand produced for concreting" + ] + }, + { + "description": "Gravel, pebbles, shingle and flint:" + }, + { + "list": [ + "gravel coated with bituminous binder", + "gravel produced for concrete aggregate", + "other screened and graded gravels" + ] + }, + { + "description": "Sand and gravel used for constructional fill" + }, + { + "description": "Report your figures in tonnes." + } + ] + } + }, + { + "id": "material-type-sold", + "type": "Question", + "question": { + "id": "questionmaterial-type-sold", + "title": { + "text": "For the period {ref_p_start_date} to {ref_p_end_date}, which of the following land-won, blasted and recycled materials has {ru_name} sold?", + "placeholders": [ + { + "placeholder": "ref_p_start_date", + "transforms": [ + { + "transform": "format_date", + "arguments": { + "date_to_format": { + "source": "metadata", + "identifier": "ref_p_start_date" + }, + "date_format": "d MMMM yyyy" + } + } + ] + }, + { + "placeholder": "ref_p_end_date", + "transforms": [ + { + "transform": "format_date", + "arguments": { + "date_to_format": { + "source": "metadata", + "identifier": "ref_p_end_date" + }, + "date_format": "d MMMM yyyy" + } + } + ] + }, + { + "placeholder": "ru_name", + "value": { + "source": "metadata", + "identifier": "ru_name" + } + } + ] + }, + "guidance": { + "contents": [ + { + "description": "Include:" + }, + { + "list": [ + "material raised for your business's own use", + "only material actually produced or processed for recycling by your firm", + "land-won material that is river or beach working" + ] + } + ] + }, + "type": "MutuallyExclusive", + "mandatory": true, + "answers": [ + { + "id": "answerb427a398-480d-4fc1-91d6-b930a869315e", + "mandatory": false, + "type": "Checkbox", + "options": [ + { + "label": "Sand", + "value": "Sand", + "description": "Exclude material for constructional fill" + }, + { + "label": "Gravel, Pebbles, Shingle, Flint", + "value": "Gravel, Pebbles, Shingle, Flint", + "description": "Exclude material for constructional fill" + }, + { + "label": "Sand and gravel used for constructional fill", + "value": "Sand and gravel used for constructional fill" + } + ] + }, + { + "id": "answer3d5784ee-9741-4589-8d28-f192cbab50c9", + "mandatory": false, + "type": "Checkbox", + "options": [ + { + "label": "None of the above", + "value": "None of the above" + } + ] + } + ] + }, + "page_title": "Material type sold" + }, + { + "id": "sales-for-sand", + "type": "Question", + "question": { + "id": "questionsales-for-sand", + "title": "For the reporting period, what are the details of sales for land-won, blasted and recycled sand?", + "description": [ + "

Informed estimates are acceptable.

Report your figures in tonnes.

" + ], + "guidance": { + "contents": [ + { + "description": "Exclude material for constructional fill" + } + ] + }, + "type": "General", + "answers": [ + { + "id": "answer98bc5bc5-b9af-4fae-aa4e-64e810357300", + "mandatory": true, + "type": "Unit", + "label": "Sand produced for asphalt", + "description": "This is also referred to as asphalting sand", + "unit": "mass-tonne", + "unit_length": "short", + "decimal_places": 0 + }, + { + "id": "answer2a6ee61e-c40e-4d26-a507-5cebb8bf7e0d", + "mandatory": true, + "type": "Unit", + "label": "Sand produced for use in mortar", + "description": "This is also referred to as building or soft sand", + "unit": "mass-tonne", + "unit_length": "short", + "decimal_places": 0 + }, + { + "id": "answer1171dbc1-0882-451b-8437-6adebe9e349e", + "mandatory": true, + "type": "Unit", + "label": "Sand produced for concreting", + "description": "This is also referred to as sharp sand", + "unit": "mass-tonne", + "unit_length": "short", + "decimal_places": 0 + } + ] + }, + "page_title": "Sales for sand", + "skip_conditions": { + "when": { + "not": [ + { + "any-in": [ + ["Sand"], + { + "identifier": "answerb427a398-480d-4fc1-91d6-b930a869315e", + "source": "answers" + } + ] + } + ] + } + } + }, + { + "id": "sales-for-gravel-pebbles-shingle-and-flint", + "type": "Question", + "question": { + "id": "questionsales-for-gravel-pebbles-shingle-and-flint", + "title": "For the reporting period, what are the details of sales for land-won, blasted and recycled gravel, pebbles, shingle and flint?", + "description": [ + "

Informed estimates are acceptable

Report your figures in tonnes.

" + ], + "guidance": { + "contents": [ + { + "description": "Exclude material for constructional fill" + } + ] + }, + "type": "General", + "answers": [ + { + "id": "answer62d1d1aa-af02-4c19-ba7d-25e8a5dd43f7", + "mandatory": true, + "type": "Unit", + "label": "Gravel coated with bituminous binder", + "description": "Include on or off site", + "unit": "mass-tonne", + "unit_length": "short", + "decimal_places": 0 + }, + { + "id": "answerc241e62b-71c3-47e1-9acd-44d3e2bc8987", + "mandatory": true, + "type": "Unit", + "label": "Gravel produced for concrete aggregate", + "description": "Include sand and gravel mixes", + "unit": "mass-tonne", + "unit_length": "short", + "decimal_places": 0 + }, + { + "id": "answer3b391445-02ec-4af2-8c71-410e74a7dac1", + "mandatory": true, + "type": "Unit", + "label": "Other screened and graded gravels", + "unit": "mass-tonne", + "unit_length": "short", + "decimal_places": 0 + } + ] + }, + "page_title": "Sales for gravel, pebbles, shingle and flint", + "skip_conditions": { + "when": { + "not": [ + { + "any-in": [ + ["Gravel, Pebbles, Shingle, Flint"], + { + "identifier": "answerb427a398-480d-4fc1-91d6-b930a869315e", + "source": "answers" + } + ] + } + ] + } + } + }, + { + "id": "sales-for-sand-and-gravel-used-for-constructional-fill", + "type": "Question", + "question": { + "id": "questionsales-for-sand-and-gravel-used-for-constructional-fill", + "title": "For the reporting period, what are the details of sales for sand and gravel used for constructional fill?", + "description": [ + "

Informed estimates are acceptable

Report your figures in tonnes.

" + ], + "type": "General", + "answers": [ + { + "id": "answer728f5cf3-eb42-4476-801d-d8cbad4cc113", + "mandatory": true, + "type": "Unit", + "label": "Sand and gravel used for constructional fill", + "unit": "mass-tonne", + "unit_length": "short", + "decimal_places": 0 + } + ] + }, + "page_title": "Sales for sand and gravel used for constructional fill", + "skip_conditions": { + "when": { + "not": [ + { + "any-in": [ + ["Sand and gravel used for constructional fill"], + { + "identifier": "answerb427a398-480d-4fc1-91d6-b930a869315e", + "source": "answers" + } + ] + } + ] + } + } + }, + { + "id": "calculated-summary-section", + "type": "CalculatedSummary", + "page_title": "Calculated summary section", + "title": "We have calculated your business's total quantity of land-won, blasted and recycled materials sold during the reporting period, to be %(total)s. Is this correct?", + "calculation": { + "operation": { + "+": [ + { + "identifier": "answer98bc5bc5-b9af-4fae-aa4e-64e810357300", + "source": "answers" + }, + { + "identifier": "answer2a6ee61e-c40e-4d26-a507-5cebb8bf7e0d", + "source": "answers" + }, + { + "identifier": "answer1171dbc1-0882-451b-8437-6adebe9e349e", + "source": "answers" + }, + { + "identifier": "answer62d1d1aa-af02-4c19-ba7d-25e8a5dd43f7", + "source": "answers" + }, + { + "identifier": "answerc241e62b-71c3-47e1-9acd-44d3e2bc8987", + "source": "answers" + }, + { + "identifier": "answer3b391445-02ec-4af2-8c71-410e74a7dac1", + "source": "answers" + }, + { + "identifier": "answer728f5cf3-eb42-4476-801d-d8cbad4cc113", + "source": "answers" + } + ] + }, + "title": "Total quantity of land-won, blasted and recycled materials sold" + }, + "skip_conditions": { + "when": { + "not": [ + { + "any-in": [ + [ + "Sand", + "Sand and gravel used for constructional fill", + "Gravel, Pebbles, Shingle, Flint" + ], + { + "identifier": "answerb427a398-480d-4fc1-91d6-b930a869315e", + "source": "answers" + } + ] + } + ] + } + } + } + ] + } + ] + }, + { + "id": "1dabd959-4cfe-4be4-b356-eaab8f1a9620", + "title": "Comments", + "summary": { + "show_on_completion": false, + "page_title": "Comments section", + "collapsible": false + }, + "show_on_hub": true, + "groups": [ + { + "id": "group1dabd959-4cfe-4be4-b356-eaab8f1a9620", + "blocks": [ + { + "id": "new-pits-and-quarries", + "type": "Question", + "question": { + "id": "questionnew-pits-and-quarries", + "title": "Please provide details of any new pits or quarries your business has brought into use since your last return", + "guidance": { + "contents": [ + { + "description": "Include any sites that process land-won, blasted and recycled sand and gravel" + } + ] + }, + "type": "General", + "answers": [ + { + "id": "answer09667e4f-0d8d-4142-b6c9-25c06653b619", + "mandatory": false, + "type": "TextArea", + "label": "Comments", + "max_length": 2000 + } + ] + }, + "page_title": "New pits and quarries", + "skip_conditions": { + "when": { + "==": [ + { + "identifier": "answerb427a398-480d-4fc1-91d6-b930a869315e", + "source": "answers" + }, + null + ] + } + } + }, + { + "id": "comments", + "type": "Question", + "question": { + "id": "questioncomments", + "title": "Please provide any further details that will help us understand your figures and tell an industry story", + "description": [ + "

You have nearly finished. Make sure you continue to the next page and select 'submit' at the bottom.

" + ], + "guidance": { + "contents": [ + { + "description": "Include reasons for any substantial fluctuations compared to your previous return" + }, + { + "description": "For example:" + }, + { + "list": [ + "site closures", + "reason for site closures, such as planning permission or demand pending", + "site maintenance", + "site breakdowns", + "new contract demands, such as infrastructure", + "any change in contacts", + "extreme weather or wildlife restrictions", + "any sites you are not currently reporting for" + ] + } + ] + }, + "type": "General", + "answers": [ + { + "id": "answer82187e34-59f3-4d9a-a040-8313229698a3", + "mandatory": false, + "type": "TextArea", + "label": "Comments", + "max_length": 2000 + } + ] + }, + "page_title": "Comments" + } + ] + } + ] + } + ], + "theme": "dbt", + "navigation": { + "visible": false + }, + "metadata": [ + { + "name": "ru_name", + "type": "string" + }, + { + "name": "trad_as", + "type": "string", + "optional": true + }, + { + "name": "period_id", + "type": "string" + }, + { + "name": "ref_p_start_date", + "type": "date" + }, + { + "name": "ref_p_end_date", + "type": "date" + }, + { + "name": "user_id", + "type": "string" + }, + { + "name": "ru_ref", + "type": "string" + } + ], + "supplementary_data": { + "lists": ["local-units"] + }, + "post_submission": { + "feedback": true, + "view_response": true, + "guidance": { + "contents": [ + { + "description": "Learn more about how we use this data (this link opens in a new tab)" + } + ] + } + }, + "submission": { + "button": "Submit", + "title": "Check your answers and submit", + "warning": "You must submit this survey to complete it", + "guidance": "You will have the opportunity to view, save or print a copy of your answers after submitting this survey." + } +}