View Javadoc
1   /*
2    * Copyright 2016 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.ihe.fhir.iti83;
17  
18  import ca.uhn.fhir.context.FhirContext;
19  import org.openehealth.ipf.commons.ihe.fhir.audit.FhirQueryAuditDataset;
20  import org.openehealth.ipf.commons.ihe.fhir.FhirTransactionConfiguration;
21  import org.openehealth.ipf.commons.ihe.fhir.FhirTransactionValidator;
22  
23  /**
24   * Standard Configuration for Iti83Component. Lazy-loading of results is by default not supported.
25   *
26   * @author Christian Ohr
27   * @since 3.4
28   */
29  public class Iti83TransactionConfiguration extends FhirTransactionConfiguration<FhirQueryAuditDataset> {
30  
31      public Iti83TransactionConfiguration() {
32          super(
33                  "pixm-iti83",
34                  "PIX Query For Mobile",
35                  true,
36                  new Iti83AuditStrategy(false),
37                  new Iti83AuditStrategy(true),
38                  FhirContext.forDstu3(),
39                  new Iti83ResourceProvider(),        // Consumer side. accept $ihe-pix operation
40                  new Iti83ClientRequestFactory(),
41                  FhirTransactionValidator.NO_VALIDATION);
42          setSupportsLazyLoading(false);
43      }
44  
45  }