-
Notifications
You must be signed in to change notification settings - Fork 0
Map unknown concepts to 0 rather than null. When mapping from known c… #279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
bdb238d
26c7b73
d90282c
3fabb9b
b7f9794
b1954c9
fd25997
b824f68
037d73b
42bfc5b
95a598c
a585597
c18fcda
7e5fb3b
52a203e
d964ab4
a9348d1
0f10a6f
4e0642a
d8df297
3e017af
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -122,6 +122,7 @@ where r.RecordConnectionIdentifier is not null | |
| and co.person_id = p.person_id | ||
| and co.RecordConnectionIdentifier = r.RecordConnectionIdentifier | ||
| and co.condition_concept_id = r.condition_concept_id | ||
| and (co.condition_concept_id != 0 or and co.condition_source_value = r.condition_source_value) | ||
|
||
| ) | ||
| and not exists ( | ||
| select 1 | ||
|
|
@@ -130,6 +131,7 @@ where r.RecordConnectionIdentifier is null | |
| and co.condition_concept_id = r.condition_concept_id | ||
| and co.condition_start_date = r.condition_start_date | ||
| and co.person_id = p.person_id | ||
| and (co.condition_concept_id != 0 or and co.condition_source_value = r.condition_source_value) | ||
| ); | ||
|
|
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Syntax error in SQL: duplicate 'or and' keywords. Should be either 'or' or 'and', not both. The correct syntax should be
and (co.condition_concept_id != 0 or co.condition_source_value = r.condition_source_value).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot open a new pull request to apply changes based on this feedback