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

#19 add gender identity, individual pronouns, and sex assigned at birth #53

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
22 changes: 22 additions & 0 deletions Sparked.Csv2FhirMapping/Maps/CSV2Patient.map
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,17 @@ group ToPatient(source src : PatientCSV, target tgt : Patient) {
};
};

// individual_genderIdentity_value_text
src.individual_genderIdentity_value_text as s_text where length() > 0 and src.individual_genderIdentity_value_code.length() = 0 -> tgt.extension as t_extension first then {
s_text -> t_extension.url = 'http://hl7.org/fhir/StructureDefinition/individual-genderIdentity',
t_extension.extension as t_ext_value first then {
s_text -> t_ext_value.url = 'value',
t_ext_value.value = create('CodeableConcept') as t_value then {
s_text -> t_value.text = s_text;
};
};
};

// individual_pronouns_value_code
src.individual_pronouns_value_code as s_individual_pronouns where length() > 0 -> tgt.extension as t_extension first then {
s_individual_pronouns -> t_extension.url = 'http://hl7.org/fhir/StructureDefinition/individual-pronouns',
Expand All @@ -403,6 +414,17 @@ group ToPatient(source src : PatientCSV, target tgt : Patient) {
};
};

// individual_pronouns_value_text : TODO
src.individual_pronouns_value_text as s_text where length() > 0 and src.individual_pronouns_value_code.length() = 0 -> tgt.extension as t_extension first then {
s_text -> t_extension.url = 'http://hl7.org/fhir/StructureDefinition/individual-pronouns',
t_extension.extension as t_ext_value first then {
s_text -> t_ext_value.url = 'value',
t_ext_value.value = create('CodeableConcept') as t_value then {
s_text -> t_value.text = s_text;
};
};
};

// individual_recordedSexOrGender_type_code
src.individual_recordedSexOrGender_type_code as s_recordedSexOrGender_type where length() > 0 -> tgt.extension as t_extension first then {
s_recordedSexOrGender_type -> t_extension.url = 'http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender',
Expand Down
63 changes: 63 additions & 0 deletions generated/Patient-archibald-dante.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,69 @@
"code": "4",
"display": "Neither Aboriginal nor Torres Strait Islander origin"
}
},
{
"extension": [
{
"url": "value",
"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "446151000124109",
"display": "Identifies as male gender (finding)"
}
]
}
}
],
"url": "http://hl7.org/fhir/StructureDefinition/individual-genderIdentity"
},
{
"extension": [
{
"url": "value",
"valueCodeableConcept": {
"coding": [
{
"system": "http://loinc.org",
"code": "LA29518-0",
"display": "he/him/his/his/himself"
}
]
}
}
],
"url": "http://hl7.org/fhir/StructureDefinition/individual-pronouns"
},
{
"extension": [
{
"url": "type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "76689-9",
"display": "Sex Assigned At Birth"
}
]
}
},
{
"url": "value",
"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "male",
"display": "Male"
}
]
}
}
],
"url": "http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender"
}
],
"identifier": [
Expand Down
46 changes: 46 additions & 0 deletions generated/Patient-baldry-terence-emile.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,52 @@
"code": "1",
"display": "Aboriginal but not Torres Strait Islander origin"
}
},
{
"extension": [
{
"url": "value",
"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "446151000124109",
"display": "Identifies as male gender (finding)"
}
]
}
}
],
"url": "http://hl7.org/fhir/StructureDefinition/individual-genderIdentity"
},
{
"extension": [
{
"url": "type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "1515311000168102",
"display": "Biological sex at birth"
}
]
}
},
{
"url": "value",
"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "248153007",
"display": "Male"
}
]
}
}
],
"url": "http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender"
}
],
"identifier": [
Expand Down
19 changes: 19 additions & 0 deletions generated/Patient-baldwin-dinah.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,25 @@
"http://hl7.org.au/fhir/core/StructureDefinition/au-core-patient"
]
},
"extension": [
{
"extension": [
{
"url": "value",
"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "UNK",
"display": "Unknown"
}
]
}
}
],
"url": "http://hl7.org/fhir/StructureDefinition/individual-genderIdentity"
}
],
"identifier": [
{
"extension": [
Expand Down
34 changes: 34 additions & 0 deletions generated/Patient-ballantyne-sandy-choy.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,40 @@
"code": "2",
"display": "Torres Strait Islander but not Aboriginal origin"
}
},
{
"extension": [
{
"url": "value",
"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "33791000087105",
"display": "Identifies as gender nonbinary"
}
]
}
}
],
"url": "http://hl7.org/fhir/StructureDefinition/individual-genderIdentity"
},
{
"extension": [
{
"url": "value",
"valueCodeableConcept": {
"coding": [
{
"system": "http://loinc.org",
"code": "LA29518-0",
"display": "he/him/his/his/himself"
}
]
}
}
],
"url": "http://hl7.org/fhir/StructureDefinition/individual-pronouns"
}
],
"identifier": [
Expand Down
63 changes: 63 additions & 0 deletions generated/Patient-banks-jamila-angie.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,69 @@
"code": "4",
"display": "Neither Aboriginal nor Torres Strait Islander origin"
}
},
{
"extension": [
{
"url": "value",
"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "33791000087105",
"display": "Identifies as gender nonbinary"
}
]
}
}
],
"url": "http://hl7.org/fhir/StructureDefinition/individual-genderIdentity"
},
{
"extension": [
{
"url": "value",
"valueCodeableConcept": {
"coding": [
{
"system": "http://loinc.org",
"code": "LA29519-8",
"display": "she/her/her/hers/herself"
}
]
}
}
],
"url": "http://hl7.org/fhir/StructureDefinition/individual-pronouns"
},
{
"extension": [
{
"url": "type",
"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "76689-9",
"display": "Sex Assigned At Birth"
}
]
}
},
{
"url": "value",
"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "female",
"display": "Female"
}
]
}
}
],
"url": "http://hl7.org/fhir/StructureDefinition/individual-recordedSexOrGender"
}
],
"identifier": [
Expand Down
13 changes: 0 additions & 13 deletions generated/Patient-baratz-toni.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,18 +162,5 @@
"postalCode": "6054",
"country": "AU"
}
],
"communication": [
{
"language": {
"coding": [
{
"system": "urn:ietf:bcp:47",
"code": "yub"
}
],
"text": "Yugambal"
}
}
]
}
34 changes: 34 additions & 0 deletions generated/Patient-bassett-imogene-betsy.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,40 @@
"code": "2",
"display": "Torres Strait Islander but not Aboriginal origin"
}
},
{
"extension": [
{
"url": "value",
"valueCodeableConcept": {
"coding": [
{
"system": "http://snomed.info/sct",
"code": "UNK",
"display": "Unknown"
}
]
}
}
],
"url": "http://hl7.org/fhir/StructureDefinition/individual-genderIdentity"
},
{
"extension": [
{
"url": "value",
"valueCodeableConcept": {
"coding": [
{
"system": "http://loinc.org",
"code": "LA29519-8",
"display": "she/her/her/hers/herself"
}
]
}
}
],
"url": "http://hl7.org/fhir/StructureDefinition/individual-pronouns"
}
],
"identifier": [
Expand Down
Loading