Skip to content

Commit 275c71a

Browse files
oleg-odysseuschrisknoll
authored andcommitted
[issue-2455] Added condition to the related non-standards concepts-fetching queries that restrict the search only to 'Maps to' relationships
1 parent d91f677 commit 275c71a

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/resources/resources/vocabulary/sql/getRelatedStandardMappedConcepts.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ FROM (
2626
cr.CONCEPT_ID_1 IN (@conceptIdList)
2727
AND COALESCE(c.STANDARD_CONCEPT, 'N') IN ('S', 'C')
2828
AND cr.INVALID_REASON IS NULL
29+
AND cr.relationship_id = 'Maps to'
2930
) c
3031
GROUP BY
3132
c.CONCEPT_ID,

src/main/resources/resources/vocabulary/sql/getRelatedStandardMappedConcepts_getMappedFromIds.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ FROM (
1515
cr.CONCEPT_ID_1 IN (@conceptIdList)
1616
AND COALESCE(c.STANDARD_CONCEPT, 'N') IN ('S', 'C')
1717
AND cr.INVALID_REASON IS NULL
18+
AND cr.relationship_id = 'Maps to'
1819
) c
1920
ORDER BY
2021
c.CONCEPT_ID;

0 commit comments

Comments
 (0)