-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove 'LOINC' from 'Has Answer' and 'Answer of' relationships
- Loading branch information
Timur
committed
Jun 17, 2020
1 parent
9b84078
commit 18f7231
Showing
1 changed file
with
15 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--remove 'LOINC' from 'Has Answer' and 'Answer of' relationships [AVOF-2614] | ||
UPDATE relationship | ||
SET relationship_name = 'Has Answer' | ||
WHERE relationship_id = 'Has Answer'; | ||
|
||
UPDATE relationship | ||
SET relationship_name = 'Answer of' | ||
WHERE relationship_id = 'Answer of'; | ||
|
||
UPDATE concept | ||
SET concept_name = REPLACE(concept_name, ' (LOINC)', '') | ||
WHERE concept_id IN ( | ||
45754684, -- 'Answer of' | ||
45754683 -- 'Has Answer' | ||
); |