Describe the bug
When I create a definition in USCoreElements and reference it in GMTPInitialExpressions, some do not work correctly and I get an empty response. I am having problems specifically with the “Clinical Trial” definition.
In input/cql/USCoreElements- uncomment the “Clinical Trial” definition (lines 555-558)
In input/cql/GMTPInitialExpressions- comment out the first “Clinical Trial” definition (lines 206-209) and uncomment the second “Clinical Trial” definition (lines 212-213).
Execute CQL.
Expected Behaviour
The expectation is that we will get a valid response that USCorePatient-GMTP-1 has a ResearchStudy resource. However it is returns empty.
Describe the bug When I create a definition in USCoreElements and reference it in GMTPInitialExpressions, some do not work correctly and I get an empty response. I am having problems specifically with the “Clinical Trial” definition.
To Reproduce (I have outlined the issue on this branch- https://github.com/cqframework/cqf-us/tree/2024-Updates-Debugging)
Expected Behaviour The expectation is that we will get a valid response that USCorePatient-GMTP-1 has a ResearchStudy resource. However it is returns empty.