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 | |