Update list-medication.component.ts

Fixed to display medication name. Status and Rx date still not in FHIR response.
This commit is contained in:
OhHeyAlan 2023-10-17 12:15:02 -05:00 committed by GitHub
parent f32004498a
commit 24f1e92d71
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: '*', format: 'codeableConcept', getter: c => c.medicationCodeableConcept },
{ title: 'Medication', versions: '*', getter: c => c.code.text },
{ title: 'Date Prescribed', versions: '*', format: 'date', getter: c => c.authoredOn },
{ title: 'Status', 'versions': '*', getter: c => c.status }
]