cqframework / cqf-tooling

Tooling for CQL and IG Authors
Apache License 2.0
19 stars 23 forks source link

Duplicates generated in dataRequirement element of Library resource #317

Open rob-reynolds opened 3 years ago

rob-reynolds commented 3 years ago

Describe the bug See us-core-race duplicated on the right. image

Also see attached examples

To Reproduce Steps to reproduce the behavior:

  1. run _refresh against the ecqm-content-r4 ig
  2. look in the ecqm-content-r4\input\resources\library\EXM506.json file
  3. look in the dataRequirements element
  4. you will see duplicates

Expected behavior No duplicates

Desktop (please complete the following information):

c-schuler commented 1 year ago

This is an issue with the DataRequirementsProcessor in the translator. We will migrate the issue to that repository with your comments. Thank you!

c-schuler commented 1 year ago

See https://github.com/cqframework/cqf-tooling/blob/npm-migration/tooling/src/main/java/org/opencds/cqf/tooling/operation/ig/LibraryRefresh.java#L211C5-L216C5 as an example to get started

Chris0296 commented 1 year ago

Pull request opened in the ecqm-content-r4 repo

https://github.com/cqframework/ecqm-content-r4/pull/27

@rob-reynolds I have requested your review on this.