Update list-allergy-intolerance.component.ts

This commit is contained in:
OhHeyAlan 2023-08-04 00:22:24 -05:00 committed by Jason Kulatunga
parent 13c07c7ecd
commit 20c2dd0f44
1 changed files with 4 additions and 1 deletions

View File

@ -9,8 +9,11 @@ import {attributeXTime} from './utils';
})
export class ListAllergyIntoleranceComponent extends ListGenericResourceComponent {
columnDefinitions: GenericColumnDefn[] = [
{ title: 'Allergy', versions: '*', format: 'code', getter: a => a.code.coding[0] },
{ title: 'Date Recorded', versions: '*', format: 'date', getter: a => a.assertedDate || a.recordedDate },
// orig { title: 'Allergy', versions: '*', format: 'code', getter: a => a.code.coding[0] },
{ title: 'Allergy Type', versions: '*', getter: a => a.category[0] }, // Allergy Type
{ title: 'Allergic To', versions: '*', getter: a => a.code.text }, // Substance
{ title: 'Reaction', versions: '*', getter: a => a.reaction[0].manifestation[0].text }, // Reaction
{ title: 'Onset', versions: '*', format: 'date', getter: a => a.onsetDateTime },
{ title: 'Resolution Age', versions: '*', format: 'date', getter: a => a.extension.resolutionAge }
]