1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.openehealth.ipf.commons.ihe.fhir.iti65;
18
19 import ca.uhn.fhir.rest.client.api.IGenericClient;
20 import ca.uhn.fhir.rest.gclient.ITransactionTyped;
21 import org.hl7.fhir.dstu3.model.Bundle;
22 import org.openehealth.ipf.commons.ihe.fhir.ClientRequestFactory;
23
24 import java.util.Map;
25
26
27
28
29
30
31
32 public class Iti65ClientRequestFactory implements ClientRequestFactory<ITransactionTyped<Bundle>> {
33
34 @Override
35 public ITransactionTyped<Bundle> getClientExecutable(IGenericClient client, Object requestData, Map<String, Object> parameters) {
36 return client.transaction().withBundle((Bundle)requestData);
37 }
38
39 }