-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b48bd37
Showing
61 changed files
with
94,899 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
HELP.md | ||
target/ | ||
!**/src/main/** | ||
!**/src/test/** | ||
|
||
### STS ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
|
||
### NetBeans ### | ||
/nbproject/private/ | ||
/nbbuild/ | ||
/dist/ | ||
/nbdist/ | ||
/.nb-gradle/ | ||
build/ | ||
|
||
### VS Code ### | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project version="4"> | ||
<component name="PersistenceUnitSettings"> | ||
<persistence-units> | ||
<persistence-unit name="Default"> | ||
<packages> | ||
<package value="" /> | ||
</packages> | ||
</persistence-unit> | ||
</persistence-units> | ||
</component> | ||
</project> |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
FROM openjdk:15.0-jdk | ||
ARG JAR_FILE=target/cql-elm-translation-0.0.1-SNAPSHOT.war | ||
COPY ${JAR_FILE} app.jar | ||
|
||
RUN curl -O https://download.newrelic.com/newrelic/java-agent/newrelic-agent/current/newrelic.jar \ | ||
&& curl -O https://download.newrelic.com/newrelic/java-agent/newrelic-agent/current/newrelic.yml | ||
|
||
ENTRYPOINT ["java","-Dspring.profiles.active=docker","-javaagent:newrelic.jar","-jar","/app.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
version: '3.6' | ||
|
||
services: | ||
cql-elm-translation: | ||
image: cql-elm-translation | ||
container_name: cql-elm-translation | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
environment: | ||
FHIR_SERVICES_URL: ${FHIR_SERVICES_URL} | ||
CQL_ELM_SWAGGER_URL: ${CQL_ELM_SWAGGER_URL} | ||
MAT_API_KEY: ${MAT_API_KEY} | ||
LOG_LEVEL: ${LOG_LEVEL} | ||
ports: | ||
- 7070:7070 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,197 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-parent</artifactId> | ||
<version>2.6.4</version> | ||
<relativePath/> | ||
</parent> | ||
<groupId>gov.cms.madie</groupId> | ||
<artifactId>cql-elm-translation</artifactId> | ||
<version>0.0.1</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>CQL to ELM Translation Service</name> | ||
<description>Translates CQL to ELM for MADiE</description> | ||
|
||
<properties> | ||
<java.version>16</java.version> | ||
<maven.compiler.source>${java.version}</maven.compiler.source> | ||
<maven.compiler.target>${java.version}</maven.compiler.target> | ||
<cqframework.version>1.5.4</cqframework.version> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
</properties> | ||
|
||
<dependencies> | ||
|
||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-web</artifactId> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>org.apache.logging.log4j</groupId> | ||
<artifactId>log4j-to-slf4j</artifactId> | ||
</exclusion> | ||
<exclusion> | ||
<groupId>org.apache.logging.log4j</groupId> | ||
<artifactId>log4j-api</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-tomcat</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-test</artifactId> | ||
<scope>test</scope> | ||
<exclusions> | ||
<exclusion> | ||
<groupId>org.junit.vintage</groupId> | ||
<artifactId>junit-vintage-engine</artifactId> | ||
</exclusion> | ||
</exclusions> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-actuator</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.projectlombok</groupId> | ||
<artifactId>lombok</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<!-- Dependencies required to use cql to elm translator from cqFramework --> | ||
<!-- https://github.com/cqframework/clinical_quality_language/blob/master/Src/java/cql-to-elm/OVERVIEW.md --> | ||
<dependency> | ||
<groupId>info.cqframework</groupId> | ||
<artifactId>cql</artifactId> | ||
<version>${cqframework.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>info.cqframework</groupId> | ||
<artifactId>model</artifactId> | ||
<version>${cqframework.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>info.cqframework</groupId> | ||
<artifactId>cql-to-elm</artifactId> | ||
<version>${cqframework.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>info.cqframework</groupId> | ||
<artifactId>elm</artifactId> | ||
<version>${cqframework.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>info.cqframework</groupId> | ||
<artifactId>quick</artifactId> | ||
<version>${cqframework.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>info.cqframework</groupId> | ||
<artifactId>qdm</artifactId> | ||
<version>${cqframework.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>javax.ws.rs</groupId> | ||
<artifactId>javax.ws.rs-api</artifactId> | ||
<version>2.1.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>net.sf.saxon</groupId> | ||
<artifactId>Saxon-HE</artifactId> | ||
<version>11.2</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>commons-io</groupId> | ||
<artifactId>commons-io</artifactId> | ||
<version>2.11.0</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.codehaus.castor</groupId> | ||
<artifactId>castor-xml</artifactId> | ||
<version>1.4.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.codehaus.castor</groupId> | ||
<artifactId>castor-core</artifactId> | ||
<version>1.4.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.codehaus.castor</groupId> | ||
<artifactId>castor-jdo</artifactId> | ||
<version>1.3.3-rc1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.codehaus.castor</groupId> | ||
<artifactId>castor-xml-schema</artifactId> | ||
<version>1.4.1</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springdoc</groupId> | ||
<artifactId>springdoc-openapi-ui</artifactId> | ||
<version>1.6.6</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-collections4</artifactId> | ||
<version>4.4</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.apache.commons</groupId> | ||
<artifactId>commons-lang3</artifactId> | ||
<version>3.12.0</version> | ||
</dependency> | ||
|
||
<!-- <dependency>--> | ||
<!-- <groupId>${project.groupId}</groupId>--> | ||
<!-- <artifactId>madie-rest-commons</artifactId>--> | ||
<!-- </dependency>--> | ||
|
||
<!-- <dependency>--> | ||
<!-- <groupId>${project.groupId}</groupId>--> | ||
<!-- <artifactId>madie-server-commons</artifactId>--> | ||
<!-- </dependency>--> | ||
</dependencies> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-maven-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>build-info</id> | ||
<goals> | ||
<goal>build-info</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>pl.project13.maven</groupId> | ||
<artifactId>git-commit-id-plugin</artifactId> | ||
<version>4.0.3</version> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<configuration> | ||
<source>11</source> | ||
<target>11</target> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/google/gwt/user/client/rpc/IsSerializable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.google.gwt.user.client.rpc; | ||
|
||
/** | ||
* Marker interface indicating that a type is intended to be used with a | ||
*/ | ||
public interface IsSerializable { | ||
} |
40 changes: 40 additions & 0 deletions
40
src/main/java/gov/cms/mat/cql_elm_translation/CqlElmTranslationApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package gov.cms.mat.cql_elm_translation; | ||
|
||
import gov.cms.mat.cql_elm_translation.config.security.SecurityFilter; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
import org.springframework.boot.web.servlet.FilterRegistrationBean; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
import javax.annotation.PostConstruct; | ||
import java.util.TimeZone; | ||
|
||
@SpringBootApplication | ||
@Configuration | ||
@Slf4j | ||
public class CqlElmTranslationApplication { | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(CqlElmTranslationApplication.class, args); | ||
} | ||
|
||
/** | ||
* Force UTC timezone locally. | ||
*/ | ||
@PostConstruct | ||
public void init() { | ||
TimeZone.setDefault(TimeZone.getTimeZone("UTC")); | ||
log.info("Set timezone to UTC."); | ||
} | ||
|
||
@Bean(name="FilterRegistrationBeanSecurityFilter") | ||
public FilterRegistrationBean<SecurityFilter> securityFilter(SecurityFilter securityFilter){ | ||
FilterRegistrationBean<SecurityFilter> registrationBean | ||
= new FilterRegistrationBean<>(securityFilter); | ||
registrationBean.setFilter(securityFilter); | ||
registrationBean.addUrlPatterns("/*"); | ||
return registrationBean; | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/gov/cms/mat/cql_elm_translation/ServletInitializer.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package gov.cms.mat.cql_elm_translation; | ||
|
||
import org.springframework.boot.builder.SpringApplicationBuilder; | ||
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer; | ||
|
||
public class ServletInitializer extends SpringBootServletInitializer { | ||
|
||
@Override | ||
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) { | ||
return application.sources(CqlElmTranslationApplication.class); | ||
} | ||
|
||
} |
Oops, something went wrong.