Skip to content

Commit

Permalink
Adds the RFC_WinPath codes back into the report - see MET-2455. But o…
Browse files Browse the repository at this point in the history
…penehr dups still showing.
  • Loading branch information
johncross committed Jul 25, 2018
1 parent e6a93c3 commit bdac1fa
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ FROM
JOIN relationship AS r ON r.destination_id = ce.id AND r.relationship_type_id = 7
LEFT JOIN relationship AS r2 ON r2.source_id = ce.id AND r2.relationship_type_id = 7
LEFT JOIN extension_value AS ev ON ev.element_id = r2.destination_id AND ev.`name` = 'Archetype Path Query Statement'
) AS gel ON gel.source_id = lpc.id AND gel.data_model_id = gel_dm.id AND gel.openehr <> ''
) AS gel ON gel.source_id = lpc.id AND gel.data_model_id = gel_dm.id
WHERE
lpc_dm.id = (SELECT id FROM catalogue_element JOIN data_model USING (id) WHERE `name` = :lpcModel ORDER BY version_number DESC LIMIT 1)
AND wpath_dm.id = IFNULL((SELECT id FROM catalogue_element JOIN data_model USING (id) WHERE `name` = :localModel ORDER BY version_number DESC LIMIT 1), (SELECT id FROM data_element ORDER BY id LIMIT 1))
Expand Down

0 comments on commit bdac1fa

Please sign in to comment.