Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aphl mergeback #770

Merged
merged 188 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
188 commits
Select commit Hold shift + click to select a range
be01aa4
Fhir Implementations
Jun 3, 2022
3e3beb5
Fhir Implementations
Jun 7, 2022
2499883
APHL-303 Updated JPA and Repository logic
Jun 23, 2022
88ce4d0
Updated logic for JPA code to connect to APHL UI
Jul 27, 2022
eb743f6
Updated to cqframework version 1.5.11-SNAPSHOT; added cqf-fhir depend…
sliver007 Aug 2, 2022
45265cd
APHL-303-Fhir-Implementation-Updates
Aug 3, 2022
dc737ac
Added the RepositoryService to the CqlConfig
sliver007 Aug 3, 2022
da1d9e4
Merge remote-tracking branch 'origin/master' into Fhir-Implementations
Aug 3, 2022
71cd887
APHL-303 Updated logic for configuring operation
Aug 3, 2022
c1ed856
Merge branch 'Fhir-Implementations' of https://github.com/DBCG/cqf-ru…
Aug 3, 2022
aea09a2
APHL-303 FHIR implementation updates for operation
Aug 3, 2022
433f092
APHL-303 FHIR Implementation for operation addition
Aug 3, 2022
90d5b30
Changed RepositoryService to use r4 resources
c-schuler Aug 3, 2022
db33d95
APHL-303 Fhir Implementation code for repository service updated logic
Aug 4, 2022
79ca886
APHL-305 Updated logic for release operation
Sep 1, 2022
fc10c46
Merge branch 'master' into Fhir-Implementations
sliver007 Sep 9, 2022
a2536f5
KnowledgeArtifact infrastructure and newVersion implementation to use it
sliver007 Sep 14, 2022
e77a996
APHL-303 Updates for backend for release and publish operations
Sep 15, 2022
899ad28
Merge remote-tracking branch 'origin/master' into Fhir-Implementations
Sep 21, 2022
bf9e686
APHL-303 Updates for backend for draft operation and canonical logic
Sep 22, 2022
9ca26aa
Merge remote-tracking branch 'origin/master' into Fhir-Implementations
Sep 27, 2022
85209aa
Updates for test classes and java 11
Oct 3, 2022
555770a
Added operation and injections to config ... added psuedo code for ba…
c-schuler Oct 6, 2022
887bb0e
Added logic for release and publish operations and tests
c-schuler Oct 7, 2022
105630c
Reinstating evaluator FhirDal factory ... updating measure evaluation…
c-schuler Oct 11, 2022
0ca88be
Updated draftOperation test
sliver007 Oct 11, 2022
3f2a004
Fixed FhirDal search and draft test
c-schuler Oct 11, 2022
7c84618
Renamed 'newVersion' method to 'draft'
sliver007 Oct 11, 2022
cd98375
Removed unused imports in JpaFhirDal
sliver007 Oct 11, 2022
e9c0cc1
Fhir-Implementation-Duplicate-Fix
Oct 18, 2022
5b8bac2
Merge branch 'Fhir-Implementations' of https://github.com/DBCG/cqf-ru…
Oct 18, 2022
1a255b1
Updated $draft operation signature and added some validation
sliver007 Nov 22, 2022
1a077af
Update RepositoryService.java
sliver007 Nov 22, 2022
2129e45
Fhir Implementation changes for revise
Nov 28, 2022
2dc01a6
$revise operation changes
sliver007 Nov 28, 2022
a2f0f97
Updated $publish operation
sliver007 Nov 28, 2022
a5d5133
Updated draft and revise operation tests
sliver007 Nov 28, 2022
87406b7
Fhir-Implemenmtation updates for tests
Nov 28, 2022
f988c5b
Fhir_Implementation logic updates for test code
Dec 1, 2022
925a490
Fixed $draft status constraint exception message
sliver007 Dec 14, 2022
42ace1a
Fhir-Implementations-draft-operation-defect
Dec 14, 2022
ad67145
Merge branch 'Fhir-Implementations' of https://github.com/DBCG/cqf-ru…
Dec 14, 2022
154332c
Updates to $draft operation to strip versions on references and on re…
sliver007 Dec 16, 2022
b8ffe0c
Updated resources
Dec 16, 2022
f171223
updated $draft test resource and removed unused imports
sliver007 Dec 16, 2022
8e36fb0
Updated the Cql FhirDal to implement Translator FhirDal and introduce…
sliver007 Dec 17, 2022
f2d4633
updated fhirContext used by JpaFhirDal
sliver007 Dec 18, 2022
cf03c21
Updated revise operation
sliver007 Dec 19, 2022
86a2eb2
Merge branch 'translator_fhirDal' into Fhir-Implementations
sliver007 Dec 19, 2022
5fcbaf9
Updates to use evaluator utils
sliver007 Dec 19, 2022
53fbecd
Fixed KnowledgeArtifactTest parameters imports
sliver007 Dec 19, 2022
49d4329
Merge branch 'master' into Fhir-Implementations
sliver007 Dec 20, 2022
f7da450
Removed revise and publish operations from this branch
sliver007 Dec 21, 2022
518331b
Remove Publish and Revise operations; Draft now throws if a draft alr…
sliver007 Dec 22, 2022
bb075ac
updated draft bundle so that resources are different from those of th…
sliver007 Dec 22, 2022
8408a9e
Update KnowledgeArtifactProcessor.java
sliver007 Dec 29, 2022
7dcc068
Restored $revise operation
sliver007 Dec 29, 2022
5d622a6
Fhir-Implementations-Updates
hayessmilecdr Jan 11, 2023
990cd74
Reverted previous commit's changes to RepositoryServiceTest
sliver007 Jan 19, 2023
70bce77
Refactor of $release operation
sliver007 Jan 24, 2023
aa33741
Fhir-Implementation-Updates
hayessmilecdr Jan 23, 2023
3be170f
KnowledgeArtifactAdapter components and dependencies refactor
sliver007 Jan 27, 2023
c2fcc8f
Adapter getComponents, getDependencies; reviseOperation test
sliver007 Jan 27, 2023
46a9a05
Fhir-Implementations-Updates
hayessmilecdr Feb 3, 2023
486b735
Move BooleanType to boolean conversion up a layer; commented out Rele…
sliver007 Feb 3, 2023
ba7967e
Aphl 475 approve operation (#691)
TahaAttari Feb 21, 2023
5b0cbce
$release operation updates for version pinning
sliver007 Feb 24, 2023
1de04e9
Removed unused import.
sliver007 Feb 24, 2023
9e8d3de
Fhir-Implementations-Updates
hayessmilecdr Feb 24, 2023
d906e38
Fixed a couple of bugs in version validation
sliver007 Feb 24, 2023
9d8e6d6
$release updates - param names match spec
sliver007 Feb 27, 2023
47b5a7a
Updated text cases for $release name changes
sliver007 Feb 27, 2023
9ff03b2
Release operation updates (#698)
Mar 23, 2023
2f9d6ed
Update KnowledgeArtifactProcessor.java
sliver007 Mar 23, 2023
12867f0
Merge branch 'master' into vsm_operations
sliver007 Apr 11, 2023
6d6111c
[APHL-546] Implementation of artifactAssessment and updating $approve…
TahaAttari Apr 12, 2023
9633e61
Fix bad $approve tests (#702)
TahaAttari Apr 14, 2023
57030b9
Aphl 535 rebase to vsm operations (#704)
TahaAttari Apr 20, 2023
c56135b
[APHL-546] fix bad target canonical handling in $approve (#710)
TahaAttari Apr 24, 2023
faaebd9
Fixed release operation validation messages - made parameter names co…
sliver007 Apr 27, 2023
7aa1018
Update RepositoryServiceTest.java
sliver007 Apr 27, 2023
1b4d020
Updated $release operation parameter names to camelCase
sliver007 May 2, 2023
8ea7388
[APHL-584] update backend to remove endorser (#714)
TahaAttari May 5, 2023
cd7d33d
Merge branch 'master' into vsm_operations
sliver007 May 5, 2023
1da05e9
$approve fixed and new test added to ensure it won't block $release (…
TahaAttari May 26, 2023
571dd94
Aphl 305 release operation (#720)
TahaAttari Jul 18, 2023
f7ffa9e
Aphl 608 is owned and effective period (#727)
TahaAttari Jul 31, 2023
fcf251e
simplify version update logic in $release (#732)
TahaAttari Aug 1, 2023
0a69490
[APHL-630] update to ci cd (#731)
TahaAttari Aug 1, 2023
320cb8f
Aphl 630 ci cd update - version fix (#733)
TahaAttari Aug 1, 2023
0cc3da0
Aphl 630 ci cd update (#734)
TahaAttari Aug 1, 2023
81a3155
Aphl 630 ci cd update (#735)
TahaAttari Aug 1, 2023
db1f3a0
Aphl 469 transactional package operation (#737)
TahaAttari Aug 25, 2023
abb0480
Aphl 655 clear approval date, releaseLabel, releaseDescription (#738)
TahaAttari Aug 28, 2023
d0432b6
(manual) merge of master
sliver007 Sep 11, 2023
d540612
updated submodule reference
sliver007 Sep 12, 2023
1bb812d
Merge branch 'master' into vsm_operations
sliver007 Sep 12, 2023
983b145
Dockerfile ruler-server version update
sliver007 Sep 12, 2023
f4c2bf0
Update hapi-fhir-jpaserver-starter
sliver007 Sep 12, 2023
2977bf2
Updated the backend CRMI operation names with "crmi." prefix
TahaAttari Sep 27, 2023
ad4a4b9
Aphl 656 propogate new version to artifact assessment (#742)
TahaAttari Sep 29, 2023
972d689
[Aphl 647] new semver and releaseLabel (#743)
TahaAttari Oct 10, 2023
21b73b8
Release operation experimentalBehavior parameter and handling (#744)
TahaAttari Oct 13, 2023
c64abfc
Aphl 731 release operation priority indication (#745)
TahaAttari Oct 13, 2023
da22352
Aphl 732 package priority (#746)
TahaAttari Oct 13, 2023
bd562ab
Update package operation output to distinguish collection and transa…
TahaAttari Nov 14, 2023
2ce23eb
Whitespace and convention/style updates
Nov 14, 2023
dd28edd
$validate Operation implementation
TahaAttari Nov 14, 2023
5ef7709
v2 -> v1 plugin (#748)
TahaAttari Nov 25, 2023
3d39ec9
targetversion parameter for ersd v1 transform
TahaAttari Nov 27, 2023
b38a07c
[APHL-798][APHL-799] Condition useContext management (#752)
TahaAttari Nov 27, 2023
0de3703
update jpa
Capt-Mac Nov 29, 2023
f9de43e
update external
Capt-Mac Nov 29, 2023
5eb5f32
Remove "crmi" operation code prefix (#755)
Dec 1, 2023
7d13290
updating to latest hapi
Capt-Mac Dec 28, 2023
6a806a0
compiled ruler with updates, wip
Capt-Mac Jan 3, 2024
959d7cb
operation migration table in readMe
Capt-Mac Jan 3, 2024
def35cc
RepositoryService $draft operation not clears out effectiveperiod (#758)
TahaAttari Jan 3, 2024
cef0efe
[APHL-780] initial implementation (#751)
TahaAttari Jan 5, 2024
c77ac3f
[APHL-798][APHL-799] release and package should throw an error if a V…
TahaAttari Jan 12, 2024
39cd3ab
Aphl 796 update package parameters (#759)
TahaAttari Jan 12, 2024
a75f6b2
Aphl 582 move to hapifhirrepository (#760)
TahaAttari Jan 12, 2024
631cece
Aphl 830 test data (#761)
TahaAttari Mar 8, 2024
ff08fef
[APHL-551] update cqf-ruler to use clinical-reasoning
Mar 20, 2024
f402444
[APHL-551] update tests to get rid of weird concurrency issue
Mar 21, 2024
5645748
[APHL-551] cleanup
Mar 21, 2024
b1af68a
[APHL-551] undo changes to ifNoneExist
Mar 21, 2024
463dd1c
[APHL-551] update pom
Mar 21, 2024
f6af4a4
Add common getExpansion() function (#763)
Chris0296 Mar 22, 2024
650520a
[APHL-551] update pom
Mar 22, 2024
72d426b
Aphl 300 valueset interceptor (#757)
TahaAttari Mar 22, 2024
4e9164e
Merge branch 'master' into vsm_operations
Mar 22, 2024
3328694
Merge branch 'vsm_operations' into aphl-551-update-ruler-to-use-clini…
Mar 22, 2024
95b7130
Update dependency versions
JPercival Mar 28, 2024
d7860d7
Merge branch 'master' into 7.1.7-SNAPSHOT
JPercival Mar 28, 2024
1d4c732
Delete unused code
JPercival Mar 29, 2024
d5acf83
Update to br-cs-merged code
JPercival Mar 29, 2024
f5f932d
More dependency cleanup
JPercival Mar 29, 2024
ce69c12
Update to use MR cache
JPercival Mar 29, 2024
d3f255d
Whoops, didn't mean to override
JPercival Mar 29, 2024
67c6852
More dependency fixes
JPercival Mar 29, 2024
e2f679d
Merge remote-tracking branch 'origin/master' into 7.1.7-SNAPSHOT
JPercival Mar 29, 2024
ce1caa2
Merge remote-tracking branch 'origin/master' into aphl-551-update-rul…
JPercival Mar 29, 2024
94fc328
Merge 7.1.7-SNAPSHOT
JPercival Mar 29, 2024
49191ed
Update github actions
JPercival Mar 29, 2024
d651315
jacoco
JPercival Mar 29, 2024
ffa77a7
Fix integration tests
JPercival Mar 29, 2024
72d1b21
Fixing tests
JPercival Mar 29, 2024
5cff367
Various test fixes and updates
JPercival Mar 29, 2024
ae016e2
WIP, fixing tests
JPercival Apr 1, 2024
dc4bd7f
Disable extract provider and fix extract tests
barhodes Apr 2, 2024
5387947
Fixing tests
JPercival Apr 3, 2024
5eb6c38
Update to latest jpaserver-starter branch
JPercival Apr 3, 2024
ffb6ba3
Remove extract provider
barhodes Apr 4, 2024
bf76788
wip ra
Capt-Mac Apr 4, 2024
c60a785
Update the Readme with migration status of operations
JPercival Apr 4, 2024
aa6c04c
Fix cds hooks test
barhodes Apr 4, 2024
f15fa93
Merge branch '7.1.7-SNAPSHOT' of https://github.com/cqframework/cqf-r…
barhodes Apr 4, 2024
2bfec5d
Merge remote-tracking branch 'origin/master' into aphl-mergeback
JPercival Apr 4, 2024
2dab948
Update eCR plugin
JPercival Apr 4, 2024
9fdae91
removing RA plugin due to spec changes that are not implemented
Capt-Mac Apr 4, 2024
e64d02f
removing failing tests, re-adding RA module
Capt-Mac Apr 4, 2024
15130d6
Fix up ecr poms
JPercival Apr 4, 2024
7569e79
Merge branch '7.1.7-SNAPSHOT' of https://github.com/cqframework/cqf-r…
barhodes Apr 8, 2024
4a33c99
Remove unused transform provider
barhodes Apr 8, 2024
fc389b2
Merge ecr plugin into case reporting
JPercival Apr 8, 2024
637b1a4
merge 7.1.7
JPercival Apr 8, 2024
c53595d
remove broken submodule
JPercival Apr 8, 2024
6cd7d1e
Update to latest br-cs-merged branch
JPercival Apr 11, 2024
d8eb9d1
Move RepositoryService and KnowledgeArtifactProcessor to case-reporti…
TahaAttari Apr 29, 2024
d8d5a82
Aphl 300 move valueset interceptor to plugin (#777)
TahaAttari May 1, 2024
d871ffe
Replace RepositoryService with CaseReportingOperationProvider
barhodes May 6, 2024
f04c2c4
update transform provider (#780)
TahaAttari May 6, 2024
0e28e76
[APHL-551] fix test failures (#781)
TahaAttari May 7, 2024
4f74af5
APHL-913-add_grouper_type_use_context (#782)
ibaisi May 7, 2024
5df0db0
Fix ExampleServerDstu3IT
barhodes May 7, 2024
2dc9cb0
Update to latest br-cs-merged branch
barhodes May 8, 2024
765bd6f
Update Launch_Server__Live_Reload_.xml
ibaisi May 9, 2024
d39261e
Merge remote-tracking branch 'origin/master' into aphl-mergeback
JPercival May 13, 2024
1bc7eac
Test disabling batch jobs and indexing on the DSTU3 tests
JPercival May 13, 2024
59681b3
Add @DirtiesContext annotation
JPercival May 13, 2024
b158ed8
Throwing more at the wall
JPercival May 13, 2024
9857908
Huh, threading be tough
JPercival May 13, 2024
5e49e27
Use the maven wrapper
JPercival May 13, 2024
c63f63a
update to clinical-reasoning snapshot and fix approve variable names
May 13, 2024
eeabb71
flaky async test is fixed downstream
May 13, 2024
1db9d5e
remove case-reporting now that it's migrated to aphl-vsm
May 14, 2024
b75e3d1
Adding test ordering to prevent singleton list error stemming from re…
c-schuler May 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/check-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
distribution: temurin
java-version: 21
- name: Run Checks
run: mvn --batch-mode --no-transfer-progress --update-snapshots verify
run: ./mvnw -T 4 --batch-mode --no-transfer-progress --update-snapshots verify
40 changes: 40 additions & 0 deletions .github/workflows/publish-snapshot-vsm-operations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish Snapshot VSM Operations
on:
push:
branches:
- vsm_operations
jobs:
maven:
runs-on: ubuntu-latest
steps:
- name: Add SHORT_SHA env property with commit short sha
run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ vars.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Install
run: ./scripts/install.sh
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: alphora/cqf-ruler:cqf-ruler-vsm
build-args: COMMIT_HASH=${{ env.SHORT_SHA }}
cache-from: type=gha
cache-to: type=gha,mode=max
2 changes: 1 addition & 1 deletion .github/workflows/publish-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
server-username: MAVEN_USERNAME
server-password: MAVEN_PASSWORD
- name: Publish snapshot
run: mvn --batch-mode -no-transfer-progress --update-snapshots deploy
run: ./mvnw -T 4 --batch-mode -no-transfer-progress --update-snapshots deploy
env:
MAVEN_USERNAME: ${{ vars.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
Expand Down
22 changes: 11 additions & 11 deletions .idea/runConfigurations/Launch_Server__Live_Reload_.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,15 @@ ARG COMMIT_HASH
LABEL COMMIT_HASH ${COMMIT_HASH}
ENV COMMIT_HASH ${COMMIT_HASH}

ENV VERSION=0.15.0-SNAPSHOT
RUN apt-get update && apt-get upgrade -y && rm -rf /var/lib/apt/lists/*
RUN groupadd -r cqfruler && useradd -r -g cqfruler cqfruler
USER cqfruler
WORKDIR /home/cqfruler

RUN mkdir server
RUN mkdir plugin
COPY ./server/target/cqf-ruler-server-*.war server/ROOT.war
COPY /server/target/cqf-ruler-server-${VERSION}.war server/ROOT.war

EXPOSE 8080
CMD ["java", "-cp", "server/ROOT.war", "-Dloader.path=WEB-INF/classes,WEB-INF/lib,WEB-INF/lib-provided,plugin", "org.springframework.boot.loader.PropertiesLauncher"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
package org.opencds.cqf.ruler.utility;

import java.util.List;
import java.util.Comparator;

public class SemanticVersion {
public static Comparator<String> getVersionComparator() {
return new VersionComparator();
}

public static String findHighestVersion(List<String> versions) {
String highestVersion = null;
Comparator<String> versionComparator = new VersionComparator();

for (String version : versions) {
if (highestVersion == null || versionComparator.compare(version, highestVersion) > 0) {
highestVersion = version;
}
}

return highestVersion;
}

public static class VersionComparator implements Comparator<String> {
@Override
public int compare(String v1, String v2) {
String[] v1Parts = v1.split("\\.");
String[] v2Parts = v2.split("\\.");

for (int i = 0; i < Math.max(v1Parts.length, v2Parts.length); i++) {
int num1 = i < v1Parts.length ? Integer.parseInt(v1Parts[i]) : 0;
int num2 = i < v2Parts.length ? Integer.parseInt(v2Parts[i]) : 0;

if (num1 != num2) {
return num1 - num2;
}
}

return 0;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"hapi.fhir.fhir_version=dstu2",
"spring.datasource.url=jdbc:h2:mem:dbr2",
"hapi.fhir.cr.enabled=false",
"spring.main.allow-bean-definition-overriding=true"
"spring.main.allow-bean-definition-overriding=true",
"spring.jpa.properties.hibernate.search.backend.directory.root=target/lucenefiles-dstu2",
})
public class ExampleServerDstu2IT {

Expand Down
42 changes: 36 additions & 6 deletions core/src/test/java/org/opencds/cqf/ruler/ExampleServerDstu3IT.java
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
package org.opencds.cqf.ruler;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertFalse;
import static org.junit.jupiter.api.Assertions.assertTrue;

import ca.uhn.fhir.cr.config.RepositoryConfig;
import ca.uhn.fhir.model.primitive.IdDt;
import ca.uhn.fhir.rest.api.CacheControlDirective;
import org.apache.commons.io.FileUtils;
import org.hl7.fhir.dstu3.model.Bundle;
import org.hl7.fhir.dstu3.model.MeasureReport;
import org.hl7.fhir.dstu3.model.Parameters;
import org.hl7.fhir.dstu3.model.Patient;
import org.hl7.fhir.dstu3.model.StringType;
import org.hl7.fhir.instance.model.api.IIdType;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
Expand All @@ -15,21 +25,41 @@
import ca.uhn.fhir.rest.client.api.IGenericClient;
import ca.uhn.fhir.rest.client.api.ServerValidationModeEnum;
import ca.uhn.fhir.rest.client.interceptor.LoggingInterceptor;
import org.springframework.core.io.ClassPathResource;
import org.springframework.test.annotation.DirtiesContext;
import org.springframework.test.context.junit.jupiter.SpringExtension;

import java.io.File;
import java.io.IOException;
import java.util.Collection;
import java.util.List;

@ExtendWith(SpringExtension.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT, classes = {Application.class, JpaStarterWebsocketDispatcherConfig.class}, properties = {
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT,
classes = {
Application.class,
JpaStarterWebsocketDispatcherConfig.class
}, properties =
{
"spring.profiles.include=storageSettingsTest",
"spring.datasource.url=jdbc:h2:mem:dbr3",
"hapi.fhir.fhir_version=dstu3",
"hapi.fhir.cr_enabled=true",
"hapi.fhir.mdm_enabled=false",
"spring.batch.enabled=false",
"hapi.fhir.subscription.websocket_enabled=true",
"hapi.fhir.allow_external_references=true",
"hapi.fhir.allow_placeholder_references=true",
"spring.main.allow-bean-definition-overriding=true"})
class ExampleServerDstu3IT {
private IGenericClient ourClient;
"hapi.fhir.enable_repository_validating_interceptor=true",
"spring.main.allow-bean-definition-overriding=true",
"spring.jpa.properties.hibernate.search.backend.directory.root=target/lucenefiles-dstu3",
})

@Autowired

class ExampleServerDstu3IT implements IServerSupport {

private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(ExampleServerDstu3IT.class);
private IGenericClient ourClient;
private FhirContext ourCtx;

@Autowired
Expand All @@ -38,7 +68,6 @@ class ExampleServerDstu3IT {
@LocalServerPort
private int port;


@BeforeEach
void beforeEach() {
ourCtx = FhirContext.forDstu3();
Expand All @@ -52,6 +81,7 @@ void beforeEach() {
@Test
@DirtiesContext
void testCreateAndRead() {

String methodName = "testCreateResourceConditional";

Patient pt = new Patient();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@
// Override is currently required when using MDM as the construction of the MDM
// beans are ambiguous as they are constructed multiple places. This is evident
// when running in a spring boot environment
"spring.main.allow-bean-definition-overriding=true"
"spring.main.allow-bean-definition-overriding=true",
"spring.jpa.properties.hibernate.search.backend.directory.root=target/lucenefiles-r4",
})
public class ExampleServerR4IT implements IServerSupport {
private static final org.slf4j.Logger ourLog = org.slf4j.LoggerFactory.getLogger(ExampleServerR4IT.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"hapi.fhir.fhir_version=r5",
"hapi.fhir.subscription.websocket_enabled=true",
"hapi.fhir.mdm_enabled=false",
"spring.main.allow-bean-definition-overriding=true"
"spring.main.allow-bean-definition-overriding=true",
"spring.jpa.properties.hibernate.search.backend.directory.root=target/lucenefiles-dstu2",
})
public class ExampleServerR5IT {

Expand Down
4 changes: 4 additions & 0 deletions example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ This system is very basic. It does not support runtime addition or removal of pl

NOTE: This plugin is for demonstration purposes only. It's never intended to be published

## Build

Use `mvn package` to build the jar files

## Docker

The Dockerfile builds on top of the base cqf-ruler image and simply copies the jar into the `plugin` directory of the image.
1 change: 1 addition & 0 deletions external/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-base</artifactId>
</dependency>

<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-storage</artifactId>
Expand Down
11 changes: 0 additions & 11 deletions plugin/case-reporting/pom.xml

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading