add tests for generic model-based, dstu3, and r4

This commit is contained in:
bdenton 2018-11-09 14:01:08 -08:00
parent c7a7a079b2
commit 5e225375c9
1 changed files with 489 additions and 420 deletions

View File

@ -1,420 +1,489 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<parent> <parent>
<groupId>ca.uhn.hapi.fhir</groupId> <groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir</artifactId> <artifactId>hapi-fhir</artifactId>
<version>3.6.0-SNAPSHOT</version> <version>3.6.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath> <relativePath>../pom.xml</relativePath>
</parent> </parent>
<artifactId>hapi-tinder-test</artifactId> <artifactId>hapi-tinder-test</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>HAPI Tinder Plugin - Test Project</name> <name>HAPI Tinder Plugin - Test Project</name>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>ca.uhn.hapi.fhir</groupId> <groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-base</artifactId> <artifactId>hapi-fhir-base</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>ca.uhn.hapi.fhir</groupId> <groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-structures-dstu2</artifactId> <artifactId>hapi-fhir-structures-dstu2</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<!-- Because Tinder is a part of the HAPI FHIR build process (it generates a bunch of the actual HAPI structure code), but also uses HAPI FHIR in order to run (e.g. to load ValueSet resources), we keep <!-- Because Tinder is a part of the HAPI FHIR build process (it generates a bunch of the actual HAPI structure code), but also uses HAPI FHIR in order to run (e.g. to load ValueSet resources), we keep
the dependencies for the structures a version behind the main library. This is weird, but it works. --> the dependencies for the structures a version behind the main library. This is weird, but it works. -->
<dependency> <dependency>
<groupId>ca.uhn.hapi.fhir</groupId> <groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-structures-dstu2.1</artifactId> <artifactId>hapi-fhir-structures-dstu2.1</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<exclusions> <exclusions>
<exclusion> <exclusion>
<groupId>ca.uhn.hapi.fhir</groupId> <groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-base</artifactId> <artifactId>hapi-fhir-base</artifactId>
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<dependency> <dependency>
<groupId>ca.uhn.hapi.fhir</groupId> <groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-structures-dstu3</artifactId> <artifactId>hapi-fhir-structures-dstu3</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>ca.uhn.hapi.fhir</groupId> <groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-structures-hl7org-dstu2</artifactId> <artifactId>hapi-fhir-structures-hl7org-dstu2</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>ca.uhn.hapi.fhir</groupId> <groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-validation-resources-dstu2</artifactId> <artifactId>hapi-fhir-validation-resources-dstu2</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>ca.uhn.hapi.fhir</groupId> <groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-validation-resources-dstu3</artifactId> <artifactId>hapi-fhir-validation-resources-dstu3</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>junit</groupId> <groupId>junit</groupId>
<artifactId>junit</artifactId> <artifactId>junit</artifactId>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<build> <build>
<plugins> <plugins>
<!-- <plugin> <groupId>ca.uhn.hapi.fhir</groupId> <artifactId>hapi-tinder-plugin</artifactId> <version>1.0-SNAPSHOT</version> <executions> <execution> <id>structs</id> <goals> <goal>generate-structures</goal> <!-- <plugin> <groupId>ca.uhn.hapi.fhir</groupId> <artifactId>hapi-tinder-plugin</artifactId> <version>1.0-SNAPSHOT</version> <executions> <execution> <id>structs</id> <goals> <goal>generate-structures</goal>
</goals> <configuration> <package>ca.uhn.tindertest</package> <baseResourceNames> <baseResourceName>patient</baseResourceName> <baseResourceName>valueset</baseResourceName> <baseResourceName>organization</baseResourceName> </goals> <configuration> <package>ca.uhn.tindertest</package> <baseResourceNames> <baseResourceName>patient</baseResourceName> <baseResourceName>valueset</baseResourceName> <baseResourceName>organization</baseResourceName>
<baseResourceName>device</baseResourceName> <baseResourceName>location</baseResourceName> <baseResourceName>practitioner</baseResourceName> </baseResourceNames> </configuration> </execution> <execution> <baseResourceName>device</baseResourceName> <baseResourceName>location</baseResourceName> <baseResourceName>practitioner</baseResourceName> </baseResourceNames> </configuration> </execution> <execution>
<id>client</id> <goals> <goal>generate-client</goal> </goals> <configuration> <clientClassName>ca.uhn.hitest.HiTest</clientClassName> <serverBaseHref>http://fhir.healthintersections.com.au/open</serverBaseHref> <id>client</id> <goals> <goal>generate-client</goal> </goals> <configuration> <clientClassName>ca.uhn.hitest.HiTest</clientClassName> <serverBaseHref>http://fhir.healthintersections.com.au/open</serverBaseHref>
<generateSearchForAllParams>true</generateSearchForAllParams> </configuration> </execution> </executions> </plugin> --> <generateSearchForAllParams>true</generateSearchForAllParams> </configuration> </execution> </executions> </plugin> -->
<plugin> <plugin>
<groupId>ca.uhn.hapi.fhir</groupId> <groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-tinder-plugin</artifactId> <artifactId>hapi-tinder-plugin</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>ca.uhn.hapi.fhir</groupId> <groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-base</artifactId> <artifactId>hapi-fhir-base</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>ca.uhn.hapi.fhir</groupId> <groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-structures-dstu2</artifactId> <artifactId>hapi-fhir-structures-dstu2</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>ca.uhn.hapi.fhir</groupId> <groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-structures-dstu2.1</artifactId> <artifactId>hapi-fhir-structures-dstu2.1</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
<exclusions> <exclusions>
<exclusion> <exclusion>
<groupId>ca.uhn.hapi.fhir</groupId> <groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-base</artifactId> <artifactId>hapi-fhir-base</artifactId>
</exclusion> </exclusion>
</exclusions> </exclusions>
</dependency> </dependency>
<dependency> <dependency>
<groupId>ca.uhn.hapi.fhir</groupId> <groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-structures-dstu3</artifactId> <artifactId>hapi-fhir-structures-dstu3</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>ca.uhn.hapi.fhir</groupId> <groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-structures-hl7org-dstu2</artifactId> <artifactId>hapi-fhir-structures-r4</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>ca.uhn.hapi.fhir</groupId> <groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-validation-resources-dstu2</artifactId> <artifactId>hapi-fhir-structures-hl7org-dstu2</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>ca.uhn.hapi.fhir</groupId> <groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-validation-resources-dstu3</artifactId> <artifactId>hapi-fhir-validation-resources-dstu2</artifactId>
<version>${project.version}</version> <version>${project.version}</version>
</dependency> </dependency>
</dependencies> <dependency>
<executions> <groupId>ca.uhn.hapi.fhir</groupId>
<!-- <artifactId>hapi-fhir-validation-resources-dstu3</artifactId>
<execution> <version>${project.version}</version>
<id>custom-structs</id> </dependency>
<goals> <dependency>
<goal>generate-structures</goal> <groupId>ca.uhn.hapi.fhir</groupId>
</goals> <artifactId>hapi-fhir-validation-resources-r4</artifactId>
<configuration> <version>${project.version}</version>
<package>ca.uhn.test.customstructs</package> </dependency>
<profileHttpBase>http://foo</profileHttpBase> </dependencies>
<version>dstu</version> <executions>
<resourceProfileFiles> <!--
<resourceProfileFile> <execution>
<profileFile>${project.basedir}/src/test/resources/profile/patient.xml</profileFile> <id>custom-structs</id>
<profileSourceUrl>http://foo1</profileSourceUrl> <goals>
</resourceProfileFile> <goal>generate-structures</goal>
<resourceProfileFile> </goals>
<profileFile>${project.basedir}/src/test/resources/profile/organization.xml</profileFile> <configuration>
<profileSourceUrl>http://foo1</profileSourceUrl> <package>ca.uhn.test.customstructs</package>
</resourceProfileFile> <profileHttpBase>http://foo</profileHttpBase>
</resourceProfileFiles> <version>dstu</version>
<resourceValueSetFiles> <resourceProfileFiles>
<resourceValueSetFile> <resourceProfileFile>
<valueSetFile>${project.basedir}/src/test/resources/valueset/valueset-cgta-patientidpool.xml</valueSetFile> <profileFile>${project.basedir}/src/test/resources/profile/patient.xml</profileFile>
</resourceValueSetFile> <profileSourceUrl>http://foo1</profileSourceUrl>
<resourceValueSetFile> </resourceProfileFile>
<valueSetFile>${project.basedir}/src/test/resources/valueset/valueset-cgta-provideridpool.xml</valueSetFile> <resourceProfileFile>
</resourceValueSetFile> <profileFile>${project.basedir}/src/test/resources/profile/organization.xml</profileFile>
</resourceValueSetFiles> <profileSourceUrl>http://foo1</profileSourceUrl>
</configuration> </resourceProfileFile>
</execution> </resourceProfileFiles>
--> <resourceValueSetFiles>
<execution> <resourceValueSetFile>
<id>generalstructs</id> <valueSetFile>${project.basedir}/src/test/resources/valueset/valueset-cgta-patientidpool.xml</valueSetFile>
<goals> </resourceValueSetFile>
<goal>generate-structures</goal> <resourceValueSetFile>
</goals> <valueSetFile>${project.basedir}/src/test/resources/valueset/valueset-cgta-provideridpool.xml</valueSetFile>
<configuration> </resourceValueSetFile>
<package>ca.uhn.test.realstructs</package> </resourceValueSetFiles>
<version>dstu2</version> </configuration>
<baseResourceNames> </execution>
<baseResourceName>patient</baseResourceName> -->
<baseResourceName>valueset</baseResourceName> <execution>
<baseResourceName>organization</baseResourceName> <id>generalstructs</id>
<baseResourceName>device</baseResourceName> <goals>
<baseResourceName>location</baseResourceName> <goal>generate-structures</goal>
<baseResourceName>practitioner</baseResourceName> </goals>
<baseResourceName>list</baseResourceName> <configuration>
<baseResourceName>auditevent</baseResourceName> <package>ca.uhn.test.realstructs</package>
</baseResourceNames> <version>dstu2</version>
<buildDatatypes>true</buildDatatypes> <baseResourceNames>
</configuration> <baseResourceName>patient</baseResourceName>
</execution> <baseResourceName>valueset</baseResourceName>
<execution> <baseResourceName>organization</baseResourceName>
<id>generic_multi</id> <baseResourceName>device</baseResourceName>
<goals> <baseResourceName>location</baseResourceName>
<goal>generate-multi-files</goal> <baseResourceName>practitioner</baseResourceName>
</goals> <baseResourceName>list</baseResourceName>
<configuration> <baseResourceName>auditevent</baseResourceName>
<version>dstu2</version> </baseResourceNames>
<generateResources>true</generateResources> <buildDatatypes>true</buildDatatypes>
<templateFile>${project.basedir}/src/test/resources/templates/resource_test.vm</templateFile> </configuration>
<targetSourceDirectory>${project.build.directory}/generated-sources/tinder</targetSourceDirectory> </execution>
<targetPackage>ca.uhn.test.generic.multi</targetPackage> <execution>
<filenameSuffix>ResourceTest.java</filenameSuffix> <id>generic_multi_dstu2</id>
<includeResources> <goals>
<includeResource>patient</includeResource> <goal>generate-multi-files</goal>
<includeResource>organization</includeResource> </goals>
</includeResources> <configuration>
</configuration> <version>dstu2</version>
</execution> <generateResources>true</generateResources>
<execution> <templateFile>${project.basedir}/src/test/resources/templates/resource_test.vm</templateFile>
<id>generic_multi_json</id> <targetSourceDirectory>${project.build.directory}/generated-sources/tinder</targetSourceDirectory>
<goals> <targetPackage>ca.uhn.test.generic.multi</targetPackage>
<goal>generate-multi-files</goal> <filenameSuffix>ResourceTest.java</filenameSuffix>
</goals> <includeResources>
<configuration> <includeResource>patient</includeResource>
<version>dstu2</version> <includeResource>organization</includeResource>
<generateResources>true</generateResources> </includeResources>
<templateFile>${project.basedir}/src/test/resources/templates/resource_map.vm</templateFile> </configuration>
<velocityPath>${project.basedir}/src/test/resources/macros</velocityPath> </execution>
<targetResourceDirectory>${project.build.directory}/generated-resources/tinder</targetResourceDirectory> <execution>
<targetFolder>maps</targetFolder> <id>generic_multi_dstu3</id>
<filenameSuffix>_Map.json</filenameSuffix> <goals>
<includeResources> <goal>generate-multi-files</goal>
<includeResource>patient</includeResource> </goals>
<includeResource>organization</includeResource> <configuration>
<includeResource>bundle</includeResource> <version>dstu3</version>
<includeResource>composition</includeResource> <generateResources>true</generateResources>
</includeResources> <resourceSource>model</resourceSource>
</configuration> <templateFile>${project.basedir}/src/test/resources/templates/resource_test.vm</templateFile>
</execution> <targetSourceDirectory>${project.build.directory}/generated-sources/tinder</targetSourceDirectory>
<execution> <targetPackage>ca.uhn.test.generic.multi.dstu3</targetPackage>
<id>generic_single</id> <filenameSuffix>ResourceTest.java</filenameSuffix>
<goals> <includeResources>
<goal>generate-single-file</goal> <includeResource>patient</includeResource>
</goals> <includeResource>organization</includeResource>
<configuration> </includeResources>
<version>dstu2</version> </configuration>
<generateResources>true</generateResources> </execution>
<templateFile>${project.basedir}/src/test/resources/templates/resource_test_beans_java.vm</templateFile> <execution>
<targetSourceDirectory>${project.build.directory}/generated-sources/tinder</targetSourceDirectory> <id>generic_multi_r4</id>
<targetPackage>ca.uhn.test.generic.single</targetPackage> <goals>
<packageBase>ca.uhn.test.generic.multi</packageBase> <goal>generate-multi-files</goal>
<targetFile>TestConfigDstu2.java</targetFile> </goals>
<includeResources> <configuration>
<includeResource>patient</includeResource> <version>r4</version>
<includeResource>organization</includeResource> <generateResources>true</generateResources>
</includeResources> <resourceSource>model</resourceSource>
</configuration> <templateFile>${project.basedir}/src/test/resources/templates/resource_test.vm</templateFile>
</execution> <targetSourceDirectory>${project.build.directory}/generated-sources/tinder</targetSourceDirectory>
<execution> <targetPackage>ca.uhn.test.generic.multi.r4</targetPackage>
<id>generic_single_json</id> <filenameSuffix>ResourceTest.java</filenameSuffix>
<goals> <includeResources>
<goal>generate-single-file</goal> <includeResource>patient</includeResource>
</goals> <includeResource>organization</includeResource>
<configuration> </includeResources>
<version>dstu2</version> </configuration>
<generateDatatypes>true</generateDatatypes> </execution>
<templateFile>${project.basedir}/src/test/resources/templates/composite_map.vm</templateFile> <execution>
<velocityPath>${project.basedir}/src/test/resources/macros</velocityPath> <id>generic_multi_json</id>
<targetResourceDirectory>${project.build.directory}/generated-resources/tinder</targetResourceDirectory> <goals>
<targetFolder>maps</targetFolder> <goal>generate-multi-files</goal>
<targetFile>Datatypes_Dstu2.json</targetFile> </goals>
<includeResources> <configuration>
<includeResource>patient</includeResource> <version>dstu2</version>
<includeResource>organization</includeResource> <generateResources>true</generateResources>
</includeResources> <resourceSource>spreadsheet</resourceSource>
</configuration> <templateFile>${project.basedir}/src/test/resources/templates/resource_map.vm</templateFile>
</execution> <velocityPath>${project.basedir}/src/test/resources/macros</velocityPath>
<!-- <execution> <id>client</id> <goals> <goal>generate-client</goal> </goals> <configuration> <clientClassName>ca.uhn.hitest.HiTest</clientClassName> <serverBaseHref>http://fhir.healthintersections.com.au/open</serverBaseHref> <targetResourceDirectory>${project.build.directory}/generated-resources/tinder</targetResourceDirectory>
<generateSearchForAllParams>true</generateSearchForAllParams> </configuration> </execution> --> <targetFolder>maps</targetFolder>
</executions> <filenameSuffix>_Map.json</filenameSuffix>
</plugin> <includeResources>
<plugin> <includeResource>patient</includeResource>
<artifactId>maven-antrun-plugin</artifactId> <includeResource>organization</includeResource>
<executions> <includeResource>bundle</includeResource>
<execution> <includeResource>composition</includeResource>
<id>testTinderTask</id> </includeResources>
<phase>generate-sources</phase> </configuration>
<goals> </execution>
<goal>run</goal> <execution>
</goals> <id>generic_single_dstu2</id>
<configuration> <goals>
<target> <goal>generate-single-file</goal>
<taskdef name="hapi-tinder" classname="ca.uhn.fhir.tinder.ant.TinderGeneratorTask" classpathref="maven.plugin.classpath" /> </goals>
<configuration>
<hapi-tinder templateFile="${project.basedir}/src/test/resources/templates/resource_test.vm" generateResources="true" targetSourceDirectory="${project.build.directory}/generated-sources/tinder" <version>dstu2</version>
targetPackage="ca.uhn.test.ant.multi" filenameSuffix="ResourceTest.java" projectHome="${project.basedir}/.." version="dstu2" includeResources="patient,organization" /> <generateResources>true</generateResources>
<templateFile>${project.basedir}/src/test/resources/templates/resource_test_beans_java.vm</templateFile>
<hapi-tinder templateFile="${project.basedir}/src/test/resources/templates/resource_test_beans_java.vm" generateResources="true" targetSourceDirectory="${project.build.directory}/generated-sources/tinder" <targetSourceDirectory>${project.build.directory}/generated-sources/tinder</targetSourceDirectory>
targetFile="TestConfigDstu2.java" targetPackage="ca.uhn.test.ant.single" packageBase="ca.uhn.test.ant.multi" projectHome="${project.basedir}/.." version="dstu2" includeResources="patient,organization" /> <targetPackage>ca.uhn.test.generic.single</targetPackage>
<packageBase>ca.uhn.test.generic.multi</packageBase>
</target> <targetFile>TestConfigDstu2.java</targetFile>
</configuration> <includeResources>
</execution> <includeResource>patient</includeResource>
</executions> <includeResource>organization</includeResource>
<dependencies> </includeResources>
<dependency> </configuration>
<groupId>ca.uhn.hapi.fhir</groupId> </execution>
<artifactId>hapi-fhir-base</artifactId> <execution>
<version>${project.version}</version> <id>generic_single_r4</id>
</dependency> <goals>
<dependency> <goal>generate-single-file</goal>
<groupId>ca.uhn.hapi.fhir</groupId> </goals>
<artifactId>hapi-fhir-structures-dstu2</artifactId> <configuration>
<version>${project.version}</version> <version>r4</version>
</dependency> <generateResources>true</generateResources>
<dependency> <resourceSource>model</resourceSource>
<groupId>ca.uhn.hapi.fhir</groupId> <templateFile>${project.basedir}/src/test/resources/templates/resource_test_beans_java.vm</templateFile>
<artifactId>hapi-fhir-structures-dstu2.1</artifactId> <targetSourceDirectory>${project.build.directory}/generated-sources/tinder</targetSourceDirectory>
<version>${project.version}</version> <targetPackage>ca.uhn.test.generic.single.r4</targetPackage>
<exclusions> <packageBase>ca.uhn.test.generic.multi.r4</packageBase>
<exclusion> <targetFile>TestConfigR4.java</targetFile>
<groupId>ca.uhn.hapi.fhir</groupId> <includeResources>
<artifactId>hapi-fhir-base</artifactId> <includeResource>patient</includeResource>
</exclusion> <includeResource>organization</includeResource>
</exclusions> </includeResources>
</dependency> </configuration>
<dependency> </execution>
<groupId>ca.uhn.hapi.fhir</groupId> <execution>
<artifactId>hapi-fhir-structures-dstu3</artifactId> <id>generic_single_json</id>
<version>${project.version}</version> <goals>
</dependency> <goal>generate-single-file</goal>
<dependency> </goals>
<groupId>ca.uhn.hapi.fhir</groupId> <configuration>
<artifactId>hapi-fhir-structures-hl7org-dstu2</artifactId> <version>dstu2</version>
<version>${project.version}</version> <generateDatatypes>true</generateDatatypes>
</dependency> <templateFile>${project.basedir}/src/test/resources/templates/composite_map.vm</templateFile>
<dependency> <velocityPath>${project.basedir}/src/test/resources/macros</velocityPath>
<groupId>ca.uhn.hapi.fhir</groupId> <targetResourceDirectory>${project.build.directory}/generated-resources/tinder</targetResourceDirectory>
<artifactId>hapi-fhir-validation-resources-dstu2</artifactId> <targetFolder>maps</targetFolder>
<version>${project.version}</version> <targetFile>Datatypes_Dstu2.json</targetFile>
</dependency> <includeResources>
<dependency> <includeResource>patient</includeResource>
<groupId>ca.uhn.hapi.fhir</groupId> <includeResource>organization</includeResource>
<artifactId>hapi-fhir-validation-resources-dstu3</artifactId> </includeResources>
<version>${project.version}</version> </configuration>
</dependency> </execution>
<dependency> <!-- <execution> <id>client</id> <goals> <goal>generate-client</goal> </goals> <configuration> <clientClassName>ca.uhn.hitest.HiTest</clientClassName> <serverBaseHref>http://fhir.healthintersections.com.au/open</serverBaseHref>
<groupId>ca.uhn.hapi.fhir</groupId> <generateSearchForAllParams>true</generateSearchForAllParams> </configuration> </execution> -->
<artifactId>hapi-tinder-plugin</artifactId> </executions>
<version>${project.version}</version> </plugin>
</dependency> <plugin>
</dependencies> <artifactId>maven-antrun-plugin</artifactId>
</plugin> <executions>
<plugin> <execution>
<groupId>org.apache.maven.plugins</groupId> <id>testTinderTask</id>
<artifactId>maven-deploy-plugin</artifactId> <phase>generate-sources</phase>
<configuration> <goals>
<skip>true</skip> <goal>run</goal>
</configuration> </goals>
</plugin> <configuration>
<plugin> <target>
<groupId>org.codehaus.mojo</groupId> <taskdef name="hapi-tinder" classname="ca.uhn.fhir.tinder.ant.TinderGeneratorTask" classpathref="maven.plugin.classpath" />
<artifactId>build-helper-maven-plugin</artifactId>
<executions> <hapi-tinder templateFile="${project.basedir}/src/test/resources/templates/resource_test.vm" generateResources="true" targetSourceDirectory="${project.build.directory}/generated-sources/tinder"
<execution> targetPackage="ca.uhn.test.ant.multi" filenameSuffix="ResourceTest.java" projectHome="${project.basedir}/.." version="dstu2" includeResources="patient,organization" />
<id>add-source</id>
<phase>generate-sources</phase> <hapi-tinder templateFile="${project.basedir}/src/test/resources/templates/resource_test_beans_java.vm" generateResources="true" targetSourceDirectory="${project.build.directory}/generated-sources/tinder"
<goals> targetFile="TestConfigDstu2.java" targetPackage="ca.uhn.test.ant.single" packageBase="ca.uhn.test.ant.multi" projectHome="${project.basedir}/.." version="dstu2" includeResources="patient,organization" />
<goal>add-source</goal>
</goals> </target>
<configuration> </configuration>
<sources> </execution>
<source>target/generated-sources/tinder</source> </executions>
</sources> <dependencies>
</configuration> <dependency>
</execution> <groupId>ca.uhn.hapi.fhir</groupId>
</executions> <artifactId>hapi-fhir-base</artifactId>
</plugin> <version>${project.version}</version>
</plugins> </dependency>
<pluginManagement> <dependency>
<plugins> <groupId>ca.uhn.hapi.fhir</groupId>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. --> <artifactId>hapi-fhir-structures-dstu2</artifactId>
<plugin> <version>${project.version}</version>
<groupId>org.eclipse.m2e</groupId> </dependency>
<artifactId>lifecycle-mapping</artifactId> <dependency>
<version>1.0.0</version> <groupId>ca.uhn.hapi.fhir</groupId>
<configuration> <artifactId>hapi-fhir-structures-dstu2.1</artifactId>
<lifecycleMappingMetadata> <version>${project.version}</version>
<pluginExecutions> <exclusions>
<pluginExecution> <exclusion>
<pluginExecutionFilter> <groupId>ca.uhn.hapi.fhir</groupId>
<groupId>ca.uhn.hapi.fhir</groupId> <artifactId>hapi-fhir-base</artifactId>
<artifactId>hapi-tinder-plugin</artifactId> </exclusion>
<versionRange>[0.4-SNAPSHOT,)</versionRange> </exclusions>
<goals> </dependency>
<goal>generate-structures</goal> <dependency>
</goals> <groupId>ca.uhn.hapi.fhir</groupId>
</pluginExecutionFilter> <artifactId>hapi-fhir-structures-dstu3</artifactId>
<action> <version>${project.version}</version>
<ignore></ignore> </dependency>
</action> <dependency>
</pluginExecution> <groupId>ca.uhn.hapi.fhir</groupId>
<pluginExecution> <artifactId>hapi-fhir-structures-hl7org-dstu2</artifactId>
<pluginExecutionFilter> <version>${project.version}</version>
<groupId>ca.uhn.hapi.fhir</groupId> </dependency>
<artifactId>hapi-tinder-plugin</artifactId> <dependency>
<versionRange>[0.4-SNAPSHOT,)</versionRange> <groupId>ca.uhn.hapi.fhir</groupId>
<goals> <artifactId>hapi-fhir-validation-resources-dstu2</artifactId>
<goal>generate-multi-files</goal> <version>${project.version}</version>
</goals> </dependency>
</pluginExecutionFilter> <dependency>
<action> <groupId>ca.uhn.hapi.fhir</groupId>
<ignore></ignore> <artifactId>hapi-fhir-validation-resources-dstu3</artifactId>
</action> <version>${project.version}</version>
</pluginExecution> </dependency>
<pluginExecution> <dependency>
<pluginExecutionFilter> <groupId>ca.uhn.hapi.fhir</groupId>
<groupId>ca.uhn.hapi.fhir</groupId> <artifactId>hapi-tinder-plugin</artifactId>
<artifactId>hapi-tinder-plugin</artifactId> <version>${project.version}</version>
<versionRange>[0.4-SNAPSHOT,)</versionRange> </dependency>
<goals> </dependencies>
<goal>generate-single-file</goal> </plugin>
</goals> <plugin>
</pluginExecutionFilter> <groupId>org.apache.maven.plugins</groupId>
<action> <artifactId>maven-deploy-plugin</artifactId>
<ignore></ignore> <configuration>
</action> <skip>true</skip>
</pluginExecution> </configuration>
</pluginExecutions> </plugin>
</lifecycleMappingMetadata> <plugin>
</configuration> <groupId>org.codehaus.mojo</groupId>
</plugin> <artifactId>build-helper-maven-plugin</artifactId>
</plugins> <executions>
</pluginManagement> <execution>
<resources> <id>add-source</id>
<resource> <phase>generate-sources</phase>
<directory>${basedir}/src/main/resources</directory> <goals>
</resource> <goal>add-source</goal>
<resource> </goals>
<directory>${basedir}/target/generated-resources/tinder</directory> <configuration>
</resource> <sources>
</resources> <source>target/generated-sources/tinder</source>
</build> </sources>
</configuration>
</project> </execution>
</executions>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-tinder-plugin</artifactId>
<versionRange>[0.4-SNAPSHOT,)</versionRange>
<goals>
<goal>generate-structures</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-tinder-plugin</artifactId>
<versionRange>[0.4-SNAPSHOT,)</versionRange>
<goals>
<goal>generate-multi-files</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
<pluginExecution>
<pluginExecutionFilter>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-tinder-plugin</artifactId>
<versionRange>[0.4-SNAPSHOT,)</versionRange>
<goals>
<goal>generate-single-file</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<resources>
<resource>
<directory>${basedir}/src/main/resources</directory>
</resource>
<resource>
<directory>${basedir}/target/generated-resources/tinder</directory>
</resource>
</resources>
</build>
</project>