Update list-document-reference.component.ts

Current shows mostly "unknown". This accurately reflects the category for all docs.
This commit is contained in:
OhHeyAlan 2023-08-15 22:37:59 -05:00 committed by Jason Kulatunga
parent 9be431c2a6
commit 25f37f37b9
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ export class ListDocumentReferenceComponent extends ListGenericResourceComponent
columnDefinitions: GenericColumnDefn[] = [
{ title: 'Date', versions: '*', format: 'date', getter: d => d.date },
{ title: 'Content', versions: '*', getter: d => d.content?.[0]?.attachment.title },
{ title: 'Category', versions: '*', format: 'codeableConcept', getter: d => d.category?.[0] }, // Document category
{ title: 'Category', versions: '*', getter: d => d.type.text }, // Document category - This is more accurate. Previous mostly shows "unknown".
{ title: 'Author', versions: '*', getter: d => d.author?.[0]?.display }, // Whoever creates the document
]