Skip to content

Commit

Permalink
add brand names, around ~1k obs
Browse files Browse the repository at this point in the history
  • Loading branch information
alistairewj committed Aug 26, 2024
1 parent 64d3087 commit ccc6f75
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions mimic-iv/concepts/medication/arb.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ WITH arb_drug AS (
SELECT DISTINCT
drug
, CASE
WHEN UPPER(drug) LIKE '%AZILSARTAN%' THEN 1
WHEN UPPER(drug) LIKE '%CANDESARTAN%' THEN 1
WHEN UPPER(drug) LIKE '%IRBESARTAN%' THEN 1
WHEN UPPER(drug) LIKE '%LOSARTAN%' THEN 1
WHEN UPPER(drug) LIKE '%OLMESARTAN%' THEN 1
WHEN UPPER(drug) LIKE '%TELMISARTAN%' THEN 1
WHEN UPPER(drug) LIKE '%VALSARTAN%' THEN 1
WHEN UPPER(drug) LIKE '%AZILSARTAN%' OR UPPER(drug) LIKE '%EDARBI%' THEN 1
WHEN UPPER(drug) LIKE '%CANDESARTAN%' OR UPPER(drug) LIKE '%ATACAND%' THEN 1
WHEN UPPER(drug) LIKE '%IRBESARTAN%' OR UPPER(drug) LIKE '%AVAPRO%' THEN 1
WHEN UPPER(drug) LIKE '%LOSARTAN%' OR UPPER(drug) LIKE '%COZAAR%' THEN 1
WHEN UPPER(drug) LIKE '%OLMESARTAN%' OR UPPER(drug) LIKE '%BENICAR%' THEN 1
WHEN UPPER(drug) LIKE '%TELMISARTAN%' OR UPPER(drug) LIKE '%MICARDIS%' THEN 1
WHEN UPPER(drug) LIKE '%VALSARTAN%' OR UPPER(drug) LIKE '%DIOVAN%' THEN 1
WHEN UPPER(drug) LIKE '%SACUBITRIL%' OR UPPER(drug) LIKE '%ENTRESTO%' THEN 1
ELSE 0
END AS arb
FROM `physionet-data.mimiciv_hosp.prescriptions`
Expand Down

0 comments on commit ccc6f75

Please sign in to comment.