{{#if localTitle}} {{localTitle}} Details {{else}} <No Title> Details {{/if}}

Facility:
{{facilityName}}

Author:
{{authorDisplayName}}

Status:
{{statusDisplayName}}

Date/Time:
{{#if referenceDateTime}} {{formatDateTime referenceDateTime "YYYYMMDDHHmmssSSS" "datetime"}} {{else}} <No Date> {{/if}}

Note:

{{#compare app "vista"}}
{{#compare displayGroup "unsigned"}} {{#compare status "UNSIGNED"}}

This Unsigned note was created outside of eHMP. Edit the note in CPRS.

{{/compare}} {{/compare}}
{{/compare}} {{#if userCanCosign}} {{#compare app "vista"}}
{{#compare displayGroup "uncosigned"}}

This un-cosigned note was created outside of eHMP. Complete the note in CPRS.

{{/compare}} {{#compare displayGroup "signed"}} {{#compare status "UNCOSIGNED"}}

This un-cosigned note was created outside of eHMP. Complete the note in CPRS.

{{/compare}} {{/compare}}
{{/compare}} {{#compare app "ehmp"}}
{{#compare displayGroup "uncosigned"}}

This note was created in eHMP, but must be cosigned in CPRS in v2.0

{{/compare}} {{#compare displayGroup "signed"}} {{#compare status "UNCOSIGNED"}}

This note was created in eHMP, but must be cosigned in CPRS in v2.0

{{/compare}} {{/compare}}
{{/compare}} {{/if}} {{#if text}}
{{contentPreview}}{{signaturePreview}}
{{/if}} {{#if addenda}}
Addenda
{{#each addenda}} {{#each text}}

Date of Addendum:
{{formatDateTime dateTime "YYYYMMDDHHmmssSSS" "datetime"}}

Author:
{{authorDisplayName}}

Status:
{{status}}

Addendum:

{{#compare app "vista"}}
{{#compare status "UNSIGNED"}} {{#if noPermission}}

This addendum was created by another user. Contact the author for more information.

{{/if}}

This Unsigned addendum was created outside of eHMP. {{#unless noPermission}}Edit the addendum in CPRS.{{/unless}}

{{/compare}}
{{/compare}} {{#compare app "ehmp"}}
{{#compare status "UNSIGNED"}} {{#if noPermission}}

This addendum was created by another user. Contact the author for more information.

{{/if}} {{/compare}}
{{/compare}} {{#if userCanCosignAddendum}}

This un-cosigned addendum was created outside of eHMP. Complete the note in CPRS.

{{/if}} {{#if userAwareOfCosignRequirement}}

This un-cosigned addendum was created outside of eHMP.

{{/if}}
{{contentPreview}}{{signaturePreview}}

{{/each}} {{/each}} {{/if}}