Merge branch 'main' of https://git.dghs.gov.bd/gitadmin/BD-Core-FHIR-IG
Some checks failed
Deploy on production / deploy (push) Failing after 7s

This commit is contained in:
Fahim Hossain 2025-09-29 11:17:44 +06:00
commit 8891af2bd9
10 changed files with 262 additions and 171 deletions

View File

@ -0,0 +1,23 @@
name: Deploy on production
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy by SSH to production environment
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.PRODUCTION_SSH_HOST }}
username: ${{ secrets.PRODUCTION_SSH_USERNAME }}
password: ${{ secrets.PRODUCTION_SSH_PASSWORD }}
port: ${{ secrets.PRODUCTION_SSH_PORT }}
script: |
cd /home/mishealth/BD-Core-FHIR-IG
git pull origin main
docker run --rm -v $(pwd):/home/publisher/ig hl7fhir/ig-publisher-base:latest /home/publisher/ig/_genonce.sh
rsync -av output/ /var/www/html
sudo systemctl restart nginx

6
ig.ini
View File

@ -3,12 +3,7 @@
# 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: ###
@ -48,5 +43,6 @@ examples:
# 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

View File

@ -0,0 +1,201 @@
CodeSystem: BDCountryListCS
Id: bd-country-list-cs
Title: "Nationality List"
* ^url = "https://fhir.dghs.gov.bd/core/CodeSystem/bd-country-list"
* #4 "Afghan"
* #8 "Albanian"
* #12 "Algerian"
* #840 "American"
* #20 "Andorran"
* #24 "Angolan"
* #28 "Antiguans"
* #32 "Argentine"
* #51 "Armenian"
* #36 "Australian"
* #40 "Austrian"
* #31 "Azerbaijani"
* #44 "Bahamian"
* #48 "Bahraini"
* #50 "Bangladeshi"
* #52 "Barbadian"
* #112 "Belarusian"
* #56 "Belgian"
* #84 "Belizean"
* #204 "Beninese"
* #64 "Bhutanese"
* #68 "Bolivian"
* #70 "Bosnian"
* #76 "Brazilian"
* #826 "British (collective)"
* #96 "Bruneian"
* #100 "Bulgarian"
* #854 "Burkinabe"
* #108 "Burundian"
* #116 "Cambodian"
* #120 "Cameroonian"
* #124 "Canadian"
* #140 "Central African"
* #152 "Chilean"
* #156 "Chinese"
* #170 "Colombian"
* #174 "Comoran"
* #180 "Congolese"
* #178 "Congolese"
* #188 "Costa Rican"
* #191 "Croatian"
* #192 "Cuban"
* #196 "Cypriot"
* #203 "Czech"
* #208 "Danish"
* #262 "Djibouti"
* #212 "Dominican"
* #214 "Dominican"
* #528 "Dutch"
* #218 "Ecuadorean"
* #818 "Egyptian"
* #784 "Emirian"
* #226 "Equatorial Guinean"
* #232 "Eritrean"
* #233 "Estonian"
* #231 "Ethiopian"
* #242 "Fijian"
* #608 "Filipino"
* #246 "Finnish"
* #250 "French"
* #266 "Gabonese"
* #270 "Gambian"
* #268 "Georgian"
* #276 "German"
* #288 "Ghanaian"
* #300 "Greek"
* #308 "Grenadian"
* #320 "Guatemalan"
* #624 "Guinea-Bissauan"
* #324 "Guinean"
* #328 "Guyanese"
* #332 "Haitian"
* #340 "Honduran"
* #348 "Hungarian"
* #296 "I-Kiribati"
* #352 "Icelander"
* #356 "Indian"
* #360 "Indonesian"
* #364 "Iranian"
* #368 "Iraqi"
* #372 "Irish"
* #380 "Italian"
* #384 "Ivorian"
* #388 "Jamaican"
* #392 "Japanese"
* #400 "Jordanian"
* #398 "Kazakhstani"
* #404 "Kenyan"
* #659 "Kittian and Nevisian"
* #414 "Kuwaiti"
* #417 "Kyrgyz"
* #418 "Lao"
* #428 "Latvian"
* #422 "Lebanese"
* #430 "Liberian"
* #434 "Libyan"
* #438 "Liechtensteiner"
* #440 "Lithuanian"
* #442 "Luxembourger"
* #807 "Macedonian"
* #450 "Malagasy"
* #454 "Malawian"
* #458 "Malaysian"
* #462 "Maldivan"
* #466 "Malian"
* #470 "Maltese"
* #584 "Marshallese"
* #478 "Mauritanian"
* #480 "Mauritian"
* #484 "Mexican"
* #583 "Micronesian"
* #498 "Moldovan"
* #492 "Monegasque"
* #496 "Mongolian"
* #504 "Moroccan"
* #426 "Mosotho"
* #72 "Motswana"
* #508 "Mozambican"
* #104 "Myanmarese"
* #516 "Namibian"
* #520 "Nauruan"
* #524 "Nepalese"
* #554 "New Zealander"
* #548 "Ni-Vanuatu"
* #558 "Nicaraguan"
* #566 "Nigerian"
* #562 "Nigerien"
* #408 "North Korean"
* #578 "Norwegian"
* #512 "Omani"
* #586 "Pakistani"
* #585 "Palauan"
* #591 "Panamanian"
* #598 "Papua New Guinean"
* #600 "Paraguayan"
* #604 "Peruvian"
* #616 "Polish"
* #620 "Portuguese"
* #634 "Qatari"
* #642 "Romanian"
* #643 "Russian"
* #646 "Rwandan"
* #662 "Saint Lucian"
* #222 "Salvadoran"
* #674 "Sammarinese"
* #882 "Samoan"
* #678 "Sao Tomean"
* #682 "Saudi"
* #686 "Senegalese"
* #891 "Serbian"
* #690 "Seychellois"
* #694 "Sierra Leonean"
* #702 "Singaporean"
* #703 "Slovak"
* #705 "Slovene"
* #90 "Solomon Islander"
* #706 "Somali"
* #710 "South African"
* #410 "South Korean"
* #724 "Spanish"
* #144 "Sri Lankan"
* #736 "Sudanese"
* #740 "Surinamer"
* #748 "Swazi"
* #752 "Swedish"
* #756 "Swiss"
* #760 "Syrian"
* #158 "Taiwanese"
* #762 "Tajik"
* #834 "Tanzanian"
* #764 "Thai"
* #768 "Togolese"
* #776 "Tongan"
* #780 "Trinidadian"
* #788 "Tunisian"
* #792 "Turkish"
* #795 "Turkmen(s)"
* #798 "Tuvaluan"
* #800 "Ugandan"
* #804 "Ukrainian"
* #858 "Uruguayan"
* #860 "Uzbek"
* #862 "Venezuelan"
* #132 "Verdian"
* #704 "Vietnamese"
* #887 "Yemeni"
* #894 "Zambian"
* #716 "Zimbabwean"
ValueSet: BDCountryListVS
Id: bd-country-list-vs
Title: "Nationality ValueSet"
Description: "Nationality value set"
* ^url = "https://fhir.dghs.gov.bd/core/ValueSet/bd-country-list"
* include codes from system https://fhir.dghs.gov.bd/core/CodeSystem/bd-country-list

