cqframework / cqframework/cqf-tooling
PlanDefinition processing appears to require a library definition when the profile doesn't require it
@alexisc0le is already working on this.
Since Jan 23, 2024.
- 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
- Save a PlanDefinition resource without a library
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.