Update list-medication.component.ts
This commit is contained in:
parent
1f331d8853
commit
285e1ffdb7
|
@ -6,15 +6,10 @@ import {GenericColumnDefn, ListGenericResourceComponent} from './list-generic-re
|
||||||
templateUrl: './list-generic-resource.component.html',
|
templateUrl: './list-generic-resource.component.html',
|
||||||
styleUrls: ['./list-generic-resource.component.scss']
|
styleUrls: ['./list-generic-resource.component.scss']
|
||||||
})
|
})
|
||||||
export class ListMedicationRequestComponent extends ListGenericResourceComponent {
|
export class ListMedicationComponent extends ListGenericResourceComponent {
|
||||||
columnDefinitions: GenericColumnDefn[] = [
|
columnDefinitions: GenericColumnDefn[] = [
|
||||||
// { title: 'Medication', versions: '*', format: 'code', getter: m => m.medicationCodeableConcept?.coding[0] },
|
{ title: 'Medication', versions: '*', format: 'code', getter: c => c.medicationCodeableConcept.coding[0] },
|
||||||
{ title: 'Author Date', versions: '*', format: 'date', getter: m => m.authoredOn },
|
{ title: 'Date Prescribed', versions: '*', format: 'date', getter: c => c.authoredOn },
|
||||||
{ title: 'Medication', versions: '*', getter: m => m.medicationCodeableConcept.coding[0].display }, //remove drug code
|
{ title: 'Status', 'versions': '*', getter: c => c.status }
|
||||||
{ 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] },
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue