From bc394ce5f52e37b78bda7ceecf931bd4f2781d0b Mon Sep 17 00:00:00 2001 From: Khalim Conn-Kowlessar Date: Thu, 25 Jun 2026 20:38:50 +0000 Subject: [PATCH] =?UTF-8?q?Map=20built=5Fform=20on=20full-SAP=20certs=20?= =?UTF-8?q?=F0=9F=9F=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.8 (1M context) --- datatypes/epc/domain/mapper.py | 3 +++ datatypes/epc/schema/sap_schema_17_1.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/datatypes/epc/domain/mapper.py b/datatypes/epc/domain/mapper.py index 3539fd0eb..ae8682b0e 100644 --- a/datatypes/epc/domain/mapper.py +++ b/datatypes/epc/domain/mapper.py @@ -745,6 +745,9 @@ class EpcPropertyDataMapper: if schema.property_type is not None else None ), + built_form=( + str(schema.built_form) if schema.built_form is not None else None + ), dwelling_type=( schema.dwelling_type if isinstance(schema.dwelling_type, str) diff --git a/datatypes/epc/schema/sap_schema_17_1.py b/datatypes/epc/schema/sap_schema_17_1.py index ab4a33fa3..1f7754bb2 100644 --- a/datatypes/epc/schema/sap_schema_17_1.py +++ b/datatypes/epc/schema/sap_schema_17_1.py @@ -206,6 +206,9 @@ class SapSchema17_1: # home). Feeds the calculator's house/flat heat-transmission split; left # absent the dwelling is classified as neither → mis-scored (ADR-0037). property_type: Optional[int] = None + # gov built_form code (1 detached … 6 enclosed mid-terrace). Carried for the + # property-details panel and exposed-side handling (ADR-0037). + built_form: Optional[int] = None # measured living-room area (m²); the engine consumes it via a back-solved # habitable_rooms_count (Table 27). Optional — 100% present in the corpus. living_area: Optional[Union[int, float]] = None