cqframework / cqf-us

Common Assets for use in US-based CQFramework content implementation guides
Apache License 2.0
3 stars 2 forks source link

Issue using referenced definition from USCoreElements in GMTPInitialExpressions #11

Open alexisc0le opened 8 months ago

alexisc0le commented 8 months ago

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)

  1. In input/cql/USCoreElements- uncomment the “Clinical Trial” definition (lines 555-558)
  2. In input/cql/GMTPInitialExpressions- comment out the first “Clinical Trial” definition (lines 206-209) and uncomment the second “Clinical Trial” definition (lines 212-213).
  3. 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.