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

Bump HAPI version #598

Merged
merged 13 commits into from
Nov 22, 2023
Prev Previous commit
Next Next commit
Fix ExampleServerDstu3IT
  • Loading branch information
dotasek committed Oct 12, 2023
commit 4f6f3162f18c2fb37ff8b9cff435482e77665895
10 changes: 8 additions & 2 deletions src/test/java/ca/uhn/fhir/jpa/starter/ExampleServerDstu3IT.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package ca.uhn.fhir.jpa.starter;

import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.cr.config.RepositoryConfig;
import ca.uhn.fhir.jpa.api.dao.DaoRegistry;
import ca.uhn.fhir.model.primitive.IdDt;
import ca.uhn.fhir.rest.api.CacheControlDirective;
Expand Down Expand Up @@ -38,7 +39,12 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

@ExtendWith(SpringExtension.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = {Application.class, JpaStarterWebsocketDispatcherConfig.class}, properties =
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
classes = {
Application.class,
JpaStarterWebsocketDispatcherConfig.class,
RepositoryConfig.class
}, properties =
{
"spring.datasource.url=jdbc:h2:mem:dbr3",
"hapi.fhir.cr_enabled=true",
Expand All @@ -61,7 +67,7 @@ class ExampleServerDstu3IT implements IServerSupport {
@LocalServerPort
private int port;

@BeforeEach
@BeforeEach
dotasek marked this conversation as resolved.
Show resolved Hide resolved
void beforeEach() {
ourCtx = FhirContext.forDstu3();
ourCtx.getRestfulClientFactory().setServerValidationMode(ServerValidationModeEnum.NEVER);
Expand Down
19 changes: 19 additions & 0 deletions src/test/java/ca/uhn/fhir/jpa/starter/MeasureEvaluationConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package ca.uhn.fhir.jpa.starter;

import org.opencds.cqf.fhir.cql.EvaluationSettings;
import org.opencds.cqf.fhir.cr.measure.MeasureEvaluationOptions;
import org.opencds.cqf.fhir.utility.ValidationProfile;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

@Configuration

public class MeasureEvaluationConfig {

@Bean
public MeasureEvaluationOptions measureEvaluationOptions(){
return new MeasureEvaluationOptions();
}
}