diff --git a/bd-national-template/includes/template-page-md.html b/bd-national-template/includes/template-page-md.html index d244ecb..4d456ae 100644 --- a/bd-national-template/includes/template-page-md.html +++ b/bd-national-template/includes/template-page-md.html @@ -7,7 +7,7 @@ h5:before{color:silver;counter-increment:detail;content:var(--heading-prefix) ". h6:before{color:silver;counter-increment:more-detail;content:var(--heading-prefix) "." counter(sub-section) "." counter(composite) "." counter(detail) "." counter(more-detail)" ";}
-

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare (v0.2.0). See the Directory of published versions

+

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare. See the Directory of published versions

{{site.data.pages[page.path].title | escape_once}}

{% assign path = page.path | split: '.html' %} diff --git a/bd-national-template/includes/template-page.html b/bd-national-template/includes/template-page.html index 7c77e25..464704d 100644 --- a/bd-national-template/includes/template-page.html +++ b/bd-national-template/includes/template-page.html @@ -7,7 +7,7 @@ h5:before{color:silver;counter-increment:detail;content:var(--heading-prefix) ". h6:before{color:silver;counter-increment:more-detail;content:var(--heading-prefix) "." counter(sub-section) "." counter(composite) "." counter(detail) "." counter(more-detail)" ";}
-

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare (v0.2.0). See the Directory of published versions

+

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare. See the Directory of published versions

{{site.data.pages[page.path].title | escape_once}}

{% if page.path == 'index.html' %} {% include fragment-igTable.html %} diff --git a/bd-national-template/layouts/layout-canonical-testing.html b/bd-national-template/layouts/layout-canonical-testing.html index b2c6a8a..2c1daab 100644 --- a/bd-national-template/layouts/layout-canonical-testing.html +++ b/bd-national-template/layouts/layout-canonical-testing.html @@ -2,7 +2,7 @@ --- {% include fragment-pagebegin.html %}
-

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare (v0.2.0). See the Directory of published versions

+

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare. See the Directory of published versions

{% include fragment-base-navtabs.html type='{{[type]}}' id='{{[id]}}' active='testing' %}

{{[type]}}: {{site.data.pages[page.path].title | escape_once}} diff --git a/bd-national-template/layouts/layout-canonical.html b/bd-national-template/layouts/layout-canonical.html index 9f05850..b08af5b 100644 --- a/bd-national-template/layouts/layout-canonical.html +++ b/bd-national-template/layouts/layout-canonical.html @@ -2,7 +2,7 @@ --- {% include fragment-pagebegin.html %}
-

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare (v0.2.0). See the Directory of published versions

+

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare. See the Directory of published versions

{% include fragment-base-navtabs.html type='{{[type]}}' id='{{[id]}}' active='content' %} diff --git a/bd-national-template/layouts/layout-changehistory.html b/bd-national-template/layouts/layout-changehistory.html index 22dd7a5..ede4546 100644 --- a/bd-national-template/layouts/layout-changehistory.html +++ b/bd-national-template/layouts/layout-changehistory.html @@ -7,7 +7,7 @@ {% include fragment-pagebegin.html %}
-

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare (v0.2.0). See the Directory of published versions

+

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare. See the Directory of published versions

{% include fragment-base-navtabs.html type='{{[type]}}' id='{{[id]}}' active='history' %} diff --git a/bd-national-template/layouts/layout-codesystem.html b/bd-national-template/layouts/layout-codesystem.html index 7f330a3..2e84ba6 100644 --- a/bd-national-template/layouts/layout-codesystem.html +++ b/bd-national-template/layouts/layout-codesystem.html @@ -2,7 +2,7 @@ --- {% include fragment-pagebegin.html %}
-

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare (v0.2.0). See the Directory of published versions

+

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare. See the Directory of published versions

{% include fragment-base-navtabs.html type='{{[type]}}' id='{{[id]}}' active='content' %}

CodeSystem: {{site.data.pages[page.path].title | escape_once}} diff --git a/bd-national-template/layouts/layout-examplescenario.html b/bd-national-template/layouts/layout-examplescenario.html index 3abddd5..789b55b 100644 --- a/bd-national-template/layouts/layout-examplescenario.html +++ b/bd-national-template/layouts/layout-examplescenario.html @@ -2,7 +2,7 @@ --- {% include fragment-pagebegin.html %}
-

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare (v0.2.0). See the Directory of published versions

+

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare. See the Directory of published versions

{% include fragment-base-navtabs.html type='{{[type]}}' id='{{[id]}}' active='content' %} diff --git a/bd-national-template/layouts/layout-ext.html b/bd-national-template/layouts/layout-ext.html index 52d17ef..8f7e34e 100644 --- a/bd-national-template/layouts/layout-ext.html +++ b/bd-national-template/layouts/layout-ext.html @@ -2,7 +2,7 @@ --- {% include fragment-pagebegin.html %}
-

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare (v0.2.0). See the Directory of published versions

+

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare. See the Directory of published versions

{% include fragment-profile-navtabs.html type='{{[type]}}' id='{{[id]}}' active='content' %}

Extension: {{site.data.pages[page.path].title | escape_once}} diff --git a/bd-national-template/layouts/layout-instance-base.html b/bd-national-template/layouts/layout-instance-base.html index 32cab65..ae341a3 100644 --- a/bd-national-template/layouts/layout-instance-base.html +++ b/bd-national-template/layouts/layout-instance-base.html @@ -2,7 +2,7 @@ --- {% include fragment-pagebegin.html %}
-

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare (v0.2.0). See the Directory of published versions

+

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare. See the Directory of published versions

{% include fragment-base-navtabs.html type='{{[type]}}' id='{{[id]}}' active='content' %} diff --git a/bd-national-template/layouts/layout-instance-format.html b/bd-national-template/layouts/layout-instance-format.html index 82d8dda..0bb72a3 100644 --- a/bd-national-template/layouts/layout-instance-format.html +++ b/bd-national-template/layouts/layout-instance-format.html @@ -11,7 +11,7 @@ {% include fragment-pagebegin.html %}
-

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare (v0.2.0). See the Directory of published versions

+

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare. See the Directory of published versions

{% include fragment-base-navtabs.html type='{{[type]}}' id='{{[id]}}' active='{{[fmt]}}' %} diff --git a/bd-national-template/layouts/layout-profile-definitions.html b/bd-national-template/layouts/layout-profile-definitions.html index fd4d6fc..b94fc6f 100644 --- a/bd-national-template/layouts/layout-profile-definitions.html +++ b/bd-national-template/layouts/layout-profile-definitions.html @@ -5,7 +5,7 @@ {% include fragment-pagebegin.html %}
-

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare (v0.2.0). See the Directory of published versions

+

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare. See the Directory of published versions

{% include fragment-profile-navtabs.html type='{{[type]}}' id='{{[id]}}' active='definition' %} diff --git a/bd-national-template/layouts/layout-profile-examples.html b/bd-national-template/layouts/layout-profile-examples.html index c661686..a2780fa 100644 --- a/bd-national-template/layouts/layout-profile-examples.html +++ b/bd-national-template/layouts/layout-profile-examples.html @@ -5,7 +5,7 @@ {% include fragment-pagebegin.html %}
-

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare (v0.2.0). See the Directory of published versions

+

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare. See the Directory of published versions

{% include fragment-profile-navtabs.html type='{{[type]}}' id='{{[id]}}' active='example' %} diff --git a/bd-national-template/layouts/layout-profile-format.html b/bd-national-template/layouts/layout-profile-format.html index c7d07e4..8452177 100644 --- a/bd-national-template/layouts/layout-profile-format.html +++ b/bd-national-template/layouts/layout-profile-format.html @@ -15,7 +15,7 @@ {% include fragment-pagebegin.html %}
-

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare (v0.2.0). See the Directory of published versions

+

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare. See the Directory of published versions

{% include fragment-profile-navtabs.html type='{{[type]}}' id='{{[id]}}' active=format %} diff --git a/bd-national-template/layouts/layout-profile-history.html b/bd-national-template/layouts/layout-profile-history.html index 4cce294..6ffea23 100644 --- a/bd-national-template/layouts/layout-profile-history.html +++ b/bd-national-template/layouts/layout-profile-history.html @@ -6,7 +6,7 @@ {% include fragment-pagebegin.html %}
-

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare (v0.2.0). See the Directory of published versions

+

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare. See the Directory of published versions

{% include fragment-profile-navtabs.html type='{{[type]}}' id='{{[id]}}' active='history' %} diff --git a/bd-national-template/layouts/layout-profile-mappings.html b/bd-national-template/layouts/layout-profile-mappings.html index 7c52c69..762b9be 100644 --- a/bd-national-template/layouts/layout-profile-mappings.html +++ b/bd-national-template/layouts/layout-profile-mappings.html @@ -5,7 +5,7 @@ {% include fragment-pagebegin.html %}
-

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare (v0.2.0). See the Directory of published versions

+

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare. See the Directory of published versions

{% include fragment-profile-navtabs.html type='{{[type]}}' id='{{[id]}}' active='mapping' %} diff --git a/bd-national-template/layouts/layout-profile-testing.html b/bd-national-template/layouts/layout-profile-testing.html index a17e44f..269b802 100644 --- a/bd-national-template/layouts/layout-profile-testing.html +++ b/bd-national-template/layouts/layout-profile-testing.html @@ -5,7 +5,7 @@ {% include fragment-pagebegin.html %}
-

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare (v0.2.0). See the Directory of published versions

+

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare. See the Directory of published versions

{% include fragment-profile-navtabs.html type='{{[type]}}' id='{{[id]}}' active='testing' %} diff --git a/bd-national-template/layouts/layout-profile.html b/bd-national-template/layouts/layout-profile.html index 55e4504..ffb840d 100644 --- a/bd-national-template/layouts/layout-profile.html +++ b/bd-national-template/layouts/layout-profile.html @@ -5,7 +5,7 @@ {% include fragment-pagebegin.html %}
-

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare (v0.2.0). See the Directory of published versions

+

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare. See the Directory of published versions

{% include fragment-profile-navtabs.html type='{{[type]}}' id='{{[id]}}' active='content' %} diff --git a/bd-national-template/layouts/layout-valueset.html b/bd-national-template/layouts/layout-valueset.html index d8ecb17..5fa9d71 100644 --- a/bd-national-template/layouts/layout-valueset.html +++ b/bd-national-template/layouts/layout-valueset.html @@ -2,7 +2,7 @@ --- {% include fragment-pagebegin.html %}
-

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare (v0.2.0). See the Directory of published versions

+

Bangladesh Core FHIR Implementation Guide - Published by Ministry of Health and Family Welfare. See the Directory of published versions

{% include fragment-base-navtabs.html type='{{[type]}}' id='{{[id]}}' active='content' %}

ValueSet: {{site.data.pages[page.path].title | escape_once}} diff --git a/input/fsh/codeSystems/BDCountryListCS.fsh b/input/fsh/codeSystems/BDCountryListCS.fsh index fef1aea..4626599 100644 --- a/input/fsh/codeSystems/BDCountryListCS.fsh +++ b/input/fsh/codeSystems/BDCountryListCS.fsh @@ -1,7 +1,7 @@ CodeSystem: BDCountryListCS Id: bd-country-list-cs Title: "Nationality List" -* ^url = "https://fhir.dghs.gov.bd/core/CodeSystem/bd-country-list" +* ^url = "https://fhir.dghs.gov.bd/core/CodeSystem/bd-country-list" * #4 "Afghan" * #8 "Albanian" @@ -197,5 +197,5 @@ 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" +* ^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 diff --git a/input/fsh/codeSystems/BDIdentifierType.fsh b/input/fsh/codeSystems/BDIdentifierType.fsh index 3db976b..e8f98b9 100644 --- a/input/fsh/codeSystems/BDIdentifierType.fsh +++ b/input/fsh/codeSystems/BDIdentifierType.fsh @@ -7,7 +7,7 @@ Title: "Bangladesh Identifier Types" * #NID "National ID" * #BRN "Birth Registration Number" -* #UID "Unique ID" +* #UHID "Unique Health ID" ValueSet: BangladeshIdentifierTypeVS diff --git a/input/fsh/extensions/nationality.fsh b/input/fsh/extensions/nationality.fsh index 0b78228..320871d 100644 --- a/input/fsh/extensions/nationality.fsh +++ b/input/fsh/extensions/nationality.fsh @@ -1,4 +1,13 @@ -Extension: Nationality +Extension: Nationality Id: nationality -Title: "patient Nationality" -Description: "Nationality" +Title: "Patient Nationality" +Description: "Nationality of the patient based on Bangladesh country list." +* ^url = "https://fhir.dghs.gov.bd/core/StructureDefinition/nationality" + +// Define where this extension can be used +* ^context[0].type = #element +* ^context[0].expression = "Patient" + +// Only one value, bound to your ValueSet +* value[x] only CodeableConcept +* valueCodeableConcept from https://fhir.dghs.gov.bd/core/ValueSet/bd-country-list (required) \ No newline at end of file diff --git a/input/fsh/profile/BDPatient.fsh b/input/fsh/profile/BDPatient.fsh index b6027d6..9abae7c 100644 --- a/input/fsh/profile/BDPatient.fsh +++ b/input/fsh/profile/BDPatient.fsh @@ -1,43 +1,39 @@ +Alias: $translation = http://hl7.org/fhir/StructureDefinition/translation // @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" +Description: """ +Patient profile for Bangladesh. +- Identifiers: NID, BRN, UHID +- Name must be provided in both Bangla and English. +- SHALL have at least one RelatedPerson with relationship = father or mother, and that RelatedPerson SHALL include both a name and an identifier. +""" // ----- Begin rules: +// Require exactly one HumanName +* name 1..1 MS +* name.use 1..1 +* name.use = #official (exactly) -// Require two names total -* name 2..* +// Require a text element +* name.text 1..1 MS +// Require translation extensions on text +* name.text.extension 2..* MS +* name.text.extension contains + $translation named nameEn 1..1 MS and + $translation named nameBn 1..1 MS -// Declare slicing on name by use -* name ^slicing.discriminator.type = #value -* name ^slicing.discriminator.path = "use" -* name ^slicing.rules = #open -* name ^slicing.ordered = false -* name ^slicing.description = "Slice name by use (official for English, usual for Bangla)" - -// Define slices -* name contains - nameEnglish 1..1 MS and - nameBangla 1..1 MS - -// English (official) -* name[nameEnglish].use = #official -* name[nameEnglish].given 0..* -* name[nameEnglish].family 0..1 -* name[nameEnglish] ^short = "Legal name (English/Romanized)" -* name[nameEnglish] ^definition = "Official name as registered in government documents." - -// Bangla (usual) -* name[nameBangla].use = #usual -* name[nameBangla].given 0..* -* name[nameBangla].family 0..1 -* name[nameBangla] ^short = "নাম (বাংলা)" -* name[nameBangla] ^definition = "Patient's name written in Bengali script." +// Constraints on English name +* name.text.extension[nameEn].extension[lang].valueCode = #en (exactly) +* name.text.extension[nameEn].extension[content] 1..1 MS +// Constraints on Bangla name +* name.text.extension[nameBn].extension[lang].valueCode = #bn (exactly) +* name.text.extension[nameBn].extension[content] 1..1 MS ////////////////////// @@ -50,7 +46,7 @@ Description: "Profile of Patient Bangladesh Standard" * identifier contains NID 0..1 and BRN 0..1 and - UID 0..1 + UHID 0..1 * identifier[NID].system = "http://dghs.gov.bd/identifier/nid" * identifier[NID].type.coding.code = #NID @@ -71,12 +67,11 @@ Description: "Profile of Patient Bangladesh Standard" // * identifier[BRN].value = "Personal identifier Birth Registration" -* identifier[UID].system = "http://dghs.gov.bd/identifier/uid" -* identifier[UID].type.coding.code = #UID -* 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" +* identifier[UHID].system = "http://dghs.gov.bd/identifier/uhid" +* identifier[UHID].type.coding.code = #UHID +* identifier[UHID].type.coding.system = "https://fhir.dghs.gov.bd/core/ValueSet/bd-identifier-type" +* identifier[UHID].type from BangladeshIdentifierTypeVS (extensible) +* identifier[UHID].type.text = "Organization identifier" // Mark elements as MustSupport @@ -105,18 +100,3 @@ Description: "Profile of Patient Bangladesh Standard" * address 1..* MS * address only BDAddress - -* name only BDHumanName -* extension contains Occupation named occupation 0..1 -* extension contains nationality named nationality 1..1 - -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) -