Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qligier/ipf-example
IPF Example application
https://github.com/qligier/ipf-example
atna camel ihe ihe-iti ipf jar java maven spring-boot war
Last synced: 7 days ago
JSON representation
IPF Example application
- Host: GitHub
- URL: https://github.com/qligier/ipf-example
- Owner: qligier
- License: apache-2.0
- Created: 2020-04-07T16:18:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-23T09:47:40.000Z (over 2 years ago)
- Last Synced: 2023-02-26T23:01:09.690Z (over 1 year ago)
- Topics: atna, camel, ihe, ihe-iti, ipf, jar, java, maven, spring-boot, war
- Language: Java
- Homepage:
- Size: 33.2 KB
- Stars: 1
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IPF example application
This is a simple IPF example application. It does not use any Groovy code or XML configuration files for Camel, everything is done in Java
code and in a single YAML file for the Spring Boot configuration.It exposes a single XDS ITI-43 endpoint that always returns the same document as an example, and an XDS ITI-41 endpoint that always reports success.
## Build the WAR
1. Install the dependencies: `mvn install`
2. Build the WAR: `mvn clean package`
3. The WAR is created in _target/ipf-example.war_ and ready to be deployed to an Apache Tomcat by example.## Run the JAR
1. Install the dependencies: `mvn install`
2. Either run it from your favorite IDE or in the CLI: `mvn clean compile && mvn exec:java -Dexec.mainClass="ch.qligier.ipf.IpfApplication"`The IDE configuration is the one of a regular Spring Boot application. In IntelliJ IDEA by example, there is a Spring Boot template in which
you just need to specify the main class (_ch.qligier.ipf.IpfApplication_) to have it working.## Test the ITI-43 transaction
The endpoint is accessible at the address _host:8080/services/xds/iti43_. The port and the path prefix are configured in the _application
.yml_, the path suffix is defined in _Iti43RouteBuilder.java_.A sample ITI-43 request could look like this:
```xml
urn:ihe:iti:2007:RetrieveDocumentSet
host:8080/services/xds/iti43
urn:uuid:3448B7F8EA6E8B9DFC1289514997508
1.19.6.24.109.42.1.5
1.2.820.99999.174003127040043086.1572886054.1
```