Skip to content

Commit 40c3745

Browse files
committed
update to new service class
1 parent 9a2d3d3 commit 40c3745

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

src/main/java/ca/uhn/fhir/jpa/starter/cdshooks/StarterCdsHooksConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ public class StarterCdsHooksConfig {
3131
public ICdsCrDiscoveryServiceRegistry cdsCrDiscoveryServiceRegistry() {
3232
CdsCrDiscoveryServiceRegistry registry = new CdsCrDiscoveryServiceRegistry();
3333
registry.unregister(FhirVersionEnum.R4);
34-
registry.register(FhirVersionEnum.R4, UpdatedCrDiscoveryServiceR4.class);
34+
registry.register(FhirVersionEnum.R4, UpdatedCrDiscoveryService.class);
3535
return registry;
3636
}
3737

3838
@Bean
3939
public ICdsCrServiceRegistry cdsCrServiceRegistry() {
4040
CdsCrServiceRegistry registry = new CdsCrServiceRegistry();
4141
registry.unregister(FhirVersionEnum.R4);
42-
registry.register(FhirVersionEnum.R4, UpdatedCdsCrServiceR4.class);
42+
registry.register(FhirVersionEnum.R4, UpdatedCdsCrService.class);
4343
return registry;
4444
}
4545

src/main/java/ca/uhn/fhir/jpa/starter/cdshooks/UpdatedCdsCrServiceR4.java renamed to src/main/java/ca/uhn/fhir/jpa/starter/cdshooks/UpdatedCdsCrService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66
import org.hl7.fhir.r4.model.BooleanType;
77
import org.hl7.fhir.r4.model.Parameters;
88
import org.opencds.cqf.fhir.api.Repository;
9-
import org.opencds.cqf.fhir.cr.hapi.cdshooks.CdsCrServiceR4;
9+
import org.opencds.cqf.fhir.cr.hapi.cdshooks.CdsCrService;
1010

1111
import static org.opencds.cqf.fhir.utility.Constants.APPLY_PARAMETER_DATA;
1212
import static org.opencds.cqf.fhir.utility.r4.Parameters.part;
1313

14-
public class UpdatedCdsCrServiceR4 extends CdsCrServiceR4 {
15-
public UpdatedCdsCrServiceR4(
14+
public class UpdatedCdsCrService extends CdsCrService {
15+
public UpdatedCdsCrService(
1616
RequestDetails theRequestDetails, Repository theRepository, ICdsConfigService theCdsConfigService) {
1717
super(theRequestDetails, theRepository, theCdsConfigService);
1818
}
1919

2020
@Override
2121
public Parameters encodeParams(CdsServiceRequestJson theJson) {
22-
Parameters parameters = super.encodeParams(theJson);
22+
var parameters = (Parameters) super.encodeParams(theJson);
2323
if (parameters.hasParameter(APPLY_PARAMETER_DATA)) {
2424
parameters.addParameter(part("useServerData", new BooleanType(false)));
2525
}

src/main/java/ca/uhn/fhir/jpa/starter/cdshooks/UpdatedCrDiscoveryServiceR4.java renamed to src/main/java/ca/uhn/fhir/jpa/starter/cdshooks/UpdatedCrDiscoveryService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
import org.hl7.fhir.instance.model.api.IIdType;
44
import org.opencds.cqf.fhir.api.Repository;
5-
import org.opencds.cqf.fhir.cr.hapi.cdshooks.discovery.CrDiscoveryServiceR4;
5+
import org.opencds.cqf.fhir.cr.hapi.cdshooks.discovery.CrDiscoveryService;
66

7-
public class UpdatedCrDiscoveryServiceR4 extends CrDiscoveryServiceR4 {
8-
public UpdatedCrDiscoveryServiceR4(IIdType thePlanDefinitionId, Repository theRepository) {
7+
public class UpdatedCrDiscoveryService extends CrDiscoveryService {
8+
public UpdatedCrDiscoveryService(IIdType thePlanDefinitionId, Repository theRepository) {
99
super(thePlanDefinitionId, theRepository);
1010
maxUriLength = 6000;
1111
}

src/main/resources/application.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ hapi:
123123
data:
124124
search_parameter_mode: USE_SEARCH_PARAMETERS # AUTO, USE_SEARCH_PARAMETERS, FILTER_IN_MEMORY
125125
terminology_parameter_mode: FILTER_IN_MEMORY # AUTO, USE_VALUE_SET_URL, USE_INLINE_CODES, FILTER_IN_MEMORY
126-
profile_mode: OFF # ENFORCED, DECLARED, OPTIONAL, TRUST, OFF
126+
profile_mode: DECLARED # ENFORCED, DECLARED, OPTIONAL, TRUST, OFF
127127

128128
cdshooks:
129129
enabled: false

src/main/resources/cds.application.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ hapi:
124124
data:
125125
search_parameter_mode: USE_SEARCH_PARAMETERS # AUTO, USE_SEARCH_PARAMETERS, FILTER_IN_MEMORY
126126
terminology_parameter_mode: FILTER_IN_MEMORY # AUTO, USE_VALUE_SET_URL, USE_INLINE_CODES, FILTER_IN_MEMORY
127-
profile_mode: OFF # ENFORCED, DECLARED, OPTIONAL, TRUST, OFF
127+
profile_mode: DECLARED # ENFORCED, DECLARED, OPTIONAL, TRUST, OFF
128128

129129
cdshooks:
130130
enabled: true

0 commit comments

Comments
 (0)