<?xml version="1.0" encoding="UTF-8"?>
<!--

    Licensed to the Apache Software Foundation (ASF) under one or more
    contributor license agreements.  See the NOTICE file distributed with
    this work for additional information regarding copyright ownership.
    The ASF licenses this file to You under the Apache License, Version 2.0
    (the "License"); you may not use this file except in compliance with
    the License.  You may obtain a copy of the License at

         http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <parent>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-fhir-parent</artifactId>
    <version>4.14.3</version>
  </parent>
  <groupId>org.apache.camel</groupId>
  <artifactId>camel-fhir</artifactId>
  <version>4.14.3</version>
  <name>Camel :: FHIR</name>
  <description>Camel FHIR HL7 support</description>
  <licenses>
    <license>
      <name>Apache-2.0</name>
      <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
      <distribution>repo</distribution>
    </license>
  </licenses>
  <properties>
    <schemeName>fhir</schemeName>
    <componentPackage>org.apache.camel.component.fhir</componentPackage>
    <componentName>Fhir</componentName>
    <outPackage>org.apache.camel.component.fhir.internal</outPackage>
  </properties>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>commons-io</groupId>
        <artifactId>commons-io</artifactId>
        <version>${commons-io-version}</version>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-support</artifactId>
      <version>4.14.3</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.commons</groupId>
      <artifactId>commons-text</artifactId>
      <version>1.14.0</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>ca.uhn.hapi.fhir</groupId>
      <artifactId>hapi-fhir-base</artifactId>
      <version>8.2.1</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <groupId>org.apache.commons</groupId>
          <artifactId>commons-text</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>ca.uhn.hapi.fhir</groupId>
      <artifactId>hapi-fhir-client</artifactId>
      <version>8.2.1</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-fhir-api</artifactId>
      <version>4.14.3</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>ca.uhn.hapi.fhir</groupId>
      <artifactId>hapi-fhir-structures-r5</artifactId>
      <version>8.2.1</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <groupId>com.google.code.findbugs</groupId>
          <artifactId>jsr305</artifactId>
        </exclusion>
        <exclusion>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>ca.uhn.hapi.fhir</groupId>
      <artifactId>hapi-fhir-structures-r4</artifactId>
      <version>8.2.1</version>
      <scope>compile</scope>
      <exclusions>
        <exclusion>
          <groupId>com.google.code.findbugs</groupId>
          <artifactId>jsr305</artifactId>
        </exclusion>
      </exclusions>
    </dependency>
    <dependency>
      <groupId>ca.uhn.hapi.fhir</groupId>
      <artifactId>hapi-fhir-structures-dstu3</artifactId>
      <version>8.2.1</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>ca.uhn.hapi.fhir</groupId>
      <artifactId>hapi-fhir-structures-dstu2</artifactId>
      <version>8.2.1</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>ca.uhn.hapi.fhir</groupId>
      <artifactId>hapi-fhir-structures-dstu2.1</artifactId>
      <version>8.2.1</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
      <groupId>ca.uhn.hapi.fhir</groupId>
      <artifactId>hapi-fhir-structures-hl7org-dstu2</artifactId>
      <version>8.2.1</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
  <build>
    <defaultGoal>install</defaultGoal>
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>org.apache.camel</groupId>
          <artifactId>camel-api-component-maven-plugin</artifactId>
          <version>${project.version}</version>
          <configuration>
            <scheme>${schemeName}</scheme>
            <componentName>${componentName}</componentName>
            <componentPackage>${componentPackage}</componentPackage>
            <outPackage>${outPackage}</outPackage>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.apache.camel</groupId>
        <artifactId>camel-api-component-maven-plugin</artifactId>
        <executions>
          <execution>
            <id>generate-test-component-classes</id>
            <goals>
              <goal>fromApis</goal>
            </goals>
            <configuration>
              <apis>
                <api>
                  <apiName>capabilities</apiName>
                  <proxyClass>org.apache.camel.component.fhir.api.FhirCapabilities</proxyClass>
                  <fromJavasource />
                  <nullableOptions>
                    <nullableOption>extraParameters</nullableOption>
                  </nullableOptions>
                </api>
                <api>
                  <apiName>create</apiName>
                  <proxyClass>org.apache.camel.component.fhir.api.FhirCreate</proxyClass>
                  <fromJavasource />
                  <nullableOptions>
                    <nullableOption>url</nullableOption>
                    <nullableOption>preferReturn</nullableOption>
                    <nullableOption>extraParameters</nullableOption>
                  </nullableOptions>
                </api>
                <api>
                  <apiName>delete</apiName>
                  <proxyClass>org.apache.camel.component.fhir.api.FhirDelete</proxyClass>
                  <fromJavasource />
                  <nullableOptions>
                    <nullableOption>extraParameters</nullableOption>
                  </nullableOptions>
                </api>
                <api>
                  <apiName>history</apiName>
                  <proxyClass>org.apache.camel.component.fhir.api.FhirHistory</proxyClass>
                  <fromJavasource />
                  <nullableOptions>
                    <nullableOption>count</nullableOption>
                    <nullableOption>cutoff</nullableOption>
                    <nullableOption>iCutoff</nullableOption>
                    <nullableOption>extraParameters</nullableOption>
                  </nullableOptions>
                </api>
                <api>
                  <apiName>load-page</apiName>
                  <proxyClass>org.apache.camel.component.fhir.api.FhirLoadPage</proxyClass>
                  <fromJavasource />
                  <nullableOptions>
                    <nullableOption>extraParameters</nullableOption>
                  </nullableOptions>
                </api>
                <api>
                  <apiName>meta</apiName>
                  <proxyClass>org.apache.camel.component.fhir.api.FhirMeta</proxyClass>
                  <fromJavasource />
                  <nullableOptions>
                    <nullableOption>extraParameters</nullableOption>
                  </nullableOptions>
                </api>
                <api>
                  <apiName>operation</apiName>
                  <proxyClass>org.apache.camel.component.fhir.api.FhirOperation</proxyClass>
                  <fromJavasource />
                  <nullableOptions>
                    <nullableOption>extraParameters</nullableOption>
                    <nullableOption>parameters</nullableOption>
                    <nullableOption>outputParameterType</nullableOption>
                    <nullableOption>returnType</nullableOption>
                    <nullableOption>respondToUri</nullableOption>
                  </nullableOptions>
                </api>
                <api>
                  <apiName>patch</apiName>
                  <proxyClass>org.apache.camel.component.fhir.api.FhirPatch</proxyClass>
                  <fromJavasource />
                  <nullableOptions>
                    <nullableOption>preferReturn</nullableOption>
                    <nullableOption>extraParameters</nullableOption>
                  </nullableOptions>
                </api>
                <api>
                  <apiName>read</apiName>
                  <proxyClass>org.apache.camel.component.fhir.api.FhirRead</proxyClass>
                  <fromJavasource />
                  <nullableOptions>
                    <nullableOption>ifVersionMatches</nullableOption>
                    <nullableOption>returnNull</nullableOption>
                    <nullableOption>returnResource</nullableOption>
                    <nullableOption>throwError</nullableOption>
                    <nullableOption>extraParameters</nullableOption>
                    <nullableOption>version</nullableOption>
                  </nullableOptions>
                </api>
                <api>
                  <apiName>search</apiName>
                  <proxyClass>org.apache.camel.component.fhir.api.FhirSearch</proxyClass>
                  <fromJavasource />
                  <nullableOptions>
                    <nullableOption>searchParameters</nullableOption>
                    <nullableOption>searchStyle</nullableOption>
                    <nullableOption>extraParameters</nullableOption>
                  </nullableOptions>
                </api>
                <api>
                  <apiName>transaction</apiName>
                  <proxyClass>org.apache.camel.component.fhir.api.FhirTransaction</proxyClass>
                  <fromJavasource />
                  <nullableOptions>
                    <nullableOption>extraParameters</nullableOption>
                  </nullableOptions>
                </api>
                <api>
                  <apiName>update</apiName>
                  <proxyClass>org.apache.camel.component.fhir.api.FhirUpdate</proxyClass>
                  <fromJavasource />
                  <nullableOptions>
                    <nullableOption>id</nullableOption>
                    <nullableOption>stringId</nullableOption>
                    <nullableOption>preferReturn</nullableOption>
                    <nullableOption>extraParameters</nullableOption>
                  </nullableOptions>
                </api>
                <api>
                  <apiName>validate</apiName>
                  <proxyClass>org.apache.camel.component.fhir.api.FhirValidate</proxyClass>
                  <fromJavasource />
                  <nullableOptions>
                    <nullableOption>extraParameters</nullableOption>
                  </nullableOptions>
                </api>
              </apis>
            </configuration>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>org.apache.camel</groupId>
            <artifactId>camel-fhir-api</artifactId>
            <version>${project.version}</version>
            <classifier>sources</classifier>
          </dependency>
        </dependencies>
      </plugin>
    </plugins>
  </build>
</project>