View File

@ -1,4 +1,4 @@
CodeSystem: bd-occupations
CodeSystem: BDOccupationsCS
Id: bangladesh-occupations-cs
Title: "Bangladesh Occupations"
* ^url = "https://fhir.dghs.gov.bd/core/CodeSystem/bd-occupations"
@ -75,7 +75,7 @@ Title: "Bangladesh Occupations"
* #91 "Paper and Paperboard Products Workers" "কাগজ ও কাগজের বোর্ড প্রস্তুতকারী "
* #92 "Printers and Related Workers" "মুদ্রণকাজ"
ValueSet: bd-occupations
ValueSet: BDOccupationsVS
Id: bd-occupations-vs
Title: "Bangladesh Occupations ValueSet"
Description: "Occupations value set according to CCDS guideline"

View File

@ -1,5 +1,5 @@
//codeSystems/bd-regions.fsh
CodeSystem: bd-religions
CodeSystem: BDReligionsCS
Id: bangladesh-religions-cs
Title: "Bangladesh Religions"
* ^url = "https://fhir.dghs.gov.bd/core/CodeSystem/bd-religions"
@ -12,7 +12,7 @@ Title: "Bangladesh Religions"
* #9 "Not a believer" "Identifies as not having a religion"
* #0 "Other (specify)" "Other religion (to be specified in free text)"
ValueSet: bd-religions
ValueSet: BDReligionsVS
Id: bd-religions-vs
Title: "Bangladesh Religions ValueSet"
Description: "Religions value set according to CCDS guideline"

View File

