Skip to content

Commit

Permalink
Merge pull request #838 from OHDSI/build_rxe_stability_not_null_fix
Browse files Browse the repository at this point in the history
Regular BuildRxE resulted in some fatal errors on some source. This f…
  • Loading branch information
hardhouse committed May 31, 2023
2 parents 5821f47 + dbae5b2 commit 69d808a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions working/packages/vocabulary_pack/BuildRxE.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5798,7 +5798,7 @@ BEGIN
FROM concept_stage
WHERE concept_class_id = 'Dose Form' -- the new negative ones
) df ON df.df_id = de.df_id
WHERE de.concept_id < 0
WHERE de.concept_id < 0 AND de.concept_code IS NOT NULL
AND de.df_id <> 0;

-- Brand Names
Expand Down Expand Up @@ -5846,7 +5846,7 @@ BEGIN
FROM concept_stage
WHERE concept_class_id = 'Brand Name' -- the new negative ones
) bn ON bn.bn_id = de.bn_id
WHERE de.concept_id < 0
WHERE de.concept_id < 0 AND de.concept_code IS NOT NULL
AND de.bn_id <> 0;

-- Suppliers
Expand Down Expand Up @@ -5894,7 +5894,7 @@ BEGIN
FROM concept_stage
WHERE concept_class_id = 'Supplier' -- the new negative ones
) mf ON mf.mf_id = de.mf_id
WHERE de.concept_id < 0
WHERE de.concept_id < 0 AND de.concept_code IS NOT NULL
AND de.mf_id <> 0;

-- Write relationships between Brand Name and Ingredient
Expand Down

0 comments on commit 69d808a

Please sign in to comment.