This repository has been archived by the owner on Jul 31, 2023. It is now read-only.
forked from HL7-DaVinci/CRD
-
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.
Merge pull request #15 from HL7-DaVinci/fork-sync
Fork Auto Sync
- Loading branch information
Showing
14 changed files
with
181 additions
and
80 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -25,3 +25,4 @@ jobs: | |
context: . | ||
push: true | ||
tags: codexrems/crd:REMSvlatest | ||
|
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
FROM gradle:6.9.0-jdk11 | ||
# Copy app files to container | ||
COPY --chown=gradle:gradle . /CRD/ | ||
# Set working directory so that all subsequent command runs in this folder | ||
WORKDIR /CRD | ||
# Embed CDS Library | ||
RUN gradle embedCdsLibrary | ||
# Expose port to access the app | ||
RUN gradle build | ||
EXPOSE 8090 | ||
# Command to run our app | ||
CMD gradle bootRun | ||
# Copy app files to container | ||
COPY --chown=gradle:gradle . /CRD/ | ||
# Set working directory so that all subsequent command runs in this folder | ||
WORKDIR /CRD/server/ | ||
# Embed CDS Library | ||
RUN gradle embedCdsLibrary | ||
# Expose port to access the app | ||
RUN gradle build | ||
EXPOSE 8090 | ||
# Command to run our app | ||
CMD gradle bootRun |
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
# Base image | ||
FROM gradle:6.9.0-jdk11 | ||
# Copy app files to container | ||
COPY --chown=gradle:gradle . /CRD/ | ||
# Set working directory so that all subsequent command runs in this folder | ||
WORKDIR /CRD | ||
# Embed CDS Library | ||
# RUN gradle embedCdsLibrary | ||
RUN gradle build | ||
# Expose port to access the app | ||
EXPOSE 8090 | ||
EXPOSE 8091 | ||
# Command to run our app | ||
CMD ./dockerRunnerDev.sh | ||
FROM gradle:6.9.0-jdk11 | ||
# Copy app files to container | ||
COPY --chown=gradle:gradle . /CRD/ | ||
# Set working directory so that all subsequent command runs in this folder | ||
WORKDIR /CRD | ||
# Embed CDS Library | ||
# RUN gradle embedCdsLibrary | ||
RUN gradle build | ||
# Expose port to access the app | ||
EXPOSE 8090 | ||
EXPOSE 8091 | ||
# Command to run our app | ||
CMD ./dockerRunnerDev.sh |
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 |
---|---|---|
@@ -1,28 +1,28 @@ | ||
#!/bin/bash | ||
|
||
# Handle closing application on signal interrupt (ctrl + c) | ||
trap 'kill $CONTINUOUS_BUILD_PID $SERVER_PID; gradle --stop; exit' INT | ||
trap 'kill $CONTINUOUS_BUILD_PID $SERVER_PID; gradle --stop; exit' INT | ||
|
||
mkdir logs | ||
# Reset log file content for new application boot | ||
echo "*** Logs for 'gradle installBootDist --continuous' ***" > ./logs/builder.log | ||
echo "*** Logs for 'gradle bootRun' ***" > ./logs/runner.log | ||
mkdir logs | ||
# Reset log file content for new application boot | ||
echo "*** Logs for 'gradle installBootDist --continuous' ***" > ./logs/builder.log | ||
echo "*** Logs for 'gradle bootRun' ***" > ./logs/runner.log | ||
|
||
# Print that the application is starting in watch mode | ||
echo "starting application in watch mode..." | ||
# Print that the application is starting in watch mode | ||
echo "starting application in watch mode..." | ||
|
||
# Start the continious build listener process | ||
echo "starting continuous build listener..." | ||
gradle build --continuous 2>&1 | tee ./logs/builder.log & CONTINUOUS_BUILD_PID=$! | ||
# Start the continious build listener process | ||
echo "starting continuous build listener..." | ||
gradle build --continuous 2>&1 | tee ./logs/builder.log & CONTINUOUS_BUILD_PID=$! | ||
|
||
# Start server process once initial build finishes | ||
( while ! grep -m1 'BUILD SUCCESSFUL' < ./logs/builder.log; do | ||
sleep 1 | ||
done | ||
echo "starting crd server in debug mode..." | ||
gradle bootRun -Pdebug | tee ./logs/runner.log ) & SERVER_PID=$! | ||
# Start server process once initial build finishes | ||
( while ! grep -m1 'BUILD SUCCESSFUL' < ./logs/builder.log; do | ||
sleep 1 | ||
done | ||
echo "starting crd server in debug mode..." | ||
gradle bootRun -Pdebug 2>&1 | tee ./logs/runner.log ) & SERVER_PID=$! | ||
|
||
# Handle application background process exiting | ||
wait $CONTINUOUS_BUILD_PID $SERVER_PID | ||
EXIT_CODE=$? | ||
echo "application exited with exit code $EXIT_CODE..." | ||
# Handle application background process exiting | ||
wait $CONTINUOUS_BUILD_PID $SERVER_PID | ||
EXIT_CODE=$? | ||
echo "application exited with exit code $EXIT_CODE..." |
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,19 @@ | ||
package org.cdshooks; | ||
|
||
public class Coding { | ||
|
||
private String code; | ||
|
||
private String system = null; | ||
|
||
private String display = null; | ||
|
||
public String getCode() { return code; } | ||
public void setCode(String code) { this.code = code; } | ||
|
||
public String getSystem() { return system; } | ||
public void setSystem(String system) { this.system = system; } | ||
|
||
public String getDisplay() { return display; } | ||
public void setDisplay(String display) { this.display = display; } | ||
} |
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
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,44 @@ | ||
package org.hl7.davinci.r4; | ||
|
||
import org.cdshooks.Coding; | ||
|
||
public enum CardTypes { | ||
COVERAGE("coverage", "Coverage"), | ||
PRIOR_AUTH("prior-auth", "Prior Authorization"), | ||
DTR_CLIN("dtr-clin", "DTR Clin"), | ||
DTR_ADMIN("dtr-admin", "DTR Admin"), | ||
CLAIM("claim", "Claim"), | ||
INSURANCE("insurance", "Insurance"), | ||
LIMITS("limits", "Limits"), | ||
NETWORK("network", "Network"), | ||
APPROPRIATE_USE("appropriate-use", "Appropriate Use"), | ||
COST("cost", "Cost"), | ||
THERAPY_ALTERNATIVES_OPT("therapy-alternatives-opt", "Therapy Alternatives Opt"), | ||
THERAPY_ALTERNATIVES_REG("therapy-alternatives-req", "Therapy Alternatives Req"), | ||
CLINICAL_REMINDER("clinical-reminder", "Clinical Reminder"), | ||
DUPLICATE_THERAPY("duplicate-therapy", "Duplicate Therapy"), | ||
CONTRAINDICATION("contraindication", "Contraindication"), | ||
GUIDELINE("guideline", "Guideline"), | ||
OFF_GUIDELINE("off-guideline", "Off Guideline"); | ||
|
||
private String code; | ||
private String display; | ||
private static String codeSystem = "http://hl7.org/fhir/us/davinci-crd/CodeSystem/cardType"; | ||
|
||
CardTypes(String code, String display) { | ||
this.code = code; | ||
this.display = display; | ||
} | ||
|
||
public String getCode() { return code; } | ||
public String getDisplay() { return display; } | ||
public String getCodeSystem() { return codeSystem; } | ||
|
||
public Coding getCoding() { | ||
Coding coding = new Coding(); | ||
coding.setSystem(codeSystem); | ||
coding.setCode(code); | ||
coding.setDisplay(display); | ||
return coding; | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.