Closed marek05 closed 3 years ago
So there is a discrepancy between the inst/settings/CohortToCreateTarget.csv and the inst/setting/diagnostics/CohortsToCreateTarget.csv.
@denyskaduk, could we just change their name from 334:338 to 121:125?
@keesvanbochove Just let me know if you don't have time to fix this one, then I will do it.
@bdemeulder I can work on it tomorrow afternoon or Thursday, but we also have to check the actual cohort definitions against these lists. For example, cohort 338 is both listed in CohortsToCreateTarget and CohortsToCreateStrata, but 338.sql can only be one of those - does the query create a target cohort with PCa patients or is it a COPD stratum cohort? Looking at the concept codes, I'm pretty sure it's the strata:
select * from CONCEPT where concept_id in (255573,258780);
concept_id | concept_name | domain_id | vocabulary_id | concept_class_id | standard_concept | concept_code | valid_start_date | valid_end_date | invalid_reason
------------+----------------------------------+-----------+---------------+------------------+------------------+--------------+------------------+----------------+----------------
255573 | Chronic obstructive lung disease | Condition | SNOMED | Clinical Finding | S | 13645005 | 1970-01-01 | 2099-12-31 |
258780 | Emphysematous bronchitis | Condition | SNOMED | Clinical Finding | S | 185086009 | 1970-01-01 | 2099-12-31 |
(2 rows)
@denyskaduk do we actually need these extra sen1-5 target cohorts?
Also, the fact that this doesn't match up makes me a bit worried.. hopefully there are no other mistakes in the cohort lists, because if the SQL and the cohort identification don't match up we may be looking at incorrect data.
The cohort lists are updated and checked.
Issue what I noticed:
During target cohort creation log says:
When it gets to strata cohorts then log says:
Basically 334, 335, 336 cohorts are already made during the Target cohorts part.
In target cohorts list there are newer cohorts:
https://github.com/ohdsi-studies/PioneerWatchfulWaiting/blob/master/inst/settings/CohortsToCreateTarget.csv#L22
In the strata cohorts there are also with the same cohortId-s cohorts: https://github.com/ohdsi-studies/PioneerWatchfulWaiting/blob/master/inst/settings/CohortsToCreateStrata.csv#L29
From the cohort name it seems that these are not the same cohorts but because of the cohort ids are the same then the package takes them as the same cohort. I think the strata cohorts are actually run.
@keesvanbochove and @bdemeulder can you check if the cohort id should be as they are.