From 431b14170f867f77f90779d4ff870d74c051c844 Mon Sep 17 00:00:00 2001 From: KGOH Date: Fri, 3 Sep 2021 18:39:01 +0200 Subject: [PATCH] Add sample zen project Co-authored-by: @ddegr --- .env | 4 ++++ docker-compose.yaml | 2 ++ my-zen-project/my-zen-devbox.edn | 10 ++++++++++ my-zen-project/package.json | 11 +++++++++++ 4 files changed, 27 insertions(+) create mode 100644 my-zen-project/my-zen-devbox.edn create mode 100644 my-zen-project/package.json diff --git a/.env b/.env index 0cb073c..bd01749 100644 --- a/.env +++ b/.env @@ -30,3 +30,7 @@ PGHOSTPORT=5437 PGUSER=postgres PGPASSWORD=postgres PGDATABASE=devbox + +AIDBOX_ZEN_PROJECT=/my-zen-project +AIDBOX_ZEN_ENTRY=my-zen-devbox +AIDBOX_ZEN_DEV_MODE=enable diff --git a/docker-compose.yaml b/docker-compose.yaml index bc1e826..bc9f824 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -30,6 +30,8 @@ services: AIDBOX_ES_BATCH_TIMEOUT: 5000 AIDBOX_ES_INDEX_PAT: "'aidbox-logs'-yyyy-MM-dd" ELASTIC_APM_SERVER_URLS: "http://apm-server:8200" + volumes: + - "./my-zen-project:/my-zen-project" es: image: "docker.elastic.co/elasticsearch/elasticsearch:7.13.2" diff --git a/my-zen-project/my-zen-devbox.edn b/my-zen-project/my-zen-devbox.edn new file mode 100644 index 0000000..aad0516 --- /dev/null +++ b/my-zen-project/my-zen-devbox.edn @@ -0,0 +1,10 @@ +{ns my-zen-devbox + import #{hl7-fhir-us-core.us-core-patient} + + MyPatientProfile + {:zen/tags #{zen/schema zenbox/profile-schema} + :confirms #{hl7-fhir-us-core.us-core-patient/schema} + :zenbox/type "Patient" + :zenbox/profileUri "urn:profile:MyPatientProfile" + :type zen/map + :require #{:birthDate}}} diff --git a/my-zen-project/package.json b/my-zen-project/package.json new file mode 100644 index 0000000..7f6f96b --- /dev/null +++ b/my-zen-project/package.json @@ -0,0 +1,11 @@ +{ + "name": "my-zen-project", + "version": "1.0.0", + "description": "Sample Aidbox Zen project", + "author": "HealthSamurai", + "license": "MIT", + "dependencies": { + "@zen-lang/fhir-r4": "latest", + "@zen-lang/us-core-v3": "latest" + } +}