Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated cpg operations error reporting and cache management #590

Merged
merged 3 commits into from
Aug 10, 2022

Conversation

c-schuler
Copy link
Contributor

Returning OperationOutcome when evaluation results in an exception
Removing library from cache before evaluation

@c-schuler c-schuler requested a review from JPercival August 9, 2022 03:12
org.opencds.cqf.ruler.utility.dstu3.Parameters.newPart(
"error", (OperationOutcome) evaluationHelper.createIssue(
"invalid parameters", "prefetchData is not yet supported")));
org.opencds.cqf.ruler.utility.dstu3.Parameters.newPart("invalid parameters",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try adding:

import static org.opencds.cqf.ruler.utility.dstu3.Parameters.newParameters
import static org.opencds.cqf.ruler.utility.dstu3.Parameters.newPart

then remove the namespacing from the functions. The idea behind the utility functions is that they improve readability. If they don't do that it doesn't serve much purpose.

@JPercival JPercival merged commit 64831f8 into master Aug 10, 2022
@JPercival JPercival deleted the cpg-cache-reporting branch August 10, 2022 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants