This query provides all ingredients that are indicated for a certain indication. Indications have to be provided as SNOMED-CT concept ID.
SELECT DISTINCT
ingredient.concept_id as ingredient_concept_id,
ingredient.concept_name as ingredient_concept_name,
ingredient.concept_code as ingredient_concept_code
FROM
@vocab.concept ingredient,
@vocab.concept_ancestor snomed,
@vocab.concept_ancestor ind,
@vocab.concept_relationship r
WHERE
snomed.ancestor_concept_id = $1 AND
snomed.descendant_concept_id = r.concept_id_1 AND
concept_id_2 = ind.ancestor_concept_id AND
ind.descendant_concept_id = ingredient.concept_id
;
| Parameter | Example | Mandatory | Notes | | --- | --- | --- | --- | | Indication Concept ID | 253954 | Yes | SNOMED-CT indication concept ID |
| Field | Description | | --- | --- | | Ingredient_Concept_ID | Concept ID of the ingredient | | Ingredient_Concept_Name | Name of the ingredient | | Ingredient_Concept_Code | Concept code of the ingredient |
| Field | Value | | --- | --- | | Ingredient_Concept_ID | 1790868 | | Ingredient_Concept_Name | Amikacin | | Ingredient_Concept_Code | 641 |
https://github.com/OHDSI/CommonDataModel/wiki/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.