@@ -22,7 +22,8 @@ WITH consolidated_ahm AS (SELECT id,
22
22
trim (coalesce(code_ahb_status, coalesce(dataelement_ahb_status,
23
23
coalesce(segment_ahb_status, segmentgroup_ahb_status)))) AS line_ahb_status,
24
24
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
26
27
FROM ahb_hierarchy_materialized ahm
27
28
WHERE ahm .TYPE != ' dataelementgroup'
28
29
AND (ahm .TYPE != ' dataelement' OR ahm .dataelement_ahb_status IS NOT NULL ))
@@ -44,6 +45,7 @@ SELECT c.id as id,
44
45
c .code_value as qualifier,
45
46
c .line_ahb_status as line_ahb_status, -- e.g. 'Muss [28] ∧ [64]'
46
47
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,
47
49
c .sort_path as sort_path,
48
50
NULLIF(ahe .node_texts , ' ' ) as bedingung,
49
51
NULLIF(ahe .ahbicht_error_message , ' ' ) as bedingungsfehler
0 commit comments