The following is a sample run of the query. The input parameters are highlighted in
/* indication and associated drug ids */
SELECT c1.concept_name, COUNT(DISTINCT de.person_id) AS count_value
FROM @vocab.concept c1
JOIN @vocab.concept_ancestor ca
ON ca.ancestor_concept_id = c1.concept_id
JOIN @cdm.drug_exposure de
ON ca.descendant_concept_id = de.drug_concept_id
JOIN @vocab.concept c2
ON de.drug_concept_id = c2.concept_id
WHERE c1.concept_name = 'Tuberculosis'
AND c1.concept_class_id = 'Ind / CI'
AND c2.domain_id = 'Drug'
AND c2.vocabulary_id = 'RxNorm'
AND c2.standard_concept = 'S'
GROUP BY c1.concept_name;
| Parameter | Example | Mandatory | Notes | | --- | --- | --- | --- | | concept_name | Tuberculosis | Yes |
| Field | Description | | --- | --- | | concept_name | The reason the medication was stopped, where available. Reasons include regimen completed, changed, removed, etc. | | count | |
| Field | Description | | --- | --- | | concept_name | | | count | |
https://github.com/OHDSI/CommonDataModel/wiki/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.