File tree 3 files changed +8
-3
lines changed
3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ class DataElement(FundamendBaseModel):
34
34
# </D_0065>
35
35
id : str # e.g. 'D_0065'
36
36
name : str # e.g. 'Nachrichtentyp-Kennung'
37
+ ahb_status : str | None # e.g. 'X'
37
38
codes : tuple [Code , ...]
38
39
39
40
Original file line number Diff line number Diff line change @@ -91,9 +91,13 @@ def _to_data_element(element: ET.Element) -> DataElement:
91
91
codes .append (_to_code (child ))
92
92
else :
93
93
raise ValueError (f"unexpected element: { child .tag } " )
94
+ ahb_status : str | None = None
95
+ if "AHB_Status" in element .attrib and element .attrib ["AHB_Status" ].strip ():
96
+ ahb_status = element .attrib ["AHB_Status" ]
94
97
return DataElement (
95
98
id = element .tag ,
96
99
name = element .attrib ["Name" ],
100
+ ahb_status = ahb_status ,
97
101
codes = tuple (codes ),
98
102
)
99
103
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments