Hi all,
We are in the procedure of finalizing the ETL for a data partner, yet I have some questions regarding the observation period calculation, as well as the Sql code for mapping ICD10 and ATC codes to Standard codes.
-
As regards the observation period, in the source database we have information about the date of visit on which each patient conducts a bunch of different medical examinations. Would it be wrong if we set as observation_period_id the code of the medical examination and then for each patient we take as start date the minimum date of visit on which the patient conducted the specific examination, and as an end date the maximum date of visit on which the patient conducted the specific examination?
-
As regards the sql code used for code mapping (e.g., ICD10 codes → sqlScripts.knit), I got a little bit confused with the tables that are being used. In particular, we have the CONCEPT table (which is named "c" at the beginning of the code). Then we have again the c1 and c2 tables. Are these tables the CONCEPT table again, or am I missing something?
As for the source_to_concept_map, should this be populated with the data from the original database containing the ICD10 codes. Right?
Thank you in advance,
Thomas