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
2bbeba9b
Commit
2bbeba9b
authored
Apr 29, 2019
by
Raphael
Browse files
experimental resources
parent
da0cb66b
Changes
3
Hide whitespace changes
Inline
Side-by-side
art-decor/pom.xml
View file @
2bbeba9b
...
...
@@ -2,8 +2,8 @@
<modelVersion>
4.0.0
</modelVersion>
<name>
AKTIN : DWH Import : CDA Validation
</name>
<groupId>
org.aktin
</groupId>
<artifactId>
art-decor
</artifactId>
<groupId>
org.aktin
.artdecor
</groupId>
<artifactId>
basis-schematron
</artifactId>
<version>
20151118T102028
</version>
<description>
Install examples and schematron resources from aktin.art-decor.org to local repository
...
...
@@ -11,7 +11,7 @@
<parent>
<groupId>
org.aktin
</groupId>
<artifactId>
dwh-import
</artifactId>
<version>
0.
5
-SNAPSHOT
</version>
<version>
0.
13
-SNAPSHOT
</version>
</parent>
<properties>
<schematronVersion>
${project.version}
</schematronVersion>
...
...
@@ -25,13 +25,10 @@
<directory>
src/main/resources
</directory>
</resource>
<resource>
<directory>
${project.build.directory}/schematron
/${schematronArchive}
</directory>
<directory>
${project.build.directory}/schematron
</directory>
</resource>
<resource>
<directory>
${project.build.directory}/examples/${examplesArchive}
</directory>
<excludes>
<exclude>
**/.DS_Store
</exclude>
</excludes>
<directory>
${project.build.directory}/examples
</directory>
</resource>
</resources>
<plugins>
...
...
@@ -57,15 +54,45 @@
<target>
<!-- schematron files -->
<get
src=
"http://aktin.art-decor.org/${schematronArchive}.zip"
dest=
"${project.build.directory}/schematron.zip"
verbose=
"false"
usetimestamp=
"true"
/>
<unzip
src=
"${project.build.directory}/schematron.zip"
dest=
"${project.build.directory}/schematron"
/>
<!-- download examples -->
<unzip
src=
"${project.build.directory}/schematron.zip"
dest=
"${project.build.directory}/temp"
/>
<move
todir=
"${project.build.directory}/schematron"
verbose=
"true"
>
<fileset
dir=
"${project.build.directory}/temp"
>
<include
name=
"**/*"
/>
<exclude
name=
"**/.DS_Store"
/>
<exclude
name=
"**/__MACOSX/**"
/>
</fileset>
<!-- remove single directory with inconsistent name -->
<mapper
type=
"regexp"
from=
"^(.*)aktin-runtime-[0-9T]*(.*)"
to=
"\1/\2"
/>
</move>
<!-- rename aktin-instance2schematron.xml to exclude project name -->
<move
todir=
"${project.build.directory}/schematron"
verbose=
"true"
>
<fileset
dir=
"${project.build.directory}/schematron"
>
<include
name=
"*-instance2schematron.xml"
/>
</fileset>
<mapper
type=
"glob"
from=
"*-instance2schematron.xml"
to=
"instance2schematron.xml"
/>
</move>
<delete
dir=
"${project.build.directory}/temp"
/>
<delete
file=
"${project.build.directory}/schematron.zip"
/>
<!-- download examples -->
<!-- TODO also add the XSD files from XML release -->
<get
src=
"http://aktin.art-decor.org/${examplesArchive}.zip"
dest=
"${project.build.directory}/examples.zip"
verbose=
"false"
usetimestamp=
"true"
/>
<unzip
src=
"${project.build.directory}/examples.zip"
dest=
"${project.build.directory}/examples"
/>
<unzip
src=
"${project.build.directory}/examples.zip"
dest=
"${project.build.directory}/temp"
/>
<move
todir=
"${project.build.directory}/examples"
verbose=
"true"
>
<fileset
dir=
"${project.build.directory}/temp"
>
<include
name=
"**/*"
/>
<exclude
name=
"**/.DS_Store"
/>
<exclude
name=
"**/__MACOSX/**"
/>
</fileset>
</move>
</target>
</configuration>
</execution>
</executions>
</plugin>
<!--
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-install-plugin</artifactId>
...
...
@@ -87,6 +114,7 @@
</execution>
</executions>
</plugin>
-->
</plugins>
</build>
<dependencies>
...
...
cda-import/src/test/resources/import-def.xml
0 → 100644
View file @
2bbeba9b
<xml-import
root-ns=
"urn:hl7-org:v3"
root-name=
"ClinicalDocument"
>
<template-path
="XXXX
XPath
path
to
template
id"
/>
<template
id=
"XXX template id v1"
>
<idref
type=
"patient"
root-path=
"XPATH to patient root"
ext-path=
"XPath to patient id"
/>
<idref
type=
"encounter"
root-path=
"XPATH to encounter root"
ext-path=
"XPath to encounter id"
/>
<idref
type=
"document"
root-path=
"XPATH to document root"
ext-path=
"XPath to document id"
/>
<validation
type=
"schematron"
location=
"path-to-schematron-file"
/>
<validation
type=
"xsd"
location=
"path-to-XSD"
/>
<transform
target=
"eav"
location=
"path-to-EAV transform"
/>
</template>
<!-- next template id (e.g. older version of same document type like basismodul) -->
<!-- this file would be located in a folder used for discovery of import types and validations -->
</xml-import>
\ No newline at end of file
cda-import/src/test/resources/zip-import-def.xml
0 → 100644
View file @
2bbeba9b
<archive-import
media-type=
"application/zip"
>
<!-- try to apply file name patterns to differentiate between different type of ZIP imports -->
<validate>
<require-file
="FAB.csv"
/>
<!-- e.g. also apply rules to file contents like first line -->
<require-file
="FALL.csv"
/>
<require-file
="ICD.csv"
/>
<require-file
="info.csv"
</validate
>
<!-- TODO detect unique source id to allow a later upload to replace this one. e.g. year timestamp for yearly P21 import -->
<!-- TODO link to datasource.xml for parsing and import of P21 -->
</archive-import>
\ No newline at end of file
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