@ -3,18 +3,19 @@
CodeSystem: BangladeshIdentifierType
Id: bangladesh-identifier-type-cs
Title: "Bangladesh Identifier Types"
* ^url = "https://fhir.dghs.gov.bd/core/ValueSet/bd-identifier-type"
* ^url = "https://fhir.dghs.gov.bd/core/CodeSystem/bd-identifier-type"
* #TYPE_NID "National ID"
* #TYPE_BRN "Birth Registration Number"
* #TYPE_UID "Unique ID"
* #NID "National ID"
* #BRN "Birth Registration Number"
* #UID "Unique ID"
ValueSet: BangladeshIdentifierTypeVS
Id: bangladesh-identifier-type-vs
Title: "Bangladesh Identifier Type"
Description: "Bangladesh Standard Identifier type"
* ^url = "https://fhir.dghs.gov.bd/core/ValueSet/bd-identifier-type"
// * include codes from valueset http://hl7.org/fhir/ValueSet/identifier-type /// use name or uri
* include codes from system https://fhir.dghs.gov.bd/core/ValueSet/bd-identifier-type
* include codes from system https://fhir.dghs.gov.bd/core/CodeSystem/bd-identifier-type
////////////// end identifier types

View File

@ -1,7 +1,7 @@
// ---------------------------
// Extension Definition
// ---------------------------
Extension: bdbloodgroup
Extension: BDBloodGroup
Id: bd-blood-group
Title: "Patient Blood Group"
Description: "Blood group of the patient according to CCDS guideline"

View File

@ -1,147 +1,4 @@
Extension: Nationality
Id: Nationality
Title: "patientNationality"
Id: nationality
Title: "patient Nationality"
Description: "Nationality"
* valueCodeableConcept 1..*
* #Aaland Islands ""
* #Afghanistan "Afghan"
* #Albania "Albanian"
* #Algeria "Algerian"
* #Samoa ""
* #Andorra "Andorran"
* #Angola "Angolan"
* #Anguilla ""
* #Antarctica ""
* #Antigua & Barbuda "Antiguans"
* #Argentina "Argentine"
* #Armenia "Armenian"
* #Aruba ""
* #Australia "Australian"
* #Austria "Austrian"
* #Azerbaijan "Azerbaijani"
* #Bahamas "Bahamian"
* #Bahrain "Bahraini"
* #Bangladesh "Bangladeshi"
* #Barbados "Barbadian"
* #Belarus "Belarusian"
* #Belgium "Belgian"
* #Belize "Belizean"
* #Benin "Beninese"
* #Bermuda ""
* #Bhutan "Bhutanese"
* #Bolivia "Bolivian"
* #Bosnia & Herzegovina "Bosnian"
* #Botswana "Motswana"
* #Bouvet Island ""
* #Brazil "Brazilian"
* #British Indian Ocean Territory ""
* #Brunei Darussalam "Bruneian"
* #Bulgaria "Bulgarian"
* #Burkina Faso "Burkinabe"
* #Burundi "Burundian"
* #Cambodia "Cambodian"
* #Cameroon "Cameroonian"
* #Canada "Canadian"
* #Cape Verde "Verdian"
* #Cayman Islands ""
* #Central African Republic "Central African"
* #Mali ""
* #Chile "Chilean"
* #China "Chinese"
* #Christmas Island ""
* #Cocos (Keeling) Islands ""
* #Colombia "Colombian"
* #Comoros "Comoran"
* #Congo, Democratic Republic "Congolese"
* #Congo, Republic of "Congolese"
* #Cook Islands ""
* #Costa Rica "Costa Rican"
* #Cte d'Ivoire "Ivorian"
* #Croatia (local name: Hrvatska) "Croatian"
* #Cuba "Cuban"
* #Cyprus "Cypriot"
* #Czech Republic "Czech"
* #Denmark "Danish"
* #Djibouti "Djibouti"
* #Dominica "Dominican"
* #Dominican Republic "Dominican"
* #Ecuador "Ecuadorean"
* #Egypt "Egyptian"
* #El Salvador "Salvadoran"
* #Equatorial Guinea "Equatorial Guinean"
* #Eritrea "Eritrean"
* #Estonia "Estonian"
* #Ethiopia "Ethiopian"
* #Falkland Islands (Malvinas) ""
* #Faroe Islands ""
* #Fiji "Fijian"
* #Finland "Finnish"
* #France "French"
* #French Guiana ""
* #French Polynesia ""
* #Franch Southern Territories ""
* #Gabon "Gabonese"
* #Gambia "Gambian"
* #Georgia "Georgian"
* #Germany "German"
* #Ghana "Ghanaian"
* #Gibraltar ""
* #Greece "Greek"
* #Greenland ""
* #Grenada "Grenadian"
* #Guadeloupe ""
* #Guam ""
* #Guatemala "Guatemalan"
* #Guinea "Guinean"
* #Guinea-Bissau "Guinea-Bissauan"
* #Guyana "Guyanese"
* #Haiti "Haitian"
* #Heard & McDonald Islands ""
* #Honduras "Honduran"
* #Hong Kong ""
* #Hungary "Hungarian"
* #Iceland "Icelander"
* #India "Indian"
* #Indonesia "Indonesian"
* #Iran "Iranian"
* #Iraq "Iraqi"
* #Ireland "Irish"
* #Italy "Italian"
* #Jamaica "Jamaican"
* #Japan "Japanese"
* #Jordan "Jordanian"
* #Kazakhstan "Kazakhstani"
* #Kenya "Kenyan"
* #Kiribati "I-Kiribati"
* #Korea, Democratic People's Republic "North Korean"
* #Korea "South Korean"
* #Kuwait "Kuwaiti"
* #Krygyzstan "Kyrgyz"
* #Laos "Lao"
* #Latvia "Latvian"
* #Lebanon "Lebanese"
* #Lesotho "Mosotho"
* #Liberia "Liberian"
* #Libya "Libyan"
* #Liechtenstein "Liechtensteiner"
* #Lithuania "Lithuanian"
* #Luxembourg "Luxembourger"
* #Macau ""
* #Macedonia "Macedonian"
* #Madagascar "Malagasy"
* #Malawi "Malawian"
* #Malaysia "Malaysian"
* #Maldives "Maldivan"
* #Mali "Malian"
* #Malta "Maltese"
* #Marshall Islands "Marshallese"
* #Martinique ""
* #Mauritania "Mauritanian"
* #Mauritius "Mauritian"
* #Mayott ""
* #Mexico "Mexican"
* #Micronesia "Micronesian"
* #Moldova "Moldovan"
* #Monaco "Monegasque"
* #Mongolia "Mongolian"

