{{#if fError}}

{{errorMsg}}

{{else}}
Details

Date:
{{formatDate dateTime "MM/DD/YYYY - HH:mm"}}

Type:
{{#if typeDisplayName}} {{typeDisplayName}} {{else}} N/A {{/if}}

Category:
{{#if categoryName}} {{categoryName}} {{else}} N/A {{/if}}

Patient class:
{{#if patientClassName}} {{patientClassName}} {{else}} N/A {{/if}}

{{#if appointmentStatus}}

Appointment status:
{{appointmentStatus}}

{{/if}}

Location:
{{#if locationDisplayName}} {{locationDisplayName}} {{else}} N/A {{/if}}

Stop code:
{{#if stopCodeName}} {{stopCodeName}} {{else}} N/A {{/if}}

Facility:
{{facilityName}}

{{#if providers}}
Providers
{{#each providers}}

{{#if primary}} Primary {{else}} Additional provider {{/if}}
{{providerDisplayName}}

{{/each}}
{{/if}} {{#if dischargeDiagnoses}}
Discharge diagnoses
{{#each dischargeDiagnoses}}

{{#if icdName}} {{icdName}} {{else}} Unknown {{/if}}

{{/each}}
{{/if}} {{#if movements}}
Movements
{{#each movements}} {{#if locationName}} {{else}} {{/if}} {{/each}}
This table represents data for movements categorized by date, location name, and type.
Date Location Name Type
{{formatDate dateTime}}{{locationName}}N/A{{movementType}}
{{/if}} {{#if reasonName }}
Reason

{{reasonName}}

{{/if}} {{#if cptInfo}}
Procedures
{{#each cptInfo}} {{#if comment}} {{else}} {{/if}} {{/each}}
This table represents data for procedures categorized by date, name, quantity, and comment.
Date Name Quantity Comment
{{formatDate entered}} {{name}} {{quantity}}{{comment}}N/A
{{/if}}
{{/if}}