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

Mapping Improvements: Patient, Related Person #1504

Draft
wants to merge 3 commits into
base: develop
Choose a base branch
from
Draft
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
"state": "{{addr.state._}}",
"country": "{{addr.country._}}",
"postalCode": "{{addr.postalCode._}}",
"period": {{>DataType/Period.hbs period=addr.useablePeriod}}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tells you if the address is up to date by looking if its still in use. valuable to have

},
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
{{#if patient.religiousAffiliationCode}}

"url" : "http:https://hl7.org/fhir/StructureDefinition/patient-religion",
"valueCodeableConcept": {{>DataType/CodeableConcept.hbs code=patient.religiousAffiliationCode}}
{{/if}}
}

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"fullUrl":"urn:oid:{{ID}}",
"resource":{
{{!-- Missing providerOrganization > managingOrganization --}}
{{log (toJsonStringPrettier patientRole)}}
"resourceType": "Patient",
"meta": {
"profile": [
Expand All @@ -22,6 +23,7 @@
{{/each}}
],
"birthDate":"{{addHyphensDate patientRole.patient.birthTime.value}}",
"deceased":"{{patientRole.patient.s:deceasedInd.value}}",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems important lol

{{#with patientRole.patient.administrativeGenderCode}}
{{#if this.displayName}}
"gender":{{>ValueSet/AdministrativeGender.hbs code=this.displayName}},
Expand All @@ -32,6 +34,7 @@
"extension" : [
{{>Extensions/Race.hbs patient=patientRole.patient}},
{{>Extensions/Ethnicity.hbs patient=patientRole.patient}},
{{>Extensions/Religion.hbs patient=patientRole.patient}}
],
"maritalStatus":{{>DataType/CodeableConcept.hbs code=patientRole.patient.maritalStatusCode}},
"address":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@
{{/each}}
],
"birthDate":"{{addHyphensDate relatedPerson.guardianPerson.birthTime.value}}",
"patient":
{
"reference":"{{REF}}"
},
Copy link
Member Author

@jonahkaye jonahkaye Jan 23, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"gender":{{>ValueSet/AdministrativeGender.hbs code=relatedPerson.guardianPerson.administrativeGenderCode.displayName}},
"address":
[
Expand Down
Loading