Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix diagnosis code type mapping
Browse files Browse the repository at this point in the history
sarah-tuva committed Sep 30, 2024
1 parent ac37b7b commit 9966968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions models/intermediate/physician_claims.sql
Original file line number Diff line number Diff line change
@@ -44,8 +44,8 @@ select
, {{ cast_numeric('NULL') }} as deductible_amount
, {{ cast_numeric('NULL') }} as total_cost_amount
, case
when cast(dgns_prcdr_icd_ind as {{ dbt.type_string() }} ) = '0' then 'icd-10-pcs'
when cast(dgns_prcdr_icd_ind as {{ dbt.type_string() }} ) = '9' then 'icd-9-pcs'
when cast(dgns_prcdr_icd_ind as {{ dbt.type_string() }} ) = '0' then 'icd-10-cm'
when cast(dgns_prcdr_icd_ind as {{ dbt.type_string() }} ) = '9' then 'icd-9-cm'
else cast(dgns_prcdr_icd_ind as {{ dbt.type_string() }} ) end as diagnosis_code_type
, cast(clm_dgns_1_cd as {{ dbt.type_string() }} ) as diagnosis_code_1
, cast(clm_dgns_2_cd as {{ dbt.type_string() }} ) as diagnosis_code_2

0 comments on commit 9966968

Please sign in to comment.