SELECT sum(COALESCE(c.total_paid, 0)) as total_cost4era
FROM @cdm.drug_exposure e,
@cdm.cost c
WHERE
exists
(
select 1
from @cdm.drug_era r,
@vocab.concept_ancestor m
where
r.drug_era_id = $1
and r.person_id = e.person_id
and r.drug_concept_id = m.ancestor_concept_id
and e.drug_concept_id = m.descendant_concept_id
and (e.drug_exposure_start_date >= r.drug_era_start_date) AND (e.drug_exposure_start_date <= r.drug_era_end_date)
)
AND e. drug_exposure_id = c.cost_event_id
| Parameter | Example | Mandatory | Notes | | --- | --- | --- | --- | | drug_era_id | 20 | Yes | |
| Field | Description | | --- | --- | | Total_cost4era | Total cost for drug era |
| Field | Description | | --- | --- | | Total_cost4era | 25.23 |
https://github.com/OHDSI/CommonDataModel/wiki/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.