Skip to content

Commit

Permalink
feat: added encounter profile
Browse files Browse the repository at this point in the history
  • Loading branch information
rukshn committed Jul 1, 2024
1 parent 3031c0a commit 5e6f2bf
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 14 deletions.
25 changes: 25 additions & 0 deletions input/fsh/Encounter.fsh
Original file line number Diff line number Diff line change
@@ -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

14 changes: 0 additions & 14 deletions input/fsh/patient.fsh

This file was deleted.

2 changes: 2 additions & 0 deletions input/fsh/valusets/typeOfBirthVS.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 5e6f2bf

Please sign in to comment.