Skip to content

Commit

Permalink
Merge pull request #55 from OHDSI/ehr-doc-upd-feb24
Browse files Browse the repository at this point in the history
added missing parts
  • Loading branch information
bradanton authored Feb 23, 2024
2 parents bc8c239 + 2832ec3 commit a666cec
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/OPTUM_PANTHER/Optum_Panther_Rx_Written_STEM.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ description: "OPTUM EHR Prescriptions_Written table to STEM"
| end_date | | To find end_date, do start_date + days_supply-1 | |
| start_datetime | rx_time | Combine rx_date and rx_time into a datetime| |
| end_datetime | | Start_date + days_supply-1 and set time to midnight | |
| concept_id |ndc |Use the [SOURCE_TO_STANDARD](https://github.com/OHDSI/ETL-LambdaBuilder/blob/master/docs/Standard%20Queries/SOURCE_TO_STANDARD.sql) query to map the code to standard concept(s) with the following filters: <br> <br> Where source_vocabulary_id = 'NDC' and Target_standard_concept = 'S' and target_invalid_reason is NULL and admin_date between valid_start_date and valid_end_date<br><br>If there is no mapping available, set concept_id to zero.| |
| concept_id |ndc |Use the [SOURCE_TO_STANDARD](https://github.com/OHDSI/ETL-LambdaBuilder/blob/master/docs/Standard%20Queries/SOURCE_TO_STANDARD.sql) query to map the code to standard concept(s) with the following filters: <br> <br> Where source_vocabulary_id = 'NDC' and Target_standard_concept = 'S' and target_invalid_reason is NULL and admin_date between valid_start_date and valid_end_date<br><br>If there is no mapping available, set concept_id to zero.| When mapping a prescription drug, map the 11-digit NDC code to SOURCE_CODE in OMOP vocab first. <br> If no mapping found, map the first 9 digits of NDC code to SOURCE_CODE. |
|source_value| ndc |||
| source_concept_id | ndc | Use the [SOURCE_TO_SOURCE](https://github.com/OHDSI/ETL-LambdaBuilder/blob/master/docs/Standard%20Queries/SOURCE_TO_SOURCE.sql) query to map the code to standard concept(s) with the following filters: <br> <br> Where source_vocabulary_id = 'NDC'<br><br>If there is no mapping available, set concept_id to zero.| |
| type_concept_id | 32838 | EHR Prescription | |
Expand Down Expand Up @@ -56,4 +56,9 @@ description: "OPTUM EHR Prescriptions_Written table to STEM"
| anatomic_site_source_value | | | |
| disease_status_source_value | | | |
| condition_status_concept_id | | | |
| condition_status_source_value | | | |
| condition_status_source_value | | | |

## Change Log:

### 07-Feb-2024
- Added 11-digit/9-digit NDC rule
7 changes: 7 additions & 0 deletions docs/OPTUM_PANTHER/Optum_Panther_death.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ description: "Death table mapping from Optum EHR patient table"

---

## **Note**:

A person’s death should be removed if any data available > 30 days after date_of_death

# CDM Table: DEATH

In Optum EHR this information will be sourced from the native **PATIENT** table. Only take records where **DECEASED_INDICATOR** = 1 and **DATE_OF_DEATH** is not blank.
Expand All @@ -23,6 +27,9 @@ CAUSE_SOURCE_CONCEPT_ID|0|||

## Change Log:

### 07-Feb-2024
- Added note

### November 2, 2021
- Changed DEATH_TYPE_CONCEPT_ID to 32519
---
Expand Down

0 comments on commit a666cec

Please sign in to comment.