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

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
feat(map): improved patient resource mapping
Refs: #1441
  • Loading branch information
jonahkaye committed Jan 23, 2024
commit 5fc8da9d62ee425c5a08336d499fa890b36b36fc
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" : "https://hl7.org/fhir/us/core/StructureDefinition/us-core-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
Loading