Skip to content

Commit 9920cf2

Browse files
author
Christian Ohr
committed
#513: add missing files, mae return values of ClientRequestFactory#getClientExecutable more specific
1 parent 6e74d1c commit 9920cf2

19 files changed

Lines changed: 898 additions & 22 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,5 @@ work
3030
generated-stubs
3131
/commons/audit/.vertx
3232
/local_history.patch
33+
/CLAUDE.md
34+
/.claude/settings.local.json
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright 2026 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
package org.openehealth.ipf.commons.audit.marshal.dicom;
17+
18+
/**
19+
*
20+
* @author Christian Ohr
21+
* @since 6.0
22+
*/
23+
public class DICOM2024d extends DICOM2017c {
24+
25+
}

commons/audit/src/main/resources/dicom2024d.xsd

Lines changed: 636 additions & 0 deletions
Large diffs are not rendered by default.

commons/ihe/fhir/r4/chppqm/src/main/java/org/openehealth/ipf/commons/ihe/fhir/chppqm/chppq3/ChPpq3RequestFactory.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package org.openehealth.ipf.commons.ihe.fhir.chppqm.chppq3;
1818

19+
import ca.uhn.fhir.rest.api.MethodOutcome;
1920
import ca.uhn.fhir.rest.client.api.IGenericClient;
2021
import ca.uhn.fhir.rest.gclient.IClientExecutable;
2122
import org.hl7.fhir.r4.model.Consent;
@@ -28,7 +29,7 @@
2829
public class ChPpq3RequestFactory implements ClientRequestFactory {
2930

3031
@Override
31-
public IClientExecutable getClientExecutable(
32+
public IClientExecutable<?, MethodOutcome> getClientExecutable(
3233
IGenericClient client,
3334
Object requestData,
3435
Map<String, Object> parameters)

commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti105/Iti105RequestFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
package org.openehealth.ipf.commons.ihe.fhir.iti105;
1818

1919
import ca.uhn.fhir.rest.client.api.IGenericClient;
20-
import ca.uhn.fhir.rest.gclient.IClientExecutable;
20+
import ca.uhn.fhir.rest.gclient.ICreateTyped;
2121
import org.hl7.fhir.r4.model.DocumentReference;
2222
import org.openehealth.ipf.commons.ihe.fhir.ClientRequestFactory;
2323

@@ -32,7 +32,7 @@
3232
public class Iti105RequestFactory implements ClientRequestFactory {
3333

3434
@Override
35-
public IClientExecutable getClientExecutable(
35+
public ICreateTyped getClientExecutable(
3636
IGenericClient client,
3737
Object requestData,
3838
Map<String, Object> parameters) {
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
* Copyright 2023 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package org.openehealth.ipf.commons.ihe.fhir.iti68bin;
18+
19+
import ca.uhn.fhir.rest.client.api.IGenericClient;
20+
import ca.uhn.fhir.rest.gclient.IReadExecutable;
21+
import org.hl7.fhir.r4.model.Binary;
22+
import org.openehealth.ipf.commons.ihe.fhir.ClientRequestFactory;
23+
24+
import java.util.Map;
25+
26+
/**
27+
* A {@link ClientRequestFactory} for ITI-105 requests
28+
*
29+
* @author Boris Stanojevic
30+
* @since 4.8
31+
*/
32+
public class Iti68BinaryRequestFactory implements ClientRequestFactory {
33+
34+
@Override
35+
public IReadExecutable<Binary> getClientExecutable(
36+
IGenericClient client,
37+
Object requestData,
38+
Map<String, Object> parameters) {
39+
return client.read().resource(Binary.class).withId(requestData.toString());
40+
}
41+
42+
}

commons/ihe/fhir/r4/mhd/src/main/java/org/openehealth/ipf/commons/ihe/fhir/pharm5/Pharm5ClientRequestFactory.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
package org.openehealth.ipf.commons.ihe.fhir.pharm5;
1717

1818
import ca.uhn.fhir.rest.client.api.IGenericClient;
19-
import ca.uhn.fhir.rest.gclient.IClientExecutable;
2019
import ca.uhn.fhir.rest.gclient.IOperationUntypedWithInput;
2120
import org.hl7.fhir.r4.model.Bundle;
2221
import org.hl7.fhir.r4.model.DocumentReference;
@@ -35,7 +34,7 @@
3534
public class Pharm5ClientRequestFactory implements ClientRequestFactory {
3635

3736
@Override
38-
public IClientExecutable<IOperationUntypedWithInput<Bundle>, ?> getClientExecutable(final IGenericClient client,
37+
public IOperationUntypedWithInput<Bundle> getClientExecutable(final IGenericClient client,
3938
final Object requestData,
4039
final Map<String, Object> parameters) {
4140

commons/ihe/fhir/r4/pixpdq/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti119/Iti119ClientRequestFactory.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package org.openehealth.ipf.commons.ihe.fhir.iti119;
1818

1919
import ca.uhn.fhir.rest.client.api.IGenericClient;
20-
import ca.uhn.fhir.rest.gclient.IClientExecutable;
2120
import ca.uhn.fhir.rest.gclient.IOperationUntypedWithInput;
2221
import org.hl7.fhir.r4.model.Bundle;
2322
import org.hl7.fhir.r4.model.Parameters;
@@ -40,7 +39,7 @@
4039
public class Iti119ClientRequestFactory implements ClientRequestFactory {
4140

4241
@Override
43-
public IClientExecutable<IOperationUntypedWithInput<Bundle>, ?> getClientExecutable(IGenericClient client, Object requestData, Map<String, Object> parameters) {
42+
public IOperationUntypedWithInput<Bundle> getClientExecutable(IGenericClient client, Object requestData, Map<String, Object> parameters) {
4443

4544
if (requestData instanceof Parameters p) {
4645
return getClientExecutable(client, p);
@@ -62,7 +61,7 @@ public class Iti119ClientRequestFactory implements ClientRequestFactory {
6261
}
6362

6463

65-
private IClientExecutable<IOperationUntypedWithInput<Bundle>, ?> getClientExecutable(IGenericClient client, Parameters requestData) {
64+
private IOperationUntypedWithInput<Bundle> getClientExecutable(IGenericClient client, Parameters requestData) {
6665
return client.operation()
6766
.onType(Patient.class)
6867
.named(Iti119Constants.PDQM_MATCH_OPERATION_NAME)

commons/ihe/fhir/r4/pixpdq/src/main/java/org/openehealth/ipf/commons/ihe/fhir/iti83/Iti83ClientRequestFactory.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package org.openehealth.ipf.commons.ihe.fhir.iti83;
1818

1919
import ca.uhn.fhir.rest.client.api.IGenericClient;
20-
import ca.uhn.fhir.rest.gclient.IClientExecutable;
2120
import ca.uhn.fhir.rest.gclient.IOperationUntypedWithInput;
2221
import org.hl7.fhir.r4.model.Parameters;
2322
import org.hl7.fhir.r4.model.Patient;
@@ -35,7 +34,7 @@
3534
public class Iti83ClientRequestFactory implements ClientRequestFactory {
3635

3736
@Override
38-
public IClientExecutable<IOperationUntypedWithInput<Parameters>, ?> getClientExecutable(IGenericClient client, Object requestData, Map<String, Object> parameters) {
37+
public IOperationUntypedWithInput<Parameters> getClientExecutable(IGenericClient client, Object requestData, Map<String, Object> parameters) {
3938

4039
if (requestData instanceof Parameters p) {
4140
return getClientExecutable(client, p);
@@ -51,7 +50,7 @@ public class Iti83ClientRequestFactory implements ClientRequestFactory {
5150

5251
}
5352

54-
private IClientExecutable<IOperationUntypedWithInput<Parameters>, ?> getClientExecutable(IGenericClient client, Parameters requestData) {
53+
private IOperationUntypedWithInput<Parameters> getClientExecutable(IGenericClient client, Parameters requestData) {
5554
return client.operation()
5655
.onType(Patient.class)
5756
.named(Iti83Constants.PIXM_OPERATION_NAME)

commons/ihe/fhir/r4/qedm/src/main/java/org/openehealth/ipf/commons/ihe/fhir/pcc44/Pcc44ClientRequestFactory.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
package org.openehealth.ipf.commons.ihe.fhir.pcc44;
1818

1919
import ca.uhn.fhir.rest.client.api.IGenericClient;
20-
import ca.uhn.fhir.rest.gclient.IClientExecutable;
2120
import ca.uhn.fhir.rest.gclient.ICriterion;
2221
import ca.uhn.fhir.rest.gclient.IQuery;
2322
import org.hl7.fhir.instance.model.api.IBaseBundle;
@@ -37,14 +36,14 @@ public class Pcc44ClientRequestFactory implements ClientRequestFactory {
3736

3837

3938
@Override
40-
public IClientExecutable<IQuery<Bundle>, ?> getClientExecutable(IGenericClient client, Object requestData, Map<String, Object> parameters) {
39+
public IQuery<Bundle> getClientExecutable(IGenericClient client, Object requestData, Map<String, Object> parameters) {
4140
IQuery<IBaseBundle> query;
4241
var queriedResourceType = (String) parameters.get(Constants.FHIR_RESOURCE_TYPE_HEADER);
43-
if (requestData instanceof ICriterion criterion) {
42+
if (requestData instanceof ICriterion<?> criterion) {
4443
query = client.search()
4544
.forResource(queriedResourceType)
4645
.where(criterion);
47-
} else if (requestData instanceof ICriterion[] criteria) {
46+
} else if (requestData instanceof ICriterion<?>[] criteria) {
4847
query = client.search()
4948
.forResource(queriedResourceType);
5049
if (criteria.length > 0) {

0 commit comments

Comments
 (0)