Skip to content

Commit

Permalink
Merge pull request #68 from kind-lab/concept_map_documenting
Browse files Browse the repository at this point in the history
Added valueset references for mimic valuesets that need concept mapping
  • Loading branch information
alexmbennett2 authored May 26, 2022
2 parents 5aedb3a + 886faf5 commit f958340
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion sql/codesystem/cs-admission-class.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- Admission class CodeSystem
-- Codes will need to be mapped to match US Core Act Encounter Code - http://terminology.hl7.org/CodeSystem/v3-ActCode
-- Codes will need to be mapped to match US Core Act Encounter Code - http://terminology.hl7.org/ValueSet/v3-ActEncounterCode

DROP TABLE IF EXISTS fhir_trm.cs_admission_class;
CREATE TABLE fhir_trm.cs_admission_class(
Expand Down
2 changes: 1 addition & 1 deletion sql/codesystem/cs-admission-type.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- Admission type CodeSystem
-- Codes will need to be mapped to match US Core Encounter Type -http://hl7.org/fhir/v3/ActPriority/vs.html
-- Codes will need to be mapped to match US Core Encounter Type -http://hl7.org/fhir/ValueSet/encounter-type

DROP TABLE IF EXISTS fhir_trm.cs_admission_type;
CREATE TABLE fhir_trm.cs_admission_type(
Expand Down
2 changes: 1 addition & 1 deletion sql/codesystem/cs-chartevents-d-items.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- Generate unique item codes for only the chartevents
-- This is pulled from the d-items CodeSystem
-- This is pulled from the d-items CodeSystem, map to LOINC codes http://hl7.org/fhir/valueset-observation-codes.html


DROP TABLE IF EXISTS fhir_trm.cs_chartevents_d_items;
Expand Down
6 changes: 4 additions & 2 deletions sql/codesystem/cs-d-items.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
-- Generate codesystem for icu item codes
-- Will be referenced by chartevents, datetimeevents, and outputevents
-- Will be referenced by procedureevents, datetimeevents, and outputevents
-- chartevents too large, an individual codesystem created for it

DROP TABLE IF EXISTS fhir_trm.cs_d_items;
CREATE TABLE fhir_trm.cs_d_items(
Expand All @@ -11,4 +12,5 @@ INSERT INTO fhir_trm.cs_d_items
SELECT
DISTINCT itemid AS code
, label AS display
FROM mimic_icu.d_items di
FROM mimic_icu.d_items di
WHERE linksto IN ('procedureevents', 'datetimeevents', 'outputevents');
2 changes: 1 addition & 1 deletion sql/codesystem/cs-lab-fluid.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- Lab fluid CodeSystem
-- Codes will need to be mapped to something like the Specimen type example-v2 - http://hl7.org/fhir/v2/0487/index.html
-- Codes will need to be mapped to something like the Specimen type example-v2 - http://terminology.hl7.org/ValueSet/v2-0487

DROP TABLE IF EXISTS fhir_trm.cs_lab_fluid;
CREATE TABLE fhir_trm.cs_lab_fluid(
Expand Down
1 change: 1 addition & 0 deletions sql/codesystem/cs-medication-frequency.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
-- Medication Frequency CodeSystem
-- Map the frequency values to http://hl7.org/fhir/ValueSet/timing-abbreviation

DROP TABLE IF EXISTS fhir_trm.cs_medication_frequency;
CREATE TABLE fhir_trm.cs_medication_frequency(
Expand Down
1 change: 1 addition & 0 deletions sql/codesystem/cs-observation-category.sql
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
-- Observation Category CodeSystem
-- Map values to http://hl7.org/fhir/valueset-observation-category.html

DROP TABLE IF EXISTS fhir_trm.cs_observation_category;
CREATE TABLE fhir_trm.cs_observation_category(
Expand Down
2 changes: 1 addition & 1 deletion sql/codesystem/cs-spec-type-desc.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- Specimen type labs CodeSystem
-- Codes will need to be mapped to something like the Specimen type example-v2 - http://hl7.org/fhir/v2/0487/index.html
-- Codes will need to be mapped to something like the Specimen type example-v2 - http://terminology.hl7.org/ValueSet/v2-0487

DROP TABLE IF EXISTS fhir_trm.cs_spec_type_desc;
CREATE TABLE fhir_trm.cs_spec_type_desc(
Expand Down

0 comments on commit f958340

Please sign in to comment.