Update list-medication.component.ts

using codeableConcept formatter
This commit is contained in:
Jason Kulatunga 2023-10-17 18:27:56 -07:00 committed by GitHub
parent 24f1e92d71
commit e0373a9ec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ import {GenericColumnDefn, ListGenericResourceComponent} from './list-generic-re
})
export class ListMedicationComponent extends ListGenericResourceComponent {
columnDefinitions: GenericColumnDefn[] = [
{ title: 'Medication', versions: '*', getter: c => c.code.text },
{ title: 'Medication', versions: '*', format: 'codeableConcept', getter: c => c.code },
{ title: 'Date Prescribed', versions: '*', format: 'date', getter: c => c.authoredOn },
{ title: 'Status', 'versions': '*', getter: c => c.status }
]