From 656499685861af712daeb2ea36279eceae32d230 Mon Sep 17 00:00:00 2001 From: Rukshan Date: Tue, 30 Sep 2025 10:17:50 +0600 Subject: [PATCH 1/4] fix: :bug: fix reportedReference reference --- input/fsh/profile/BDMedicationRequest.fsh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/input/fsh/profile/BDMedicationRequest.fsh b/input/fsh/profile/BDMedicationRequest.fsh index e065fb5..0632d58 100644 --- a/input/fsh/profile/BDMedicationRequest.fsh +++ b/input/fsh/profile/BDMedicationRequest.fsh @@ -14,10 +14,9 @@ Description: "Profile of MedicationRequest Bangladesh Standard V2" // TODO: BDEncounter referencing * authoredOn 1..1 -* reported[x] 1..1 * requester 1..1 -* reported[x] only Reference(BDOrganization) or boolean +* reportedReference only Reference(BDPractitioner or BDOrganization or BDPatientProfile) * requester only Reference(BDPractitioner or BDOrganization) * priorPrescription only Reference(BDMedicationRequest) * basedOn only Reference(BDMedicationRequest or ServiceRequest or CarePlan or ImmunizationRecommendation) \ No newline at end of file From 8ddb780c4ec928abe9e913b6c0bc6638caff2342 Mon Sep 17 00:00:00 2001 From: jobayer Date: Tue, 30 Sep 2025 10:51:50 +0600 Subject: [PATCH 2/4] 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 3/4] 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 4/4] - --- 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