Skip to content

Commit

Permalink
Add visit_detail
Browse files Browse the repository at this point in the history
  • Loading branch information
na399 committed Sep 5, 2024
1 parent 19951e1 commit bf7bca2
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 12 deletions.
6 changes: 3 additions & 3 deletions care_site.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Reading from intra_op__operation

![](md_files/image14.png)
![](md_files/image16.png)

| Destination Field | Source field | Logic | Comment field |
| --- | --- | --- | --- |
Expand All @@ -15,7 +15,7 @@

### Reading from post_op__discharge

![](md_files/image15.png)
![](md_files/image17.png)

| Destination Field | Source field | Logic | Comment field |
| --- | --- | --- | --- |
Expand All @@ -28,7 +28,7 @@

### Reading from post_op__icu

![](md_files/image16.png)
![](md_files/image18.png)

| Destination Field | Source field | Logic | Comment field |
| --- | --- | --- | --- |
Expand Down
2 changes: 1 addition & 1 deletion condition_occurrence.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Reading from post_op__discharge

![](md_files/image9.png)
![](md_files/image11.png)

| Destination Field | Source field | Logic | Comment field |
| --- | --- | --- | --- |
Expand Down
2 changes: 1 addition & 1 deletion death.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Reading from post_op__info

![](md_files/image13.png)
![](md_files/image15.png)

| Destination Field | Source field | Logic | Comment field |
| --- | --- | --- | --- |
Expand Down
4 changes: 3 additions & 1 deletion index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Source Data Mapping Approach to CDMV5.4

![](md_files/image18.png)
![](md_files/image20.png)

## Contents

Expand All @@ -10,6 +10,8 @@

[visit_occurrence](visit_occurrence.md)

[visit_detail](visit_detail.md)

[condition_occurrence](condition_occurrence.md)

[observation](observation.md)
Expand Down
6 changes: 3 additions & 3 deletions observation.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Reading from pre_op__risk_index

![](md_files/image10.png)
![](md_files/image12.png)

| Destination Field | Source field | Logic | Comment field |
| --- | --- | --- | --- |
Expand Down Expand Up @@ -30,7 +30,7 @@

### Reading from pre_op__others

![](md_files/image11.png)
![](md_files/image13.png)

| Destination Field | Source field | Logic | Comment field |
| --- | --- | --- | --- |
Expand Down Expand Up @@ -58,7 +58,7 @@

### Reading from pre_op__char

![](md_files/image12.png)
![](md_files/image14.png)

| Destination Field | Source field | Logic | Comment field |
| --- | --- | --- | --- |
Expand Down
2 changes: 1 addition & 1 deletion provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

### Reading from intra_op__operation

![](md_files/image17.png)
![](md_files/image19.png)

| Destination Field | Source field | Logic | Comment field |
| --- | --- | --- | --- |
Expand Down
54 changes: 54 additions & 0 deletions visit_detail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
## Table name: visit_detail

### Reading from post_op__icu

![](md_files/image9.png)

| Destination Field | Source field | Logic | Comment field |
| --- | --- | --- | --- |
| visit_detail_id | id | | |
| person_id | anon_case_no | Joined with PERSON.PERSON_SOURCE_VALUE for PERSON.PERSON_ID | |
| visit_detail_concept_id | | | 32037 for Intensive Care |
| visit_detail_start_date | icu_admission_date | | |
| visit_detail_start_datetime | icu_admission_time | | |
| visit_detail_end_date | icu_discharge_date | | |
| visit_detail_end_datetime | icu_discharge_time | | |
| visit_detail_type_concept_id | | | 32879 for Registry |
| provider_id | | | |
| care_site_id | icu_location | find care_site_id from care_site table | |
| visit_detail_source_value | | | ICU |
| visit_detail_source_concept_id | | | |
| admitted_from_concept_id | | | |
| admitted_from_source_value | | | |
| discharged_to_source_value | | | |
| discharged_to_concept_id | | | |
| preceding_visit_detail_id | | | |
| parent_visit_detail_id | | | |
| visit_occurrence_id | | | |

### Reading from intra_op__operation

![](md_files/image10.png)

| Destination Field | Source field | Logic | Comment field |
| --- | --- | --- | --- |
| visit_detail_id | | | |
| person_id | | | |
| visit_detail_concept_id | | | 32037 for Intensive Care |
| visit_detail_start_date | | | |
| visit_detail_start_datetime | | | |
| visit_detail_end_date | | | |
| visit_detail_end_datetime | | | |
| visit_detail_type_concept_id | | | 32879 for Registry |
| provider_id | anon_surgeon_name | need to find PROVIDER_ID from PROVIDER table | |
| care_site_id | | | |
| visit_detail_source_value | | | ICU |
| visit_detail_source_concept_id | | | |
| admitted_from_concept_id | | | |
| admitted_from_source_value | | | |
| discharged_to_source_value | | | |
| discharged_to_concept_id | | | |
| preceding_visit_detail_id | | | |
| parent_visit_detail_id | | | |
| visit_occurrence_id | | | |

4 changes: 2 additions & 2 deletions visit_occurrence.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
| visit_start_datetime | | | |
| visit_end_date | session_enddate | | |
| visit_end_datetime | | | |
| visit_type_concept_id | | | 32879 Registry |
| visit_type_concept_id | | | 32879 for Registry |
| provider_id | | | |
| care_site_id | institution_code | | Only put id for SGH here |
| visit_source_value | admission_type | | |
Expand All @@ -37,7 +37,7 @@
| visit_start_datetime | | | |
| visit_end_date | | | |
| visit_end_datetime | | | |
| visit_type_concept_id | | | 32879 Registry |
| visit_type_concept_id | | | 32879 for Registry |
| provider_id | | | |
| care_site_id | | | Only put id for SGH here |
| visit_source_value | | | |
Expand Down

0 comments on commit bf7bca2

Please sign in to comment.