use of com.ibm.cohort.fhir.client.config.FhirClientBuilder in project quality-measure-and-cohort-service by Alvearie.
the class MeasureTestBase method setUp.
@Before
public void setUp() {
FhirServerConfig config = getFhirServerConfig();
FhirClientBuilderFactory factory = FhirClientBuilderFactory.newInstance();
FhirClientBuilder builder = factory.newFhirClientBuilder(fhirContext);
client = builder.createFhirClient(config);
expressionsByPopulationType = new HashMap<>();
expressionsByPopulationType.put(MeasurePopulationType.INITIALPOPULATION, INITIAL_POPULATION);
expressionsByPopulationType.put(MeasurePopulationType.DENOMINATOR, DENOMINATOR);
expressionsByPopulationType.put(MeasurePopulationType.DENOMINATOREXCLUSION, DENOMINATOR_EXCLUSION);
expressionsByPopulationType.put(MeasurePopulationType.DENOMINATOREXCEPTION, DENOMINATOR_EXCEPTION);
expressionsByPopulationType.put(MeasurePopulationType.NUMERATOR, NUMERATOR);
expressionsByPopulationType.put(MeasurePopulationType.NUMERATOREXCLUSION, NUMERATOR_EXCLUSION);
expectationsByPopulationType = new HashMap<>();
expectationsByPopulationType.put(MeasurePopulationType.INITIALPOPULATION, 1);
expectationsByPopulationType.put(MeasurePopulationType.DENOMINATOR, 1);
expectationsByPopulationType.put(MeasurePopulationType.DENOMINATOREXCLUSION, 0);
expectationsByPopulationType.put(MeasurePopulationType.DENOMINATOREXCEPTION, 0);
expectationsByPopulationType.put(MeasurePopulationType.NUMERATOR, 0);
expectationsByPopulationType.put(MeasurePopulationType.NUMERATOREXCLUSION, 0);
}
use of com.ibm.cohort.fhir.client.config.FhirClientBuilder in project quality-measure-and-cohort-service by Alvearie.
the class RestFhirLibraryResolverIntegrationTest method setUp.
@Before
public void setUp() {
FhirClientBuilderFactory factory = FhirClientBuilderFactory.newInstance();
FhirClientBuilder builder = factory.newFhirClientBuilder(fhirContext);
IGenericClient client = builder.createFhirClient(getFhirServerConfig());
resolver = R4FhirServerResourceResolverFactory.createLibraryResolver(client);
}
use of com.ibm.cohort.fhir.client.config.FhirClientBuilder in project quality-measure-and-cohort-service by Alvearie.
the class RestFhirMeasureResolverIntegrationTest method setUp.
@Before
public void setUp() {
FhirClientBuilderFactory factory = FhirClientBuilderFactory.newInstance();
FhirClientBuilder builder = factory.newFhirClientBuilder(fhirContext);
IGenericClient client = builder.createFhirClient(getFhirServerConfig());
resolver = R4FhirServerResourceResolverFactory.createMeasureResolver(client);
mockFhirResourceRetrieval("/metadata?_format=json", getCapabilityStatement());
}
Aggregations