Skip to content

Commit

Permalink
Update list-allergy-intolerance.component.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
OhHeyAlan authored and AnalogJ committed Aug 9, 2023
1 parent 13c07c7 commit 20c2dd0
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
]
Expand Down

0 comments on commit 20c2dd0

Please sign in to comment.