Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update v5.3 insert for device exposure based on field length issue #179

Merged
merged 1 commit into from
Jan 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ d.start device_exposure_start_datetime,
d.stop device_exposure_end_date,
d.stop device_exposure_end_datetime,
32827 device_type_concept_id,
d.udi unique_device_id,
left(d.udi,50) unique_device_id,
cast(null as int) quantity,
pr.provider_id provider_id,
fv.visit_occurrence_id_new visit_occurrence_id,
Expand All @@ -50,7 +50,7 @@ left join @cdm_schema.final_visit_ids fv
left join @synthea_schema.encounters e
on d.encounter = e.id
and d.patient = e.patient
left join @cdm_schema.provider pr
left join @cdm_schema.provider pr
on e.provider = pr.provider_source_value
join @cdm_schema.person p
on p.person_source_value = d.patient
Expand Down
Loading