We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fb6506 commit 3af9b0bCopy full SHA for 3af9b0b
1 file changed
snprc_ehr/resources/source_queries/create_v_labwork_results.sql
@@ -31,7 +31,7 @@ ALTER VIEW [labkey_etl].[v_labwork_results] AS
31
-- Note: Merged all procedure types into a single query
32
-- Changes:
33
--
34
---
+-- 4/11/2022 Fixed NTE concatenation bug
35
-- ==========================================================================================
36
37
SELECT
@@ -58,7 +58,7 @@ SELECT
58
REPLACE(
59
(SELECT RTRIM(LTRIM(nte.comment)) + '**NEWLINE**'
60
FROM dbo.CLINICAL_PATH_NTE AS nte
61
- WHERE nte.message_id = obr.message_id AND obx.set_id = nte.set_id
+ WHERE nte.message_id = obr.message_id
62
ORDER BY CAST(nte.set_id AS INTEGER)
63
FOR XML PATH ('') -- generates a concatenation of notes
64
0 commit comments