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

Find Components for LOINC Panel #15

Open
don-torok opened this issue Jan 29, 2021 · 0 comments
Open

Find Components for LOINC Panel #15

don-torok opened this issue Jan 29, 2021 · 0 comments

Comments

@don-torok
Copy link

Given the LOINC code 24338-6 (Gas panel - Blood) find the LOINC components that make up the panel

SELECT DISTINCT parent.concept_code, parent.concept_name,relationship_id,
              min_levels_of_separation, child.concept_code, child.concept_name
FROM concept parent
JOIN  concept_ancestor ON ancestor_concept_id = parent.concept_id
JOIN concept_relationship ON concept_id_1 = descendant_concept_id
JOIN concept child on child.concept_id = descendant_concept_id
WHERE parent.concept_code = '24338-6'
  AND relationship_id = 'Contained in panel'
ORDER by min_levels_of_separation, child.concept_code;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant