cqframework / cqframework/cqf-tooling

PlanDefinition processing appears to require a library definition when the profile doesn't require it

Open
#505 2 comments 0 reactions 2 assignees View on GitHub

@alexisc0le is already working on this.

Since Jan 23, 2024.

bug
Dominant language
Java
Stars
22
Forks
26
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
When trying to process a PlanDefinition, the JAVA Jar repeatedly throws an exception that the PlanDefinition is missing a Library, even though that is not a required element. The statement I get is- java.lang.IllegalArgumentException: PlanDefinition is expected to have one and only one library.. I have tried using the tolling version 2.4.0 and 2.5.0 and have had the same issue with both.

To Reproduce

  1. Save a PlanDefinition resource without a library
  2. Run the bash _refresh.sh tooling and receive an error

Expected behavior
For the PlanDefinition to be processed when it does not have a library.

Desktop (please complete the following information):

  • OS: Macbook M1
  • Java Version = 8

Additional context
Link to the repo and branch I am having the issue: https://github.com/alphora/bmj-content-r4/tree/Hypertension-implementation

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.