From 996476f259f9d342036ac62eb8f0115a70ec48c0 Mon Sep 17 00:00:00 2001 From: Jason Lavarinhas Date: Fri, 5 Jan 2024 11:22:55 +0000 Subject: [PATCH 1/3] Publish Bricks --- schemas/business/en/bricks_0002.json | 62 +++++++++++++++------------- 1 file changed, 33 insertions(+), 29 deletions(-) diff --git a/schemas/business/en/bricks_0002.json b/schemas/business/en/bricks_0002.json index 872ddb46..08f7d4be 100644 --- a/schemas/business/en/bricks_0002.json +++ b/schemas/business/en/bricks_0002.json @@ -3,14 +3,15 @@ "mime_type": "application/json/ons/eq", "schema_version": "0.0.1", "data_version": "0.0.1", - "survey_id": "074", - "form_type": "0002", - "title": "Monthly Survey of Building Materials - Bricks", + "preview_questions": false, + "survey_id": "068", + "form_type": "0003", + "title": "TEST USE ONLY Monthly Survey of Building Materials - Bricks", "questionnaire_flow": { "type": "Hub", "options": { "required_completed_sections": [ - "section46ac2fd4-9750-4792-a58c-ec655a685668", + "46ac2fd4-9750-4792-a58c-ec655a685668", "sectionquestionnaire-introduction" ] } @@ -26,7 +27,7 @@ "title": "Introduction", "blocks": [ { - "id": "introduction-block", + "id": "introduction", "type": "Introduction", "primary_content": [ { @@ -260,7 +261,7 @@ ] }, { - "id": "section46ac2fd4-9750-4792-a58c-ec655a685668", + "id": "46ac2fd4-9750-4792-a58c-ec655a685668", "title": "Brick types", "summary": { "show_on_completion": false, @@ -273,10 +274,10 @@ "id": "group46ac2fd4-9750-4792-a58c-ec655a685668", "blocks": [ { - "id": "block5516e6ca-ae3c-4234-a858-d45728109204", + "id": "brick-types-produced-and-delivered", "type": "Question", "question": { - "id": "question5516e6ca-ae3c-4234-a858-d45728109204", + "id": "questionbrick-types-produced-and-delivered", "title": { "text": "For the period {ref_p_start_date} to {ref_p_end_date}, which of the following bricks has {ru_name} produced and delivered?", "placeholders": [ @@ -365,7 +366,7 @@ ] }, { - "id": "section157", + "id": "157", "title": "Details of production and delivery", "summary": { "show_on_completion": false, @@ -378,10 +379,10 @@ "id": "group157", "blocks": [ { - "id": "block647", + "id": "production-and-delivery-for-common-bricks", "type": "Question", "question": { - "id": "question647", + "id": "questionproduction-and-delivery-for-common-bricks", "title": "For the reporting period, what are the details of production and delivery for common bricks?", "description": [ "

Informed estimates are acceptable.

Enter a value to the nearest thousand (e.g. 56,000). Do not enter ‘56’ for 56,000.

" @@ -459,10 +460,10 @@ } }, { - "id": "block37a50b72-7248-4819-8a8d-cde3c9716df7", + "id": "production-and-delivery-for-facing-bricks", "type": "Question", "question": { - "id": "question37a50b72-7248-4819-8a8d-cde3c9716df7", + "id": "questionproduction-and-delivery-for-facing-bricks", "title": "For the reporting period, what are the details of production and delivery for facing bricks?", "description": [ "

Informed estimates are acceptable.

Enter a value to the nearest thousand (e.g. 56,000). Do not enter ‘56’ for 56,000.

" @@ -540,10 +541,10 @@ } }, { - "id": "block08a06dd7-836b-48c4-b326-41eb27a9825a", + "id": "production-and-delivery-for-engineering-bricks", "type": "Question", "question": { - "id": "question08a06dd7-836b-48c4-b326-41eb27a9825a", + "id": "questionproduction-and-delivery-for-engineering-bricks", "title": "For the reporting period, what are the details of production and delivery for engineering bricks?", "description": [ "

Informed estimates are acceptable.

Enter a value to the nearest thousand (e.g. 56,000). Do not enter ‘56’ for 56,000.

" @@ -621,7 +622,7 @@ } }, { - "id": "block9d295fff-a053-489f-99c1-83cfd08dc661", + "id": "total-of-bricks-in-opening-stock", "type": "CalculatedSummary", "page_title": "Total of bricks in opening stock", "title": "We have calculated your business's total number of bricks in your opening stock to be %(total)s. Is this correct?", @@ -646,7 +647,7 @@ } }, { - "id": "blockda1a5300-b03c-42c0-83f4-0a8e6f817a88", + "id": "total-of-bricks-drawn-from-kiln-or-autoclave", "type": "CalculatedSummary", "page_title": "Total of bricks drawn from kiln or autoclave", "title": "We have calculated your business's total number of bricks drawn from kiln or autoclave to be %(total)s. Is this correct?", @@ -671,7 +672,7 @@ } }, { - "id": "block44d34990-11fe-46c4-a577-36368c288669", + "id": "total-of-bricks-delivered-to-customers", "type": "CalculatedSummary", "page_title": "Total of bricks delivered to customers", "title": "We have calculated your business's total number of bricks delivered to customers to be %(total)s. Is this correct?", @@ -696,7 +697,7 @@ } }, { - "id": "blocke0bd1b13-9542-4ab9-81bd-06b74f936c76", + "id": "total-of-bricks-in-closing-stock", "type": "CalculatedSummary", "page_title": "Total of bricks in closing stock", "title": "We have calculated your business's total number of bricks in your closing stock to be %(total)s. Is this correct?", @@ -721,10 +722,10 @@ } }, { - "id": "blockb22f49d8-c830-4d7c-b146-7a930317f54f", + "id": "type-of-brick", "type": "Question", "question": { - "id": "questionb22f49d8-c830-4d7c-b146-7a930317f54f", + "id": "questiontype-of-brick", "title": "What type of brick does your business produce?", "type": "General", "answers": [ @@ -768,7 +769,7 @@ } }, { - "id": "section206", + "id": "206", "title": "Comments", "summary": { "show_on_completion": false, @@ -781,10 +782,10 @@ "id": "group206", "blocks": [ { - "id": "block821", + "id": "new-works-since-your-last-return", "type": "Question", "question": { - "id": "question821", + "id": "questionnew-works-since-your-last-return", "title": "Please provide details of any new works your business has brought into use since your last return", "type": "General", "answers": [ @@ -812,10 +813,10 @@ } }, { - "id": "block823", + "id": "further-details", "type": "Question", "question": { - "id": "question823", + "id": "questionfurther-details", "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 answers at the bottom.

" @@ -865,7 +866,7 @@ ] } ], - "theme": "dbt", + "theme": "dbt-dsit", "navigation": { "visible": true }, @@ -876,8 +877,7 @@ }, { "name": "trad_as", - "type": "string", - "optional": true + "type": "string" }, { "name": "period_id", @@ -891,6 +891,10 @@ "name": "ref_p_end_date", "type": "date" }, + { + "name": "employmentDate", + "type": "date" + }, { "name": "ru_ref", "type": "string" From ee863cfdbf060efbd24f6724d6d7860f5c5850c0 Mon Sep 17 00:00:00 2001 From: Jason Lavarinhas Date: Fri, 5 Jan 2024 12:11:38 +0000 Subject: [PATCH 2/3] Fix bricks to new file --- schemas/business/en/bricks_0002.json | 62 +- schemas/business/en/bricks_0003.json | 925 +++++++++++++++++++++++++++ 2 files changed, 954 insertions(+), 33 deletions(-) create mode 100644 schemas/business/en/bricks_0003.json diff --git a/schemas/business/en/bricks_0002.json b/schemas/business/en/bricks_0002.json index 08f7d4be..872ddb46 100644 --- a/schemas/business/en/bricks_0002.json +++ b/schemas/business/en/bricks_0002.json @@ -3,15 +3,14 @@ "mime_type": "application/json/ons/eq", "schema_version": "0.0.1", "data_version": "0.0.1", - "preview_questions": false, - "survey_id": "068", - "form_type": "0003", - "title": "TEST USE ONLY Monthly Survey of Building Materials - Bricks", + "survey_id": "074", + "form_type": "0002", + "title": "Monthly Survey of Building Materials - Bricks", "questionnaire_flow": { "type": "Hub", "options": { "required_completed_sections": [ - "46ac2fd4-9750-4792-a58c-ec655a685668", + "section46ac2fd4-9750-4792-a58c-ec655a685668", "sectionquestionnaire-introduction" ] } @@ -27,7 +26,7 @@ "title": "Introduction", "blocks": [ { - "id": "introduction", + "id": "introduction-block", "type": "Introduction", "primary_content": [ { @@ -261,7 +260,7 @@ ] }, { - "id": "46ac2fd4-9750-4792-a58c-ec655a685668", + "id": "section46ac2fd4-9750-4792-a58c-ec655a685668", "title": "Brick types", "summary": { "show_on_completion": false, @@ -274,10 +273,10 @@ "id": "group46ac2fd4-9750-4792-a58c-ec655a685668", "blocks": [ { - "id": "brick-types-produced-and-delivered", + "id": "block5516e6ca-ae3c-4234-a858-d45728109204", "type": "Question", "question": { - "id": "questionbrick-types-produced-and-delivered", + "id": "question5516e6ca-ae3c-4234-a858-d45728109204", "title": { "text": "For the period {ref_p_start_date} to {ref_p_end_date}, which of the following bricks has {ru_name} produced and delivered?", "placeholders": [ @@ -366,7 +365,7 @@ ] }, { - "id": "157", + "id": "section157", "title": "Details of production and delivery", "summary": { "show_on_completion": false, @@ -379,10 +378,10 @@ "id": "group157", "blocks": [ { - "id": "production-and-delivery-for-common-bricks", + "id": "block647", "type": "Question", "question": { - "id": "questionproduction-and-delivery-for-common-bricks", + "id": "question647", "title": "For the reporting period, what are the details of production and delivery for common bricks?", "description": [ "

Informed estimates are acceptable.

Enter a value to the nearest thousand (e.g. 56,000). Do not enter ‘56’ for 56,000.

" @@ -460,10 +459,10 @@ } }, { - "id": "production-and-delivery-for-facing-bricks", + "id": "block37a50b72-7248-4819-8a8d-cde3c9716df7", "type": "Question", "question": { - "id": "questionproduction-and-delivery-for-facing-bricks", + "id": "question37a50b72-7248-4819-8a8d-cde3c9716df7", "title": "For the reporting period, what are the details of production and delivery for facing bricks?", "description": [ "

Informed estimates are acceptable.

Enter a value to the nearest thousand (e.g. 56,000). Do not enter ‘56’ for 56,000.

" @@ -541,10 +540,10 @@ } }, { - "id": "production-and-delivery-for-engineering-bricks", + "id": "block08a06dd7-836b-48c4-b326-41eb27a9825a", "type": "Question", "question": { - "id": "questionproduction-and-delivery-for-engineering-bricks", + "id": "question08a06dd7-836b-48c4-b326-41eb27a9825a", "title": "For the reporting period, what are the details of production and delivery for engineering bricks?", "description": [ "

Informed estimates are acceptable.

Enter a value to the nearest thousand (e.g. 56,000). Do not enter ‘56’ for 56,000.

" @@ -622,7 +621,7 @@ } }, { - "id": "total-of-bricks-in-opening-stock", + "id": "block9d295fff-a053-489f-99c1-83cfd08dc661", "type": "CalculatedSummary", "page_title": "Total of bricks in opening stock", "title": "We have calculated your business's total number of bricks in your opening stock to be %(total)s. Is this correct?", @@ -647,7 +646,7 @@ } }, { - "id": "total-of-bricks-drawn-from-kiln-or-autoclave", + "id": "blockda1a5300-b03c-42c0-83f4-0a8e6f817a88", "type": "CalculatedSummary", "page_title": "Total of bricks drawn from kiln or autoclave", "title": "We have calculated your business's total number of bricks drawn from kiln or autoclave to be %(total)s. Is this correct?", @@ -672,7 +671,7 @@ } }, { - "id": "total-of-bricks-delivered-to-customers", + "id": "block44d34990-11fe-46c4-a577-36368c288669", "type": "CalculatedSummary", "page_title": "Total of bricks delivered to customers", "title": "We have calculated your business's total number of bricks delivered to customers to be %(total)s. Is this correct?", @@ -697,7 +696,7 @@ } }, { - "id": "total-of-bricks-in-closing-stock", + "id": "blocke0bd1b13-9542-4ab9-81bd-06b74f936c76", "type": "CalculatedSummary", "page_title": "Total of bricks in closing stock", "title": "We have calculated your business's total number of bricks in your closing stock to be %(total)s. Is this correct?", @@ -722,10 +721,10 @@ } }, { - "id": "type-of-brick", + "id": "blockb22f49d8-c830-4d7c-b146-7a930317f54f", "type": "Question", "question": { - "id": "questiontype-of-brick", + "id": "questionb22f49d8-c830-4d7c-b146-7a930317f54f", "title": "What type of brick does your business produce?", "type": "General", "answers": [ @@ -769,7 +768,7 @@ } }, { - "id": "206", + "id": "section206", "title": "Comments", "summary": { "show_on_completion": false, @@ -782,10 +781,10 @@ "id": "group206", "blocks": [ { - "id": "new-works-since-your-last-return", + "id": "block821", "type": "Question", "question": { - "id": "questionnew-works-since-your-last-return", + "id": "question821", "title": "Please provide details of any new works your business has brought into use since your last return", "type": "General", "answers": [ @@ -813,10 +812,10 @@ } }, { - "id": "further-details", + "id": "block823", "type": "Question", "question": { - "id": "questionfurther-details", + "id": "question823", "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 answers at the bottom.

" @@ -866,7 +865,7 @@ ] } ], - "theme": "dbt-dsit", + "theme": "dbt", "navigation": { "visible": true }, @@ -877,7 +876,8 @@ }, { "name": "trad_as", - "type": "string" + "type": "string", + "optional": true }, { "name": "period_id", @@ -891,10 +891,6 @@ "name": "ref_p_end_date", "type": "date" }, - { - "name": "employmentDate", - "type": "date" - }, { "name": "ru_ref", "type": "string" diff --git a/schemas/business/en/bricks_0003.json b/schemas/business/en/bricks_0003.json new file mode 100644 index 00000000..e31dc989 --- /dev/null +++ b/schemas/business/en/bricks_0003.json @@ -0,0 +1,925 @@ +{ + "language": "en", + "mime_type": "application/json/ons/eq", + "schema_version": "0.0.1", + "data_version": "0.0.1", + "preview_questions": false, + "survey_id": "068", + "form_type": "0003", + "title": "TEST USE ONLY Monthly Survey of Building Materials - Bricks", + "questionnaire_flow": { + "type": "Hub", + "options": { + "required_completed_sections": [ + "46ac2fd4-9750-4792-a58c-ec655a685668", + "sectionquestionnaire-introduction" + ] + } + }, + "sections": [ + { + "id": "sectionquestionnaire-introduction", + "title": "Introduction", + "show_on_hub": false, + "groups": [ + { + "id": "groupquestionnaire-introduction", + "title": "Introduction", + "blocks": [ + { + "id": "introduction", + "type": "Introduction", + "primary_content": [ + { + "id": "primary", + "title": { + "text": "You are completing this for {trad_as} ({ru_name})", + "placeholders": [ + { + "placeholder": "trad_as", + "transforms": [ + { + "transform": "first_non_empty_item", + "arguments": { + "items": [ + { + "source": "metadata", + "identifier": "trad_as" + }, + { + "source": "metadata", + "identifier": "ru_name" + } + ] + } + } + ] + }, + { + "placeholder": "ru_name", + "value": { + "source": "metadata", + "identifier": "ru_name" + } + } + ] + }, + "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": [ + "This survey is conducted by the Office for National Statistics on behalf of the Department for Business and Trade (DBT).", + "DBT uses the information for monitoring trends in the construction industries.", + "Your business was selected to give us a comprehensive view of the UK economy.", + { + "text": "Data should relate to {trad_as}.", + "placeholders": [ + { + "placeholder": "trad_as", + "transforms": [ + { + "transform": "first_non_empty_item", + "arguments": { + "items": [ + { + "source": "metadata", + "identifier": "trad_as" + }, + { + "source": "metadata", + "identifier": "ru_name" + } + ] + } + } + ] + } + ] + }, + "You can provide informed estimates if actual figures are not available.", + "We will treat your data securely and confidentially.", + "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 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 different brick types your business has produced and delivered within the reporting period." + }, + { + "description": "The brick types included in this survey are:" + }, + { + "list": ["common", "facing", "engineering"] + }, + { + "description": "The survey has the following sections:" + } + ], + "questions": [ + { + "question": "Brick types", + "contents": [ + { + "description": { + "text": "You will be asked to confirm the type of bricks produced and delivered for the period {ref_p_start_date} to {ref_p_end_date}.", + "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" + } + } + ] + } + ] + } + } + ] + }, + { + "question": "Details of production and delivery", + "contents": [ + { + "description": "You will be asked to provide the following information for each type of brick you have selected:" + }, + { + "list": [ + "opening stock", + "drawn from kiln or autoclave during month", + "deliveries to customers during month", + "closing stock", + "type of brick produced" + ] + } + ] + } + ] + }, + "secondary_content": [ + { + "id": "secondary-content", + "contents": [ + { + "title": "How we use your data" + }, + { + "description": "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)." + } + ] + } + ] + } + ] + } + ] + }, + { + "id": "46ac2fd4-9750-4792-a58c-ec655a685668", + "title": "Brick types", + "summary": { + "show_on_completion": false, + "page_title": "Brick types section", + "collapsible": false + }, + "show_on_hub": true, + "groups": [ + { + "id": "group46ac2fd4-9750-4792-a58c-ec655a685668", + "blocks": [ + { + "id": "brick-types-produced-and-delivered", + "type": "Question", + "question": { + "id": "questionbrick-types-produced-and-delivered", + "title": { + "text": "For the period {ref_p_start_date} to {ref_p_end_date}, which of the following bricks has {ru_name} produced and delivered?", + "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" + } + } + ] + }, + "type": "MutuallyExclusive", + "mandatory": false, + "answers": [ + { + "id": "answer57363407-61bd-422f-9789-70dbf0e7ba20", + "mandatory": false, + "type": "Checkbox", + "options": [ + { + "label": "Common bricks", + "value": "Common bricks", + "q_code": "9998" + }, + { + "label": "Facing bricks", + "value": "Facing bricks", + "q_code": "9997" + }, + { + "label": "Engineering bricks", + "value": "Engineering bricks", + "q_code": "9996" + } + ] + }, + { + "id": "answerbde74aef-0c0c-4411-9387-f56009d13ff9", + "mandatory": false, + "type": "Checkbox", + "options": [ + { + "label": "None of the above", + "value": "None of the above", + "q_code": "9995" + } + ] + } + ] + }, + "page_title": "Brick types produced and delivered" + } + ] + } + ] + }, + { + "id": "157", + "title": "Details of production and delivery", + "summary": { + "show_on_completion": false, + "page_title": "Details of production section", + "collapsible": false + }, + "show_on_hub": true, + "groups": [ + { + "id": "group157", + "blocks": [ + { + "id": "production-and-delivery-for-common-bricks", + "type": "Question", + "question": { + "id": "questionproduction-and-delivery-for-common-bricks", + "title": "For the reporting period, what are the details of production and delivery for common bricks?", + "description": [ + "

Informed estimates are acceptable.

Enter a value to the nearest thousand (e.g. 56,000). Do not enter ‘56’ for 56,000.

" + ], + "guidance": { + "contents": [ + { + "description": "Exclude pavers" + } + ] + }, + "definitions": [ + { + "title": "What do we mean by 'opening stock'", + "contents": [ + { + "description": "This refers to the closing stock at the end of the previous month unless a physical stock check has been made, in which case the actual physical stock figure should be entered, and discrepancies explained in the comments section of this survey." + } + ] + } + ], + "type": "General", + "answers": [ + { + "id": "answer980", + "mandatory": false, + "type": "Number", + "label": "Opening stock of common bricks", + "q_code": "01", + "decimal_places": 0 + }, + { + "id": "answer981", + "mandatory": false, + "type": "Number", + "label": "Common bricks drawn from kiln or autoclave during month", + "description": "This refers to saleable bricks produced and ready for use", + "q_code": "02", + "decimal_places": 0 + }, + { + "id": "answer982", + "mandatory": false, + "type": "Number", + "label": "Common bricks delivered to customers during month", + "description": "This refers to bricks that have been dispatched from the premises and should include any actually used on the premises if they were of a saleable quality", + "q_code": "03", + "decimal_places": 0 + }, + { + "id": "answer983", + "mandatory": false, + "type": "Number", + "label": "Closing stock of common bricks", + "q_code": "04", + "decimal_places": 0 + } + ] + }, + "page_title": "Production and delivery for common bricks", + "skip_conditions": { + "when": { + "not": [ + { + "any-in": [ + ["Common bricks"], + { + "identifier": "answer57363407-61bd-422f-9789-70dbf0e7ba20", + "source": "answers" + } + ] + } + ] + } + } + }, + { + "id": "production-and-delivery-for-facing-bricks", + "type": "Question", + "question": { + "id": "questionproduction-and-delivery-for-facing-bricks", + "title": "For the reporting period, what are the details of production and delivery for facing bricks?", + "description": [ + "

Informed estimates are acceptable.

Enter a value to the nearest thousand (e.g. 56,000). Do not enter ‘56’ for 56,000.

" + ], + "guidance": { + "contents": [ + { + "description": "Exclude pavers" + } + ] + }, + "definitions": [ + { + "title": "What do we mean by 'opening stock'", + "contents": [ + { + "description": "This refers to the closing stock at the end of the previous month unless a physical stock check has been made, in which case the actual physical stock figure should be entered, and discrepancies explained in the comments section of this survey." + } + ] + } + ], + "type": "General", + "answers": [ + { + "id": "answer7d42fafe-21f4-4fa4-9f4e-bcd0e6156adf", + "mandatory": false, + "type": "Number", + "label": "Opening stock of facing bricks", + "q_code": "11", + "decimal_places": 0 + }, + { + "id": "answerc2094bc9-aef8-446d-8744-29a30b77d464", + "mandatory": false, + "type": "Number", + "label": "Facing bricks drawn from kiln or autoclave during month", + "description": "This refers to saleable bricks produced and ready for use", + "q_code": "12", + "decimal_places": 0 + }, + { + "id": "answerab9f9884-6ad5-4a29-adfc-3fa212fc871b", + "mandatory": false, + "type": "Number", + "label": "Facing bricks delivered to customers during month", + "description": "This refers to bricks that have been dispatched from the premises and should include any actually used on the premises if they were of a saleable quality", + "q_code": "13", + "decimal_places": 0 + }, + { + "id": "answerbe7ef6c3-72d1-4d93-b6ac-6afdd0ecc0e1", + "mandatory": false, + "type": "Number", + "label": "Closing stock of facing bricks", + "q_code": "14", + "decimal_places": 0 + } + ] + }, + "page_title": "Production and delivery for facing bricks", + "skip_conditions": { + "when": { + "not": [ + { + "any-in": [ + ["Facing bricks"], + { + "identifier": "answer57363407-61bd-422f-9789-70dbf0e7ba20", + "source": "answers" + } + ] + } + ] + } + } + }, + { + "id": "production-and-delivery-for-engineering-bricks", + "type": "Question", + "question": { + "id": "questionproduction-and-delivery-for-engineering-bricks", + "title": "For the reporting period, what are the details of production and delivery for engineering bricks?", + "description": [ + "

Informed estimates are acceptable.

Enter a value to the nearest thousand (e.g. 56,000). Do not enter ‘56’ for 56,000.

" + ], + "guidance": { + "contents": [ + { + "description": "Exclude pavers" + } + ] + }, + "definitions": [ + { + "title": "What do we mean by 'opening stock'", + "contents": [ + { + "description": "This refers to the closing stock at the end of the previous month unless a physical stock check has been made, in which case the actual physical stock figure should be entered, and discrepancies explained in the comments section of this survey." + } + ] + } + ], + "type": "General", + "answers": [ + { + "id": "answer9e25ab2b-3bc7-4325-bd6d-8738336a6741", + "mandatory": false, + "type": "Number", + "label": "Opening stock of engineering bricks", + "q_code": "21", + "decimal_places": 0 + }, + { + "id": "answer0b90ce18-9c41-4629-9540-b354ddd2bbf2", + "mandatory": false, + "type": "Number", + "label": "Engineering bricks drawn from kiln or autoclave during month", + "description": "This refers to saleable bricks produced and ready for use", + "q_code": "22", + "decimal_places": 0 + }, + { + "id": "answerd4c187c6-1db5-49d7-a7b1-d2329620a6bf", + "mandatory": false, + "type": "Number", + "label": "Engineering bricks delivered to customers during month", + "description": "This refers to bricks that have been dispatched from the premises and should include any actually used on the premises if they were of a saleable quality", + "q_code": "23", + "decimal_places": 0 + }, + { + "id": "answerb132275d-886a-45a0-843e-774c33f8e116", + "mandatory": false, + "type": "Number", + "label": "Closing stock of engineering bricks", + "q_code": "24", + "decimal_places": 0 + } + ] + }, + "page_title": "Production and delivery for engineering bricks", + "skip_conditions": { + "when": { + "not": [ + { + "any-in": [ + ["Engineering bricks"], + { + "identifier": "answer57363407-61bd-422f-9789-70dbf0e7ba20", + "source": "answers" + } + ] + } + ] + } + } + }, + { + "id": "total-of-bricks-in-opening-stock", + "type": "CalculatedSummary", + "page_title": "Total of bricks in opening stock", + "title": "We have calculated your business's total number of bricks in your opening stock to be %(total)s. Is this correct?", + "calculation": { + "operation": { + "+": [ + { + "identifier": "answer980", + "source": "answers" + }, + { + "identifier": "answer7d42fafe-21f4-4fa4-9f4e-bcd0e6156adf", + "source": "answers" + }, + { + "identifier": "answer9e25ab2b-3bc7-4325-bd6d-8738336a6741", + "source": "answers" + } + ] + }, + "title": "Total number of bricks in your opening stock" + } + }, + { + "id": "total-of-bricks-drawn-from-kiln-or-autoclave", + "type": "CalculatedSummary", + "page_title": "Total of bricks drawn from kiln or autoclave", + "title": "We have calculated your business's total number of bricks drawn from kiln or autoclave to be %(total)s. Is this correct?", + "calculation": { + "operation": { + "+": [ + { + "identifier": "answer981", + "source": "answers" + }, + { + "identifier": "answerc2094bc9-aef8-446d-8744-29a30b77d464", + "source": "answers" + }, + { + "identifier": "answer0b90ce18-9c41-4629-9540-b354ddd2bbf2", + "source": "answers" + } + ] + }, + "title": "Total number of bricks drawn from kiln or autoclave" + } + }, + { + "id": "total-of-bricks-delivered-to-customers", + "type": "CalculatedSummary", + "page_title": "Total of bricks delivered to customers", + "title": "We have calculated your business's total number of bricks delivered to customers to be %(total)s. Is this correct?", + "calculation": { + "operation": { + "+": [ + { + "identifier": "answer982", + "source": "answers" + }, + { + "identifier": "answerab9f9884-6ad5-4a29-adfc-3fa212fc871b", + "source": "answers" + }, + { + "identifier": "answerd4c187c6-1db5-49d7-a7b1-d2329620a6bf", + "source": "answers" + } + ] + }, + "title": "Total number of bricks delivered to customers" + } + }, + { + "id": "total-of-bricks-in-closing-stock", + "type": "CalculatedSummary", + "page_title": "Total of bricks in closing stock", + "title": "We have calculated your business's total number of bricks in your closing stock to be %(total)s. Is this correct?", + "calculation": { + "operation": { + "+": [ + { + "identifier": "answer983", + "source": "answers" + }, + { + "identifier": "answerbe7ef6c3-72d1-4d93-b6ac-6afdd0ecc0e1", + "source": "answers" + }, + { + "identifier": "answerb132275d-886a-45a0-843e-774c33f8e116", + "source": "answers" + } + ] + }, + "title": "Total number of bricks in your closing stock" + } + }, + { + "id": "type-of-brick", + "type": "Question", + "question": { + "id": "questiontype-of-brick", + "title": "What type of brick does your business produce?", + "type": "General", + "answers": [ + { + "id": "answer733a0a93-209e-4a16-8e6f-04658c84abf3", + "mandatory": false, + "type": "Radio", + "q_code": "9999", + "options": [ + { + "label": "Clay", + "value": "Clay" + }, + { + "label": "Concrete", + "value": "Concrete" + }, + { + "label": "Sandlime", + "value": "Sandlime" + } + ] + } + ] + }, + "page_title": "Type of brick" + } + ] + } + ], + "enabled": { + "when": { + "any-in": [ + ["Engineering bricks", "Facing bricks", "Common bricks"], + { + "identifier": "answer57363407-61bd-422f-9789-70dbf0e7ba20", + "source": "answers" + } + ] + } + } + }, + { + "id": "206", + "title": "Comments", + "summary": { + "show_on_completion": false, + "page_title": "Comments section", + "collapsible": false + }, + "show_on_hub": true, + "groups": [ + { + "id": "group206", + "blocks": [ + { + "id": "new-works-since-your-last-return", + "type": "Question", + "question": { + "id": "questionnew-works-since-your-last-return", + "title": "Please provide details of any new works your business has brought into use since your last return", + "type": "General", + "answers": [ + { + "id": "answer1055", + "mandatory": false, + "type": "TextArea", + "label": "Comments", + "q_code": "145", + "max_length": 2000 + } + ] + }, + "page_title": "New works since your last return", + "skip_conditions": { + "when": { + "==": [ + null, + { + "identifier": "answer57363407-61bd-422f-9789-70dbf0e7ba20", + "source": "answers" + } + ] + } + } + }, + { + "id": "further-details", + "type": "Question", + "question": { + "id": "questionfurther-details", + "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 answers at the bottom.

" + ], + "guidance": { + "contents": [ + { + "description": "Include:" + }, + { + "list": [ + "substantial fluctuations compared with your previous return" + ] + }, + { + "description": "For example:" + }, + { + "list": [ + "site shutdowns", + "site maintenance", + "site breakdowns", + "raw material shortages", + "stock movements", + "any change in contacts", + "extreme weather" + ] + } + ] + }, + "type": "General", + "answers": [ + { + "id": "answer1056", + "mandatory": false, + "type": "TextArea", + "label": "Comments", + "q_code": "146", + "max_length": 2000 + } + ] + }, + "page_title": "Further details" + } + ] + } + ] + } + ], + "theme": "dbt-dsit", + "navigation": { + "visible": true + }, + "metadata": [ + { + "name": "ru_name", + "type": "string" + }, + { + "name": "trad_as", + "type": "string" + }, + { + "name": "period_id", + "type": "string" + }, + { + "name": "ref_p_start_date", + "type": "date" + }, + { + "name": "ref_p_end_date", + "type": "date" + }, + { + "name": "employmentDate", + "type": "date" + }, + { + "name": "ru_ref", + "type": "string" + }, + { + "name": "user_id", + "type": "string" + } + ], + "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." + } + } + \ No newline at end of file From 0a60c44ce495fb2254b304d382bdaf646298f72e Mon Sep 17 00:00:00 2001 From: Jason Lavarinhas Date: Fri, 5 Jan 2024 13:08:13 +0000 Subject: [PATCH 3/3] Update title --- schemas/business/en/bricks_0003.json | 1551 +++++++++++++------------- 1 file changed, 775 insertions(+), 776 deletions(-) diff --git a/schemas/business/en/bricks_0003.json b/schemas/business/en/bricks_0003.json index e31dc989..3716a613 100644 --- a/schemas/business/en/bricks_0003.json +++ b/schemas/business/en/bricks_0003.json @@ -1,97 +1,219 @@ { - "language": "en", - "mime_type": "application/json/ons/eq", - "schema_version": "0.0.1", - "data_version": "0.0.1", - "preview_questions": false, - "survey_id": "068", - "form_type": "0003", - "title": "TEST USE ONLY Monthly Survey of Building Materials - Bricks", - "questionnaire_flow": { - "type": "Hub", - "options": { - "required_completed_sections": [ - "46ac2fd4-9750-4792-a58c-ec655a685668", - "sectionquestionnaire-introduction" - ] - } - }, - "sections": [ - { - "id": "sectionquestionnaire-introduction", - "title": "Introduction", - "show_on_hub": false, - "groups": [ - { - "id": "groupquestionnaire-introduction", - "title": "Introduction", - "blocks": [ - { - "id": "introduction", - "type": "Introduction", - "primary_content": [ - { - "id": "primary", - "title": { - "text": "You are completing this for {trad_as} ({ru_name})", - "placeholders": [ + "language": "en", + "mime_type": "application/json/ons/eq", + "schema_version": "0.0.1", + "data_version": "0.0.1", + "preview_questions": false, + "survey_id": "068", + "form_type": "0003", + "title": "Monthly Survey of Building Materials - Bricks", + "questionnaire_flow": { + "type": "Hub", + "options": { + "required_completed_sections": [ + "46ac2fd4-9750-4792-a58c-ec655a685668", + "sectionquestionnaire-introduction" + ] + } + }, + "sections": [ + { + "id": "sectionquestionnaire-introduction", + "title": "Introduction", + "show_on_hub": false, + "groups": [ + { + "id": "groupquestionnaire-introduction", + "title": "Introduction", + "blocks": [ + { + "id": "introduction", + "type": "Introduction", + "primary_content": [ + { + "id": "primary", + "title": { + "text": "You are completing this for {trad_as} ({ru_name})", + "placeholders": [ + { + "placeholder": "trad_as", + "transforms": [ + { + "transform": "first_non_empty_item", + "arguments": { + "items": [ + { + "source": "metadata", + "identifier": "trad_as" + }, + { + "source": "metadata", + "identifier": "ru_name" + } + ] + } + } + ] + }, + { + "placeholder": "ru_name", + "value": { + "source": "metadata", + "identifier": "ru_name" + } + } + ] + }, + "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": [ + "This survey is conducted by the Office for National Statistics on behalf of the Department for Business and Trade (DBT).", + "DBT uses the information for monitoring trends in the construction industries.", + "Your business was selected to give us a comprehensive view of the UK economy.", { - "placeholder": "trad_as", - "transforms": [ + "text": "Data should relate to {trad_as}.", + "placeholders": [ { - "transform": "first_non_empty_item", - "arguments": { - "items": [ - { - "source": "metadata", - "identifier": "trad_as" - }, - { - "source": "metadata", - "identifier": "ru_name" + "placeholder": "trad_as", + "transforms": [ + { + "transform": "first_non_empty_item", + "arguments": { + "items": [ + { + "source": "metadata", + "identifier": "trad_as" + }, + { + "source": "metadata", + "identifier": "ru_name" + } + ] } - ] - } + } + ] } ] }, - { - "placeholder": "ru_name", - "value": { - "source": "metadata", - "identifier": "ru_name" - } - } + "You can provide informed estimates if actual figures are not available.", + "We will treat your data securely and confidentially.", + "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 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 different brick types your business has produced and delivered within the reporting period." + }, + { + "description": "The brick types included in this survey are:" + }, + { + "list": ["common", "facing", "engineering"] + }, + { + "description": "The survey has the following sections:" + } + ], + "questions": [ + { + "question": "Brick types", "contents": [ { "description": { - "text": "If the company details or structure have changed contact us on {telephone_number_link} or email {email_link}", + "text": "You will be asked to confirm the type of bricks produced and delivered for the period {ref_p_start_date} to {ref_p_end_date}.", "placeholders": [ { - "placeholder": "telephone_number_link", + "placeholder": "ref_p_start_date", "transforms": [ { - "transform": "telephone_number_link", + "transform": "format_date", "arguments": { - "telephone_number": "0300 1234 931" + "date_to_format": { + "source": "metadata", + "identifier": "ref_p_start_date" + }, + "date_format": "d MMMM yyyy" } } ] }, { - "placeholder": "email_link", + "placeholder": "ref_p_end_date", "transforms": [ { - "transform": "email_link", + "transform": "format_date", "arguments": { - "email_address": "surveys@ons.gov.uk", - "email_subject": "Change of details", - "email_subject_append": { - "identifier": "ru_ref", - "source": "metadata" - } + "date_to_format": { + "source": "metadata", + "identifier": "ref_p_end_date" + }, + "date_format": "d MMMM yyyy" } } ] @@ -102,824 +224,701 @@ ] }, { - "id": "additional-guidance", + "question": "Details of production and delivery", "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": [ + "description": "You will be asked to provide the following information for each type of brick you have selected:" + }, { "list": [ - "This survey is conducted by the Office for National Statistics on behalf of the Department for Business and Trade (DBT).", - "DBT uses the information for monitoring trends in the construction industries.", - "Your business was selected to give us a comprehensive view of the UK economy.", - { - "text": "Data should relate to {trad_as}.", - "placeholders": [ - { - "placeholder": "trad_as", - "transforms": [ - { - "transform": "first_non_empty_item", - "arguments": { - "items": [ - { - "source": "metadata", - "identifier": "trad_as" - }, - { - "source": "metadata", - "identifier": "ru_name" - } - ] - } - } - ] - } - ] - }, - "You can provide informed estimates if actual figures are not available.", - "We will treat your data securely and confidentially.", - "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 save a copy of your answers at the end of this questionnaire using the ‘Download as PDF’ button." + "opening stock", + "drawn from kiln or autoclave during month", + "deliveries to customers during month", + "closing stock", + "type of brick produced" ] } ] } - ], - "preview_content": { - "id": "preview", - "title": "Information you need", + ] + }, + "secondary_content": [ + { + "id": "secondary-content", "contents": [ { - "description": "This survey collects information on different brick types your business has produced and delivered within the reporting period." - }, - { - "description": "The brick types included in this survey are:" - }, - { - "list": ["common", "facing", "engineering"] + "title": "How we use your data" }, { - "description": "The survey has the following sections:" + "description": "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)." } - ], - "questions": [ + ] + } + ] + } + ] + } + ] + }, + { + "id": "46ac2fd4-9750-4792-a58c-ec655a685668", + "title": "Brick types", + "summary": { + "show_on_completion": false, + "page_title": "Brick types section", + "collapsible": false + }, + "show_on_hub": true, + "groups": [ + { + "id": "group46ac2fd4-9750-4792-a58c-ec655a685668", + "blocks": [ + { + "id": "brick-types-produced-and-delivered", + "type": "Question", + "question": { + "id": "questionbrick-types-produced-and-delivered", + "title": { + "text": "For the period {ref_p_start_date} to {ref_p_end_date}, which of the following bricks has {ru_name} produced and delivered?", + "placeholders": [ { - "question": "Brick types", - "contents": [ + "placeholder": "ref_p_start_date", + "transforms": [ { - "description": { - "text": "You will be asked to confirm the type of bricks produced and delivered for the period {ref_p_start_date} to {ref_p_end_date}.", - "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" - } - } - ] - } - ] + "transform": "format_date", + "arguments": { + "date_to_format": { + "source": "metadata", + "identifier": "ref_p_start_date" + }, + "date_format": "d MMMM yyyy" } } ] }, { - "question": "Details of production and delivery", - "contents": [ + "placeholder": "ref_p_end_date", + "transforms": [ { - "description": "You will be asked to provide the following information for each type of brick you have selected:" - }, - { - "list": [ - "opening stock", - "drawn from kiln or autoclave during month", - "deliveries to customers during month", - "closing stock", - "type of brick produced" - ] + "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" + } } ] }, - "secondary_content": [ + "type": "MutuallyExclusive", + "mandatory": false, + "answers": [ { - "id": "secondary-content", - "contents": [ + "id": "answer57363407-61bd-422f-9789-70dbf0e7ba20", + "mandatory": false, + "type": "Checkbox", + "options": [ { - "title": "How we use your data" + "label": "Common bricks", + "value": "Common bricks", + "q_code": "9998" }, { - "description": "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)." + "label": "Facing bricks", + "value": "Facing bricks", + "q_code": "9997" + }, + { + "label": "Engineering bricks", + "value": "Engineering bricks", + "q_code": "9996" + } + ] + }, + { + "id": "answerbde74aef-0c0c-4411-9387-f56009d13ff9", + "mandatory": false, + "type": "Checkbox", + "options": [ + { + "label": "None of the above", + "value": "None of the above", + "q_code": "9995" } ] } ] - } - ] - } - ] + }, + "page_title": "Brick types produced and delivered" + } + ] + } + ] + }, + { + "id": "157", + "title": "Details of production and delivery", + "summary": { + "show_on_completion": false, + "page_title": "Details of production section", + "collapsible": false }, - { - "id": "46ac2fd4-9750-4792-a58c-ec655a685668", - "title": "Brick types", - "summary": { - "show_on_completion": false, - "page_title": "Brick types section", - "collapsible": false - }, - "show_on_hub": true, - "groups": [ - { - "id": "group46ac2fd4-9750-4792-a58c-ec655a685668", - "blocks": [ - { - "id": "brick-types-produced-and-delivered", - "type": "Question", - "question": { - "id": "questionbrick-types-produced-and-delivered", - "title": { - "text": "For the period {ref_p_start_date} to {ref_p_end_date}, which of the following bricks has {ru_name} produced and delivered?", - "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" - } - } - ] - }, + "show_on_hub": true, + "groups": [ + { + "id": "group157", + "blocks": [ + { + "id": "production-and-delivery-for-common-bricks", + "type": "Question", + "question": { + "id": "questionproduction-and-delivery-for-common-bricks", + "title": "For the reporting period, what are the details of production and delivery for common bricks?", + "description": [ + "

Informed estimates are acceptable.

Enter a value to the nearest thousand (e.g. 56,000). Do not enter ‘56’ for 56,000.

" + ], + "guidance": { + "contents": [ + { + "description": "Exclude pavers" + } + ] + }, + "definitions": [ + { + "title": "What do we mean by 'opening stock'", + "contents": [ { - "placeholder": "ru_name", - "value": { - "source": "metadata", - "identifier": "ru_name" - } + "description": "This refers to the closing stock at the end of the previous month unless a physical stock check has been made, in which case the actual physical stock figure should be entered, and discrepancies explained in the comments section of this survey." } ] + } + ], + "type": "General", + "answers": [ + { + "id": "answer980", + "mandatory": false, + "type": "Number", + "label": "Opening stock of common bricks", + "q_code": "01", + "decimal_places": 0 }, - "type": "MutuallyExclusive", - "mandatory": false, - "answers": [ + { + "id": "answer981", + "mandatory": false, + "type": "Number", + "label": "Common bricks drawn from kiln or autoclave during month", + "description": "This refers to saleable bricks produced and ready for use", + "q_code": "02", + "decimal_places": 0 + }, + { + "id": "answer982", + "mandatory": false, + "type": "Number", + "label": "Common bricks delivered to customers during month", + "description": "This refers to bricks that have been dispatched from the premises and should include any actually used on the premises if they were of a saleable quality", + "q_code": "03", + "decimal_places": 0 + }, + { + "id": "answer983", + "mandatory": false, + "type": "Number", + "label": "Closing stock of common bricks", + "q_code": "04", + "decimal_places": 0 + } + ] + }, + "page_title": "Production and delivery for common bricks", + "skip_conditions": { + "when": { + "not": [ { - "id": "answer57363407-61bd-422f-9789-70dbf0e7ba20", - "mandatory": false, - "type": "Checkbox", - "options": [ - { - "label": "Common bricks", - "value": "Common bricks", - "q_code": "9998" - }, - { - "label": "Facing bricks", - "value": "Facing bricks", - "q_code": "9997" - }, + "any-in": [ + ["Common bricks"], { - "label": "Engineering bricks", - "value": "Engineering bricks", - "q_code": "9996" + "identifier": "answer57363407-61bd-422f-9789-70dbf0e7ba20", + "source": "answers" } ] - }, + } + ] + } + } + }, + { + "id": "production-and-delivery-for-facing-bricks", + "type": "Question", + "question": { + "id": "questionproduction-and-delivery-for-facing-bricks", + "title": "For the reporting period, what are the details of production and delivery for facing bricks?", + "description": [ + "

Informed estimates are acceptable.

Enter a value to the nearest thousand (e.g. 56,000). Do not enter ‘56’ for 56,000.

" + ], + "guidance": { + "contents": [ { - "id": "answerbde74aef-0c0c-4411-9387-f56009d13ff9", - "mandatory": false, - "type": "Checkbox", - "options": [ - { - "label": "None of the above", - "value": "None of the above", - "q_code": "9995" - } - ] + "description": "Exclude pavers" } ] }, - "page_title": "Brick types produced and delivered" - } - ] - } - ] - }, - { - "id": "157", - "title": "Details of production and delivery", - "summary": { - "show_on_completion": false, - "page_title": "Details of production section", - "collapsible": false - }, - "show_on_hub": true, - "groups": [ - { - "id": "group157", - "blocks": [ - { - "id": "production-and-delivery-for-common-bricks", - "type": "Question", - "question": { - "id": "questionproduction-and-delivery-for-common-bricks", - "title": "For the reporting period, what are the details of production and delivery for common bricks?", - "description": [ - "

Informed estimates are acceptable.

Enter a value to the nearest thousand (e.g. 56,000). Do not enter ‘56’ for 56,000.

" - ], - "guidance": { + "definitions": [ + { + "title": "What do we mean by 'opening stock'", "contents": [ { - "description": "Exclude pavers" + "description": "This refers to the closing stock at the end of the previous month unless a physical stock check has been made, in which case the actual physical stock figure should be entered, and discrepancies explained in the comments section of this survey." } ] + } + ], + "type": "General", + "answers": [ + { + "id": "answer7d42fafe-21f4-4fa4-9f4e-bcd0e6156adf", + "mandatory": false, + "type": "Number", + "label": "Opening stock of facing bricks", + "q_code": "11", + "decimal_places": 0 + }, + { + "id": "answerc2094bc9-aef8-446d-8744-29a30b77d464", + "mandatory": false, + "type": "Number", + "label": "Facing bricks drawn from kiln or autoclave during month", + "description": "This refers to saleable bricks produced and ready for use", + "q_code": "12", + "decimal_places": 0 + }, + { + "id": "answerab9f9884-6ad5-4a29-adfc-3fa212fc871b", + "mandatory": false, + "type": "Number", + "label": "Facing bricks delivered to customers during month", + "description": "This refers to bricks that have been dispatched from the premises and should include any actually used on the premises if they were of a saleable quality", + "q_code": "13", + "decimal_places": 0 }, - "definitions": [ + { + "id": "answerbe7ef6c3-72d1-4d93-b6ac-6afdd0ecc0e1", + "mandatory": false, + "type": "Number", + "label": "Closing stock of facing bricks", + "q_code": "14", + "decimal_places": 0 + } + ] + }, + "page_title": "Production and delivery for facing bricks", + "skip_conditions": { + "when": { + "not": [ { - "title": "What do we mean by 'opening stock'", - "contents": [ + "any-in": [ + ["Facing bricks"], { - "description": "This refers to the closing stock at the end of the previous month unless a physical stock check has been made, in which case the actual physical stock figure should be entered, and discrepancies explained in the comments section of this survey." + "identifier": "answer57363407-61bd-422f-9789-70dbf0e7ba20", + "source": "answers" } ] } - ], - "type": "General", - "answers": [ - { - "id": "answer980", - "mandatory": false, - "type": "Number", - "label": "Opening stock of common bricks", - "q_code": "01", - "decimal_places": 0 - }, - { - "id": "answer981", - "mandatory": false, - "type": "Number", - "label": "Common bricks drawn from kiln or autoclave during month", - "description": "This refers to saleable bricks produced and ready for use", - "q_code": "02", - "decimal_places": 0 - }, - { - "id": "answer982", - "mandatory": false, - "type": "Number", - "label": "Common bricks delivered to customers during month", - "description": "This refers to bricks that have been dispatched from the premises and should include any actually used on the premises if they were of a saleable quality", - "q_code": "03", - "decimal_places": 0 - }, + ] + } + } + }, + { + "id": "production-and-delivery-for-engineering-bricks", + "type": "Question", + "question": { + "id": "questionproduction-and-delivery-for-engineering-bricks", + "title": "For the reporting period, what are the details of production and delivery for engineering bricks?", + "description": [ + "

Informed estimates are acceptable.

Enter a value to the nearest thousand (e.g. 56,000). Do not enter ‘56’ for 56,000.

" + ], + "guidance": { + "contents": [ { - "id": "answer983", - "mandatory": false, - "type": "Number", - "label": "Closing stock of common bricks", - "q_code": "04", - "decimal_places": 0 + "description": "Exclude pavers" } ] }, - "page_title": "Production and delivery for common bricks", - "skip_conditions": { - "when": { - "not": [ - { - "any-in": [ - ["Common bricks"], - { - "identifier": "answer57363407-61bd-422f-9789-70dbf0e7ba20", - "source": "answers" - } - ] - } - ] - } - } - }, - { - "id": "production-and-delivery-for-facing-bricks", - "type": "Question", - "question": { - "id": "questionproduction-and-delivery-for-facing-bricks", - "title": "For the reporting period, what are the details of production and delivery for facing bricks?", - "description": [ - "

Informed estimates are acceptable.

Enter a value to the nearest thousand (e.g. 56,000). Do not enter ‘56’ for 56,000.

" - ], - "guidance": { + "definitions": [ + { + "title": "What do we mean by 'opening stock'", "contents": [ { - "description": "Exclude pavers" + "description": "This refers to the closing stock at the end of the previous month unless a physical stock check has been made, in which case the actual physical stock figure should be entered, and discrepancies explained in the comments section of this survey." } ] + } + ], + "type": "General", + "answers": [ + { + "id": "answer9e25ab2b-3bc7-4325-bd6d-8738336a6741", + "mandatory": false, + "type": "Number", + "label": "Opening stock of engineering bricks", + "q_code": "21", + "decimal_places": 0 + }, + { + "id": "answer0b90ce18-9c41-4629-9540-b354ddd2bbf2", + "mandatory": false, + "type": "Number", + "label": "Engineering bricks drawn from kiln or autoclave during month", + "description": "This refers to saleable bricks produced and ready for use", + "q_code": "22", + "decimal_places": 0 + }, + { + "id": "answerd4c187c6-1db5-49d7-a7b1-d2329620a6bf", + "mandatory": false, + "type": "Number", + "label": "Engineering bricks delivered to customers during month", + "description": "This refers to bricks that have been dispatched from the premises and should include any actually used on the premises if they were of a saleable quality", + "q_code": "23", + "decimal_places": 0 }, - "definitions": [ + { + "id": "answerb132275d-886a-45a0-843e-774c33f8e116", + "mandatory": false, + "type": "Number", + "label": "Closing stock of engineering bricks", + "q_code": "24", + "decimal_places": 0 + } + ] + }, + "page_title": "Production and delivery for engineering bricks", + "skip_conditions": { + "when": { + "not": [ { - "title": "What do we mean by 'opening stock'", - "contents": [ + "any-in": [ + ["Engineering bricks"], { - "description": "This refers to the closing stock at the end of the previous month unless a physical stock check has been made, in which case the actual physical stock figure should be entered, and discrepancies explained in the comments section of this survey." + "identifier": "answer57363407-61bd-422f-9789-70dbf0e7ba20", + "source": "answers" } ] } - ], - "type": "General", - "answers": [ + ] + } + } + }, + { + "id": "total-of-bricks-in-opening-stock", + "type": "CalculatedSummary", + "page_title": "Total of bricks in opening stock", + "title": "We have calculated your business's total number of bricks in your opening stock to be %(total)s. Is this correct?", + "calculation": { + "operation": { + "+": [ { - "id": "answer7d42fafe-21f4-4fa4-9f4e-bcd0e6156adf", - "mandatory": false, - "type": "Number", - "label": "Opening stock of facing bricks", - "q_code": "11", - "decimal_places": 0 + "identifier": "answer980", + "source": "answers" }, { - "id": "answerc2094bc9-aef8-446d-8744-29a30b77d464", - "mandatory": false, - "type": "Number", - "label": "Facing bricks drawn from kiln or autoclave during month", - "description": "This refers to saleable bricks produced and ready for use", - "q_code": "12", - "decimal_places": 0 + "identifier": "answer7d42fafe-21f4-4fa4-9f4e-bcd0e6156adf", + "source": "answers" }, { - "id": "answerab9f9884-6ad5-4a29-adfc-3fa212fc871b", - "mandatory": false, - "type": "Number", - "label": "Facing bricks delivered to customers during month", - "description": "This refers to bricks that have been dispatched from the premises and should include any actually used on the premises if they were of a saleable quality", - "q_code": "13", - "decimal_places": 0 + "identifier": "answer9e25ab2b-3bc7-4325-bd6d-8738336a6741", + "source": "answers" + } + ] + }, + "title": "Total number of bricks in your opening stock" + } + }, + { + "id": "total-of-bricks-drawn-from-kiln-or-autoclave", + "type": "CalculatedSummary", + "page_title": "Total of bricks drawn from kiln or autoclave", + "title": "We have calculated your business's total number of bricks drawn from kiln or autoclave to be %(total)s. Is this correct?", + "calculation": { + "operation": { + "+": [ + { + "identifier": "answer981", + "source": "answers" }, { - "id": "answerbe7ef6c3-72d1-4d93-b6ac-6afdd0ecc0e1", - "mandatory": false, - "type": "Number", - "label": "Closing stock of facing bricks", - "q_code": "14", - "decimal_places": 0 + "identifier": "answerc2094bc9-aef8-446d-8744-29a30b77d464", + "source": "answers" + }, + { + "identifier": "answer0b90ce18-9c41-4629-9540-b354ddd2bbf2", + "source": "answers" } ] }, - "page_title": "Production and delivery for facing bricks", - "skip_conditions": { - "when": { - "not": [ - { - "any-in": [ - ["Facing bricks"], - { - "identifier": "answer57363407-61bd-422f-9789-70dbf0e7ba20", - "source": "answers" - } - ] - } - ] - } - } - }, - { - "id": "production-and-delivery-for-engineering-bricks", - "type": "Question", - "question": { - "id": "questionproduction-and-delivery-for-engineering-bricks", - "title": "For the reporting period, what are the details of production and delivery for engineering bricks?", - "description": [ - "

Informed estimates are acceptable.

Enter a value to the nearest thousand (e.g. 56,000). Do not enter ‘56’ for 56,000.

" - ], - "guidance": { - "contents": [ - { - "description": "Exclude pavers" - } - ] - }, - "definitions": [ + "title": "Total number of bricks drawn from kiln or autoclave" + } + }, + { + "id": "total-of-bricks-delivered-to-customers", + "type": "CalculatedSummary", + "page_title": "Total of bricks delivered to customers", + "title": "We have calculated your business's total number of bricks delivered to customers to be %(total)s. Is this correct?", + "calculation": { + "operation": { + "+": [ { - "title": "What do we mean by 'opening stock'", - "contents": [ - { - "description": "This refers to the closing stock at the end of the previous month unless a physical stock check has been made, in which case the actual physical stock figure should be entered, and discrepancies explained in the comments section of this survey." - } - ] - } - ], - "type": "General", - "answers": [ + "identifier": "answer982", + "source": "answers" + }, { - "id": "answer9e25ab2b-3bc7-4325-bd6d-8738336a6741", - "mandatory": false, - "type": "Number", - "label": "Opening stock of engineering bricks", - "q_code": "21", - "decimal_places": 0 + "identifier": "answerab9f9884-6ad5-4a29-adfc-3fa212fc871b", + "source": "answers" }, { - "id": "answer0b90ce18-9c41-4629-9540-b354ddd2bbf2", - "mandatory": false, - "type": "Number", - "label": "Engineering bricks drawn from kiln or autoclave during month", - "description": "This refers to saleable bricks produced and ready for use", - "q_code": "22", - "decimal_places": 0 + "identifier": "answerd4c187c6-1db5-49d7-a7b1-d2329620a6bf", + "source": "answers" + } + ] + }, + "title": "Total number of bricks delivered to customers" + } + }, + { + "id": "total-of-bricks-in-closing-stock", + "type": "CalculatedSummary", + "page_title": "Total of bricks in closing stock", + "title": "We have calculated your business's total number of bricks in your closing stock to be %(total)s. Is this correct?", + "calculation": { + "operation": { + "+": [ + { + "identifier": "answer983", + "source": "answers" }, { - "id": "answerd4c187c6-1db5-49d7-a7b1-d2329620a6bf", - "mandatory": false, - "type": "Number", - "label": "Engineering bricks delivered to customers during month", - "description": "This refers to bricks that have been dispatched from the premises and should include any actually used on the premises if they were of a saleable quality", - "q_code": "23", - "decimal_places": 0 + "identifier": "answerbe7ef6c3-72d1-4d93-b6ac-6afdd0ecc0e1", + "source": "answers" }, { - "id": "answerb132275d-886a-45a0-843e-774c33f8e116", - "mandatory": false, - "type": "Number", - "label": "Closing stock of engineering bricks", - "q_code": "24", - "decimal_places": 0 + "identifier": "answerb132275d-886a-45a0-843e-774c33f8e116", + "source": "answers" } ] }, - "page_title": "Production and delivery for engineering bricks", - "skip_conditions": { - "when": { - "not": [ - { - "any-in": [ - ["Engineering bricks"], - { - "identifier": "answer57363407-61bd-422f-9789-70dbf0e7ba20", - "source": "answers" - } - ] - } - ] - } - } - }, - { - "id": "total-of-bricks-in-opening-stock", - "type": "CalculatedSummary", - "page_title": "Total of bricks in opening stock", - "title": "We have calculated your business's total number of bricks in your opening stock to be %(total)s. Is this correct?", - "calculation": { - "operation": { - "+": [ - { - "identifier": "answer980", - "source": "answers" - }, - { - "identifier": "answer7d42fafe-21f4-4fa4-9f4e-bcd0e6156adf", - "source": "answers" - }, - { - "identifier": "answer9e25ab2b-3bc7-4325-bd6d-8738336a6741", - "source": "answers" - } - ] - }, - "title": "Total number of bricks in your opening stock" - } - }, - { - "id": "total-of-bricks-drawn-from-kiln-or-autoclave", - "type": "CalculatedSummary", - "page_title": "Total of bricks drawn from kiln or autoclave", - "title": "We have calculated your business's total number of bricks drawn from kiln or autoclave to be %(total)s. Is this correct?", - "calculation": { - "operation": { - "+": [ - { - "identifier": "answer981", - "source": "answers" - }, - { - "identifier": "answerc2094bc9-aef8-446d-8744-29a30b77d464", - "source": "answers" - }, - { - "identifier": "answer0b90ce18-9c41-4629-9540-b354ddd2bbf2", - "source": "answers" - } - ] - }, - "title": "Total number of bricks drawn from kiln or autoclave" - } - }, - { - "id": "total-of-bricks-delivered-to-customers", - "type": "CalculatedSummary", - "page_title": "Total of bricks delivered to customers", - "title": "We have calculated your business's total number of bricks delivered to customers to be %(total)s. Is this correct?", - "calculation": { - "operation": { - "+": [ + "title": "Total number of bricks in your closing stock" + } + }, + { + "id": "type-of-brick", + "type": "Question", + "question": { + "id": "questiontype-of-brick", + "title": "What type of brick does your business produce?", + "type": "General", + "answers": [ + { + "id": "answer733a0a93-209e-4a16-8e6f-04658c84abf3", + "mandatory": false, + "type": "Radio", + "q_code": "9999", + "options": [ { - "identifier": "answer982", - "source": "answers" + "label": "Clay", + "value": "Clay" }, { - "identifier": "answerab9f9884-6ad5-4a29-adfc-3fa212fc871b", - "source": "answers" + "label": "Concrete", + "value": "Concrete" }, { - "identifier": "answerd4c187c6-1db5-49d7-a7b1-d2329620a6bf", - "source": "answers" + "label": "Sandlime", + "value": "Sandlime" } ] - }, - "title": "Total number of bricks delivered to customers" - } + } + ] }, - { - "id": "total-of-bricks-in-closing-stock", - "type": "CalculatedSummary", - "page_title": "Total of bricks in closing stock", - "title": "We have calculated your business's total number of bricks in your closing stock to be %(total)s. Is this correct?", - "calculation": { - "operation": { - "+": [ - { - "identifier": "answer983", - "source": "answers" - }, - { - "identifier": "answerbe7ef6c3-72d1-4d93-b6ac-6afdd0ecc0e1", - "source": "answers" - }, - { - "identifier": "answerb132275d-886a-45a0-843e-774c33f8e116", - "source": "answers" - } - ] - }, - "title": "Total number of bricks in your closing stock" - } + "page_title": "Type of brick" + } + ] + } + ], + "enabled": { + "when": { + "any-in": [ + ["Engineering bricks", "Facing bricks", "Common bricks"], + { + "identifier": "answer57363407-61bd-422f-9789-70dbf0e7ba20", + "source": "answers" + } + ] + } + } + }, + { + "id": "206", + "title": "Comments", + "summary": { + "show_on_completion": false, + "page_title": "Comments section", + "collapsible": false + }, + "show_on_hub": true, + "groups": [ + { + "id": "group206", + "blocks": [ + { + "id": "new-works-since-your-last-return", + "type": "Question", + "question": { + "id": "questionnew-works-since-your-last-return", + "title": "Please provide details of any new works your business has brought into use since your last return", + "type": "General", + "answers": [ + { + "id": "answer1055", + "mandatory": false, + "type": "TextArea", + "label": "Comments", + "q_code": "145", + "max_length": 2000 + } + ] }, - { - "id": "type-of-brick", - "type": "Question", - "question": { - "id": "questiontype-of-brick", - "title": "What type of brick does your business produce?", - "type": "General", - "answers": [ + "page_title": "New works since your last return", + "skip_conditions": { + "when": { + "==": [ + null, { - "id": "answer733a0a93-209e-4a16-8e6f-04658c84abf3", - "mandatory": false, - "type": "Radio", - "q_code": "9999", - "options": [ - { - "label": "Clay", - "value": "Clay" - }, - { - "label": "Concrete", - "value": "Concrete" - }, - { - "label": "Sandlime", - "value": "Sandlime" - } - ] + "identifier": "answer57363407-61bd-422f-9789-70dbf0e7ba20", + "source": "answers" } ] - }, - "page_title": "Type of brick" - } - ] - } - ], - "enabled": { - "when": { - "any-in": [ - ["Engineering bricks", "Facing bricks", "Common bricks"], - { - "identifier": "answer57363407-61bd-422f-9789-70dbf0e7ba20", - "source": "answers" + } } - ] - } - } - }, - { - "id": "206", - "title": "Comments", - "summary": { - "show_on_completion": false, - "page_title": "Comments section", - "collapsible": false - }, - "show_on_hub": true, - "groups": [ - { - "id": "group206", - "blocks": [ - { - "id": "new-works-since-your-last-return", - "type": "Question", - "question": { - "id": "questionnew-works-since-your-last-return", - "title": "Please provide details of any new works your business has brought into use since your last return", - "type": "General", - "answers": [ + }, + { + "id": "further-details", + "type": "Question", + "question": { + "id": "questionfurther-details", + "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 answers at the bottom.

" + ], + "guidance": { + "contents": [ + { + "description": "Include:" + }, { - "id": "answer1055", - "mandatory": false, - "type": "TextArea", - "label": "Comments", - "q_code": "145", - "max_length": 2000 + "list": [ + "substantial fluctuations compared with your previous return" + ] + }, + { + "description": "For example:" + }, + { + "list": [ + "site shutdowns", + "site maintenance", + "site breakdowns", + "raw material shortages", + "stock movements", + "any change in contacts", + "extreme weather" + ] } ] }, - "page_title": "New works since your last return", - "skip_conditions": { - "when": { - "==": [ - null, - { - "identifier": "answer57363407-61bd-422f-9789-70dbf0e7ba20", - "source": "answers" - } - ] + "type": "General", + "answers": [ + { + "id": "answer1056", + "mandatory": false, + "type": "TextArea", + "label": "Comments", + "q_code": "146", + "max_length": 2000 } - } + ] }, - { - "id": "further-details", - "type": "Question", - "question": { - "id": "questionfurther-details", - "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 answers at the bottom.

" - ], - "guidance": { - "contents": [ - { - "description": "Include:" - }, - { - "list": [ - "substantial fluctuations compared with your previous return" - ] - }, - { - "description": "For example:" - }, - { - "list": [ - "site shutdowns", - "site maintenance", - "site breakdowns", - "raw material shortages", - "stock movements", - "any change in contacts", - "extreme weather" - ] - } - ] - }, - "type": "General", - "answers": [ - { - "id": "answer1056", - "mandatory": false, - "type": "TextArea", - "label": "Comments", - "q_code": "146", - "max_length": 2000 - } - ] - }, - "page_title": "Further details" - } - ] - } - ] - } - ], - "theme": "dbt-dsit", - "navigation": { - "visible": true + "page_title": "Further details" + } + ] + } + ] + } + ], + "theme": "dbt-dsit", + "navigation": { + "visible": true + }, + "metadata": [ + { + "name": "ru_name", + "type": "string" }, - "metadata": [ - { - "name": "ru_name", - "type": "string" - }, - { - "name": "trad_as", - "type": "string" - }, - { - "name": "period_id", - "type": "string" - }, - { - "name": "ref_p_start_date", - "type": "date" - }, - { - "name": "ref_p_end_date", - "type": "date" - }, - { - "name": "employmentDate", - "type": "date" - }, - { - "name": "ru_ref", - "type": "string" - }, - { - "name": "user_id", - "type": "string" - } - ], - "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)" - } - ] - } + { + "name": "trad_as", + "type": "string" + }, + { + "name": "period_id", + "type": "string" }, - "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." + { + "name": "ref_p_start_date", + "type": "date" + }, + { + "name": "ref_p_end_date", + "type": "date" + }, + { + "name": "employmentDate", + "type": "date" + }, + { + "name": "ru_ref", + "type": "string" + }, + { + "name": "user_id", + "type": "string" + } + ], + "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." } - \ No newline at end of file +}