From c64a05805add881bf9abd86a6bb517b9d1e6f723 Mon Sep 17 00:00:00 2001 From: Antonella Delmestri Date: Mon, 13 Nov 2023 15:30:05 +0000 Subject: [PATCH] Update CPRD_Referral_STEM.md Changed type_concept_id from 32827 to 32817 (EHR) --- docs/CPRD/CPRD_Referral_STEM.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/CPRD/CPRD_Referral_STEM.md b/docs/CPRD/CPRD_Referral_STEM.md index 449b768a..f2b02244 100644 --- a/docs/CPRD/CPRD_Referral_STEM.md +++ b/docs/CPRD/CPRD_Referral_STEM.md @@ -38,5 +38,5 @@ 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 [CPRD_Referral_Medcodes.sql](https://github.com/OHDSI/ETL-LambdaBuilder/blob/master/docs/CPRD/Queries/CPRD_Referral_Medcodes.sql) for an idea of how the codes in the referral table map to the vocabulary and how the link between the referral table and 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 **32842** - EHR referral record | | +| type_concept_id | | Use **32817** - EHR | |