Commit 0c379589 authored by Georg Fette's avatar Georg Fette
Browse files

included fhir profiles

fixed absolute path to fhir profiles file
fixed POM
parent 40e53397
......@@ -10,6 +10,8 @@
<maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<log4j.version>2.11.1</log4j.version>
<slf4j.version>1.7.25</slf4j.version>
</properties>
<repositories>
<repository>
......@@ -53,5 +55,18 @@
<artifactId>cql-to-elm</artifactId>
<version>1.2.20</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.2</version>
<scope>test</scope>
</dependency>
<!-- Needed by junit -->
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
\ No newline at end of file
package de.uniwue.query.cypher;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
......@@ -20,7 +19,7 @@ import org.hl7.fhir.r4.model.StructureDefinition;
import org.hl7.fhir.r4.model.StructureDefinition.StructureDefinitionSnapshotComponent;
import ca.uhn.fhir.context.FhirContext;
import de.uniwue.misc.util.FileUtilsUniWue;
import de.uniwue.misc.util.ResourceUtil;
import de.uniwue.query.Expression;
import de.uniwue.query.GraphQuery;
import de.uniwue.query.Graph_2_System_Mapper;
......@@ -76,10 +75,9 @@ public class Graph_2_Cypher_Mapper extends Graph_2_System_Mapper {
}
private void loadProfiles() {
File file = new File("D:\\tmp\\profiles-resources.json");
String profileString;
try {
profileString = FileUtilsUniWue.file2String(file);
profileString = ResourceUtil.loadFileAsString("classpath:CQL/profiles-resources.json");
} catch (IOException e) {
throw new RuntimeException(e);
}
......
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -63,8 +63,8 @@ public class Test_CQL_2_Cypher {
public static void main(String[] args) throws IOException, XMLStreamException, ParseException,
JDOMException, ParserConfigurationException, SAXException {
Test_CQL_2_Cypher test = new Test_CQL_2_Cypher();
test.debugTest();
// test.testCQL_2_Cypher();
// test.debugTest();
test.testCQL_2_Cypher();
}
@Test
......
Markdown is supported
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