Skip to content

Commit

Permalink
Correct references
Browse files Browse the repository at this point in the history
  • Loading branch information
burrowse committed Feb 7, 2024
1 parent 9e6bb1b commit 92c9411
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions inst/sql/sql_server/cdm_version/v531/insert_location.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ states_map.state_abbreviation state,
cast(null as varchar) county,
p.zip zip,
p.zip location_source_value
from @synthea_schema.patients p) locations
left join @cdm_schema.states_map states_map on locations.state=states_map.state
;
from @synthea_schema.patients p
left join cdm_synthea_30_v54.states_map states_map on p.state=states_map.state) locations
;
2 changes: 1 addition & 1 deletion inst/sql/sql_server/cdm_version/v531/insert_person.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ with mapped_states as (

select distinct l.location_id,l.city,states_map.state,l.zip
from @cdm_schema.location l
left join states_map state_map on l.state=states_map.state_abbreviation
left join @cdm_schema.states_map states_map on l.state=states_map.state_abbreviation
)
select
row_number()over(order by p.id),
Expand Down
4 changes: 2 additions & 2 deletions inst/sql/sql_server/cdm_version/v540/insert_location.sql
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ states_map.state_abbreviation state,
cast(null as varchar) county,
p.zip zip,
p.zip location_source_value
from @synthea_schema.patients p) locations
left join @cdm_schema.states_map states_map on locations.state=states_map.state
from @synthea_schema.patients p
left join cdm_synthea_30_v54.states_map states_map on p.state=states_map.state) locations
;
2 changes: 1 addition & 1 deletion inst/sql/sql_server/cdm_version/v540/insert_person.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ with mapped_states as (

select distinct l.location_id,l.city,states_map.state,l.zip
from @cdm_schema.location l
left join states_map state_map on l.state=states_map.state_abbreviation
left join @cdm_schema.states_map states_map on l.state=states_map.state_abbreviation
)
select
row_number()over(order by p.id),
Expand Down

0 comments on commit 92c9411

Please sign in to comment.