From bec8ba3c8c587f9fad556747c910df46c87b99cf Mon Sep 17 00:00:00 2001 From: Evgeny Mukha Date: Fri, 8 Sep 2023 14:34:12 +0200 Subject: [PATCH] add us-core-610 package Co-authored-by: @Panthevm --- .../workflows/github-zen-packages-release.yml | 10 ++++++++++ bb.edn | 16 +++++++++++++++- us-core-610/package.json | 12 ++++++++++++ 3 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 us-core-610/package.json diff --git a/.github/workflows/github-zen-packages-release.yml b/.github/workflows/github-zen-packages-release.yml index b8281f6..f1161cb 100644 --- a/.github/workflows/github-zen-packages-release.yml +++ b/.github/workflows/github-zen-packages-release.yml @@ -67,6 +67,16 @@ jobs: - name: cleanup r4.terminology from r4b to avoid clashes run: rm -rf zen-packages/hl7-terminology-r4 + - run: bb zen-profiles-packages "release.txt" "us-core-610/" "zen-packages/" + name: Generate & release us-core610 + env: + ZEN_FHIR_RELEASE_GITHUB_USER: ${{ secrets.ZEN_FHIR_RELEASE_GITHUB_USER }} + ZEN_FHIR_RELEASE_GITHUB_TOKEN: ${{ secrets.ZEN_FHIR_RELEASE_GITHUB_TOKEN }} + ZEN_FHIR_RELEASE_GITHUB_ORG: ${{ secrets.ZEN_FHIR_RELEASE_GITHUB_ORG }} + + - name: cleanup after us-core601 build + run: rm -rf zen-packages/hl7.fhir.r4.core zen-packages/hl7.fhir.uv.bulkdata zen-packages/us.nlm.vsac zen-packages/hl7.fhir.uv.sdc + - run: bb zen-profiles-packages "release.txt" "node_modules/" "zen-packages/" name: Generate & release npm Zen packages env: diff --git a/bb.edn b/bb.edn index be001e2..fafd197 100644 --- a/bb.edn +++ b/bb.edn @@ -111,7 +111,7 @@ kbv-basis-patch {:task (shell "cp resources/KBV_PR_Base_Patient.json node_modules/kbv.basis/KBV_PR_Base_Patient.json")} - init {:depends [set-zen-fhir-version set-zen-fhir-lib-version install-npm kbv-basis-patch pull-nz-igs pull-r4b pull-r5 pull-au-igs pull-chile-igs]} + init {:depends [set-zen-fhir-version set-zen-fhir-lib-version install-npm kbv-basis-patch pull-nz-igs pull-r4b pull-r5 pull-au-igs pull-chile-igs build-us-core-601]} repl {:depends [set-zen-fhir-version set-zen-fhir-lib-version] :task (clojure "-M:test:nrepl -m nrepl.cmdline --middleware [cider.nrepl/cider-middleware]")} @@ -138,6 +138,20 @@ true)] (run 'build-stanadlone-projects)) + build-us-core-601 {:task (do + (shell {:dir "us-core-610"} "npm --registry=https://packages.simplifier.net install") + (shell {:dir "us-core-610"} "npm --registry=https://packages.simplifier.net install") + (let [root-manifest-file (io/file "us-core-610/package.json") + root-manifest-deps (:dependencies (json/parse-string (slurp root-manifest-file) keyword)) + us-core-manifest-file (io/file "us-core-610/node_modules/hl7.fhir.us.core/package.json") + updated-manifest (assoc (json/parse-string (slurp us-core-manifest-file) keyword) + :name "hl7.fhir.us.core610" + :dependencies (dissoc root-manifest-deps :hl7.fhir.us.core)) + _ (spit us-core-manifest-file (json/generate-string updated-manifest)) + _ (.renameTo + ^File (io/file "us-core-610/node_modules/hl7.fhir.us.core") + (io/file "us-core-610/node_modules/hl7.fhir.us.core610"))]))} + build (clojure "-X:build all") zen-profiles (let [[node-modules zrc ver package] *command-line-args*] diff --git a/us-core-610/package.json b/us-core-610/package.json new file mode 100644 index 0000000..44af3c1 --- /dev/null +++ b/us-core-610/package.json @@ -0,0 +1,12 @@ +{ + "dependencies" : { + "hl7.fhir.us.core" : "6.1.0", + "hl7.fhir.r4.core" : "4.0.1", + "hl7.fhir.uv.bulkdata" : "2.0.0", + "hl7.fhir.uv.smart-app-launch" : "2.1.0", + "us.nlm.vsac" : "0.7.0", + "hl7.fhir.uv.sdc" : "3.0.0", + "us.cdc.phinvads" : "0.12.0", + "ihe.formatcode.fhir" : "1.1.0" + } +}