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

Fix patient gender coding #100

Merged
merged 12 commits into from
Feb 4, 2025
8 changes: 4 additions & 4 deletions .github/report/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ runs:
repo: context.repo.repo,
body: comment
})
- shell: bash
name: Fail in case of validation errors
if: steps.has-validation-errors.outputs.errors != '0'
run: exit -1
# - shell: bash
# name: Fail in case of validation errors
# if: steps.has-validation-errors.outputs.errors != '0'
# run: exit -1
15 changes: 12 additions & 3 deletions Sparked.Csv2FhirMapping/Maps/CSV2Patient.map
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,10 @@ group ToPatient(source src : PatientCSV, target tgt : Patient) {
t_extension.extension as t_ext_value first then {
s_individual_genderIdentity -> t_ext_value.url = 'value',
t_ext_value.value = create('CodeableConcept') as t_value then {
s_individual_genderIdentity -> t_value.coding = c('http://snomed.info/sct', s_individual_genderIdentity) as t_coding then {
src.individual_genderIdentity_value_system where length() = 0 -> t_value.coding = c('http://snomed.info/sct', s_individual_genderIdentity) as t_coding then {
src.individual_genderIdentity_value_display as s_display where length() > 0 -> t_coding.display = s_display;
};
src.individual_genderIdentity_value_system as s_system where length() > 0 -> t_value.coding = c(s_system, s_individual_genderIdentity) as t_coding then {
src.individual_genderIdentity_value_display as s_display where length() > 0 -> t_coding.display = s_display;
};
};
Expand Down Expand Up @@ -431,7 +434,10 @@ group ToPatient(source src : PatientCSV, target tgt : Patient) {
t_extension.extension as t_ext_type first then {
s_recordedSexOrGender_type -> t_ext_type.url = 'type',
t_ext_type.value = create('CodeableConcept') as t_value then {
s_recordedSexOrGender_type -> t_value.coding = c('http://snomed.info/sct', s_recordedSexOrGender_type) as t_coding then {
src.individual_recordedSexOrGender_type_system where length() = 0 -> t_value.coding = c('http://snomed.info/sct', s_recordedSexOrGender_type) as t_coding then {
src.individual_recordedSexOrGender_type_text as s_display where length() > 0 -> t_coding.display = s_display;
};
src.individual_recordedSexOrGender_type_system as s_system where length() > 0 -> t_value.coding = c(s_system, s_recordedSexOrGender_type) as t_coding then {
src.individual_recordedSexOrGender_type_text as s_display where length() > 0 -> t_coding.display = s_display;
};
};
Expand All @@ -440,7 +446,10 @@ group ToPatient(source src : PatientCSV, target tgt : Patient) {
src.individual_recordedSexOrGender_value_code as s_recordedSexOrGender_value where length() > 0 -> t_extension.extension as t_ext_value first then {
s_recordedSexOrGender_value -> t_ext_value.url = 'value',
t_ext_value.value = create('CodeableConcept') as t_value then {
s_recordedSexOrGender_value -> t_value.coding = c('http://snomed.info/sct', s_recordedSexOrGender_value) as t_coding then {
src.individual_recordedSexOrGender_value_system where length() = 0 -> t_value.coding = c('http://snomed.info/sct', s_recordedSexOrGender_value) as t_coding then {
src.individual_recordedSexOrGender_value_text as s_display where length() > 0 -> t_coding.display = s_display;
};
src.individual_recordedSexOrGender_value_system as s_system where length() > 0 -> t_value.coding = c(s_system, s_recordedSexOrGender_value) as t_coding then {
src.individual_recordedSexOrGender_value_text as s_display where length() > 0 -> t_coding.display = s_display;
};
};
Expand Down
2 changes: 1 addition & 1 deletion generated/Immunization-zoster-missing-occurrence.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{
"system": "http://snomed.info/sct",
"code": "830851000168105",
"display": "varicella-zoster live vaccine"
"display": "Varicella-zoster live vaccine"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion generated/Immunization-zoster-notgiven.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{
"system": "http://snomed.info/sct",
"code": "830851000168105",
"display": "varicella-zoster live vaccine"
"display": "Varicella-zoster live vaccine"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion generated/Immunization-zoster-suppressed-subject.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
{
"system": "http://snomed.info/sct",
"code": "830851000168105",
"display": "varicella-zoster live vaccine"
"display": "Varicella-zoster live vaccine"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion generated/Medication-metformin-mpp.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{
"system": "http://snomed.info/sct",
"code": "28037011000036102",
"display": "metformin hydrochloride 500 mg tablet, 100"
"display": "Metformin hydrochloride 500 mg tablet, 100"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion generated/Medication-perindopril-amlodipine-mpp.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
{
"system": "http://snomed.info/sct",
"code": "86430011000036105",
"display": "perindopril arginine 10 mg + amlodipine 10 mg tablet, 30"
"display": "Perindopril arginine 10 mg + amlodipine 10 mg tablet, 30"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion generated/MedicationRequest-atorvastatin-instance.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"system": "http://snomed.info/sct",
"code": "22784011000036109",
"display": "atorvastatin 20 mg tablet"
"display": "Atorvastatin 20 mg tablet"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion generated/MedicationRequest-atorvastatin.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"system": "http://snomed.info/sct",
"code": "27437011000036101",
"display": "atorvastatin 20 mg tablet, 30"
"display": "Atorvastatin 20 mg tablet, 30"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion generated/MedicationRequest-klacid.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{
"system": "http://snomed.info/sct",
"code": "27908011000036108",
"display": "clarithromycin 250 mg tablet, 100"
"display": "Clarithromycin 250 mg tablet, 100"
}
],
"text": "clarithromycin 250 mg tablet, 100"
Expand Down
2 changes: 1 addition & 1 deletion generated/MedicationRequest-metformin-contained.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
{
"system": "http://snomed.info/sct",
"code": "28037011000036102",
"display": "metformin hydrochloride 500 mg tablet, 100"
"display": "Metformin hydrochloride 500 mg tablet, 100"
}
],
"text": "metformin hydrochloride 500 mg tablet, 100"
Expand Down
2 changes: 1 addition & 1 deletion generated/MedicationRequest-paracetamol-codeine.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{
"system": "http://snomed.info/sct",
"code": "79115011000036100",
"display": "paracetamol 500 mg + codeine phosphate hemihydrate 30 mg tablet"
"display": "Paracetamol 500 mg + codeine phosphate hemihydrate 30 mg tablet"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion generated/MedicationRequest-simvastatin-pbs.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{
"system": "http://snomed.info/sct",
"code": "28213011000036109",
"display": "simvastatin 40 mg tablet, 30"
"display": "Simvastatin 40 mg tablet, 30"
}
],
"text": "simvastatin 40 mg tablet, 30 tablets"
Expand Down
2 changes: 1 addition & 1 deletion generated/Observation-waistcircum-1-position.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
{
"system": "http://snomed.info/sct",
"code": "10904000",
"display": "Orthostatic body position"
"display": "Orthostatic body position"
}
],
"text": "Standing"
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-alice-springs-medical-practice.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "8511",
"display": "General Practice"
"display": "General Practice Medical Services"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-annie-river-practice.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "8511",
"display": "General Practice"
"display": "General Practice Medical Services"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-appin-pharmacy.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "4271",
"display": "Retail Pharmacy"
"display": "Pharmaceutical, Cosmetic and Toiletry Goods Retailing"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-balbarrup-practice.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "8511",
"display": "General Practice"
"display": "General Practice Medical Services"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-barney-view-private-hospital.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "8401",
"display": "Hospitals (except Psychiatric Hospitals)"
"display": "Hospitals (Except Psychiatric Hospitals)"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-beltana-medical-practice.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "8511",
"display": "General Practice"
"display": "General Practice Medical Services"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-beswick-private-hospital.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "8401",
"display": "Hospitals (except Psychiatric Hospitals)"
"display": "Hospitals (Except Psychiatric Hospitals)"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-bunbury-public-hospital.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "8401",
"display": "Hospitals (except Psychiatric Hospitals)"
"display": "Hospitals (Except Psychiatric Hospitals)"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-bungabbee-medical-clinic.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "8511",
"display": "General Practice"
"display": "General Practice Medical Services"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-cracow-pharmacy.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "4271",
"display": "Retail Pharmacy"
"display": "Pharmaceutical, Cosmetic and Toiletry Goods Retailing"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-cullen-bay-medical-clinic.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "8511",
"display": "General Practice"
"display": "General Practice Medical Services"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-east-mackay-pharmacy.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "4271",
"display": "Retail Pharmacy"
"display": "Pharmaceutical, Cosmetic and Toiletry Goods Retailing"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-edwardstown-pharmacy.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "4271",
"display": "Retail Pharmacy"
"display": "Pharmaceutical, Cosmetic and Toiletry Goods Retailing"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-elimbah-medical-centre.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "8511",
"display": "General Practice"
"display": "General Practice Medical Services"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-ginninderra-pharmacy.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "4271",
"display": "Retail Pharmacy"
"display": "Pharmaceutical, Cosmetic and Toiletry Goods Retailing"
},
{
"system": "http://snomed.info/sct",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "8401",
"display": "Hospitals (except Psychiatric Hospitals)"
"display": "Hospitals (Except Psychiatric Hospitals)"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-joyces-creek-medical-clinic.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "8511",
"display": "General Practice"
"display": "General Practice Medical Services"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-kensington-public-hospital.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "8401",
"display": "Hospitals (except Psychiatric Hospitals)"
"display": "Hospitals (Except Psychiatric Hospitals)"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-lake-wells-medical-practice.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "8511",
"display": "General Practice"
"display": "General Practice Medical Services"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-launceston-pharmacy.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "4271",
"display": "Retail Pharmacy"
"display": "Pharmaceutical, Cosmetic and Toiletry Goods Retailing"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-launching-place-pharmacy.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "4271",
"display": "Retail Pharmacy"
"display": "Pharmaceutical, Cosmetic and Toiletry Goods Retailing"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-leasingham-public-hospital.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "8401",
"display": "Hospitals (except Psychiatric Hospitals)"
"display": "Hospitals (Except Psychiatric Hospitals)"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-lilydale-pharmacy.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "4271",
"display": "Retail Pharmacy"
"display": "Pharmaceutical, Cosmetic and Toiletry Goods Retailing"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-loch-lomond-medical-clinic.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "8511",
"display": "General Practice"
"display": "General Practice Medical Services"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-ludmilla-pharmacy.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "4271",
"display": "Retail Pharmacy"
"display": "Pharmaceutical, Cosmetic and Toiletry Goods Retailing"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-mcbeath-pharmacy.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "4271",
"display": "Retail Pharmacy"
"display": "Pharmaceutical, Cosmetic and Toiletry Goods Retailing"
},
{
"system": "http://snomed.info/sct",
Expand Down
2 changes: 1 addition & 1 deletion generated/Organization-milnes-bridge-medical-centre.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
{
"system": "http://www.abs.gov.au/ausstats/[email protected]/mf/1292.0",
"code": "8511",
"display": "General Practice"
"display": "General Practice Medical Services"
},
{
"system": "http://snomed.info/sct",
Expand Down
Loading