Closed TheCedarPrince closed 2 weeks ago
Maybe it has something to do with the cdm_version
variable?
This should be fixed in cdba8851c14909695f9b649890315d7c0f675514.
The fix is included to the new release v0.1.4.
@TheCedarPrince -- would you verify this is complete with v0.2 and if it works as expected, close this ticket?
Yes, this is fixed now. Thanks! :smile:
Hi @xitology ,
I was using OHDSICohortExpressions the other day and ran into a strange issue concerning the creation of a cohort. When using the following Cohort Definition, I do not get an expected returned Cohort on my OMOP database. Yet, when I use the same definition in CirceR and CohortGenerator, I do get people matched to my cohort. There seems to be some kind of bug here but I do not know what else to report. Thank you!
Here is my code:
Cohort Definition
```json { "ConceptSets": [ { "id": 3, "name": "[JZ] Depression", "expression": { "items": [ { "concept": { "CONCEPT_CLASS_ID": "Clinical Finding", "CONCEPT_CODE": "35489007", "CONCEPT_ID": 440383, "CONCEPT_NAME": "Depressive disorder", "DOMAIN_ID": "Condition", "INVALID_REASON": "V", "INVALID_REASON_CAPTION": "Valid", "STANDARD_CONCEPT": "S", "STANDARD_CONCEPT_CAPTION": "Standard", "VOCABULARY_ID": "SNOMED" }, "includeDescendants": true } ] } } ], "PrimaryCriteria": { "CriteriaList": [ { "ConditionOccurrence": { "CodesetId": 3 } } ], "ObservationWindow": { "PriorDays": 365, "PostDays": 0 }, "PrimaryCriteriaLimit": { "Type": "First" } }, "AdditionalCriteria": { "Type": "ANY", "CriteriaList": [], "DemographicCriteriaList": [], "Groups": [] }, "QualifiedLimit": { "Type": "First" }, "ExpressionLimit": { "Type": "First" }, "InclusionRules": [], "CensoringCriteria": [], "CollapseSettings": { "CollapseType": "ERA", "EraPad": 0 }, "CensorWindow": {}, "cdmVersionRange": ">=5.0.0" } ```