Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into connecthaton-18-res…
Browse files Browse the repository at this point in the history
…ults

* origin/master:
  Bumped engine dependency
  Added jar back into build process
  Bumped project version for publishing
  #48 - Added -measure-with-source operation and test
  #48 - Added a STU3 data provider that serves up resources from a Bundle of source data
  • Loading branch information
bvdh committed May 28, 2018
2 parents e11b9c3 + 0892b5c commit 0589818
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 16 deletions.
47 changes: 32 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<groupId>org.opencds.cqf</groupId>
<artifactId>cqf-ruler</artifactId>
<version>0.1.1-SNAPSHOT</version>
<version>0.1.2-SNAPSHOT</version>

<properties>
<p.type>war</p.type>
Expand Down Expand Up @@ -31,13 +31,13 @@
<dependency>
<groupId>org.opencds.cqf</groupId>
<artifactId>cql-engine</artifactId>
<version>1.2.39-SNAPSHOT</version>
<version>1.2.41-SNAPSHOT</version>
</dependency>

<dependency>
<groupId>org.opencds.cqf</groupId>
<artifactId>cql-engine-fhir</artifactId>
<version>1.2.39-SNAPSHOT</version>
<version>1.2.41-SNAPSHOT</version>
</dependency>

<dependency>
Expand Down Expand Up @@ -394,6 +394,22 @@
</configuration>
</plugin>

<!-- Use when publishing -->
<!--<plugin>-->
<!--<groupId>org.apache.maven.plugins</groupId>-->
<!--<artifactId>maven-jar-plugin</artifactId>-->
<!--<version>3.1.0</version>-->
<!--<executions>-->
<!--<execution>-->
<!--<id>make-a-jar</id>-->
<!--<phase>compile</phase>-->
<!--<goals>-->
<!--<goal>test-jar</goal>-->
<!--</goals>-->
<!--</execution>-->
<!--</executions>-->
<!--</plugin>-->

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand Down Expand Up @@ -480,19 +496,20 @@
</configuration>
</plugin>

<!-- Use when publishing -->
<!--<plugin>-->
<!--<groupId>org.apache.maven.plugins</groupId>-->
<!--<artifactId>maven-gpg-plugin</artifactId>-->
<!--<version>1.6</version>-->
<!--<executions>-->
<!--<execution>-->
<!--<id>sign-artifacts</id>-->
<!--<phase>verify</phase>-->
<!--<goals>-->
<!--<goal>sign</goal>-->
<!--</goals>-->
<!--</execution>-->
<!--</executions>-->
<!--<groupId>org.apache.maven.plugins</groupId>-->
<!--<artifactId>maven-gpg-plugin</artifactId>-->
<!--<version>1.6</version>-->
<!--<executions>-->
<!--<execution>-->
<!--<id>sign-artifacts</id>-->
<!--<phase>verify</phase>-->
<!--<goals>-->
<!--<goal>sign</goal>-->
<!--</goals>-->
<!--</execution>-->
<!--</executions>-->
<!--</plugin>-->

<plugin>
Expand Down
1 change: 1 addition & 0 deletions src/test/java/org/opencds/cqf/MeasureEvaluationTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import ca.uhn.fhir.context.FhirContext;
import ca.uhn.fhir.model.primitive.IdDt;
import org.hl7.fhir.ContentType;
import org.hl7.fhir.dstu3.model.*;
import org.junit.Assert;

Expand Down
14 changes: 13 additions & 1 deletion src/test/java/org/opencds/cqf/RulerHelperTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public void XlsxToValueSetTest() throws IOException {
// @Test
// public void validationTest() {
// Condition condition = new Condition();
// condition.setId("condition-1");
// condition.setCode(
// new CodeableConcept().addCoding(
// new Coding().setSystem("ICD-9-CM").setCode("428.21")
Expand All @@ -117,9 +118,20 @@ public void XlsxToValueSetTest() throws IOException {
// .setSubject(new Reference().setReference("Patient/pneumo-true-2"))
// .setOnset(new DateTimeType().setValue(new Date()));
//
// Bundle bundle = new Bundle();
// bundle.setType(Bundle.BundleType.TRANSACTION);
// bundle.addEntry(
// new Bundle.BundleEntryComponent().setResource(condition)
// .setRequest(new Bundle.BundleEntryRequestComponent()
// .setMethod(Bundle.HTTPVerb.PUT)
// .setUrl("Condition/condition-1"))
// );
//
// FhirContext ctx = FhirContext.forDstu3();
// FhirValidator validator = ctx.newValidator();
// ValidationResult result = validator.validateWithResult(condition);
// IValidatorModule module1 = new SchemaBaseValidator(ctx);
// validator.registerValidatorModule(module1);
// ValidationResult result = validator.validateWithResult(bundle);
//
// if (result.isSuccessful()) {
// System.out.println("Validation Successful");
Expand Down

0 comments on commit 0589818

Please sign in to comment.