From 8ddb780c4ec928abe9e913b6c0bc6638caff2342 Mon Sep 17 00:00:00 2001 From: jobayer Date: Tue, 30 Sep 2025 10:51:50 +0600 Subject: [PATCH 1/9] Update ig.ini to uncomment template paths and adjust output documentation --- ig.ini | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ig.ini b/ig.ini index dca5267..432e5ff 100644 --- a/ig.ini +++ b/ig.ini @@ -3,7 +3,10 @@ # see comments below for instructions ig = input/myig.xml +#template = fhir.base.template#current template = #bd-national-template +#template = D:\Git\templates\ig-template-base +#template = #local-template ########################## ### ig.ini parameters: ### @@ -42,7 +45,4 @@ examples: # https://confluence.hl7.org/display/FHIR/Implementation+Guide+Parameters # for more documentation on implementation guides and templates, see the FHIR Guidance ImplementationGuide -# http://build.fhir.org/ig/FHIR/ig-guidance -output = /var/www/html - - +# http://build.fhir.org/ig/FHIR/ig-guidance \ No newline at end of file From 455fd529c41111b73be36a4b4e44a56ee4402255 Mon Sep 17 00:00:00 2001 From: jobayer Date: Tue, 30 Sep 2025 11:02:02 +0600 Subject: [PATCH 2/9] fix: :bug: install fsh-sushi in Docker container before building FHIR IG --- .gitea/workflows/ci-cd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index 58170fc..ba8c263 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -39,7 +39,7 @@ jobs: # Create a container (don't start yet) CONTAINER_ID=$(docker create \ hl7fhir/ig-publisher-base:latest \ - /bin/bash -c "cp -r /home/publisher/ig /tmp/build && cd /tmp/build && _updatePublisher.sh -y && _genonce.sh") + /bin/bash -c "npm install -g fsh-sushi && cp -r /home/publisher/ig /tmp/build && cd /tmp/build && _updatePublisher.sh -y && _genonce.sh") echo "Container ID: $CONTAINER_ID" From 581e3a70ba976f9b729cb072a179013c5872c715 Mon Sep 17 00:00:00 2001 From: jobayer Date: Tue, 30 Sep 2025 11:07:07 +0600 Subject: [PATCH 3/9] - --- Dockerfile.serve | 3 ++- ig.ini | 5 ++++- sushi-config.yaml | 36 ++++++++++++++++++------------------ 3 files changed, 24 insertions(+), 20 deletions(-) diff --git a/Dockerfile.serve b/Dockerfile.serve index 26d6268..15a3a00 100644 --- a/Dockerfile.serve +++ b/Dockerfile.serve @@ -38,4 +38,5 @@ EXPOSE 80 # Start Nginx in foreground # CMD ["nginx", "-g", "daemon off;"] -CMD ["nginx", "-g", "daemon off;", "-c", "/etc/nginx/nginx.conf"] \ No newline at end of file +CMD ["nginx", "-g", "daemon off;", "-c", "/etc/nginx/nginx.conf"] + diff --git a/ig.ini b/ig.ini index d12465b..9c16c24 100644 --- a/ig.ini +++ b/ig.ini @@ -41,4 +41,7 @@ examples: # other parameters are defined in the ImplementationGuide resource: -# https://confluence.hl7.org/display/FHIR/Implementation+Guide+Parameters \ No newline at end of file +# https://confluence.hl7.org/display/FHIR/Implementation+Guide+Parameters + +# for more documentation on implementation guides and templates, see the FHIR Guidance ImplementationGuide +# http://build.fhir.org/ig/FHIR/ig-guidance \ No newline at end of file diff --git a/sushi-config.yaml b/sushi-config.yaml index 0e5f08d..6df7cf0 100644 --- a/sushi-config.yaml +++ b/sushi-config.yaml @@ -1,19 +1,19 @@ -# id: bd.fhir.core -# canonical: https://fhir.dghs.gov.bd/core -# name: BangladeshCoreFHIRIG -# title: Bangladesh Core FHIR Implementation Guide -# description: > -# This Implementation Guide defines the Bangladesh Core FHIR profiles, -# value sets, code systems, and implementation rules for national digital health systems. -# status: draft -# version: 0.2.0 -# fhirVersion: 4.0.1 -# copyrightYear: 2025+ -# releaseLabel: CI Build +id: bd.fhir.core +canonical: https://fhir.dghs.gov.bd/core +name: BangladeshCoreFHIRIG +title: Bangladesh Core FHIR Implementation Guide +description: > + This Implementation Guide defines the Bangladesh Core FHIR profiles, + value sets, code systems, and implementation rules for national digital health systems. +status: draft +version: 0.2.0 +fhirVersion: 4.0.1 +copyrightYear: 2025+ +releaseLabel: CI Build FSHOnly: true -# publisher: -# name: Directorate General of Health Services (DGHS), Bangladesh -# url: https://dghs.gov.bd -# parameters: -# logo: assets/images/001.svg -# show-in-header: true \ No newline at end of file +publisher: + name: Directorate General of Health Services (DGHS), Bangladesh + url: https://dghs.gov.bd +parameters: + logo: assets/images/001.svg + show-in-header: true \ No newline at end of file From 67d74244b3d6dead4fa91f0eea68fe0605ddfa78 Mon Sep 17 00:00:00 2001 From: jobayer Date: Tue, 30 Sep 2025 11:39:17 +0600 Subject: [PATCH 4/9] - --- .gitea/workflows/ci-cd.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index ba8c263..2101694 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -39,7 +39,11 @@ jobs: # Create a container (don't start yet) CONTAINER_ID=$(docker create \ hl7fhir/ig-publisher-base:latest \ - /bin/bash -c "npm install -g fsh-sushi && cp -r /home/publisher/ig /tmp/build && cd /tmp/build && _updatePublisher.sh -y && _genonce.sh") + /bin/bash -c "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash" \ + /bin/bash -c "\. "$HOME/.nvm/nvm.sh"" \ + /bin/bash -c "nvm install 22" \ + /bin/bash -c "npm install -g fsh-sushi" \ + /bin/bash -c "cp -r /home/publisher/ig /tmp/build && cd /tmp/build && _updatePublisher.sh -y && _genonce.sh") echo "Container ID: $CONTAINER_ID" From 077877ec80e5bf2b4c55380656f227199a4aa56c Mon Sep 17 00:00:00 2001 From: jobayer Date: Tue, 30 Sep 2025 11:53:36 +0600 Subject: [PATCH 5/9] - --- .gitea/workflows/ci-cd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index 2101694..d3e4da4 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -40,7 +40,7 @@ jobs: CONTAINER_ID=$(docker create \ hl7fhir/ig-publisher-base:latest \ /bin/bash -c "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash" \ - /bin/bash -c "\. "$HOME/.nvm/nvm.sh"" \ + /bin/bash -c "\. '$HOME/.nvm/nvm.sh'" \ /bin/bash -c "nvm install 22" \ /bin/bash -c "npm install -g fsh-sushi" \ /bin/bash -c "cp -r /home/publisher/ig /tmp/build && cd /tmp/build && _updatePublisher.sh -y && _genonce.sh") From 2df304d85e27323314c6cdabaa3959b8c7319ada Mon Sep 17 00:00:00 2001 From: jobayer Date: Tue, 30 Sep 2025 11:56:36 +0600 Subject: [PATCH 6/9] - --- .gitea/workflows/ci-cd.yaml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index d3e4da4..2d60b55 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -37,14 +37,23 @@ jobs: echo "Building FHIR IG using copy approach..." # Create a container (don't start yet) + # CONTAINER_ID=$(docker create \ + # hl7fhir/ig-publisher-base:latest \ + # /bin/bash -c "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash" \ + # /bin/bash -c "\. '$HOME/.nvm/nvm.sh'" \ + # /bin/bash -c "nvm install 22" \ + # /bin/bash -c "npm install -g fsh-sushi" \ + # /bin/bash -c "cp -r /home/publisher/ig /tmp/build && cd /tmp/build && _updatePublisher.sh -y && _genonce.sh") + CONTAINER_ID=$(docker create \ hl7fhir/ig-publisher-base:latest \ - /bin/bash -c "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash" \ - /bin/bash -c "\. '$HOME/.nvm/nvm.sh'" \ - /bin/bash -c "nvm install 22" \ - /bin/bash -c "npm install -g fsh-sushi" \ - /bin/bash -c "cp -r /home/publisher/ig /tmp/build && cd /tmp/build && _updatePublisher.sh -y && _genonce.sh") - + /bin/bash -c "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash && \ + . \$HOME/.nvm/nvm.sh && \ + nvm install 22 && \ + npm install -g fsh-sushi && \ + cp -r /home/publisher/ig /tmp/build && cd /tmp/build && _updatePublisher.sh -y && _genonce.sh") + + echo "Container ID: $CONTAINER_ID" # Copy all source files into the container From 1db5c0edf7651675fbf6aedb8a0453c10bbadb48 Mon Sep 17 00:00:00 2001 From: jobayer Date: Tue, 30 Sep 2025 12:04:31 +0600 Subject: [PATCH 7/9] - --- .gitea/workflows/ci-cd.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index 2d60b55..168e2d8 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -48,6 +48,7 @@ jobs: CONTAINER_ID=$(docker create \ hl7fhir/ig-publisher-base:latest \ /bin/bash -c "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash && \ + nvm use --delete-prefix v***.20.0 && \ . \$HOME/.nvm/nvm.sh && \ nvm install 22 && \ npm install -g fsh-sushi && \ From ce894013c560b8085601538f69c16452b163c909 Mon Sep 17 00:00:00 2001 From: jobayer Date: Tue, 30 Sep 2025 12:06:49 +0600 Subject: [PATCH 8/9] - --- .gitea/workflows/ci-cd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index 168e2d8..16a60b8 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -48,8 +48,8 @@ jobs: CONTAINER_ID=$(docker create \ hl7fhir/ig-publisher-base:latest \ /bin/bash -c "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash && \ - nvm use --delete-prefix v***.20.0 && \ . \$HOME/.nvm/nvm.sh && \ + nvm use --delete-prefix v***.20.0 && \ nvm install 22 && \ npm install -g fsh-sushi && \ cp -r /home/publisher/ig /tmp/build && cd /tmp/build && _updatePublisher.sh -y && _genonce.sh") From fb43708aebb9fd6c770a15cb0a63e58504a8da3a Mon Sep 17 00:00:00 2001 From: jobayer Date: Tue, 30 Sep 2025 12:12:42 +0600 Subject: [PATCH 9/9] - --- .gitea/workflows/ci-cd.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index 16a60b8..bd3e611 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -49,8 +49,7 @@ jobs: hl7fhir/ig-publisher-base:latest \ /bin/bash -c "curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash && \ . \$HOME/.nvm/nvm.sh && \ - nvm use --delete-prefix v***.20.0 && \ - nvm install 22 && \ + nvm install 22 --delete-prefix && \ npm install -g fsh-sushi && \ cp -r /home/publisher/ig /tmp/build && cd /tmp/build && _updatePublisher.sh -y && _genonce.sh")