Commit 2bbeba9b authored by Raphael's avatar Raphael
Browse files

experimental resources

parent da0cb66b
......@@ -2,8 +2,8 @@
<name>AKTIN : DWH Import : CDA Validation</name>
Install examples and schematron resources from to local repository
......@@ -11,7 +11,7 @@
......@@ -25,13 +25,10 @@
......@@ -57,15 +54,45 @@
<!-- schematron files -->
<get src="${schematronArchive}.zip" dest="${}/" verbose="false" usetimestamp="true" />
<unzip src="${}/" dest="${}/schematron" />
<!-- download examples -->
<unzip src="${}/" dest="${}/temp" />
<move todir="${}/schematron" verbose="true">
<fileset dir="${}/temp">
<include name="**/*"/>
<exclude name="**/.DS_Store"/>
<exclude name="**/__MACOSX/**"/>
<!-- remove single directory with inconsistent name -->
<mapper type="regexp" from="^(.*)aktin-runtime-[0-9T]*(.*)" to="\1/\2"/>
<!-- rename aktin-instance2schematron.xml to exclude project name -->
<move todir="${}/schematron" verbose="true">
<fileset dir="${}/schematron">
<include name="*-instance2schematron.xml"/>
<mapper type="glob" from="*-instance2schematron.xml" to="instance2schematron.xml"/>
<delete dir="${}/temp" />
<delete file="${}/" />
<!-- download examples -->
<!-- TODO also add the XSD files from XML release -->
<get src="${examplesArchive}.zip" dest="${}/" verbose="false" usetimestamp="true" />
<unzip src="${}/" dest="${}/examples" />
<unzip src="${}/" dest="${}/temp" />
<move todir="${}/examples" verbose="true">
<fileset dir="${}/temp">
<include name="**/*"/>
<exclude name="**/.DS_Store"/>
<exclude name="**/__MACOSX/**"/>
......@@ -87,6 +114,7 @@
<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"/>
<!-- 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 -->
\ No newline at end of file
<archive-import media-type="application/zip">
<!-- try to apply file name patterns to differentiate between different type of ZIP imports -->
<!-- e.g. also apply rules to file contents like first line -->
<!-- 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 -->
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment