Update list-document-reference.component.ts

This commit is contained in:
OhHeyAlan 2023-08-04 00:21:14 -05:00 committed by Jason Kulatunga
parent 22ca0837be
commit 69e0d1927c
1 changed files with 4 additions and 2 deletions

View File

@ -10,7 +10,9 @@ import {attributeXTime} from './utils';
export class ListDocumentReferenceComponent extends ListGenericResourceComponent {
columnDefinitions: GenericColumnDefn[] = [
{ title: 'Date', versions: '*', format: 'date', getter: d => d.date },
{ title: 'Content', versions: '*', getter: d => atob(d.content[0].attachment.data) }
{ title: 'Content', versions: '*', getter: d => d.content[0].attachment.title }, // cerner works
{ title: 'Category', versions: '*', getter: d => d.category[0].text }, // Document category
{ title: 'Author', versions: '*', getter: d => d.author[0].display }, // Whoever creates the document
]
}