From 0d0ede3b818a1a682ca7c224179dd8f1ac3b0a37 Mon Sep 17 00:00:00 2001 From: Fahim Hossain Date: Sat, 27 Sep 2025 16:46:34 +0600 Subject: [PATCH] Update BDPatientProfile and add Blood Group CodeSystem and Extension - Set identifier and link discriminator paths to "system" in BDPatientProfile - Introduce BDBloodGroupCS CodeSystem with blood group codes - Create BDBloodGroupVS ValueSet for blood group codes - Refine bdbloodgroup extension with updated ID and description --- input/fsh/bdpatient.fsh | 9 ++++++-- input/fsh/codeSystems/BDBloodGroupCS.fsh | 26 ++++++++++++++++++++++++ input/fsh/extensions/bloodgroup.fsh | 21 +++++++------------ 3 files changed, 40 insertions(+), 16 deletions(-) create mode 100644 input/fsh/codeSystems/BDBloodGroupCS.fsh diff --git a/input/fsh/bdpatient.fsh b/input/fsh/bdpatient.fsh index a64f4c1..25eebbf 100644 --- a/input/fsh/bdpatient.fsh +++ b/input/fsh/bdpatient.fsh @@ -11,7 +11,7 @@ Description: "All patient information of BD" * identifier 1..* * identifier ^slicing.discriminator.type = #value -* identifier ^slicing.discriminator.path = "" +* identifier ^slicing.discriminator.path = "system" * identifier ^slicing.rules = #open * identifier ^slicing.description = "Identifier" * identifier ^slicing.ordered = false @@ -57,7 +57,7 @@ Description: "All patient information of BD" * link 2..* * link ^slicing.discriminator.type = #value -* link ^slicing.discriminator.path = "" +* link ^slicing.discriminator.path = "system" * link ^slicing.rules = #open * link ^slicing.description = "" * link ^slicing.ordered = false @@ -108,3 +108,8 @@ Description: "Profile for RelatedPerson representing the father" // TODO // * includes codes from system BdIdentifierTypeVs# (required) + + +//Address +* address 1..* MS +* address only BDAddress \ No newline at end of file diff --git a/input/fsh/codeSystems/BDBloodGroupCS.fsh b/input/fsh/codeSystems/BDBloodGroupCS.fsh new file mode 100644 index 0000000..8d6a907 --- /dev/null +++ b/input/fsh/codeSystems/BDBloodGroupCS.fsh @@ -0,0 +1,26 @@ +// --------------------------- +// CodeSystem for BD Blood Groups +// --------------------------- +CodeSystem: BDBloodGroupCS +Id: bd-blood-groups +Title: "Bangladesh Blood Group CodeSystem" +Description: "Blood group codes according to CCDS guideline" +* ^url = "https://fhir.dghs.gov.bd/core/CodeSystem/bd-blood-groups" +* ^content = #complete +* #1 "O Positive" +* #2 "O Negative" +* #3 "A Positive" +* #4 "A Negative" +* #5 "B Positive" +* #6 "B Negative" +* #7 "AB Positive" +* #8 "AB Negative" + +// --------------------------- +// ValueSet for BD Blood Groups +// --------------------------- +ValueSet: BDBloodGroupVS +Id: bd-blood-group-vs +Title: "Bangladesh Blood Group ValueSet" +Description: "Blood group value set according to CCDS guideline" +* include codes from system BDBloodGroupCS diff --git a/input/fsh/extensions/bloodgroup.fsh b/input/fsh/extensions/bloodgroup.fsh index 6010a88..5887ece 100644 --- a/input/fsh/extensions/bloodgroup.fsh +++ b/input/fsh/extensions/bloodgroup.fsh @@ -1,16 +1,9 @@ +// --------------------------- +// Extension Definition +// --------------------------- Extension: bdbloodgroup -Id: BloodGroup +Id: bd-blood-group Title: "Patient Blood Group" -Description: "BD Blood Group according to CCDS" - -* valueCodeableConcept 0..1 - - -* #1 "O Positive" -* #2 "O Negative" -* #3 "A Positive" -* #4 "A Negative" -* #5 "B Positive" -* #6 "B Negative" -* #7 "AB Positive" -* #8 "AB Negative" \ No newline at end of file +Description: "Blood group of the patient according to CCDS guideline" +* valueCodeableConcept 1..1 +* valueCodeableConcept from BDBloodGroupVS (required) \ No newline at end of file