Skip to content

Commit

Permalink
Add validation resources by CL profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
Gorovoi committed Dec 27, 2024
1 parent 54ea30b commit 032bb47
Show file tree
Hide file tree
Showing 6 changed files with 262 additions and 86 deletions.
4 changes: 2 additions & 2 deletions ips_ig_cl/.env.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ AIDBOX_LICENSE=
AIDBOX_DEV_MODE=true
AIDBOX_FHIR_VERSION=4.0.1
AIDBOX_FHIR_SCHEMA_VALIDATION=true
AIDBOX_FHIR_PACKAGES=hl7.fhir.r4.core#4.0.1:hl7.fhir.uv.ips#1.1.0
AIDBOX_TERMINOLOGY_SERVICE_BASE_URL="https://r4.ontoserver.csiro.au/fhir"
AIDBOX_FHIR_PACKAGES=hl7.fhir.r4.core#4.0.1:hl7.fhir.cl.clips#0.3.0-ballot
AIDBOX_TERMINOLOGY_SERVICE_BASE_URL="https://tx.health-samurai.io/fhir"
AIDBOX_COMPLIANCE=enabled

PGPORT=5432
Expand Down
14 changes: 13 additions & 1 deletion ips_ig_cl/k8s.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -58,8 +59,19 @@ metadata:
name: ips-app
namespace: ips
data:
AIDBOX_BASE_URL: https://ips.hz.aidbox.dev
AIDBOX_BASE_URL: http://aidbox-api.aidbox.svc:80
APP_PORT: "4000"
APP_URL: http://ips-app.ips.svc.cluster.local:4000
APP_CALLBACK_URL: /aidbox
APP_ID: ips-app
---
apiVersion: v1
kind: Secret
metadata:
name: ips-app
namespace: ips
data:
AIDBOX_CLIENT_SECRET:
AIDBOX_CLIENT_ID:
APP_SECRET:
type: Opaque
5 changes: 3 additions & 2 deletions ips_ig_cl/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ import { Config } from "./types";
export const isDev = process.env.NODE_ENV === "development";

const envSchema = object({
AIDBOX_BASE_URL: string([url()]),
AIDBOX_CLIENT_ID: string(),
AIDBOX_CLIENT_SECRET: string(),
APP_SECRET: string(),

AIDBOX_BASE_URL: string([url()]),
APP_PORT: transform(string(), (data) => {
const port = parseInt(data);
if (isNaN(port)) {
Expand All @@ -20,7 +22,6 @@ const envSchema = object({
}),
APP_URL: string([url()]),
APP_CALLBACK_URL: string(),
APP_SECRET: string(),
APP_ID: string(),
});

Expand Down
Loading

0 comments on commit 032bb47

Please sign in to comment.