From efcee2a2a8b65838a0ec8075d329916e2c514632 Mon Sep 17 00:00:00 2001 From: clairblacketer Date: Tue, 5 Jun 2018 12:16:02 -0400 Subject: [PATCH 1/3] Fixed switched columns --- .../StandardizedClinicalDataTables/VISIT_DETAIL.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Documentation/CommonDataModel_Wiki_Files/StandardizedClinicalDataTables/VISIT_DETAIL.md b/Documentation/CommonDataModel_Wiki_Files/StandardizedClinicalDataTables/VISIT_DETAIL.md index e44c751..53d5bf2 100644 --- a/Documentation/CommonDataModel_Wiki_Files/StandardizedClinicalDataTables/VISIT_DETAIL.md +++ b/Documentation/CommonDataModel_Wiki_Files/StandardizedClinicalDataTables/VISIT_DETAIL.md @@ -16,12 +16,12 @@ Field|Required|Type|Description |visit_source_value |No|string(50)|The source code for the visit as it appears in the source data.| |visit_source_concept_id |No|Integer|A foreign key to a Concept that refers to the code used in the source.| |admitting_source_value |Varchar(50)| No| The source code for the admitting source as it appears in the source data.| -|admitting_source_concept_id |Integer |No |A foreign key to the predefined concept in the Place of Service Vocabulary reflecting the admitting source for a visit.| -|discharge_to_source_value | Varchar(50)| No| The source code for the discharge disposition as it appears in the source data.| -|discharge_to_concept_id | Integer |No |A foreign key to the predefined concept in the Place of Service Vocabulary reflecting the discharge disposition for a visit.| -|preceding_visit_detail_id |Integer| No |A foreign key to the VISIT_DETAIL table of the visit immediately preceding this visit| -|visit_detail_parent_id |Integer| No |A foreign key to the VISIT_DETAIL table record to represent the immediate parent visit-detail record.| -|visit_occurrence_id |Integer| Yes |A foreign key that refers to the record in the VISIT_OCCURRENCE table. This is a required field, because for every visit_detail is a child of visit_occurrence and cannot exist without a corresponding parent record in visit_occurrence.| +|admitting_source_concept_id |No |Integer |A foreign key to the predefined concept in the Place of Service Vocabulary reflecting the admitting source for a visit.| +|discharge_to_source_value | No| Varchar(50)| The source code for the discharge disposition as it appears in the source data.| +|discharge_to_concept_id |No | Integer |A foreign key to the predefined concept in the Place of Service Vocabulary reflecting the discharge disposition for a visit.| +|preceding_visit_detail_id | No |Integer|A foreign key to the VISIT_DETAIL table of the visit immediately preceding this visit| +|visit_detail_parent_id |No |Integer| A foreign key to the VISIT_DETAIL table record to represent the immediate parent visit-detail record.| +|visit_occurrence_id |Yes |Integer| A foreign key that refers to the record in the VISIT_OCCURRENCE table. This is a required field, because for every visit_detail is a child of visit_occurrence and cannot exist without a corresponding parent record in visit_occurrence.| ### Conventions From 89617414fc3811fc0829a5cd7a82658f81d47d1a Mon Sep 17 00:00:00 2001 From: clairblacketer Date: Tue, 5 Jun 2018 12:16:35 -0400 Subject: [PATCH 2/3] Update VISIT_DETAIL.md --- .../StandardizedClinicalDataTables/VISIT_DETAIL.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/CommonDataModel_Wiki_Files/StandardizedClinicalDataTables/VISIT_DETAIL.md b/Documentation/CommonDataModel_Wiki_Files/StandardizedClinicalDataTables/VISIT_DETAIL.md index 53d5bf2..c89396c 100644 --- a/Documentation/CommonDataModel_Wiki_Files/StandardizedClinicalDataTables/VISIT_DETAIL.md +++ b/Documentation/CommonDataModel_Wiki_Files/StandardizedClinicalDataTables/VISIT_DETAIL.md @@ -15,7 +15,7 @@ Field|Required|Type|Description |care_site_id |No|integer|A foreign key to the care site in the care site table that was visited.| |visit_source_value |No|string(50)|The source code for the visit as it appears in the source data.| |visit_source_concept_id |No|Integer|A foreign key to a Concept that refers to the code used in the source.| -|admitting_source_value |Varchar(50)| No| The source code for the admitting source as it appears in the source data.| +|admitting_source_value | No|Varchar(50)| The source code for the admitting source as it appears in the source data.| |admitting_source_concept_id |No |Integer |A foreign key to the predefined concept in the Place of Service Vocabulary reflecting the admitting source for a visit.| |discharge_to_source_value | No| Varchar(50)| The source code for the discharge disposition as it appears in the source data.| |discharge_to_concept_id |No | Integer |A foreign key to the predefined concept in the Place of Service Vocabulary reflecting the discharge disposition for a visit.| From 2a2e9b0b2cb5462796428177324e40874882d323 Mon Sep 17 00:00:00 2001 From: clairblacketer Date: Tue, 5 Jun 2018 12:33:19 -0400 Subject: [PATCH 3/3] Fixed flipped columns Required and type were flipped --- .../VISIT_OCCURRENCE.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Documentation/CommonDataModel_Wiki_Files/StandardizedClinicalDataTables/VISIT_OCCURRENCE.md b/Documentation/CommonDataModel_Wiki_Files/StandardizedClinicalDataTables/VISIT_OCCURRENCE.md index 9d26a36..7e4cd32 100644 --- a/Documentation/CommonDataModel_Wiki_Files/StandardizedClinicalDataTables/VISIT_OCCURRENCE.md +++ b/Documentation/CommonDataModel_Wiki_Files/StandardizedClinicalDataTables/VISIT_OCCURRENCE.md @@ -14,11 +14,11 @@ Field|Required|Type|Description |care_site_id|No|integer|A foreign key to the care site in the care site table that was visited.| |visit_source_value|No|varchar(50)|The source code for the visit as it appears in the source data.| |visit_source_concept_id|No|integer|A foreign key to a Concept that refers to the code used in the source.| -|admitting_source_concept_id |integer |No |A foreign key to the predefined concept in the Place of Service Vocabulary reflecting the admitting source for a visit.| -|admitting_source_value |varchar(50)| No| The source code for the admitting source as it appears in the source data.| -|discharge_to_concept_id | integer |No |A foreign key to the predefined concept in the Place of Service Vocabulary reflecting the discharge disposition for a visit.| -|discharge_to_source_value | varchar(50)| No| The source code for the discharge disposition as it appears in the source data.| -|preceding_visit_occurrence_id |integer| No |A foreign key to the VISIT_OCCURRENCE table of the visit immediately preceding this visit| +|admitting_source_concept_id |No |integer |A foreign key to the predefined concept in the Place of Service Vocabulary reflecting the admitting source for a visit.| +|admitting_source_value | No|varchar(50)| The source code for the admitting source as it appears in the source data.| +|discharge_to_concept_id |No | integer |A foreign key to the predefined concept in the Place of Service Vocabulary reflecting the discharge disposition for a visit.| +|discharge_to_source_value | No| varchar(50)| The source code for the discharge disposition as it appears in the source data.| +|preceding_visit_occurrence_id | No |integer|A foreign key to the VISIT_OCCURRENCE table of the visit immediately preceding this visit| ### Conventions @@ -37,6 +37,6 @@ Field|Required|Type|Description * Patient died: 4216643 * Absent without leave: 44814693 * Patient self-discharge against medical advice: 4021968 - * In the case where a patient died during admission (Visit_Occurrence.discharge_disposition_concept_id = 4216643 �Patient died�), a record in the Death table should be created with death_type_concept_id = 44818516 (�EHR discharge status "Expired"). + * In the case where a patient died during admission (Visit_Occurrence.discharge_disposition_concept_id = 4216643 Patient died), a record in the Death table should be created with death_type_concept_id = 44818516 (EHR discharge status "Expired"). * PRECEDING_VISIT_ID can be used to link a visit immediately preceding the current visit - * Some EMR systems combine emergency room followed by inpatient admission into one visit, and it is close to impossible to separate the two. To annotate this visit type, a new visit concept "Emergency Room and Inpatient Visit" was added (CONCEPT_ID 262). \ No newline at end of file + * Some EMR systems combine emergency room followed by inpatient admission into one visit, and it is close to impossible to separate the two. To annotate this visit type, a new visit concept "Emergency Room and Inpatient Visit" was added (CONCEPT_ID 262).