diff --git a/src/lib/components/resource-templates/Patient.svelte b/src/lib/components/resource-templates/Patient.svelte
index c7f3bcef..cfcc6e60 100644
--- a/src/lib/components/resource-templates/Patient.svelte
+++ b/src/lib/components/resource-templates/Patient.svelte
@@ -1,10 +1,12 @@
{#if resource.name}
@@ -23,121 +25,134 @@
{/if}
+
{#if resource.birthDate}
Birth Date: {resource.birthDate}
{/if}
{#if resource.gender}
Gender: {resource.gender ?? ""}
{/if}
-{#if resource.telecom}
-
-
- Contact Information |
-
- {#each resource.telecom as telecom}
-
- {telecom.system ?? ""} |
- {telecom.use ?? ""} |
- {telecom.value ?? ""} |
-
- {/each}
-
-{/if}
-{#if resource.address}
-
-
-
- Use |
- Address |
-
-
-
- {#each resource.address as address}
-
- {address.use ?? ""} |
-
- {#if address.line}
- {#each address.line as line}
- {line}
+{#if resource.telecom || resource.address || resource.contact}
+
+ {#if showContact}
+ {#if resource.telecom}
+
+
+ Contact Information |
+
+ {#each resource.telecom as telecom}
+
+ {telecom.system ?? ""} |
+ {telecom.use ?? ""} |
+ {telecom.value ?? ""} |
+
{/each}
- {/if}
- {address.city ?? "[Unknown City]"}{
- address.state
- ? `, ${address.state}`
- : ''
- }{address.country
- ? `, ${address.country}`
- : ''}
- {address.postalCode ?? ""}
-
-
- {/each}
-
-{/if}
-{#if resource.contact}
- {#each resource.contact as contact}
- Emergency Contact:
- {#if contact.relationship}
- {#each contact.relationship as relationship}
- {#if relationship.coding && relationship.coding[0].display}
- {relationship.coding[0].display}
- {/if}
- {/each}
-
- {/if}
- {#if contact.name}
-
- {contact.name.prefix ?? ""}
- {contact.name.given ? contact.name.given.join(' ') : ""}
- {contact.name.family ?? ""}
-
-
- {/if}
- {#if contact.gender}
- Gender: {contact.gender ?? ""}
- {/if}
- {#if contact.telecom}
-
-
- Contact Information |
-
- {#each contact.telecom as telecom}
-
- {telecom.system ?? ""} |
- {telecom.use ?? ""} |
- {telecom.value ?? ""} |
-
- {/each}
-
- {/if}
- {#if contact.address}
-
-
-
- Use |
- Address |
-
-
-
-
- {contact.address.use ?? ""} |
-
- {#if contact.address.line}
- {#each contact.address.line as line}
- {line}
+ |
+ {/if}
+ {#if resource.address}
+
+
+
+ Use |
+ Address |
+
+
+
+ {#each resource.address as address}
+
+ {address.use ?? ""} |
+
+ {#if address.line}
+ {#each address.line as line}
+ {line}
+ {/each}
+ {/if}
+ {address.city ?? "[Unknown City]"}{
+ address.state
+ ? `, ${address.state}`
+ : ''
+ }{address.country
+ ? `, ${address.country}`
+ : ''}
+ {address.postalCode ?? ""}
+ |
+
+ {/each}
+
+ {/if}
+ {#if resource.contact}
+ {#each resource.contact as contact}
+ Emergency Contact:
+ {#if contact.relationship}
+ {#each contact.relationship as relationship}
+ {#if relationship.coding && relationship.coding[0].display}
+ {relationship.coding[0].display}
+ {/if}
+ {/each}
+
+ {/if}
+ {#if contact.name}
+
+ {contact.name.prefix ?? ""}
+ {contact.name.given ? contact.name.given.join(' ') : ""}
+ {contact.name.family ?? ""}
+
+
+ {/if}
+ {#if contact.gender}
+ Gender: {contact.gender ?? ""}
+ {/if}
+ {#if contact.telecom}
+
+
+ Contact Information |
+
+ {#each contact.telecom as telecom}
+
+ {telecom.system ?? ""} |
+ {telecom.use ?? ""} |
+ {telecom.value ?? ""} |
+
{/each}
- {/if}
- {contact.address.city ?? "[Unknown City]"}{
- contact.address.state
- ? `, ${contact.address.state}`
- : ''
- }{contact.address.country
- ? `, ${contact.address.country}`
- : ''}
- {contact.address.postalCode ?? ""}
-
-
-
+ |
+ {/if}
+ {#if contact.address}
+
+
+
+ Use |
+ Address |
+
+
+
+
+ {contact.address.use ?? ""} |
+
+ {#if contact.address.line}
+ {#each contact.address.line as line}
+ {line}
+ {/each}
+ {/if}
+ {contact.address.city ?? "[Unknown City]"}{
+ contact.address.state
+ ? `, ${contact.address.state}`
+ : ''
+ }{contact.address.country
+ ? `, ${contact.address.country}`
+ : ''}
+ {contact.address.postalCode ?? ""}
+ |
+
+
+ {/if}
+ {/each}
+ {/if}
{/if}
- {/each}
{/if}
diff --git a/src/lib/components/viewer/IPSContent.svelte b/src/lib/components/viewer/IPSContent.svelte
index 8316f00b..cc6de39f 100644
--- a/src/lib/components/viewer/IPSContent.svelte
+++ b/src/lib/components/viewer/IPSContent.svelte
@@ -298,7 +298,7 @@
/* Limit height for section content window */
:global(.ips-section > .accordion-collapse > .accordion-body) {
overflow: auto !important;
- max-height: 40rem !important;
+ max-height: 50rem !important;
}
.code {
diff --git a/src/routes/(viewer)/ips/+page.svelte b/src/routes/(viewer)/ips/+page.svelte
index dcfed60e..e02b8498 100644
--- a/src/routes/(viewer)/ips/+page.svelte
+++ b/src/routes/(viewer)/ips/+page.svelte
@@ -230,19 +230,19 @@
{#each shlContents as contents, index}
{getTabLabel(contents)}
-
+
{/each}
{#if SHOW_VIEWER_DEMO}
IPS Demo
-
+
{/if}
{:else}
-
+
{/if}