Skip to content

Commit

Permalink
Add updated condition and procedure support for v3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
burrowse committed Sep 18, 2024
1 parent a18b2e8 commit ae71db6
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,27 @@ join @cdm_schema.source_to_standard_vocab_map srctostdvm
on srctostdvm.source_code = c.code
and srctostdvm.target_domain_id = 'Condition'
and srctostdvm.target_vocabulary_id = 'SNOMED'
{@synthea_version == "2.7.0" | @synthea_version == "3.0.0" | @synthea_version == "3.1.0" | @synthea_version == "3.2.0"} ? {
and srctostdvm.source_vocabulary_id = 'SNOMED'
}

{@synthea_version == "3.3.0"} ? {
and srctostdvm.source_vocabulary_id in ( 'SNOMED','ICD10CM')
}

and srctostdvm.target_standard_concept = 'S'
and srctostdvm.target_invalid_reason is null
join @cdm_schema.source_to_source_vocab_map srctosrcvm
on srctosrcvm.source_code = c.code

{@synthea_version == "2.7.0" | @synthea_version == "3.0.0" | @synthea_version == "3.1.0" | @synthea_version == "3.2.0"} ? {
and srctosrcvm.source_vocabulary_id = 'SNOMED'
}

{@synthea_version == "3.3.0"} ? {
and srctosrcvm.source_vocabulary_id in ('SNOMED','ICD10CM')
}

and srctosrcvm.source_domain_id = 'Condition'
left join @cdm_schema.final_visit_ids fv
on fv.encounter_id = c.encounter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,23 @@ join @cdm_schema.source_to_standard_vocab_map srctostdvm
on srctostdvm.source_code = pr.code
and srctostdvm.target_domain_id = 'Procedure'
and srctostdvm.target_vocabulary_id = 'SNOMED'
and srctostdvm.source_vocabulary_id = 'SNOMED'
{@synthea_version == "2.7.0" | @synthea_version == "3.0.0" | @synthea_version == "3.1.0" | @synthea_version == "3.2.0" } ? {
and srctostdvm.source_vocabulary_id = 'SNOMED'
}
{@synthea_version == "3.3.0" } ? {
and srctostdvm.source_vocabulary_id in ('SNOMED','HCPCS')
}
and srctostdvm.target_standard_concept = 'S'
and srctostdvm.target_invalid_reason is null
join @cdm_schema.source_to_source_vocab_map srctosrcvm
on srctosrcvm.source_code = pr.code
{@synthea_version == "2.7.0" | @synthea_version == "3.0.0" | @synthea_version == "3.1.0" | @synthea_version == "3.2.0" } ? {
and srctosrcvm.source_vocabulary_id = 'SNOMED'
}

{@synthea_version == "3.3.0" } ? {
and srctosrcvm.source_vocabulary_id in ('SNOMED','HCPCS')
}
left join @cdm_schema.final_visit_ids fv
on fv.encounter_id = pr.encounter
left join @synthea_schema.encounters e
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,25 @@ join @cdm_schema.source_to_standard_vocab_map srctostdvm
on srctostdvm.source_code = pr.code
and srctostdvm.target_domain_id = 'Procedure'
and srctostdvm.target_vocabulary_id = 'SNOMED'
and srctostdvm.source_vocabulary_id = 'SNOMED'

{@synthea_version == "2.7.0" | @synthea_version == "3.0.0" | @synthea_version == "3.1.0" | @synthea_version == "3.2.0" } ? {
and srctostdvm.source_vocabulary_id = 'SNOMED'
}
{@synthea_version == "3.3.0" } ? {
and srctostdvm.source_vocabulary_id in ('SNOMED','HCPCS')
}
and srctostdvm.target_standard_concept = 'S'
and srctostdvm.target_invalid_reason is null
join @cdm_schema.source_to_source_vocab_map srctosrcvm
on srctosrcvm.source_code = pr.code
{@synthea_version == "2.7.0" | @synthea_version == "3.0.0" | @synthea_version == "3.1.0" | @synthea_version == "3.2.0" } ? {
and srctosrcvm.source_vocabulary_id = 'SNOMED'
}

{@synthea_version == "3.3.0" } ? {
and srctosrcvm.source_vocabulary_id in ('SNOMED','HCPCS')
}

left join @cdm_schema.final_visit_ids fv
on fv.encounter_id = pr.encounter
left join @synthea_schema.encounters e
Expand Down

0 comments on commit ae71db6

Please sign in to comment.