Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
rmrlangford committed Jan 30, 2024
1 parent eb42bcc commit a797cef
Show file tree
Hide file tree
Showing 7 changed files with 83 additions and 19 deletions.
25 changes: 25 additions & 0 deletions input/fsh/conceptmaps/client-registration.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Instance: AdministrativeSexToAdministrativeGender
InstanceOf: ConceptMap
Title: "Administrative Sex To Administrative Gender"
Description: "Mapping to and from FHIR Administrative Sex coding to FHIR Administrative Gender."
Usage: #definition

* name = "AdministrativeSexToAdministrativeGender"
* description = "Mapping to and from FHIR Administrative Sex coding to FHIR Administrative Gender."
* title = "ConceptMap to and From administrative sex to administrative gender"
* status = #active
* experimental = false
* date = "2024-01-30"

* group[+]
* source = $SEX
* target = $GENDER
* insert ElementMap(M, male, equivalent)
* insert ElementMap(F, female, equivalent)

* group[+]
* source = $GENDER
* target = $SEX
* insert ElementMap(male, M, equivalent)
* insert ElementMap(female, F, equivalent)
* element[=].target[=].comment = "The source concept is more specific than the target"
18 changes: 18 additions & 0 deletions input/fsh/examples.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Instance: HImmunizationPatientExample
InstanceOf: ImmunizationPatient
Usage: #example
Title: "Immunization Patient"
Description: "Is used to document demographics and other administrative information about an individual receiving care or other health-related services."
* identifier[NUPIN][+].value = "12-999-22-2338"
* identifier[NUPIN][=].system = "http://openhie.org/fhir/zambia-immunizations/identifier/nupin"
* identifier[NRC][+].value = "12-999-22-2338"
* identifier[NRC][=].system = "http://openhie.org/fhir/zambia-immunizations/identifier/nrc"
* name[+].use = #official
* name[=].family = "Smith"
* name[=].given[+] = "Jane"
* name[=].given[+] = "Maria"
* gender = #female
* birthDate = "1990-12-12"
* birthDate.extension[birthTime].valueDateTime = "1983-05-22T16:40:17+02:00"
* extension[BIZ].valueBoolean = true
* extension[IsEstimatedDOB].valueBoolean = false
17 changes: 17 additions & 0 deletions input/fsh/extensions.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Extension: BornInZambia
Id: born-in-zambia
Title: "Patient born in Zambia?"
Description: "This is an extension to capture whether the patient was born in Zambia."
* value[x] only boolean
* value[x] 1..
* ^context[+].type = #element
* ^context[=].expression = "Patient"

Extension: IsEstimatedDateOfBirth
Id: is-estimated-date-of-birth
Title: "Patient's Date of Birth Is Estimated?"
Description: "This is an extension to capture whether the patient's date of birth was estimated."
* value[x] only boolean
* value[x] 1..
* ^context[+].type = #element
* ^context[=].expression = "Patient"
6 changes: 6 additions & 0 deletions input/fsh/rulesets/client-registration.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
RuleSet: ElementMap(source, target, equivalence)
* element[+]
* code = #{source}
* target[+]
* code = #{target}
* relationship = #{equivalence}
24 changes: 10 additions & 14 deletions input/fsh/profiles.fsh → input/fsh/smartcare.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -31,21 +31,17 @@ Description: "Is used to document demographics and other administrative informat
* identifier[NRC].system = "http://openhie.org/fhir/zambia-immunizations/identifier/nrc"

* name 1..*

* name.given 1..*
* name.given ^slicing.discriminator.type = #exists
* name.given ^slicing.discriminator.path = "value"
* name.given ^slicing.rules = #open
* name.given ^slicing.ordered = false
* name.given ^slicing.description = "Slice based on the type of name."
* name.given contains
firstName 1..1 and
middleName 0..1 MS
* name.family 1..1
* name.use 1..1

* name.given[firstName].value 1..1
* name.given[middleName].value 1..1
* name.given[middleName].value ^definition =
* gender 1..1
* birthDate 1..1
* birthDate.extension contains patient-birthTime named birthTime 0..1 MS
* birthDate.extension[birthTime] ^definition =
"reason(s) why this should be supported."

* name.family 1..1
* name.use 1..1
* extension contains BornInZambia named BIZ 1..1
* extension contains IsEstimatedDateOfBirth named IsEstimatedDOB 0..1 MS
* extension[ISEstimatedDOB] ^definition =
"reason(s) why this should be supported."
2 changes: 2 additions & 0 deletions input/fsh/terminology.fsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Alias: $GENDER = http://hl7.org/fhir/administrative-gender
Alias: $SEX = http://terminology.hl7.org/CodeSystem/v2-0001
10 changes: 5 additions & 5 deletions sushi-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,16 @@ releaseLabel: STU1
# as IG.publisher. The contact details and/or additional publishers
# will be translated into IG.contact values.
publisher:
name: My Organization
url: http://example.com/committees
email: [email protected]
name: Jembi Health Systems
url: https://www.jembi.org
email: [email protected]

# ContactDetail is required by the template.
contact:
- name: Bob Smith
- name: Richard Langford
telecom:
- system: email
value: [email protected]
value: [email protected]
use: work

# The jurisdiction can be a single item or a list. The FHIR Shorthand
Expand Down

0 comments on commit a797cef

Please sign in to comment.