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

"cr_enabled: true" doesn't enable CR #501

Open
alackerbauer opened this issue Feb 20, 2023 · 3 comments
Open

"cr_enabled: true" doesn't enable CR #501

alackerbauer opened this issue Feb 20, 2023 · 3 comments
Assignees

Comments

@alackerbauer
Copy link

Steps to reproduce:

  1. change the application.yaml setting to cr_enabled: true
  2. start the server
  3. see that the log says "INFO c.u.fhir.cr.config.CrProviderLoader [CrProviderLoader.java:53] Registering CQL Provider"
  4. check the metadata of the started FHIR server: GET http:https://localhost:8080/fhir/metadata
  5. search everywhere for the operation "evaluate-measure" which can't be found but should be supported
@alackerbauer
Copy link
Author

alackerbauer commented Feb 21, 2023

it still works in helm-v0.10.1 but no longer in v6.2.0.

@citizenrich
Copy link

I tested the fix in a06c0b9

But, I see the same result, where the CQL provider is registered but there's nothing in the capability statement. Am I missing something? I'm happy to help test fixes.

@c-schuler
Copy link
Contributor

I have also seen issues with the $evaluate-measure operation. The issue I have seen is due to unsatisfied dependencies. Specifically MeasureEvaluationOptions and EvaluationSettings required by the MeasureService. Once I added the following lines in the StarterCrR4Config the operation worked as expected:

@Bean
public MeasureEvaluationOptions measureEvaluationOptions() {
   return MeasureEvaluationOptions.defaultOptions();
}

@Bean
public EvaluationSettings evaluationSettings() {
   return EvaluationSettings.getDefault();
}

I would assume these dependencies should be set (at least to the default) within the configuration found in the hapi-fhir-storage-cr module. I may be missing some documentation that provides guidance on how to properly configure cr operations(?).

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

No branches or pull requests

4 participants