[GH-ISSUE #45] Add check for duplicate custom concepts #27

Closed
opened 2026-03-23 20:28:36 +00:00 by mirror · 1 comment
Owner

Originally created by @pjlammertyn on GitHub (Apr 11, 2024).
Original GitHub issue: https://github.com/RADar-AZDelta/Rabbit-in-a-Blender/issues/45

Originally assigned to: @pjlammertyn on GitHub.

example query for check:

select T.concept_code, count(*)
from (
    SELECT DISTINCT swap.y as concept_id, t.* EXCEPT(concept_id)
    FROM `work.observation__observation_concept_id_concept` t
    INNER JOIN `work.concept_id_swap` swap 
        on swap.x = concat('observation_concept_id__', t.concept_code)
) T
group by T.concept_code
having count(*) > 1
Originally created by @pjlammertyn on GitHub (Apr 11, 2024). Original GitHub issue: https://github.com/RADar-AZDelta/Rabbit-in-a-Blender/issues/45 Originally assigned to: @pjlammertyn on GitHub. example query for check: ```sql select T.concept_code, count(*) from ( SELECT DISTINCT swap.y as concept_id, t.* EXCEPT(concept_id) FROM `work.observation__observation_concept_id_concept` t INNER JOIN `work.concept_id_swap` swap on swap.x = concat('observation_concept_id__', t.concept_code) ) T group by T.concept_code having count(*) > 1 ```
mirror 2026-03-23 20:28:36 +00:00
Author
Owner

@pjlammertyn commented on GitHub (Apr 12, 2024):

solved in commit github.com/RADar-AZDelta/Rabbit-in-a-Blender@b81f8cf172

<!-- gh-comment-id:2051984348 --> @pjlammertyn commented on GitHub (Apr 12, 2024): solved in commit https://github.com/RADar-AZDelta/Rabbit-in-a-Blender/commit/b81f8cf172d1f9361c68f0fdf227f7a8f3d00f1c
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
RADar-AZDelta/archived-Rabbit-in-a-Blender#27
No description provided.