From 24f1e92d7167e72b1dca438f2d9fd88afeb5e52e Mon Sep 17 00:00:00 2001 From: OhHeyAlan Date: Tue, 17 Oct 2023 12:15:02 -0500 Subject: [PATCH 1/2] Update list-medication.component.ts Fixed to display medication name. Status and Rx date still not in FHIR response. --- .../list-generic-resource/list-medication.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/components/list-generic-resource/list-medication.component.ts b/frontend/src/app/components/list-generic-resource/list-medication.component.ts index a17704d7..7ee1c183 100644 --- a/frontend/src/app/components/list-generic-resource/list-medication.component.ts +++ b/frontend/src/app/components/list-generic-resource/list-medication.component.ts @@ -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 } ] From e0373a9ec97301580710cba2d04fa7817f0656fd Mon Sep 17 00:00:00 2001 From: Jason Kulatunga Date: Tue, 17 Oct 2023 18:27:56 -0700 Subject: [PATCH 2/2] Update list-medication.component.ts using codeableConcept formatter --- .../list-generic-resource/list-medication.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/components/list-generic-resource/list-medication.component.ts b/frontend/src/app/components/list-generic-resource/list-medication.component.ts index 7ee1c183..11ddbfd5 100644 --- a/frontend/src/app/components/list-generic-resource/list-medication.component.ts +++ b/frontend/src/app/components/list-generic-resource/list-medication.component.ts @@ -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 } ]