Skip to content

Latest commit

 

History

History
100 lines (100 loc) · 37.7 KB

domestic_lodgement_rules.md

File metadata and controls

100 lines (100 loc) · 37.7 KB
Code Message EW NI Schema fix? Implemented?
MUST_HAVE_HABITABLE_ROOMS "Habitable-Room-Count" must be an integer and must be greater than or equal to 1 yes yes yes
RATINGS_MUST_BE_POSITIVE "Energy-Rating-Current", "Energy-Rating-Potential", "Environmental-Impact-Current" and "Environmental-Impact-Potential" must be greater than 0 yes yes yes
MUST_HAVE_DESCRIPTION "Description" for parent node "Wall", "Walls", "Roof", "Floor", "Window", "Windows", "Main-Heating", "Main-Heating-Controls", "Hot-Water", "Lighting" and "Secondary-Heating" must not be equal to the parent node name, ignoring case yes yes yes
MUST_HAVE_HEATED_ROOMS "Heated-Room-Count" must be an integer and must be greater than or equal to 0 yes yes no
MAIN_HEATING_CONTROL_RANGE "Main-Heating-Control" must be an integer and must be greater than or equal to 2000 and less than 3000 yes yes no
WATER_HEATING_CODE_RANGE "Water-Heating-Code" must be an integer and must be greater than or equal to 900 and less than 1000 yes yes no
DATES_IN_RANGE "Inspection-Date", "Registration-Date" and "Completion-Date" must not be in the future and must not be more than 18 months ago yes yes yes
SAP_FLOOR_AREA_RANGE "Total-Floor-Area" within "SAP-Floor-Dimension" must be greater than 0 and less than or equal to 3000 yes yes yes
CO2_EMISSIONS_RANGE "CO2-Emissions-Current" and "CO2-Emissions-Potential" must be greater than or equal to -100 and less than or equal to 300 yes yes no
RELATED_PARTY_DISCLOSURE_CODED "Related-Party-Disclosure" must contain "Related-Party-Disclosure-Number" and must not contain "Related-Party-Disclosure-Text" yes yes yes no
IMPROVEMENTS_CODED "Improvement-Details" must contain "Improvement-Number" and must not contain "Improvement-Texts" yes yes yes no
ADDENDUM_MUST_NOT_BE_EMPTY If "Addendum" is supplied then it must not be empty yes yes no
VENTILATION_TYPE_UNSUPPORTED "Ventilation-Type" must be an integer and must not be equal to 9 yes yes yes no
LEGACY_FIELDS "Fans-Vents-Count", "Has-Special-Feature", "Special-Feature-Description", "Energy-Saved-Or-Generated", "Saved-Or-Generated-Fuel", "Energy-Used" and "Energy-Used-Fuel" must not be supplied yes yes yes no
COOLING_CLASS_OR_EEC At most one of "Cooling-System-Class" and "Cooling-System-EEC" may be supplied yes yes no
SINGLE_MAIN_HEATING_FRACTION If there is only one "Main-Heating" node then "Main-Heating-Fraction" must equal 1 yes yes no
SUPPLY_MAIN_HEATING_DECLARED_VALUES If "Main-Heating-Data-Source" is equal to 2 and "Efficiency-Type" is not equal to 4 then "Efficiency" within "Main-Heating-Declared-Values" must be supplied yes yes no
SUPPLY_SUMMER_WINTER_HEATING_EFFICIENCY If "Main-Heating-Data-Source" is equal to 2 and "Efficiency-Type" is equal to 4 then "Main-Heating-Efficiency-Winter" and "Main-Heating-Efficiency-Summer" must be supplied yes yes no
SUPPLY_COMMUNITY_HEATING_DISTRIBUTION_LOSS_FACTOR If "Community-Heating-Distribution-Type" is equal to 5 then "Community-Heating-Distribution-Loss-Factor" must be supplied yes yes no
SUPPLY_ONE_AIR_CHANGE_RATE "Air-Change-Rates" must not be supplied in more than one "SAP-Special-Feature" yes yes no
SUPPLY_AIR_CHANGE_RATE_MONTHS_SEQUENTIALLY "Air-Change-Rate-Month" in "Air-Change-Rate" must be supplied in sequential order yes yes no
MAIN_HEATING_SYSTEMS_INTERACTION_REQUIRES_TWO_HEATING_SYSTEMS If there is only one "Main-Heating" node then "Main-Heating-Systems-Interaction" must not be supplied yes yes no
UNSUPPORTED_FUEL_TYPE "Main-Fuel-Type", "Secondary-Fuel-Type" and "Water-Heating-Fuel" must not be equal to 1, 2, 4, 10, 11, 12, 13 or 14 yes yes yes no
UNSUPPORTED_LEVEL "Level" must not be equal to 99 yes yes yes no
ROOM_TOO_HIGH "Room-Height" within "SAP-Floor-Dimension" must be less than or equal to 10 yes yes no
MUST_HAVE_STOREYS "Storey-Count" must be greater than 0 yes yes no
DETACHED_HOUSE_HEAT_LOSS If "Built-Form" is equal to 1 then the sum of "Heat-Loss-Perimeter" values must be greater than or equal to 5 yes yes no
SUPPLY_HEAT_EMITTER_OR_HEATING_FRACTION If either "Main-Heating-Category" is equal to 3, 4 or 8, or "Main-Heating-Category" is equal to 2 and "Main-Fuel-Type" is equal to 3, 17, 18, 19, 26, 27, 28, 29, 34, 35, 36 or 37, then either "Heat-Emitter-Type" must not be equal to 0 or "Main-Heating-Fraction" must be equal to 0 yes yes no
UNSUPPORTED_SPACE_HEATING "Space-Heating-With-Loft-Insulation", "Space-Heating-With-Cavity-Insulation" and "Space-Heating-With-Loft-And-Cavity-Insulation" must not be supplied yes yes yes no
UNSUPPORTED_IMPROVEMENT_CATEGORY If "SAP-Version" is not equal to 9.80, 9.81, 9.82, 9.83 or 9.90 then "Improvement-Category" must not be equal to 1, 2, 3 or 4 yes yes yes no
UNSUPPORTED_SAP_TRANSACTION_TYPE SAP "Transaction-Type" must not be equal to 3, 4, 7, 9 or 10 yes yes yes no
UNSUPPORTED_RDSAP_TRANSACTION_TYPE RdSAP "Transaction-Type" must not be equal to 3, 4 or 7 yes yes yes no
SUPPLY_WALL_THICKNESS If "Wall-Thickness-Measured" is equal to 'Y' or 'y' then "Wall-Thickness" must be supplied yes yes no
SUPPLY_ALTERNATIVE_WALL_THICKNESS If "Wall-Thickness-Measured" within "SAP-Alternative-Wall" is equal to 'Y' or 'y' then "Wall-Thickness" must be supplied yes yes no
SUPPLY_MULTIPLE_BUILDING_PARTS If "Roof-Room-Connected" is equal to 'Y' or 'y' then more than one "SAP-Building-Part" must be supplied yes yes yes
INVALID_VALUES_FOR_EXTENSIONS If "Extensions-Count" is equal to 0 then "Roof-Construction" must not equal 7 and "Floor-Heat-Loss" must not equal 8 yes yes no
SUPPLY_GROUND_FLOOR_CONSTRUCTION_INSULATION If "Floor" is equal to 0 and "Floor-Heat-Loss" is equal to 1, 2 or 7 then "Floor-Construction" and "Floor-Insulation" must be supplied yes yes no
INVALID_CONSTRUCTION_FOR_ROOM_IN_ROOF If "SAP-Room-In-Roof" is supplied then "Roof-Construction" must not be equal to 3 yes yes no
ROOF_CONSTRUCTION_MUST_BE_FLAT If "Roof-Insulation-Location" is equal to 6 then "Roof-Construction" must be equal to 1 yes yes no
MAIN_HEATING_INVALID_FOR_NO_HEATED_ROOMS If "Heated-Room-Count" is equal to 0 then "SAP-Main-Heating-Code" must be supplied and must be equal to 699 within a "Main-Heating" node where "Main-Heating-Number" is equal to 1 yes yes no
TOO_MANY_HEATED_ROOMS "Heated-Room-Count" must not be greater than "Habitable-Room-Count" yes yes no
FLAT_LOCATION_MUST_MATCH_LEVEL If "Flat-Location" is equal to -1 then "Level" must be equal to 0 and vice versa yes yes no
HEAT_LOSS_PERIMITER_TOO_LOW "Heat-Loss-Perimeter" must be greater than 0 yes yes no
FLOOR_MUST_BE_ZERO_FOR_BUILDING_PART All "SAP-Building-Part" nodes must have a "SAP-Floor-Dimension" node where "Floor" is equal to 0 yes yes no
ONLY_CAVITY_WALLS_SUPPORT_CAVITY_INSULATION If "Wall-Insulation-Type" is equal to 2 then "Wall-Construction" must be equal to 4 yes yes no
SUPPLY_UNHEATED_CORRIDOR_LENGTH If "Heat-Loss-Corridor" is equal to 2 then "Unheated-Corridor-Length" must be supplied and must be greater than 0 yes yes no
WALL_AREA_MUST_BE_POSITIVE "Wall-Area" must be greater than 0 yes yes no
ROOF_INSULATION_INVALID_FOR_FLAT_ROOF If "Roof-Construction" is equal to 1 then "Roof-Insulation-Location" must be equal to 4 or 6 yes yes no
GROUND_FLOOR_HEAT_LOSS_ON_UPPER_FLOOR If "Level" is greater than 1 and "Building-Part-Number" is equal to 1 then "Floor-Heat-Loss" must not be equal to 7 yes yes yes
CORRIDOR_MUST_BE_UNHEATED_FOR_SHELTERED_WALL If "Sheltered-Wall" is equal to 'Y' or 'y' then "Heat-Loss-Corridor" must be equal to 2 yes yes no
ROOM_IN_ROOF_FLOOR_AREA_MUST_BE_POSITIVE "Floor-Area" within "SAP-Room-In-Roof" must be greater than 0 yes yes no
WALL_U_VALUE_TOO_HIGH "Wall-U-Value" must be less than or equal to 2.5 yes yes no
SUPPLY_FLAT_ROOF_DATA If "Roof-Construction" is equal to 1 and "Roof-Insulation-Location" is equal to 6 then either "Flat-Roof-Insulation-Thickness" or "Roof-U-Value" must be supplied yes yes no
HORIZONTAL_WINDOW_MUST_BE_ROOF_WINDOW If "Orientation" within "SAP-Window" is equal to 9 then "Window-Type" must be equal to 2 yes yes no
INVALID_DOOR_COUNT "Door-Count" and "Insulated-Door-Count" must be less than or equal to 20, and "Insulated-Door-Count" must be less than or equal to "Door-Count" yes yes no
SUPPLY_DOOR_U_VALUE If "Insulated-Door-Count" is greater than 0 then "Insulated-Door-U-Value" must be supplied and must be greater than 0 yes yes no
GLAZED_AREA_REQUIRES_WINDOWS If "Glazed-Area" is equal to 4 or 5 then at least one "SAP-Window" must be supplied yes yes no
INVALID_SECONDARY_HEATING_TYPE "Secondary-Heating-Type" must not be equal to 692 or 693 yes yes no
INVALID_HEATING_FOR_SINGLE_METER If "Meter-Type" is equal to 2 then "SAP-Main-Heating-Code" must not be equal to 401, 402, 404, 408, 409, 421 or 422 yes yes no
UNHEATED_ROOMS_MUST_HAVE_HEATING If "Main-Heating-Category" is equal to 1 within a "Main-Heating" node where "Main-Heating-Number" is equal to 1 then "Heated-Room-Count" must not be greater than 0 yes yes no
SECOND_HEATING_SYSTEM_UNSUPPORTED If "Main-Heating-Category" is equal to 1 within a "Main-Heating" node where "Main-Heating-Number" is equal to 1 then no "Main-Heating-Number" may be equal to 2 yes yes no
INVALID_METER_TYPE_FOR_HEATING_CODE_192 If "SAP-Main-Heating-Code" is equal to 192 then "Meter-Type" must be equal to 1, 3 or 5 yes yes no
TOTAL_STORE_VOLUME_TOO_LOW If "Combined-Cylinder" is equal to 'Y' or 'y' and "Dedicated-Solar-Volume" is greater than 0 then "Total-Store-Volume" must be greater than "Dedicated-Solar-Volume" yes yes no
SUPPLY_BOILER_FLUE_TYPE If "Main-Heating-Category" is equal to 2 and "Main-Fuel-Type" is equal to 17, 18, 26, 27, 28, 34, 35, 36, 37 or 51 then "Boiler-Flue-Type" must be supplied yes yes yes
INVALID_HEATING_CODE_FOR_NO_FUEL_TYPE If "Main-Fuel-Type" is equal to 0 then "SAP-Main-Heating-Code" must be equal to 310 or 699 yes yes no
INVALID_WATER_HEATING_CODE_FOR_NO_FUEL_TYPE If "Water-Heating-Fuel" is equal to 0 then "Water-Heating-Code" must be equal to 953 or 999 yes yes no
SUPPLY_SECONDARY_FUEL_TYPE If "Secondary-Heating-Type" is supplied then "Secondary-Fuel-Type" must be supplied yes yes no
SUPPLY_IMMERSION_HEATER_TYPE If "Water-Heating-Code" is equal to 903 then "Immersion-Heater-Type" must not be equal to 'NA' yes yes yes
INVALID_PITCH_FOR_ND_ORIENTATION If "Orientation" within "PV-Array" is equal to 'ND' then "Pitch" must be equal to 1 yes yes no
TOO_MANY_BATH_OR_SHOWER_ROOMS "Rooms-With-Mixer-Shower-No-Bath" plus "Rooms-With-Bath-And-Mixer-Shower" must not be greater than "Rooms-With-Bath-And-Or-Shower" yes yes no
MUST_SUPPLY_RATINGS_AND_COST "Energy-Rating-Average", "Lighting-Cost-Current", "Lighting-Cost-Potential", "Heating-Cost-Current", "Heating-Cost-Potential", "Hot-Water-Cost-Current" and "Hot-Water-Cost-Potential" must be greater than 0 yes yes no
DO_NOT_USE_NR_VALUE "Built-Form", "Floor", "Construction-Age-Band", "Improvement-Type", "Green-Deal-Category", "Previous-EPC-Checked" and "Previous-EPC-Exists" must not be equal to 'NR' yes yes no
ROOF_CONSTRUCTION_MUST_BE_PITCHED If "Roof-Insulation-Location" is equal to 5 then "Roof-Construction" must be equal to 4, 5 or 6 yes yes no
INVALID_ROOM_IN_ROOF_INSULATION "Insulation" within "SAP-Room-In-Roof" must not be equal to 1 yes yes yes no
SUPPLY_FLOOR_U_VALUE_OR_INSULATION_THICKNESS "Floor-U-Value" and "Floor-Insulation-Thickness" must not both be supplied yes yes no
SUPPLY_ROOF_U_VALUE_OR_INSULATION_THICKNESS Only one of "Roof-Insulation-Thickness", "Rafter-Insulation-Thickness", "Flat-Roof-Insulation-Thickness", "Sloping-Ceiling-Insulation-Thickness" or "Roof-U-Value" may be supplied yes yes yes
SUPPLY_WALL_U_VALUE_OR_INSULATION_THICKNESS Only one of "Wall-U-Value" or "Wall-Insulation-Thickness" may be supplied yes yes no
SUPPLY_ROOF_INSULATION_THICKNESS_OR_ROOM_IN_ROOF Only one of "Roof-Insulation-Thickness" or "Room-In-Roof-Details" may be supplied yes yes no
SUPPLY_ALTERNATIVE_WALL_U_VALUE_OR_INSULATION_THICKNESS Only one of "Wall-U-Value" or "Wall-Insulation-Thickness" within "SAP-Alternative-Wall" may be supplied yes yes no
SUPPLY_HEATING_INDEX_NUMBER_OR_CODE Exactly one of "Main-Heating-Index-Number" or "SAP-Main-Heating-Code" must be supplied yes yes no
INVALID_MAIN_HEATING_INDEX_NUMBER "Main-Heating-Index-Number" must be a number greater than 0 yes yes no
INVALID_FGHRS_INDEX_NUMBER "FGHRS-Index-Number" must be greater than 0 yes yes no
MUST_HAVE_FIXED_LIGHTING_OUTLETS "Fixed-Lighting-Outlets-Count" must be greater than 0 yes yes no
INVALID_ADDENDUM_NUMBER "Addendum-Number" must not be equal to 2, 3, 7 or 13 yes yes yes no
ROOM_TOO_LOW "Room-Height" must be greater than 0 yes yes no
INVALID_METER_TYPE_FOR_HEATING_CODE_193 If "SAP-Main-Heating-Code" is equal to 193 or 195 then "Meter-Type" must be equal to 1, 3 or 4 yes yes no
INVALID_ROOF_CONSTRUCTION_FOR_SLOPING_CEILING_INSULATION If "Roof-Insulation-Location" is equal to 7 then "Roof-Construction" must be equal to 8 yes yes no
INVALID_INSULATION_LOCATION_FOR_SLOPING_CEILING_ROOF_CONSTRUCTION If "Roof-Construction" is equal to 8 then "Roof-Insulation-Location" must be equal to 4 or 7 yes yes no
CO2_EMISSIONS_PER_FLOOR_AREA_RANGE "CO2-Emissions-Current-Per-Floor-Area" must be greater than or equal to -100 and less than or equal to 450 yes yes no
DATES_BEFORE_CERTIFICATION_DATE "Inspection-Date", "Registration-Date" and "Completion-Date" must not be before "Certification-Date" no yes
CERTIFICATION_DATE_MUST_NOT_BE_IN_FUTURE "Certification-Date" must not be in the future no yes
INSPECTION_DATE_LATER_THAN_COMPLETION_DATE The "Completion-Date" must be equal to or later than "Inspection-Date" yes yes yes
COMPLETION_DATE_LATER_THAN_REGISTRATION_DATE The "Completion-Date" must be before or equal to the "Registration-Date" yes yes yes
SUPPLY_INSULATION_OR_U_VALUE_FOR_CAVITY_WALL If "Wall-Construction" is equal to 4 and "Wall-Insulation-Type" is equal to 1 or 3 then either "Wall-Insulation-Thickness" or "Wall-U-Value" must be supplied no yes
MUST_HAVE_WWHRS If "WWHRS-Index-Number1" or "WWHRS-Index-Number2" is supplied then "Has-WWHRS" must be supplied and must be equal to 'true' no yes
SUPPLY_CHARGING_LINKED_TO_HEAT_USE If "Community-Heating-Distribution-Type" is equal to 5 or 6 then "Charging-Linked-To-Heat-Use" must not be supplied no yes
NO_PREVIOUS_EPC If "Previous-EPC-Exists" is not equal to 'Y' then "Previous-EPC-Reason-Code" must not be supplied yes yes
INVALID_COUNTRY "Property address must be in England, Wales, or Northern Ireland" yes yes yes