Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#414: add hl7v3model
Browse files Browse the repository at this point in the history
Christian Ohr committed Sep 28, 2023
1 parent 231359d commit e6a6bea
Showing 2,370 changed files with 502,313 additions and 0 deletions.
21 changes: 21 additions & 0 deletions commons/audit/src/test/resources/transient-artemis.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<configuration xmlns="urn:activemq"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
urn:activemq /schema/artemis-server.xsd
urn:activemq:core /schema/artemis-configuration.xsd
urn:activemq:jms /schema/artemis-jms.xsd">

<core xmlns="urn:activemq:core">
<persistence-enabled>false</persistence-enabled>
<jmx-management-enabled>false</jmx-management-enabled>
<journal-pool-files>1</journal-pool-files>
<!-- Acceptors -->
<acceptors>
<acceptor name="in-vm">vm://0</acceptor>
<acceptor name="tcp">tcp://localhost:61616</acceptor>
</acceptors>
<security-enabled>false</security-enabled>
</core>


</configuration>
47 changes: 47 additions & 0 deletions commons/ihe/hl7v3model/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<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/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>
<artifactId>ipf-commons-ihe-hl7v3model</artifactId>
<name>ipf-commons-ihe-hl7v3model</name>
<description>HL7v3-specific models</description>


<parent>
<groupId>org.openehealth.ipf.commons</groupId>
<artifactId>ipf-commons-ihe</artifactId>
<version>5.0-SNAPSHOT</version>
</parent>

<dependencies>
<dependency>
<groupId>org.openehealth.ipf.commons</groupId>
<artifactId>ipf-commons-ihe-core</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
</dependency>

</dependencies>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
package net.ihe.gazelle.adapters;

import jakarta.xml.bind.annotation.adapters.XmlAdapter;

/**
* The Class DoubleAdapter.
*/
public class DoubleAdapter extends XmlAdapter<String, Double>{

/**
* Marshal a double.
*
* @param v the double to be marshalled
* @return the marshaling
* @throws Exception the exception thrown if problem during marshalling
*/
@Override
public String marshal(final Double v) throws Exception {
if ((v != null) && !Double.isInfinite(v) && !Double.isNaN(v)) {
return String.valueOf(v.doubleValue());
}
return null;
}

/**
* Unmarshal a string to a double.
*
* @param v the String to be unmarshalled.
* @return the double, result of unmarshalling.
* @throws Exception thrown if problem of unmarshalling.
*/
@Override
public Double unmarshal(final String v) throws Exception {
if ((v == null) || (v.isEmpty())){
return null;
}
try{
return Double.valueOf(v);
} catch(NumberFormatException e){
return null;
}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
package net.ihe.gazelle.adapters;

import jakarta.xml.bind.annotation.adapters.XmlAdapter;

public class IntegerAdapter extends XmlAdapter<String, Integer>{

@Override
public String marshal(final Integer v) throws Exception {
if (v != null) {
return String.valueOf(v.intValue());
}
return null;
}

@Override
public Integer unmarshal(final String v) throws Exception {
if ((v == null) || (v.isEmpty())){
return null;
}
try{
return Integer.valueOf(v);
}
catch(NumberFormatException e){
return null;
}
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/**
* Adapter for Marshalling transformation.
*
* @author <a href="abderrazek.boufahja@ihe-europe.net">Abderrazek Boufahja</a>
*/
package net.ihe.gazelle.adapters;
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2012.12.05 at 05:03:27 PM CET
//


package net.ihe.gazelle.com.templates;

import jakarta.xml.bind.annotation.XmlRegistry;


/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the generated package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {


/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: generated.
*/
public ObjectFactory() {
// new factory instance
}

/**
* Create an instance of {@link TemplateId }.
*
* @return new TemplateId
*/
public TemplateId createTemplateId() {
return new TemplateId();
}

/**
* Create an instance of {@link Template }.
*
* @return new template
*/
public Template createTemplate() {
return new Template();
}

}
Loading

0 comments on commit e6a6bea

Please sign in to comment.