generated from openhie/empty-fhir-ig-custom
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from jembi/smartcare-initial
Smartcare initial
- Loading branch information
Showing
26 changed files
with
331 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
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: PropietaryEducationLevelToLOINCEducationLevel | ||
InstanceOf: ConceptMap | ||
Title: "Propietary Education Level to LOINC Education Level" | ||
Description: "Mapping to and from Propietary Education Level to LOINC Education Level." | ||
Usage: #definition | ||
|
||
* name = "PropietaryEducationLevelToLOINCEducationLevel" | ||
* description = "Mapping to and from Propietary Education Level to LOINC Education Level." | ||
* title = "ConceptMap to and From propietary education level to LOINC education Level" | ||
* status = #active | ||
* experimental = false | ||
* date = "2024-01-31" | ||
|
||
* group[+] | ||
* source = $PROPRIETARY_EDU_LEVEL | ||
* target = $LNC | ||
* insert ElementMap(CertificateGraduate, LA30193-9, equivalent) | ||
* insert ElementMap(DegreeGraduate, LA42-7, equivalent) | ||
* insert ElementMap(DiplomaGraduate, LA32469-1, equivalent) | ||
* insert ElementMap(JuniorSecondary, LA36-9, equivalent) | ||
* insert ElementMap(MastersGraduate, LA12461-2, equivalent) | ||
* insert ElementMap(NoFormalEducation, LA35-1, equivalent) | ||
* insert ElementMap(PhDGraduate, LA30185-5, equivalent) | ||
* insert ElementMap(Primary, LA32466-7, equivalent) | ||
* insert ElementMap(SeniorSecondary, LA37-7, equivalent) | ||
|
||
* group[+] | ||
* source = $LNC | ||
* target = $PROPRIETARY_EDU_LEVEL | ||
* insert ElementMap(LA30193-9, CertificateGraduate, equivalent) | ||
* insert ElementMap(LA42-7, DegreeGraduate, equivalent) | ||
* insert ElementMap(LA32469-1, DiplomaGraduate, equivalent) | ||
* insert ElementMap(LA36-9, JuniorSecondary, equivalent) | ||
* insert ElementMap(LA12461-2, MastersGraduate, equivalent) | ||
* insert ElementMap(LA35-1, NoFormalEducation, equivalent) | ||
* insert ElementMap(LA30185-5, PhDGraduate, equivalent) | ||
* insert ElementMap(LA32466-7, Primary, equivalent) | ||
* insert ElementMap(LA37-7, SeniorSecondary, equivalent) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
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 | ||
* extension[EducationLevelAttained].valueCodeableConcept.coding.code = $LNC#LA42-7 | ||
* extension[EducationLevelAttained].valueCodeableConcept.coding.system = "http://loinc.org" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
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" | ||
|
||
Extension: EducationLevelAttained | ||
Id: education-level-attained | ||
Title: "Patient's highest education level attained" | ||
Description: "A list of education levels." | ||
* value[x] only CodeableConcept | ||
* valueCodeableConcept from VSLOINCEducationLevelAttained (required) | ||
* valueCodeableConcept.text = "Highest education level attained" | ||
* valueCodeableConcept.coding.system 1..1 | ||
* valueCodeableConcept.coding.code 1..1 | ||
* ^context[0].type = #element | ||
* ^context[0].expression = "Patient" |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
Invariant: NUPIN-NRC-SmartcareID-1 | ||
Description: "Only letters, special characters (dash) and numbers are allowed." | ||
Expression: "$this.matches('[A-Za-z0-9-]*')" | ||
Severity: #error | ||
|
||
Profile: ImmunizationPatient | ||
Parent: Patient | ||
Id: immunization-patient | ||
Title: "Patient Profile for Immunizations" | ||
Description: "Is used to document demographics and other administrative information about an individual receiving care or other health-related services." | ||
* identifier 1..* | ||
* identifier ^slicing.discriminator.type = #value | ||
* identifier ^slicing.discriminator.path = "system" | ||
* identifier ^slicing.rules = #open | ||
* identifier ^slicing.ordered = false | ||
* identifier ^slicing.description = "Slice based on the type of identifier." | ||
* identifier contains | ||
NUPIN 1..1 and | ||
NRC 0..1 MS | ||
|
||
* identifier[NUPIN].value 1..1 | ||
* obeys NUPIN-NRC-SmartcareID-1 | ||
* identifier[NUPIN].system 1..1 | ||
* identifier[NUPIN].system = "http://openhie.org/fhir/zambia-immunizations/identifier/nupin" | ||
|
||
* identifier[NRC] ^definition = | ||
"reason(s) why this should be supported." | ||
* identifier[NRC].value 1..1 | ||
* obeys NUPIN-NRC-SmartcareID-1 | ||
* identifier[NRC].system 1..1 | ||
* identifier[NRC].system = "http://openhie.org/fhir/zambia-immunizations/identifier/nrc" | ||
|
||
* name 1..* | ||
* name.given 1..* | ||
* name.family 1..1 | ||
* name.use 1..1 | ||
|
||
* 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." | ||
|
||
* address.district 0..1 MS | ||
* address.district ^definition = | ||
"reason(s) why this should be supported." | ||
|
||
* 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." | ||
* extension contains EducationLevelAttained named EduLevelAttained 0..1 MS | ||
* extension[EduLevelAttained] ^definition = | ||
"reason(s) why this should be supported." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
Alias: $LNC = http://loinc.org | ||
|
||
Alias: $GENDER = http://hl7.org/fhir/administrative-gender | ||
Alias: $SEX = http://terminology.hl7.org/CodeSystem/v2-0001 | ||
|
||
Alias: $PROPRIETARY_EDU_LEVEL = http://openhie.org/fhir/zambia-immunizations/CodeSystem/cs-propietary-education-level-attained | ||
|
||
CodeSystem: CSPropietaryEducationLevelAttained | ||
Id: cs-propietary-education-level-attained | ||
Title: "Patient's highest education level attained (Propietary)" | ||
Description: "A list of propietary education levels." | ||
* ^experimental = false | ||
* ^caseSensitive = true | ||
* #CertificateGraduate "Certificate Graduate" "The description" | ||
* #DegreeGraduate "Degree Graduate" "The description" | ||
* #DiplomaGraduate "Diploma Graduate" "The description" | ||
* #JuniorSecondary "Junior Secondary" "The description" | ||
* #MastersGraduate "Masters Graduate" "The description" | ||
* #NoFormalEducation "No Formal Education" "The description" | ||
* #PhDGraduate "PhD Graduate" "The description" | ||
* #Primary "Primary" "The description" | ||
* #SeniorSecondary "Senior Secondary" "The description" | ||
|
||
ValueSet: VSPropietaryEducationLevelAttained | ||
Id: vs-propietary-education-level-attained | ||
Title: "Patient's highest education level attained (Propietary)" | ||
Description: "A list of propietary education levels." | ||
* ^experimental = false | ||
* include codes from system CSPropietaryEducationLevelAttained | ||
|
||
ValueSet: VSLOINCEducationLevelAttained | ||
Id: vs-loinc-education-level-attained | ||
Title: "Patient's highest education level attained (LOINC)" | ||
Description: "A list of LOINC education levels." | ||
* ^experimental = false | ||
* $LNC#LA35-1 "No schooling" | ||
* $LNC#LA42-7 "Graduate degree" | ||
* $LNC#LA30193-9 "More than high school" | ||
* $LNC#LA32469-1 "University undergraduate degree" | ||
* $LNC#LA32466-7 "Primary school education" | ||
* $LNC#LA36-9 "8th grade/less" | ||
* $LNC#LA37-7 "9-11 grades" | ||
* $LNC#LA12461-2 "Master's degree (e.g., MA, MS, MEng, MEd, MSW, MBA)" | ||
* $LNC#LA30185-5 "Doctoral degree (e.g., PhD, EdD)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/// url = 'http://openhie.org/fhir/zambia-immunizations/StructureMap/AdministrativeSexToAdministrativeGender' | ||
/// name = 'AdministrativeSexToAdministrativeGender' | ||
/// description = 'Maps the Administrative Sex codes To Administrative Gender codes.' | ||
/// title = 'Administrative Sex To Administrative Gender' | ||
/// status = 'active' | ||
|
||
uses "http://openhie.org/fhir/zambia-immunizations/StructureDefinition/immunization-patient" alias PatientProfile as source | ||
uses "http://openhie.org/fhir/zambia-immunizations/StructureDefinition/immunization-patient" alias Patient as target | ||
|
||
group SetPatientGender(source pat : PatientProfile, target patient : Patient) { | ||
pat.gender as gender -> patient.gender = translate(gender, 'http://openhie.org/fhir/zambia-immunizations/ConceptMap/AdministrativeSexToAdministrativeGender', 'code') "SetGender"; | ||
} |
14 changes: 14 additions & 0 deletions
14
input/maps/PropietaryEducationLevelToLOINCEducationLevel.fml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/*/// url = 'http://openhie.org/fhir/zambia-immunizations/StructureMap/PropietaryEducationLevelToLOINCEducationLevel' | ||
/// name = 'PropietaryEducationLevelToLOINCEducationLevel' | ||
/// description = 'Maps the Propietary Educational Level codes To LOINC Educational Level codes.' | ||
/// title = 'Propietary Educational Level To LOINC Educational Level' | ||
/// status = 'active' | ||
|
||
uses "http://openhie.org/fhir/zambia-immunizations/StructureDefinition/immunization-patient" alias PatientProfile as source | ||
uses "http://openhie.org/fhir/zambia-immunizations/StructureDefinition/immunization-patient" alias Patient as target | ||
|
||
group SetPatientEducationalLevel(source pat : PatientProfile, target patient : Patient) { | ||
pat.extension:EduLevelAttained as eduLevelAttained -> patient as patty then { | ||
//eduLevelAttained -> patty.code = translate(eduLevelAttained, 'http://openhie.org/fhir/zambia-immunizations/ConceptMap/PropietaryEducationLevelToLOINCEducationLevel', 'code') "SetEducationalLevel"; | ||
} | ||
}*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"index-version" : 2, | ||
"files" : [] | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"index-version" : 2, | ||
"files" : [] | ||
} |
Binary file not shown.
Oops, something went wrong.