Skip to content

Commit 1435b5c

Browse files
committed
Make alias query override required
1 parent 23d7849 commit 1435b5c

2 files changed

Lines changed: 12 additions & 8 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
SELECT
3+
a.Id as resolvedId,
4+
a.alias as inputId,
5+
'alias' as resolvedBy,
6+
a.category as aliasType,
7+
LOWER(a.alias) as lowerAliasForMatching
8+
FROM study.alias a
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
1-
1+
-- Override this to implement alias matching in React animal history. See EHR_App module for an example.
22
SELECT
3-
a.Id as resolvedId,
4-
a.alias as inputId,
5-
'alias' as resolvedBy,
6-
a.category as aliasType,
7-
LOWER(a.alias) as lowerAliasForMatching
8-
FROM study.alias a
9-
INNER JOIN study.demographics d ON a.Id = d.Id
3+
*
4+
FROM study.demographics a
5+
WHERE 0 = 1

0 commit comments

Comments
 (0)