From 5e6f2bfa2ad8f9b49cf54f29348d54ab2f7eddce Mon Sep 17 00:00:00 2001 From: Rukshan Date: Mon, 1 Jul 2024 15:15:58 +0200 Subject: [PATCH] feat: added encounter profile --- input/fsh/Encounter.fsh | 25 +++++++++++++++++++++++++ input/fsh/patient.fsh | 14 -------------- input/fsh/valusets/typeOfBirthVS.fsh | 2 ++ 3 files changed, 27 insertions(+), 14 deletions(-) create mode 100644 input/fsh/Encounter.fsh delete mode 100755 input/fsh/patient.fsh diff --git a/input/fsh/Encounter.fsh b/input/fsh/Encounter.fsh new file mode 100644 index 0000000..537e9bd --- /dev/null +++ b/input/fsh/Encounter.fsh @@ -0,0 +1,25 @@ +Profile: LiveBirthProfile +Id: live-birth-profile +Parent: Encounter +Title: "Live birth profile" +Description: "Demo Live birth profile to capture CRVS birth" + +* plannedEndDate 1..1 +* plannedEndDate ^short = "Date of occurrence" +* plannedEndDate ^definition = "Date of the occurrence of the live birth" +* type from http://terminology.hl7.org/ValusSet/type-of-birth-vs (required) + +* location ^slicing.discriminator.type = #value +* location ^slicing.discriminator.path = "$this.locationType" +* location ^slicing.ordered = false +* location ^slicing.rules = #open + +* location contains locationOfDelivery 0..1 and locationOfRegistration 0..1 + +* location[locationOfDelivery] ^short = "Location of delivery" +* location[locationOfDelivery] ^definition = "Location of delivery" +* location[locationOfDelivery] 1..1 +* location[locationOfRegistration] ^short = "Location of registration" +* location[locationOfRegistration] ^definition = "Location of registration" +* location[locationOfRegistration] 1..1 + diff --git a/input/fsh/patient.fsh b/input/fsh/patient.fsh deleted file mode 100755 index 5ba8d7a..0000000 --- a/input/fsh/patient.fsh +++ /dev/null @@ -1,14 +0,0 @@ -// This is a simple example of a FSH file. -// This file can be renamed, and additional FSH files can be added. -// SUSHI will look for definitions in any file using the .fsh ending. -Profile: MyPatient -Parent: Patient -Description: "An example profile of the Patient resource." -* name 1..* MS - -Instance: PatientExample -InstanceOf: MyPatient -Description: "An example of a patient with a license to krill." -* name - * given[0] = "James" - * family = "Pond" \ No newline at end of file diff --git a/input/fsh/valusets/typeOfBirthVS.fsh b/input/fsh/valusets/typeOfBirthVS.fsh index 405e032..2b62b72 100644 --- a/input/fsh/valusets/typeOfBirthVS.fsh +++ b/input/fsh/valusets/typeOfBirthVS.fsh @@ -3,4 +3,6 @@ Id: TypeOfBirth Title: "TypeOfBirth" Description: "Type of brith Valueset" +* ^url = "http://terminology.hl7.org/ValusSet/type-of-birth-vs" * include codes from system http://terminology.hl7.org/CodeSystem/type-of-birth-cs +