mirror of
https://github.com/hapifhir/hapi-fhir.git
synced 2025-02-16 09:55:09 +00:00
* Enhance RuleBuilder code to support multiple instances (#5852) * Overhaul bulk export permissions. * Overhaul bulk export permissions. * Small tweak to rule builder. * Cleanup validation. * Cleanup validation. * Code review feedback. * Postgres terminology service hard coded column names migration (#5866) * updating parent pids column name * updating name of the fullTestField Search * updating name of the fullTestField Search * fixing typo. * failing test. * - Moving FullTextField annotation from getter method and adding it to the newly added VC property of the entity; - reverting the name of the FullTextField entity to its previous name of 'myParentPids'; - reverting the name of the lucene index to search on in the terminology service. - updating the changelog; * making spotless happy --------- Co-authored-by: peartree <etienne.poirier@smilecdr.com> * 5879 back porting fix for issue 5877 (attempting to update a tokenparam with a value greater than 200 characters raises an sqlexception) to release rel_7_2 (#5881) * initial failing test. * solution * adding changelog * spotless * moving changelog from 7_4_0 to 7_2_0 and deleting 7_4_0 folder. --------- Co-authored-by: peartree <etienne.poirier@smilecdr.com> * Expose BaseRequestPartitionHelperSvc validateAndNormalize methods (#5811) * Expose BaseRequestPartitionHelperSvc validate and normalize methods * Compilation errors * change mock test to jpa test * change mock test to jpa test * validateAndNormalizePartitionIds * validateAndNormalizePartitionNames * validateAndNormalizePartitionIds validation + bug fix * validateAndNormalizePartitionNames validation * fix test * version bump * Ensure a non-numeric FHIR ID doesn't result in a NumberFormatException when processing survivorship rules (#5883) * Add failing test as well as commented out potential solution. * Fix for NumberFormatException. * Add conditional test for survivorship rules. * Spotless. * Add changelog. * Code review feedback. * updating documentation (#5889) * Ensure temp file ends with "." and then suffix. (#5894) * bugfix to https://github.com/hapifhir/hapi-fhir-jpaserver-starter/issues/675 (#5892) Co-authored-by: Jens Kristian Villadsen <jenskristianvilladsen@gmail.com> * Enhance mdm interceptor (#5899) * Add MDM Transaction Context for further downstream processing giving interceptors a better chance of figuring out what happened. * Added javadoc * Cahngelog * spotless --------- Co-authored-by: Jens Kristian Villadsen <jenskristianvilladsen@gmail.com> * Fix BaseHapiFhirResourceDao $meta method to use HapiTransactionService instead of @Transaction (#5896) * Try making ResourceTable.myTags EAGER instead of LAZY and see if it breaks anything. * Try making ResourceTable.myTags EAGER instead of LAZY and see if it breaks anything. * Ensure BaseHapiFhirResourceDao#metaGetOperation uses HapiTransactionService instead of @Transactional in order to resolve megascale $meta bug. * Add changelog. * Update hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/7_2_0/5898-ld-megascale-meta-operation-fails-hapi-0389.yaml Commit code reviewer suggestion. Co-authored-by: Tadgh <garygrantgraham@gmail.com> --------- Co-authored-by: Tadgh <garygrantgraham@gmail.com> * Fix query chained on sort bug where we over-filter results (#5903) * Failing test. * Ensure test cleanup doesn't fail by deleting Patients before Practitioners. * Implement fix. * Spotless. * Clean up unit test and add changelog. Fix unit test. * Fix changelog file. * Apply suggestions from code review Apply code review suggestions. Co-authored-by: Michael Buckley <michaelabuckley@gmail.com> * Spotless --------- Co-authored-by: Michael Buckley <michaelabuckley@gmail.com> * cve fix (#5906) Co-authored-by: Long Ma <long@smilecdr.com> * Fixing issues with postgres LOB migration. (#5895) * Fixing issues with postgres LOB migration. * addressing code review comments for audit/transaction logs. * test and implementation for BinaryStorageEntity migration post code review. * test and implementation for BinaryStorageEntity migration post code review. * test and implementation for TermConcept migration post code review. * applying spotless * test and implementation for TermConceptProperty migration post code review. * test and implementation for TermValueSetConcept migration post code review. * fixing migration version * fixing migration task * changelog * fixing changelog * Minor renames * addressing comments and suggestions from second code review. * passing tests * fixing more tests --------- Co-authored-by: peartree <etienne.poirier@smilecdr.com> Co-authored-by: Tadgh <garygrantgraham@gmail.com> * 6051 bulk export security errors (#5915) * Enhance RuleBuilder code to support multiple instances (#5852) * Overhaul bulk export permissions. * Overhaul bulk export permissions. * Small tweak to rule builder. * Cleanup validation. * Cleanup validation. * Code review feedback. * Postgres terminology service hard coded column names migration (#5866) * updating parent pids column name * updating name of the fullTestField Search * updating name of the fullTestField Search * fixing typo. * failing test. * - Moving FullTextField annotation from getter method and adding it to the newly added VC property of the entity; - reverting the name of the FullTextField entity to its previous name of 'myParentPids'; - reverting the name of the lucene index to search on in the terminology service. - updating the changelog; * making spotless happy --------- Co-authored-by: peartree <etienne.poirier@smilecdr.com> * 5879 back porting fix for issue 5877 (attempting to update a tokenparam with a value greater than 200 characters raises an sqlexception) to release rel_7_2 (#5881) * initial failing test. * solution * adding changelog * spotless * moving changelog from 7_4_0 to 7_2_0 and deleting 7_4_0 folder. --------- Co-authored-by: peartree <etienne.poirier@smilecdr.com> * Expose BaseRequestPartitionHelperSvc validateAndNormalize methods (#5811) * Expose BaseRequestPartitionHelperSvc validate and normalize methods * Compilation errors * change mock test to jpa test * change mock test to jpa test * validateAndNormalizePartitionIds * validateAndNormalizePartitionNames * validateAndNormalizePartitionIds validation + bug fix * validateAndNormalizePartitionNames validation * fix test * version bump * Ensure a non-numeric FHIR ID doesn't result in a NumberFormatException when processing survivorship rules (#5883) * Add failing test as well as commented out potential solution. * Fix for NumberFormatException. * Add conditional test for survivorship rules. * Spotless. * Add changelog. * Code review feedback. * updating documentation (#5889) * Ensure temp file ends with "." and then suffix. (#5894) * bugfix to https://github.com/hapifhir/hapi-fhir-jpaserver-starter/issues/675 (#5892) Co-authored-by: Jens Kristian Villadsen <jenskristianvilladsen@gmail.com> * Enhance mdm interceptor (#5899) * Add MDM Transaction Context for further downstream processing giving interceptors a better chance of figuring out what happened. * Added javadoc * Cahngelog * spotless --------- Co-authored-by: Jens Kristian Villadsen <jenskristianvilladsen@gmail.com> * Fix BaseHapiFhirResourceDao $meta method to use HapiTransactionService instead of @Transaction (#5896) * Try making ResourceTable.myTags EAGER instead of LAZY and see if it breaks anything. * Try making ResourceTable.myTags EAGER instead of LAZY and see if it breaks anything. * Ensure BaseHapiFhirResourceDao#metaGetOperation uses HapiTransactionService instead of @Transactional in order to resolve megascale $meta bug. * Add changelog. * Update hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/changelog/7_2_0/5898-ld-megascale-meta-operation-fails-hapi-0389.yaml Commit code reviewer suggestion. Co-authored-by: Tadgh <garygrantgraham@gmail.com> --------- Co-authored-by: Tadgh <garygrantgraham@gmail.com> * Fix query chained on sort bug where we over-filter results (#5903) * Failing test. * Ensure test cleanup doesn't fail by deleting Patients before Practitioners. * Implement fix. * Spotless. * Clean up unit test and add changelog. Fix unit test. * Fix changelog file. * Apply suggestions from code review Apply code review suggestions. Co-authored-by: Michael Buckley <michaelabuckley@gmail.com> * Spotless --------- Co-authored-by: Michael Buckley <michaelabuckley@gmail.com> * cve fix (#5906) Co-authored-by: Long Ma <long@smilecdr.com> * Fixing issues with postgres LOB migration. (#5895) * Fixing issues with postgres LOB migration. * addressing code review comments for audit/transaction logs. * test and implementation for BinaryStorageEntity migration post code review. * test and implementation for BinaryStorageEntity migration post code review. * test and implementation for TermConcept migration post code review. * applying spotless * test and implementation for TermConceptProperty migration post code review. * test and implementation for TermValueSetConcept migration post code review. * fixing migration version * fixing migration task * changelog * fixing changelog * Minor renames * addressing comments and suggestions from second code review. * passing tests * fixing more tests --------- Co-authored-by: peartree <etienne.poirier@smilecdr.com> Co-authored-by: Tadgh <garygrantgraham@gmail.com> * refactor bulk export rule, add concept of appliestoallpatients, fix tests * spotless * Cahgnelog, tests * more tests * refactor style checks --------- Co-authored-by: Luke deGruchy <luke.degruchy@smilecdr.com> Co-authored-by: Etienne Poirier <33007955+epeartree@users.noreply.github.com> Co-authored-by: peartree <etienne.poirier@smilecdr.com> Co-authored-by: Nathan Doef <n.doef@protonmail.com> Co-authored-by: TipzCM <leif.stawnyczy@gmail.com> Co-authored-by: dotasek <david.otasek@smilecdr.com> Co-authored-by: Jens Kristian Villadsen <jenskristianvilladsen@gmail.com> Co-authored-by: Michael Buckley <michaelabuckley@gmail.com> Co-authored-by: longma1 <32119004+longma1@users.noreply.github.com> Co-authored-by: Long Ma <long@smilecdr.com> * Convert a few nulls to aggressive denies * Change chain sort syntax for MS SQL (#5917) * Change sort type on chains * Change sort type on chains * Test for MS SQL * Comments * Version bump * version bump to 7.3.1-SNAPSHOT --------- Co-authored-by: Luke deGruchy <luke.degruchy@smilecdr.com> Co-authored-by: Etienne Poirier <33007955+epeartree@users.noreply.github.com> Co-authored-by: peartree <etienne.poirier@smilecdr.com> Co-authored-by: Nathan Doef <n.doef@protonmail.com> Co-authored-by: TipzCM <leif.stawnyczy@gmail.com> Co-authored-by: dotasek <david.otasek@smilecdr.com> Co-authored-by: Jens Kristian Villadsen <jenskristianvilladsen@gmail.com> Co-authored-by: Tadgh <garygrantgraham@gmail.com> Co-authored-by: Michael Buckley <michaelabuckley@gmail.com> Co-authored-by: Long Ma <long@smilecdr.com>
611 lines
24 KiB
XML
611 lines
24 KiB
XML
<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>
|
|
|
|
<parent>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir</artifactId>
|
|
<version>7.3.2-SNAPSHOT</version>
|
|
|
|
<relativePath>../pom.xml</relativePath>
|
|
</parent>
|
|
|
|
<artifactId>hapi-tinder-test</artifactId>
|
|
<packaging>jar</packaging>
|
|
|
|
<name>HAPI Tinder Plugin - Test Project</name>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-base</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-structures-dstu2</artifactId>
|
|
<version>${project.version}</version>
|
|
</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
|
|
the dependencies for the structures a version behind the main library. This is weird, but it works. -->
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-structures-dstu2.1</artifactId>
|
|
<version>${project.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-base</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-structures-dstu3</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-structures-hl7org-dstu2</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-validation-resources-dstu2</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-validation-resources-dstu3</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-tinder-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-base</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-structures-dstu2</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-structures-dstu2.1</artifactId>
|
|
<version>${project.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-base</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-structures-dstu3</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-structures-r4</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-structures-r5</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-structures-hl7org-dstu2</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-validation-resources-dstu2</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-validation-resources-dstu3</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-validation-resources-r4</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-validation-resources-r5</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
<executions>
|
|
<execution>
|
|
<id>generalstructs</id>
|
|
<goals>
|
|
<goal>generate-structures</goal>
|
|
</goals>
|
|
<configuration>
|
|
<package>ca.uhn.test.realstructs</package>
|
|
<version>dstu2</version>
|
|
<baseResourceNames>
|
|
<baseResourceName>patient</baseResourceName>
|
|
<baseResourceName>valueset</baseResourceName>
|
|
<baseResourceName>organization</baseResourceName>
|
|
<baseResourceName>device</baseResourceName>
|
|
<baseResourceName>location</baseResourceName>
|
|
<baseResourceName>practitioner</baseResourceName>
|
|
<baseResourceName>list</baseResourceName>
|
|
<baseResourceName>auditevent</baseResourceName>
|
|
</baseResourceNames>
|
|
<buildDatatypes>true</buildDatatypes>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>generic_multi_dstu2</id>
|
|
<goals>
|
|
<goal>generate-multi-files</goal>
|
|
</goals>
|
|
<configuration>
|
|
<version>dstu2</version>
|
|
<generateResources>true</generateResources>
|
|
<templateFile>${project.basedir}/src/test/resources/templates/resource_test.vm</templateFile>
|
|
<targetSourceDirectory>${project.build.directory}/generated-sources/tinder</targetSourceDirectory>
|
|
<targetPackage>ca.uhn.test.generic.multi</targetPackage>
|
|
<filenameSuffix>ResourceTest.java</filenameSuffix>
|
|
<includeResources>
|
|
<includeResource>patient</includeResource>
|
|
<includeResource>organization</includeResource>
|
|
</includeResources>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>generic_multi_dstu3</id>
|
|
<goals>
|
|
<goal>generate-multi-files</goal>
|
|
</goals>
|
|
<configuration>
|
|
<version>dstu3</version>
|
|
<generateResources>true</generateResources>
|
|
<resourceSource>model</resourceSource>
|
|
<templateFile>${project.basedir}/src/test/resources/templates/resource_test.vm</templateFile>
|
|
<targetSourceDirectory>${project.build.directory}/generated-sources/tinder</targetSourceDirectory>
|
|
<targetPackage>ca.uhn.test.generic.multi.dstu3</targetPackage>
|
|
<filenameSuffix>ResourceTest.java</filenameSuffix>
|
|
<includeResources>
|
|
<includeResource>patient</includeResource>
|
|
<includeResource>organization</includeResource>
|
|
</includeResources>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>generic_multi_r4</id>
|
|
<goals>
|
|
<goal>generate-multi-files</goal>
|
|
</goals>
|
|
<configuration>
|
|
<version>r4</version>
|
|
<generateResources>true</generateResources>
|
|
<resourceSource>model</resourceSource>
|
|
<templateFile>${project.basedir}/src/test/resources/templates/resource_test.vm</templateFile>
|
|
<targetSourceDirectory>${project.build.directory}/generated-sources/tinder</targetSourceDirectory>
|
|
<targetPackage>ca.uhn.test.generic.multi.r4</targetPackage>
|
|
<filenameSuffix>ResourceTest.java</filenameSuffix>
|
|
<includeResources>
|
|
<includeResource>patient</includeResource>
|
|
<includeResource>organization</includeResource>
|
|
</includeResources>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>generic_multi_r5</id>
|
|
<goals>
|
|
<goal>generate-multi-files</goal>
|
|
</goals>
|
|
<configuration>
|
|
<version>r5</version>
|
|
<generateResources>true</generateResources>
|
|
<resourceSource>model</resourceSource>
|
|
<templateFile>${project.basedir}/src/test/resources/templates/resource_test.vm</templateFile>
|
|
<targetSourceDirectory>${project.build.directory}/generated-sources/tinder</targetSourceDirectory>
|
|
<targetPackage>ca.uhn.test.generic.multi.r5</targetPackage>
|
|
<filenameSuffix>ResourceTest.java</filenameSuffix>
|
|
<includeResources>
|
|
<includeResource>patient</includeResource>
|
|
<includeResource>organization</includeResource>
|
|
</includeResources>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>generic_multi_json</id>
|
|
<goals>
|
|
<goal>generate-multi-files</goal>
|
|
</goals>
|
|
<configuration>
|
|
<version>dstu2</version>
|
|
<generateResources>true</generateResources>
|
|
<resourceSource>spreadsheet</resourceSource>
|
|
<templateFile>${project.basedir}/src/test/resources/templates/resource_map.vm</templateFile>
|
|
<velocityPath>${project.basedir}/src/test/resources/macros</velocityPath>
|
|
<targetResourceDirectory>${project.build.directory}/generated-resources/tinder</targetResourceDirectory>
|
|
<targetFolder>maps</targetFolder>
|
|
<filenameSuffix>_Map.json</filenameSuffix>
|
|
<includeResources>
|
|
<includeResource>patient</includeResource>
|
|
<includeResource>organization</includeResource>
|
|
<includeResource>bundle</includeResource>
|
|
<includeResource>composition</includeResource>
|
|
</includeResources>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>generic_single_dstu2</id>
|
|
<goals>
|
|
<goal>generate-single-file</goal>
|
|
</goals>
|
|
<configuration>
|
|
<version>dstu2</version>
|
|
<generateResources>true</generateResources>
|
|
<templateFile>${project.basedir}/src/test/resources/templates/resource_test_beans_java.vm</templateFile>
|
|
<targetSourceDirectory>${project.build.directory}/generated-sources/tinder</targetSourceDirectory>
|
|
<targetPackage>ca.uhn.test.generic.single</targetPackage>
|
|
<packageBase>ca.uhn.test.generic.multi</packageBase>
|
|
<targetFile>TestConfigDstu2.java</targetFile>
|
|
<includeResources>
|
|
<includeResource>patient</includeResource>
|
|
<includeResource>organization</includeResource>
|
|
</includeResources>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>generic_single_dstu3</id>
|
|
<goals>
|
|
<goal>generate-single-file</goal>
|
|
</goals>
|
|
<configuration>
|
|
<version>dstu3</version>
|
|
<generateResources>true</generateResources>
|
|
<resourceSource>model</resourceSource>
|
|
<templateFile>${project.basedir}/src/test/resources/templates/resource_test_beans_java.vm</templateFile>
|
|
<targetSourceDirectory>${project.build.directory}/generated-sources/tinder</targetSourceDirectory>
|
|
<targetPackage>ca.uhn.test.generic.single</targetPackage>
|
|
<packageBase>ca.uhn.test.generic.multi</packageBase>
|
|
<targetFile>TestConfigDstu3.java</targetFile>
|
|
<includeResources>
|
|
<includeResource>patient</includeResource>
|
|
<includeResource>organization</includeResource>
|
|
</includeResources>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>generic_single_r4</id>
|
|
<goals>
|
|
<goal>generate-single-file</goal>
|
|
</goals>
|
|
<configuration>
|
|
<version>r4</version>
|
|
<generateResources>true</generateResources>
|
|
<resourceSource>model</resourceSource>
|
|
<templateFile>${project.basedir}/src/test/resources/templates/resource_test_beans_java.vm</templateFile>
|
|
<targetSourceDirectory>${project.build.directory}/generated-sources/tinder</targetSourceDirectory>
|
|
<targetPackage>ca.uhn.test.generic.single.r4</targetPackage>
|
|
<packageBase>ca.uhn.test.generic.multi.r4</packageBase>
|
|
<targetFile>TestConfigR4.java</targetFile>
|
|
<includeResources>
|
|
<includeResource>patient</includeResource>
|
|
<includeResource>organization</includeResource>
|
|
</includeResources>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>generic_single_r5</id>
|
|
<goals>
|
|
<goal>generate-single-file</goal>
|
|
</goals>
|
|
<configuration>
|
|
<version>r5</version>
|
|
<generateResources>true</generateResources>
|
|
<resourceSource>model</resourceSource>
|
|
<templateFile>${project.basedir}/src/test/resources/templates/resource_test_beans_java.vm</templateFile>
|
|
<targetSourceDirectory>${project.build.directory}/generated-sources/tinder</targetSourceDirectory>
|
|
<targetPackage>ca.uhn.test.generic.single.r5</targetPackage>
|
|
<packageBase>ca.uhn.test.generic.multi.r5</packageBase>
|
|
<targetFile>TestConfigR5.java</targetFile>
|
|
<includeResources>
|
|
<includeResource>patient</includeResource>
|
|
<includeResource>organization</includeResource>
|
|
</includeResources>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>generic_single_json</id>
|
|
<goals>
|
|
<goal>generate-single-file</goal>
|
|
</goals>
|
|
<configuration>
|
|
<version>dstu2</version>
|
|
<generateDatatypes>true</generateDatatypes>
|
|
<templateFile>${project.basedir}/src/test/resources/templates/composite_map.vm</templateFile>
|
|
<velocityPath>${project.basedir}/src/test/resources/macros</velocityPath>
|
|
<targetResourceDirectory>${project.build.directory}/generated-resources/tinder</targetResourceDirectory>
|
|
<targetFolder>maps</targetFolder>
|
|
<targetFile>Datatypes_Dstu2.json</targetFile>
|
|
<includeResources>
|
|
<includeResource>patient</includeResource>
|
|
<includeResource>organization</includeResource>
|
|
</includeResources>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>testTinderTask</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<target>
|
|
<taskdef name="hapi-tinder" classname="ca.uhn.fhir.tinder.ant.TinderGeneratorTask" classpathref="maven.plugin.classpath" />
|
|
|
|
<hapi-tinder templateFile="${project.basedir}/src/test/resources/templates/resource_test.vm"
|
|
generateResources="true" targetSourceDirectory="${project.build.directory}/generated-sources/tinder"
|
|
targetPackage="ca.uhn.test.ant.multi" filenameSuffix="ResourceTest.java" projectHome="${project.basedir}/.."
|
|
version="dstu2" includeResources="patient,organization" />
|
|
|
|
<hapi-tinder templateFile="${project.basedir}/src/test/resources/templates/resource_test.vm" resourceSource="model"
|
|
generateResources="true" targetSourceDirectory="${project.build.directory}/generated-sources/tinder"
|
|
targetPackage="ca.uhn.test.ant.multi.dstu3" filenameSuffix="ResourceTest.java" projectHome="${project.basedir}/.."
|
|
version="dstu3" includeResources="patient,organization" />
|
|
|
|
<hapi-tinder templateFile="${project.basedir}/src/test/resources/templates/resource_test.vm" resourceSource="model"
|
|
generateResources="true" targetSourceDirectory="${project.build.directory}/generated-sources/tinder"
|
|
targetPackage="ca.uhn.test.ant.multi.r4" filenameSuffix="ResourceTest.java" projectHome="${project.basedir}/.."
|
|
version="r4" includeResources="patient,organization" />
|
|
|
|
<hapi-tinder templateFile="${project.basedir}/src/test/resources/templates/resource_test.vm" resourceSource="model"
|
|
generateResources="true" targetSourceDirectory="${project.build.directory}/generated-sources/tinder"
|
|
targetPackage="ca.uhn.test.ant.multi.r5" filenameSuffix="ResourceTest.java" projectHome="${project.basedir}/.."
|
|
version="r5" includeResources="patient,organization" />
|
|
|
|
<hapi-tinder templateFile="${project.basedir}/src/test/resources/templates/resource_test_beans_java.vm"
|
|
generateResources="true" targetSourceDirectory="${project.build.directory}/generated-sources/tinder"
|
|
targetFile="TestConfigDstu2.java" targetPackage="ca.uhn.test.ant.single" packageBase="ca.uhn.test.ant.multi"
|
|
projectHome="${project.basedir}/.." version="dstu2" includeResources="patient,organization" />
|
|
|
|
<hapi-tinder templateFile="${project.basedir}/src/test/resources/templates/resource_test_beans_java.vm" resourceSource="model"
|
|
generateResources="true" targetSourceDirectory="${project.build.directory}/generated-sources/tinder"
|
|
targetFile="TestConfigDstu3.java" targetPackage="ca.uhn.test.ant.single" packageBase="ca.uhn.test.ant.multi.dstu3"
|
|
projectHome="${project.basedir}/.." version="dstu3" includeResources="patient,organization" />
|
|
|
|
<hapi-tinder templateFile="${project.basedir}/src/test/resources/templates/resource_test_beans_java.vm" resourceSource="model"
|
|
generateResources="true" targetSourceDirectory="${project.build.directory}/generated-sources/tinder"
|
|
targetFile="TestConfigR4.java" targetPackage="ca.uhn.test.ant.single" packageBase="ca.uhn.test.ant.multi.r4"
|
|
projectHome="${project.basedir}/.." version="r4" includeResources="patient,organization" />
|
|
|
|
<hapi-tinder templateFile="${project.basedir}/src/test/resources/templates/resource_test_beans_java.vm" resourceSource="model"
|
|
generateResources="true" targetSourceDirectory="${project.build.directory}/generated-sources/tinder"
|
|
targetFile="TestConfigR5.java" targetPackage="ca.uhn.test.ant.single" packageBase="ca.uhn.test.ant.multi.r5"
|
|
projectHome="${project.basedir}/.." version="r5" includeResources="patient,organization" />
|
|
|
|
</target>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-base</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-structures-dstu2</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-structures-dstu2.1</artifactId>
|
|
<version>${project.version}</version>
|
|
<exclusions>
|
|
<exclusion>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-base</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-structures-dstu3</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-structures-r4</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-structures-r5</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-structures-hl7org-dstu2</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-validation-resources-dstu2</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-validation-resources-dstu3</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-validation-resources-r4</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-fhir-validation-resources-r5</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ca.uhn.hapi.fhir</groupId>
|
|
<artifactId>hapi-tinder-plugin</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-deploy-plugin</artifactId>
|
|
<configuration>
|
|
<skip>true</skip>
|
|
</configuration>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>build-helper-maven-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>add-source</id>
|
|
<phase>generate-sources</phase>
|
|
<goals>
|
|
<goal>add-source</goal>
|
|
</goals>
|
|
<configuration>
|
|
<sources>
|
|
<source>target/generated-sources/tinder</source>
|
|
</sources>
|
|
</configuration>
|
|
</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>
|
|
<profiles>
|
|
<!-- For releases, we need to generate javadoc and sources JAR -->
|
|
<profile>
|
|
<id>release</id>
|
|
<activation>
|
|
<activeByDefault>false</activeByDefault>
|
|
<property>
|
|
<name>deployToSonatype</name>
|
|
</property>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-source-plugin</artifactId>
|
|
<version>3.2.1</version>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-sources</id>
|
|
<goals>
|
|
<goal>jar-no-fork</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
<version>3.4.0</version>
|
|
<executions>
|
|
<execution>
|
|
<id>attach-javadoc</id>
|
|
<goals>
|
|
<goal>jar</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
</project>
|