Skip to content

Commit

Permalink
add us-core-610 package
Browse files Browse the repository at this point in the history
Co-authored-by: @Panthevm <[email protected]>
  • Loading branch information
ApricotLace and Panthevm committed Sep 8, 2023
1 parent 16cb385 commit bec8ba3
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 1 deletion.
10 changes: 10 additions & 0 deletions .github/workflows/github-zen-packages-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
16 changes: 15 additions & 1 deletion bb.edn
Original file line number Diff line number Diff line change
Expand Up @@ -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]")}
Expand All @@ -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*]
Expand Down
12 changes: 12 additions & 0 deletions us-core-610/package.json
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit bec8ba3

Please sign in to comment.