Skip to content

Commit

Permalink
Fix undefined address line in Patient resource template
Browse files Browse the repository at this point in the history
Add additional check for patient contact address line
  • Loading branch information
daniellrgn authored Oct 7, 2024
1 parent fab0ce5 commit c547f1e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lib/resource-templates/Patient.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,11 @@
<tr>
<td>{contact.address.use ?? ""}</td>
<td>
{#each contact.address.line as line}
{line}<br />
{/each}
{#if contact.address.line}
{#each contact.address.line as line}
{line}<br />
{/each}
{/if}
{contact.address.city ?? "[Unknown City]"}{
contact.address.state
? `, ${contact.address.state}`
Expand Down

0 comments on commit c547f1e

Please sign in to comment.