diff --git a/input/bd.fhir.core.xml b/input/bd.fhir.core.xml index 44d0fe2..3a90622 100644 --- a/input/bd.fhir.core.xml +++ b/input/bd.fhir.core.xml @@ -13,7 +13,7 @@ --> - + <status value="active"/> diff --git a/input/fsh/codeSystems/BDMaritalStatusCS.fsh b/input/fsh/codeSystems/BDMaritalStatusCS.fsh new file mode 100644 index 0000000..56fe429 --- /dev/null +++ b/input/fsh/codeSystems/BDMaritalStatusCS.fsh @@ -0,0 +1,18 @@ +//codeSystems/bd-regions.fsh +CodeSystem: BDMaritalStatusCS +Id: bd-marital-status +Title: "Bangladesh Marital Status" +* ^url = "https://fhir.dghs.gov.bd/core/CodeSystem/bd-marital-status" + +* #1 "Unmarried" "Unmarried" +* #2 "Married" "Married" +* #3 "Widowed" "Widowed" +* #4 "Separated" "Separated" +* #5 "Divorced" "Divorced" + +ValueSet: BDMaritalStatusVS +Id: bd-marital-status-valueset +Title: "Bangladesh Marital Status ValueSet" +Description: "Marital status value set according to CCDS guideline" +* ^url = "https://fhir.dghs.gov.bd/core/ValueSet/bd-marital-status-valueset" +* include codes from system https://fhir.dghs.gov.bd/core/CodeSystem/bd-marital-status diff --git a/input/fsh/profile/BDLabPanelObservation.fsh b/input/fsh/profile/BDLabPanelObservation.fsh index 0c0882a..fe54f52 100644 --- a/input/fsh/profile/BDLabPanelObservation.fsh +++ b/input/fsh/profile/BDLabPanelObservation.fsh @@ -36,7 +36,7 @@ FHIR hasMember pattern: // ── Code ────────────────────────────────────────────────────────────────── // Bound to BD LOINC Lab Panels ValueSet — orderable panel codes only. * code 1..1 MS -* code from https://fhir.dghs.gov.bd/core/ValueSet/loinc-lab-panels (extensible) +* code from https://fhir.dghs.gov.bd/core/ValueSet/loinc-lab-panels (required) * code ^definition = "LOINC panel/order code for this laboratory panel" * code ^comment = "E.g. 58410-2 CBC panel, 24323-8 Comprehensive metabolic panel" diff --git a/input/fsh/profile/BDLabResultObservation.fsh b/input/fsh/profile/BDLabResultObservation.fsh index f9ffb4b..293ac3c 100644 --- a/input/fsh/profile/BDLabResultObservation.fsh +++ b/input/fsh/profile/BDLabResultObservation.fsh @@ -39,7 +39,7 @@ Coded results (Ord/Nom scale): // ── Code ────────────────────────────────────────────────────────────────── // Bound to BD LOINC Lab Results ValueSet — leaf result codes only. * code 1..1 MS -* code from https://fhir.dghs.gov.bd/core/ValueSet/loinc-lab-results (extensible) +* code from https://fhir.dghs.gov.bd/core/ValueSet/loinc-lab-results (required) * code ^definition = "LOINC result/component code for this individual laboratory result" * code ^comment = "E.g. 718-7 Hemoglobin, 2160-0 Creatinine" @@ -68,7 +68,7 @@ Coded results (Ord/Nom scale): // Coded results (Ord/Nom scale) — bound to LOINC Answer Lists * valueCodeableConcept MS -* valueCodeableConcept from https://fhir.dghs.gov.bd/core/ValueSet/loinc-answer-lists (extensible) +* valueCodeableConcept from https://fhir.dghs.gov.bd/core/ValueSet/loinc-answer-lists (required) * valueCodeableConcept ^comment = "Use for ordinal or nominal (Ord/Nom scale) results." // ── hasMember ───────────────────────────────────────────────────────────── diff --git a/input/fsh/profile/BDPatient.fsh b/input/fsh/profile/BDPatient.fsh index 360f17e..0e99fba 100644 --- a/input/fsh/profile/BDPatient.fsh +++ b/input/fsh/profile/BDPatient.fsh @@ -19,7 +19,7 @@ Patient profile for Bangladesh. * name.text 1..1 MS * name.text.extension contains BDNameEn named nameEn 1..1 MS and - BDNameBn named nameBn 1..1 MS + BDNameBn named nameBn 0..1 MS ////////////////////// @@ -32,7 +32,7 @@ Patient profile for Bangladesh. * identifier contains NID 0..1 and BRN 0..1 and - UHID 0..1 + UHID 1..1 * identifier[NID].system = "http://dghs.gov.bd/identifier/nid" * identifier[NID].type.coding.code = #NID @@ -75,7 +75,8 @@ Patient profile for Bangladesh. // Require a value from a specific value set be used for an element -* maritalStatus from http://hl7.org/fhir/ValueSet/marital-status +// * maritalStatus from http://hl7.org/fhir/ValueSet/marital-status +* maritalStatus.valueCodeableConcept from https://fhir.dghs.gov.bd/core/ValueSet/bd-marital-status-valueset // Restrict something[x] to a specific type -- in this case only allowing dateTime to be used * deceased[x] only dateTime @@ -86,3 +87,19 @@ Patient profile for Bangladesh. * address 1..* MS * address only BDAddress + +// ── Photo ───────────────────────────────────────────────────────────────── +// Optional patient photo — may be used for identity verification at point of care. +* photo 0..* MS +* photo ^definition = "Patient photo for identity verification" +* photo ^comment = "Attach a photo of the patient when available. Use image/jpeg or image/png." + +// ── Link to RelatedPerson ───────────────────────────────────────────────── +// At least one RelatedPerson link is required — father, mother, or guardian. +// The referenced RelatedPerson must carry a BD identifier and a relationship. +* link 0..* MS +* link ^definition = "Link to a RelatedPerson resource representing father, mother, or guardian" +* link ^comment = "At least one RelatedPerson with BD identifier and relationship is required." +* link.other 1..1 MS +* link.other only Reference(RelatedPerson) +* link.type = #seealso (exactly) \ No newline at end of file diff --git a/input/fsh/profile/BDRelatedPerson.fsh b/input/fsh/profile/BDRelatedPerson.fsh new file mode 100644 index 0000000..3ed91e7 --- /dev/null +++ b/input/fsh/profile/BDRelatedPerson.fsh @@ -0,0 +1,55 @@ +Profile: BDRelatedPerson +Id: bd-related-person +Parent: RelatedPerson +Title: "Related Person Profile for Bangladesh" +Description: """ +Profile for RelatedPerson in Bangladesh. +Used to represent father, mother, or guardian of a patient. +- Identifier is mandatory and must use BD identifier systems (NID, BRN, UHID) +- Relationship is mandatory +- Name is mandatory +""" + +* ^url = "https://fhir.dghs.gov.bd/core/StructureDefinition/bd-related-person" + +// ── Identifier ──────────────────────────────────────────────────────────── +// Mandatory BD identifier — NID, BRN, or UHID +* identifier 1..* MS +* identifier ^slicing.discriminator.type = #value +* identifier ^slicing.discriminator.path = "system" +* identifier ^slicing.rules = #open +* identifier ^slicing.ordered = false +* identifier contains + NID 0..1 and + BRN 0..1 and + UHID 0..1 + +* identifier[NID].system = "http://dghs.gov.bd/identifier/nid" +* identifier[NID].type.coding.code = #NID +* identifier[NID].type.coding.system = "https://fhir.dghs.gov.bd/core/CodeSystem/bd-identifier-type" +* identifier[NID].type.text = "Organization identifier" + +* identifier[BRN].system = "http://dghs.gov.bd/identifier/brn" +* identifier[BRN].type.coding.code = #BRN +* identifier[BRN].type.coding.system = "https://fhir.dghs.gov.bd/core/CodeSystem/bd-identifier-type" +* identifier[BRN].type.text = "Organization 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/CodeSystem/bd-identifier-type" +* identifier[UHID].type.text = "Organization identifier" + +// ── Relationship ────────────────────────────────────────────────────────── +// Mandatory — must specify the relationship to the patient +* relationship 1..* MS +* relationship ^definition = "Relationship of this person to the patient" +* relationship ^comment = "E.g. FTH (father), MTH (mother), GUARD (guardian) from v3-RoleCode" + +// ── Name ────────────────────────────────────────────────────────────────── +* name 1..1 MS +* name ^definition = "Name of the related person" + +// ── Patient ─────────────────────────────────────────────────────────────── +* patient 1..1 MS +* patient only Reference(BDPatient) +* patient ^definition = "The patient this related person is associated with" \ No newline at end of file diff --git a/input/package-list.json b/input/package-list.json index bdd5e2f..cc83c97 100644 --- a/input/package-list.json +++ b/input/package-list.json @@ -11,6 +11,14 @@ "status": "ci-build", "current": true }, + { + "version": "0.4.5", + "date": "2026-04-10", + "desc": "minor bug fixes", + "path": "https://fhir.dghs.gov.bd/core/0.4.5/", + "status": "trial-use", + "sequence": "STU 1" + }, { "version": "0.4.4", "date": "2026-04-06", diff --git a/package-list.json b/package-list.json index bdd5e2f..cc83c97 100644 --- a/package-list.json +++ b/package-list.json @@ -11,6 +11,14 @@ "status": "ci-build", "current": true }, + { + "version": "0.4.5", + "date": "2026-04-10", + "desc": "minor bug fixes", + "path": "https://fhir.dghs.gov.bd/core/0.4.5/", + "status": "trial-use", + "sequence": "STU 1" + }, { "version": "0.4.4", "date": "2026-04-06",