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.iti78;
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 Iti78Component. Supports lazy-loading by default.
25   *
26   * @author Christian Ohr
27   * @since 3.4
28   */
29  public class Iti78TransactionConfiguration extends FhirTransactionConfiguration<FhirQueryAuditDataset> {
30  
31      public Iti78TransactionConfiguration() {
32          super("pdqm-iti78",
33                  "Patient Demographics Query For Mobile",
34                  true,
35                  new Iti78ClientAuditStrategy(),
36                  new Iti78ServerAuditStrategy(),
37                  FhirContext.forDstu3(),
38                  new Iti78ResourceProvider(),                    // Consumer side. accept patient searches
39                  new Iti78QueryResourceClientRequestFactory(),
40                  FhirTransactionValidator.NO_VALIDATION);
41          setSupportsLazyLoading(true);
42      }
43  }