Skip to content
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

Manual changes 2025 1 #1090

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions working/manual_changes/2025/2025-01-09.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-- Add a new relationship of between HCPCS/CPT4 concepts and the Visit domain:
DO $_$
BEGIN
PERFORM vocabulary_pack.AddNewRelationship(
pRelationship_name =>'Has associated visit (OMOP)',
pRelationship_id =>'Has asso visit',
pIs_hierarchical =>0,
pDefines_ancestry =>0,
pReverse_relationship_id =>'Asso visit of',
pRelationship_name_rev =>'Associated visit of (OMOP)',
pIs_hierarchical_rev =>0,
pDefines_ancestry_rev =>0
);
END $_$;
11 changes: 11 additions & 0 deletions working/manual_changes/2025/2025-01-10.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
-- 1. Make SNOMED Veterinary relationships 'Sub-specimen of' and 'Has sub-specimen' non-hierarchical:
--- They lead to the hierarchy loops creation in concept_ancestor

UPDATE relationship
SET is_hierarchical = 0
WHERE relationship_id IN ('Sub-specimen of', 'Has sub-specimen')
;

UPDATE relationship
SET defines_ancestry = 0
WHERE relationship_id IN ('Sub-specimen of', 'Has sub-specimen');