Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated #9

Merged
merged 1 commit into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 0 additions & 25 deletions input/fsh/conceptmaps/client-registration.fsh
Original file line number Diff line number Diff line change
@@ -1,28 +1,3 @@
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)

Instance: ProprietaryEducationLevelToLOINCEducationLevel
InstanceOf: ConceptMap
Title: "Proprietary Education Level to LOINC Education Level"
Expand Down
4 changes: 1 addition & 3 deletions input/fsh/examples.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Description: "Is used to document demographics and other administrative informat
* name[+][nickname].use = #nickname
* name[=][nickname].given[+] = "Smitty"

* gender = #female
* birthDate = "1990-12-12"
* birthDate.extension[birthTime].valueDateTime = "1983-05-22T16:40:17+02:00"
* birthDate.extension[IsEstimatedDOB].valueBoolean = false
Expand All @@ -29,7 +28,7 @@ Description: "Is used to document demographics and other administrative informat
* extension[religion].valueCodeableConcept.coding.system = "http://terminology.hl7.org/CodeSystem/v3-ReligiousAffiliation"
* extension[religion].valueCodeableConcept.text = "Christian (non-Catholic, non-specific)"
* managingOrganization = Reference(OrganizationExample)
* extension[AdministrativeSexToAdministrativeGenderMap].valueCanonical = "http://openhie.org/fhir/zambia-immunizations/StructureMap/AdministrativeSexToAdministrativeGender"
* extension[sex].valueCodeableConcept = $SEX#F

Instance: SpouseRelatedPersonExample
InstanceOf: SpouseRelatedPerson
Expand Down Expand Up @@ -59,7 +58,6 @@ Description: "A patient's highest education level attained"
* category.coding.system = "http://terminology.hl7.org/CodeSystem/observation-category"
* subject = Reference (ImmunizationPatientExample)
* performer = Reference(OrganizationExample)
* extension[PropietaryEducationLevelToLOINCEducationLevel].valueCanonical = "http://openhie.org/fhir/zambia-immunizations/StructureMap/PropietaryEducationLevelToLOINCEducationLevel"

Instance: TargetFacilityEncounterExample
InstanceOf: TargetFacilityEncounter
Expand Down
15 changes: 7 additions & 8 deletions input/fsh/extensions.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ Description: "This is an extension to capture whether the patient's date of birt
* ^context[+].type = #element
* ^context[=].expression = "Patient.birthDate"

Extension: StructureMaps
Id: structure-map
Title: "Structure Map"
Description: "Structure maps used in this implementation guide."
Extension: AdministrativeSex
Id: administrative-sex
Title: "Administrative Sex"
Description: "This is an extension to capture that patient's administrative sex."
* value[x] only CodeableConcept
* valueCodeableConcept from AdministrativeSex (required)
* value[x] 1..
* value[x] only Canonical(StructureMap)
* ^context[+].type = #element
* ^context[=].expression = "Patient"
* ^context[+].type = #element
* ^context[=].expression = "Observation"
* ^context[=].expression = "Patient"
6 changes: 1 addition & 5 deletions input/fsh/smartcare.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ Description: "Is used to document demographics and other administrative informat
* name[nickname].use 1..1
* name[nickname].use = #nickname

* gender 1..1
* birthDate 1..1
* birthDate.extension contains patient-birthTime named birthTime 0..1 MS
* birthDate.extension[birthTime] ^definition =
Expand All @@ -78,8 +77,7 @@ Description: "Is used to document demographics and other administrative informat
* extension[religion].valueCodeableConcept.coding.system 1..1
* extension[religion].valueCodeableConcept.coding.code 1..1

* extension contains structure-map named AdministrativeSexToAdministrativeGenderMap 1..1
* extension[AdministrativeSexToAdministrativeGenderMap].valueCanonical = "http://openhie.org/fhir/zambia-immunizations/StructureMap/AdministrativeSexToAdministrativeGender"
* extension contains AdministrativeSex named sex 1..1

* maritalStatus 0..1 MS
* maritalStatus.coding 1..1
Expand Down Expand Up @@ -191,8 +189,6 @@ Description: "A patient's highest education level attained"
* valueCodeableConcept.coding.code 1..1
* valueCodeableConcept.coding.system 1..1
* valueCodeableConcept from VSLOINCEducationLevelAttained (required)
* extension contains structure-map named PropietaryEducationLevelToLOINCEducationLevel 1..1
* extension[PropietaryEducationLevelToLOINCEducationLevel].valueCanonical = "http://openhie.org/fhir/zambia-immunizations/StructureMap/PropietaryEducationLevelToLOINCEducationLevel"

Profile: TargetFacilityEncounter
Parent: Encounter
Expand Down
10 changes: 9 additions & 1 deletion input/fsh/terminology.fsh
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,12 @@ Title: "HumanName Codes"
Description: "A List of HumanName Codes Exlcuding Nickname"
* ^experimental = false
* include codes from system $HumanName
* exclude $HumanName#nickname
* exclude $HumanName#nickname

ValueSet: AdministrativeSex
Id: vs-administrative-sex
Title: "Administrative Sex"
Description: "A List of Administrative Sex codes."
* ^experimental = false
* $SEX#M "Male"
* $SEX#F "Female"
12 changes: 0 additions & 12 deletions input/maps/AdministrativeSexToAdministrativeGender.fml

This file was deleted.

Loading