Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
AKTIN
dwh-import
Commits
384dcab7
Commit
384dcab7
authored
Nov 29, 2017
by
R.W.Majeed
Browse files
documentation, fixed warnings
parent
fe518e54
Changes
1
Show whitespace changes
Inline
Side-by-side
cda-import/src/test/java/org/aktin/cda/etl/TestTransformToEAV.java
View file @
384dcab7
...
...
@@ -20,6 +20,21 @@ import de.sekmi.histream.ext.Patient;
import
de.sekmi.histream.ext.Visit
;
import
de.sekmi.histream.io.GroupedXMLReader
;
/**
* Test the template transformations from CDA to EAV-XML. Multiple template ids
* and AKTIN modules are supported.
* <p>
* For standalone transformation testing, go to the repository folder {@code dwh-import}
* and build all child modules with {@code mvn clean install}.<br/>
* When the build ist complete, the transformation can be tested with
* a command line application. E.g. from within the {@code target/} directory:
* <pre>
* java -classpath "test-classes;classes;dependencies/*" org.aktin.cda.etl.TestTransformToEAV "../../cda-validation/src/main/resources/Additional Examples/basismodul-beispiel-storyboard01-complete.xml"
* </pre>
* </p>
* @author R.W.Majeed
*
*/
public
class
TestTransformToEAV
{
@Test
...
...
@@ -32,6 +47,7 @@ public class TestTransformToEAV {
Assert
.
assertTrue
(
templateId
.
length
()
>
0
);
}
}
@SuppressWarnings
(
"deprecation"
)
@Test
public
void
transformExample1
()
throws
Exception
{
CDAParser
parser
=
new
CDAParser
();
...
...
@@ -72,7 +88,7 @@ public class TestTransformToEAV {
/**
* Transform a CDA file to a EAV which is output on stdout.
* Call with {@code java -classpath "
cda-import/target/test-classes;cda-import/target/classes;cda-server/target/classes;cda-validation/target/classes;histream-core/target/classes
" org.aktin.cda.etl.TestTransformToEAV filename}
* Call with {@code java -classpath "
test-classes;classes;dependencies/*
" org.aktin.cda.etl.TestTransformToEAV filename}
* @param args file name argument
* @throws Exception error
*/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment