Skip to content

Commit

Permalink
Bug with concept class assignment fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
olegzhuk committed Mar 19, 2022
1 parent ba81f26 commit 91ae025
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SNOMED/load_stage.sql
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ FROM (
-- order of precedence: active, by class relevance
-- Might be redundant, as normally concepts will never have more than 1 hierarchy tag, but we have concurrent sources, so this may prevent problems and breaks nothing
ORDER BY active DESC,
rnb,
CASE f7
WHEN 'disorder'
THEN 1
Expand Down Expand Up @@ -279,8 +280,7 @@ FROM (
WHEN 'environment / location'
THEN 52
ELSE 99
END,
rnb
END
) AS rnc
FROM (
SELECT concept_code,
Expand Down

0 comments on commit 91ae025

Please sign in to comment.