View File

@ -1,4 +1,4 @@
Extension: occupation
Extension: Occupation
Description: "Occupation"
Id: occupation-bd
Title: "Bangladesh Occupations"

View File

@ -1,11 +1,10 @@
// @Name: Profile
// @Description: Example of a profile of the Patient resource. This example includes a few of the most commonly used constraints and documentation features of FHIR profiles.
Profile: BDPatientProfile
Id: bd-patient
Parent: Patient
Title: "Patient Profile for Bangladesh"
Description: "Profile of Patient Bangladesh Standard"
Title: "Patient Profile for Bangladesh-V2"
Description: "Profile of Patient Bangladesh Standard V2"
// ----- Begin rules:
@ -54,7 +53,8 @@ Description: "Profile of Patient Bangladesh Standard"
* identifier[NID].system = "http://dghs.gov.bd/identifier/nid"
* identifier[NID].type.coding.code = #NID
* identifier[NID].type.coding.system = "http://terminology.hl7.org/CodeSystem/v2-0203"
// * identifier[NID].type.coding.system = "http://terminology.hl7.org/CodeSystem/v2-0203"
* identifier[NID].type.coding.system = "https://fhir.dghs.gov.bd/core/ValueSet/bd-identifier-type"
* identifier[NID].type from BangladeshIdentifierTypeVS (extensible)
* identifier[NID].type.text = "Organization identifier"
// * identifier[NID].value = "Personal identifier National ID"
@ -64,7 +64,7 @@ Description: "Profile of Patient Bangladesh Standard"
* identifier[BRN].system = "http://dghs.gov.bd/identifier/brn"
* identifier[BRN].type.coding.code = #BRN
* identifier[BRN].type.coding.system = "http://terminology.hl7.org/CodeSystem/v2-0203"
* identifier[BRN].type.coding.system = "https://fhir.dghs.gov.bd/core/ValueSet/bd-identifier-type"
* identifier[BRN].type from BangladeshIdentifierTypeVS (extensible)
* identifier[BRN].type.text = "Organization identifier"
// * identifier[BRN].value = "Personal identifier Birth Registration"
@ -72,7 +72,7 @@ Description: "Profile of Patient Bangladesh Standard"
* identifier[UID].system = "http://dghs.gov.bd/identifier/uid"
* identifier[UID].type.coding.code = #UID
* identifier[UID].type.coding.system = "http://terminology.hl7.org/CodeSystem/v2-0203"
* identifier[UID].type.coding.system = "https://fhir.dghs.gov.bd/core/ValueSet/bd-identifier-type"
* identifier[UID].type from BangladeshIdentifierTypeVS (extensible)
* identifier[UID].type.text = "Organization identifier"
// * identifier[UID].value = "Personal identifier"
@ -105,4 +105,17 @@ Description: "Profile of Patient Bangladesh Standard"
* address 1..* MS
* address only BDAddress
* extension contains occupation named occupation 0..1
* name only BDHumanName
Profile: BDHumanName
Id: bd-human-name
Parent: HumanName
Title: "BD Human Name"
Description: "Profile to represent human names in Bangladesh"
* extension contains http://hl7.org/fhir/StructureDefinition/language named language
0..1
* extension[language].valueCode from http://hl7.org/fhir/ValueSet/languages (preferred)
* extension contains Occupation named occupation 0..1
* extension contains nationality named nationality 1..1