@@ -22,7 +22,8 @@ WITH consolidated_ahm AS (SELECT id,
2222 trim (coalesce(code_ahb_status, coalesce(dataelement_ahb_status,
2323 coalesce(segment_ahb_status, segmentgroup_ahb_status)))) AS line_ahb_status,
2424 coalesce(code_name, coalesce(dataelement_name, coalesce(dataelementgroup_name,
25- coalesce(segment_name, segmentgroup_name)))) AS line_name
25+ coalesce(segment_name, segmentgroup_name)))) AS line_name,
26+ type as line_type
2627 FROM ahb_hierarchy_materialized ahm
2728 WHERE ahm .TYPE != ' dataelementgroup'
2829 AND (ahm .TYPE != ' dataelement' OR ahm .dataelement_ahb_status IS NOT NULL ))
@@ -44,6 +45,7 @@ SELECT c.id as id,
4445 c .code_value as qualifier,
4546 c .line_ahb_status as line_ahb_status, -- e.g. 'Muss [28] ∧ [64]'
4647 c .line_name as line_name, -- e.g. 'Datums- oder Uhrzeit- oder Zeitspannen-Format, Code' or 'Produkt-Daten für Lieferant relevant'
48+ c .line_type as line_type,
4749 c .sort_path as sort_path,
4850 NULLIF(ahe .node_texts , ' ' ) as bedingung,
4951 NULLIF(ahe .ahbicht_error_message , ' ' ) as bedingungsfehler
0 commit comments