diff --git a/input/fsh/codeSystems/bdAddressCS.fsh b/input/fsh/codeSystems/bdAddressCS.fsh new file mode 100644 index 0000000..30e680e --- /dev/null +++ b/input/fsh/codeSystems/bdAddressCS.fsh @@ -0,0 +1,58 @@ +CodeSystem: BDAddressCS +Id: bd-address-cs +Title: "Bangladesh Address Codes" +Description: "Bangladesh Address Codes" +* ^url = "https://fhir.dghs.gov.bd/core/CodeSystem/bd-divisions" +* #30 "Dhaka" +* #20 "Chattogram" +* #50 "Rajshahi" +* #55 "Rangpur" +* #40 "Khulna" +* #10 "Barishal" +* #60 "Sylhet" +* #45 "Mymensingh" +* #3026 "Dhaka" + + +ValueSet: BDDivisionsVS +Id: bd-division-code-vs +Title: "Bangladesh Division ValueSet" +Description: "Bangladesh Division Codes (only two-digit codes)" +* ^url = "https://fhir.dghs.gov.bd/core/ValueSet/bd-divisions" + +// include only codes that are exactly 2 digits +* include codes from system https://fhir.dghs.gov.bd/core/CodeSystem/bd-divisions + where code regex "^[0-9]{2}$" + + +ValueSet: BDDistrictVS +Id: bd-district-code-vs +Title: "Bangladesh district ValueSet" +Description: "Bangladesh district Codes (only two-digit codes)" +* ^url = "https://fhir.dghs.gov.bd/core/ValueSet/bd-districts" + +// include only codes that are exactly 2 digits +* include codes from system https://fhir.dghs.gov.bd/core/CodeSystem/bd-districts + where code regex "^[0-9]{4}$" + + +ValueSet: BDCityCorporationVS +Id: bd-city-corporations-code-vs +Title: "Bangladesh district ValueSet" +Description: "Bangladesh district Codes (only two-digit codes)" +* ^url = "https://fhir.dghs.gov.bd/core/ValueSet/bd-city-corporations" + +// include only codes that are exactly 2 digits +* include codes from system https://fhir.dghs.gov.bd/core/CodeSystem/bd-city-corporations + where code regex "^[0-9]{6}$" + + +ValueSet: BDUpazillaVS +Id: bd-upazilla-code-vs +Title: "Bangladesh district ValueSet" +Description: "Bangladesh district Codes (only two-digit codes)" +* ^url = "https://fhir.dghs.gov.bd/core/ValueSet/bd-upazilla" + +// include only codes that are exactly 2 digits +* include codes from system https://fhir.dghs.gov.bd/core/CodeSystem/bd-upazilla + where code regex "^[0-9]{8}$" \ No newline at end of file diff --git a/input/fsh/extensions/division.fsh b/input/fsh/extensions/division.fsh new file mode 100644 index 0000000..813af0a --- /dev/null +++ b/input/fsh/extensions/division.fsh @@ -0,0 +1,10 @@ + +Extension: Division +Id: bd-divisions +Title: "Division" +Description: "BD Division" +Context: Address + + +* value[x] only CodeableConcept +* valueCodeableConcept from BDDivisionsVS \ No newline at end of file diff --git a/input/fsh/extensions/language.fsh b/input/fsh/extensions/language.fsh new file mode 100644 index 0000000..57b313e --- /dev/null +++ b/input/fsh/extensions/language.fsh @@ -0,0 +1,10 @@ +Extension: Language +Description: "Language" +Id: language +Title: "Language Extension" +Context: Patient + + +// Religion using standard HL7 extension +* extension contains http://hl7.org/fhir/StructureDefinition/language named language 1..1 +* extension[language].valueCode from LanguageValueSet \ No newline at end of file diff --git a/input/fsh/profile/bdAddress.fsh b/input/fsh/profile/bdAddress.fsh new file mode 100644 index 0000000..1cda154 --- /dev/null +++ b/input/fsh/profile/bdAddress.fsh @@ -0,0 +1,12 @@ +// @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: bdAddress +Id: bd-address +Parent: Address +Title: "Address for Bangladesh" +Description: "Address for Bangladesh Standard" + + +* country 1..1 MS +* extension contains Division named division 1..1 MS \ No newline at end of file diff --git a/input/fsh/valueSets/languageVS.fsh b/input/fsh/valueSets/languageVS.fsh new file mode 100644 index 0000000..0a5b001 --- /dev/null +++ b/input/fsh/valueSets/languageVS.fsh @@ -0,0 +1,6 @@ +ValueSet: LanguageValueSet +Id: language-valueset +Title: "Allowed Languages" +Description: "Only English and Bengali are allowed" +* http://hl7.org/fhir/ValueSet/languages#en "English" +* http://hl7.org/fhir/ValueSet/languages#bn "Bengali" \ No newline at end of file