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
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
Prev Previous commit
feat(map): merging develop to branch
Refs: #1449
  • Loading branch information
jonahkaye committed Jan 30, 2024
commit f75b568e6bcfb02a97b1fe92f42fd0f59c919914
15 changes: 7 additions & 8 deletions packages/fhir-converter/src/templates/cda/Header.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,13 @@
{{>References/Composition/custodian.hbs ID=(generateUUID (toJsonString this)) REF=(concat 'Organization/' (generateUUID (toJsonString this.custodian.assignedCustodian.representedCustodianOrganization)))}},
{{/if}}

{{#with (evaluate 'Utils/GeneratePatientId.hbs' obj=@metriportPatientId) as |patientId|}}
{{#each ../participant}}
{{#if this}}
{{>Resources/RelatedPerson.hbs relatedPerson=this.associatedEntity ID=(generateUUID (toJsonString this.associatedEntity)) REF=(concat 'Patient/' patientId.Id)}},
{{>References/Patient/link.other.hbs ID=(generateUUID (toJsonString this)) REF=(concat 'RelatedPerson/' (generateUUID (toJsonString this.associatedEntity)))}},
{{/if}}
{{/each}}
{{/with}}
{{#each (toArray this.participant)}}
{{#if this}}
{{>Resources/RelatedPerson.hbs relatedPerson=this.associatedEntity ID=(generateUUID (toJsonString this.associatedEntity))}},
{{>References/Patient/link.other.hbs ID=@metriportPatientId REF=(concat 'RelatedPerson/' (generateUUID (toJsonString this.associatedEntity)))}},
{{>References/RelatedPerson/patient.hbs ID=(generateUUID (toJsonString this.associatedEntity)) REF=(concat 'Patient/' @metriportPatientId)}},
{{/if}}
{{/each}}

{{/with}}

Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.