diff --git a/input/fsh/encounter-profile.fsh b/input/fsh/encounter-profile.fsh new file mode 100644 index 0000000..56fba35 --- /dev/null +++ b/input/fsh/encounter-profile.fsh @@ -0,0 +1,32 @@ + +Profile: BDEncounterProfile +Id: bd-encounter +Parent: Encounter +Title: "Encounter Profile for Bangladesh" +Description: "Profile of Encounter Bangladesh Standard" + +* identifier 1..* + +* status 1..1 MS +* status from BDEncounterStatusSubsetVS + +* class 1..1 MS +* class from BDEncounterClassSubsetVS + +* subject 1..1 MS +//* subject from https://fhir.dghs.gov.bd/core/StructureDefinition/bd-patient + +* basedOn 0..1 MS + +* partOf 0..1 MS + +* serviceProvider 1..1 MS + +* participant 1..* MS +* participant.period 1..1 MS + +* diagnosis 0..* MS + +//* admission 0..* MS +//* admission.dischargeDisposition 0..1 MS +* encounter.admission.dischargeDisposition 0..1 diff --git a/input/fsh/immunization.json b/input/fsh/immunization.json index 551779b..fdc5961 100644 --- a/input/fsh/immunization.json +++ b/input/fsh/immunization.json @@ -1,11 +1,20 @@ { "resourceType": "StructureDefinition", +<<<<<<< HEAD + "id": "bd-Immunization", + "url": "http://example.org/StructureDefinition/bd-Immunization", + "version": "1.0.0", + "name": "BDImmunizationProfile", + "title": "Immunization Profile for Bangladesh", + "description": "Bangladesh Immunization Profile", +======= "id": "bd-immunization", "url": "https://fhir.dghs.gov.bd/core/identifier/bd-immunization", "version": "1.0.0", "name": "BDImmunizationProfile", "title": "Patient Immunization Profile for Bangladesh", "description": "Patients Immunization Bangladesh Standard", +>>>>>>> 1c45affa520e64b3b9efc307d9116ff138171fa5 "fhirVersion": "4.0.1", "kind": "resource", "abstract": false, @@ -17,7 +26,11 @@ { "id": "Immunization.identifier", "path": "Immunization.identifier", +<<<<<<< HEAD + "short": "Unique identifier", +======= "short": "Identifier", +>>>>>>> 1c45affa520e64b3b9efc307d9116ff138171fa5 "definition": "Unique identifier for the vaccination event", "min": 1 } diff --git a/input/fsh/profile/immunization-profile.fsh b/input/fsh/profile/immunization-profile.fsh new file mode 100644 index 0000000..f08e60f --- /dev/null +++ b/input/fsh/profile/immunization-profile.fsh @@ -0,0 +1,73 @@ + + +// @Name: Profile +// @Description: Immunization Profile of the Bangladeshi Patient. +Profile: BDImmunizationProfile +Id: bd-immunization +Parent: Immunization +Title: "Immunization Profile for Bangladesh" +Description: "Bangladesh Immunization Profile" +* ^url = "https://fhir.dghs.gov.bd/core/StructureDefinition/bd-immunization" + + +* identifier 1..* +* identifier ^short = "Unique identifier" +* identifier ^definition = "Unique identifier for the vaccination event" +* ^url = "https://fhir.dghs.gov.bd/core/identifier/bd-immunization" + +* reasonReference 0..* +* reasonReference only Reference(Condition or Observation or DiagnosticReport) + +* vaccineCode 1..1 +* vaccineCode from BDVaccineValueSet (required) + +//* ^url = "https://fhir.dghs.gov.bd/core/StructureDefinition/bd-medication" + +* manufacturer 0..1 +* manufacturer ^short = "Manufacturer" +* manufacturer ^definition = "Vaccine manufacturer" +* ^url = "https://fhir.dghs.gov.bd/core/StructureDefinition/bd-organization" + +* lotNumber 0..1 +* lotNumber ^short = "Vaccine Lot Number" +* lotNumber ^definition = "Vaccine lot or batch number" + +* expirationDate 0..1 +* expirationDate ^short = "Expiration Date" +* expirationDate ^definition = "Expiration date of vaccine lot" + +// * patient 1..1 +// * patient ^definition = "The patient receiving the vaccine" +// * patient from BDPatientProfile + +* encounter 1..1 +* encounter ^definition = "Encounter during which vaccine was administered" +//* encounter from BD Encounter Profile + +* occurrence[x] 1..1 + +// * location 0..1 +// * location ^definition = "Location where vaccine was administered" +// * location only BDAddress + +* site 0..1 +* site ^definition = "Body site of administration" +* site from BDImmunizationSiteValueSet + +* route 0..1 +* route ^definition = "Route of administration" +* route from BDImmunizationRouteValueSet + +* doseQuantity 0..1 +* doseQuantity ^definition = "Amount of vaccine administered" +//* doseQuantity from UCUM Units +* ^url = "http://unitsofmeasure.org" + +* performer 0..* +* performer ^definition = "Individual who performed the immunization" +//* performer from BD Practitioner Profile +* ^url = "https://fhir.dghs.gov.bd/core/StructureDefinition/bd-practitioner" + +* reaction 0..* +* reaction ^definition = "Adverse reaction following immunization" +* reaction.detail only Reference(Observation) \ No newline at end of file diff --git a/input/fsh/profile/immunization.fsh b/input/fsh/profile/immunization.fsh deleted file mode 100644 index 937c123..0000000 --- a/input/fsh/profile/immunization.fsh +++ /dev/null @@ -1,17 +0,0 @@ -Profile: BDImmunizationProfile -Id: bd-immunization -Parent: Immunization -Title: "Patient Immunization Profile for Bangladesh" -Description: "Patients Immunization Bangladesh Standard" -* ^url = "https://fhir.dghs.gov.bd/core/StructureDefinition/bd-immunization" - -* identifier 1..* -* identifier ^short = "Identifier" -* identifier ^definition = "Unique identifier for the vaccination event" -* ^url = "https://fhir.dghs.gov.bd/core/identifier/bd-immunization" - -* vaccineCode 1..1 -* vaccineCode from BDVaccineValueSet (required) - - - diff --git a/input/fsh/valueSets/BDEncounterClassSubsetVS.fsh b/input/fsh/valueSets/BDEncounterClassSubsetVS.fsh new file mode 100644 index 0000000..6a1b143 --- /dev/null +++ b/input/fsh/valueSets/BDEncounterClassSubsetVS.fsh @@ -0,0 +1,13 @@ +// ---------- ValueSet ---------- +ValueSet: BDEncounterClassSubsetVS +Id: bd-encounter-class-subset-vs +Title: "BD Encounter Class Subset" +Description: "Subset of EncounterClass limited to inpatient, ambulatory, and emergency." +* ^url = "https://fhir.dghs.gov.bd/core/ValueSet/bd-encounter-class-subset" +* ^status = #active +* ^experimental = false + +// Explicitly include the three concepts from the core EncounterClass system +* include http://terminology.hl7.org/CodeSystem/v3-ActCode#IMP "Inpatient" +* include http://terminology.hl7.org/CodeSystem/v3-ActCode#AMB "Ambulatory" +* include http://terminology.hl7.org/CodeSystem/v3-ActCode#EMER "Emergency" diff --git a/input/fsh/valueSets/BDEncounterStatusSubsetVS.fsh b/input/fsh/valueSets/BDEncounterStatusSubsetVS.fsh new file mode 100644 index 0000000..268f1d9 --- /dev/null +++ b/input/fsh/valueSets/BDEncounterStatusSubsetVS.fsh @@ -0,0 +1,15 @@ +// ---------- ValueSet ---------- +ValueSet: BDEncounterStatusSubsetVS +Id: bd-encounter-status-subset-vs +Title: "BD Encounter Status Subset" +Description: "Subset of EncounterStatus limited to planned, in-progress, finished, and cancelled." +* ^url = "https://fhir.dghs.gov.bd/core/ValueSet/bd-encounter-status-subset" +* ^status = #active +* ^experimental = false + +// Explicitly include the four concepts from the core code system +* include http://hl7.org/fhir/encounter-status#planned "Planned" +* include http://hl7.org/fhir/encounter-status#in-progress "In Progress" +* include http://hl7.org/fhir/encounter-status#finished "Finished" +* include http://hl7.org/fhir/encounter-status#cancelled "Cancelled" +