From b1f7c4777ba9e639d80003b2aa49a06f31aca845 Mon Sep 17 00:00:00 2001 From: OhHeyAlan Date: Fri, 4 Aug 2023 00:19:10 -0500 Subject: [PATCH] Update list-medication-request.component.ts --- .../list-medication-request.component.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/components/list-generic-resource/list-medication-request.component.ts b/frontend/src/app/components/list-generic-resource/list-medication-request.component.ts index dc842b2b..259172a5 100644 --- a/frontend/src/app/components/list-generic-resource/list-medication-request.component.ts +++ b/frontend/src/app/components/list-generic-resource/list-medication-request.component.ts @@ -8,12 +8,13 @@ import {GenericColumnDefn, ListGenericResourceComponent} from './list-generic-re }) export class ListMedicationRequestComponent extends ListGenericResourceComponent { columnDefinitions: GenericColumnDefn[] = [ - { title: 'Medication', versions: '*', format: 'code', getter: m => m.medicationCodeableConcept?.coding[0] }, - { title: 'Dosage Timing', versions: '*', format: 'period', getter: m => m.dosageInstruction[0]?.timing.repeat.boundsPeriod}, - { title: 'Dosage Date', versions: '*', format: 'date', getter: m => m.dosageInstruction[0]?.timing.event}, + // { title: 'Medication', versions: '*', format: 'code', getter: m => m.medicationCodeableConcept?.coding[0] }, { title: 'Author Date', versions: '*', format: 'date', getter: m => m.authoredOn }, + { title: 'Medication', versions: '*', getter: m => m.medicationCodeableConcept.coding[0].display }, //remove drug code + { title: 'Dosage Timing', versions: '*', format: 'period', getter: m => m.dosageInstruction[0]?.timing.repeat.boundsPeriod}, + // Not used { title: 'Dosage Date', versions: '*', format: 'date', getter: m => m.dosageInstruction[0]?.timing.event}, + { title: 'Route', versions: '*', format: 'code', getter: m => m.dosageInstruction[0]?.route.coding[0] }, { title: 'Do Not Perform', versions: '*', getter: m => m.doNotPerform}, { title: 'Reason', versions: '*', format: 'code', getter: m => m.reasonCode[0]?.coding[0] }, - { title: 'Route', versions: '*', format: 'code', getter: m => m.dosageInstruction[0]?.route.coding[0] } ] }