From 496419210578f28c090deb09ec17fe613cee8a4b Mon Sep 17 00:00:00 2001 From: Antonella Delmestri Date: Mon, 13 Nov 2023 15:28:51 +0000 Subject: [PATCH] Update CPRD_Clinical_STEM.md Changed type_concept_id from 32827 to 32817 (EHR) --- docs/CPRD/CPRD_Clinical_STEM.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/CPRD/CPRD_Clinical_STEM.md b/docs/CPRD/CPRD_Clinical_STEM.md index 99f32855..f80c88ad 100644 --- a/docs/CPRD/CPRD_Clinical_STEM.md +++ b/docs/CPRD/CPRD_Clinical_STEM.md @@ -38,4 +38,4 @@ Any record with one of the SARS-COV-2 read codes listed below should be mapped t | concept_id | medcode | Use the medcode to link to the medical table to find the read code. Use the [SOURCE_TO_STANDARD](https://github.com/OHDSI/ETL-LambdaBuilder/blob/master/docs/Standard%20Queries/SOURCE_TO_STANDARD.sql) query to map the read code to standard concept(s) with the following filters:

Where source_vocabulary_id = 'Read' and Target_standard_concept = 'S' and target_invalid_reason is NULL

*BE CAREFUL - READ CODES ARE CASE SENSITIVE*. If there is no mapping available, set concept_id to zero. | See the query [CPRD_Clinical_Medcodes.sql](https://github.com/OHDSI/ETL-LambdaBuilder/blob/master/docs/CPRD/Queries/CPRD_Clinical_Medcodes.sql) as a high-level look at the domains covered by this table and how the link to the medical table should be made. | | source_value | medical.read_code | Use the medcode to link to the medical table to find the read code. Store read code as source_value. | | | source_concept_id | medcode | Use the medcode to link to the medical table to find the read code. Use the [SOURCE_TO_SOURCE](https://github.com/OHDSI/ETL-LambdaBuilder/blob/master/docs/Standard%20Queries/SOURCE_TO_SOURCE.sql) query to map the read code to a source concept id with the following filters:

Where source_vocabulary_id = 'Read'

*BE CAREFUL - READ CODES ARE CASE SENSITIVE*. If there is no mapping available set source_concept_id to zero. | | -| type_concept_id | | Use **32827** - EHR encounter record | | +| type_concept_id | | Use **32817** - EHR | |