@fabkury - I can’t seem to find your post now which I saw this morning where you added a Phea SQL tweak to a placeholder in Atlas-demo for the tiered consensus.
Two points to make on the logic as I recall. You are counting the # of PD and non-PD (neurodegenerative) parkinsonisms in each visit and only considering visits where # of PD conditions are greater than the other parkinsonism exclusions.
- The tiered consensus criteria takes all visits in the 3 year time frame and counts all conditions PD and (non-PD parkinsonism exclusions) in total across all visits. Then the tiered consensus algorithm/function outputs “PD” if the PD conditions outnumber the (non-PD parkinsonism exclusions).
- The (non-PD parkinsonism exclusions) should be the combination of (non-PD neurodegenerative parkinsonisms) and (secondary parkinsonisms) concept sets.