update readme
do Ward table missing critical clinical columns
This commit is contained in:
@@ -16,9 +16,16 @@ const patients = [
|
||||
firstName: 'Alice',
|
||||
lastName: 'A',
|
||||
mrn: 'M1',
|
||||
room: '101',
|
||||
roomBed: '101',
|
||||
status: 'Active',
|
||||
news2Score: 3,
|
||||
sofaScore: 4,
|
||||
sofaDelta: 0,
|
||||
gcsScore: 15,
|
||||
qsofaScore: 0,
|
||||
attendingPhysician: 'Dr. A',
|
||||
admittedAt: '2026-06-21T10:00:00Z',
|
||||
lastObservationAt: '2026-06-23T13:00:00Z',
|
||||
sepsisActive: false,
|
||||
openAlertCount: 0,
|
||||
},
|
||||
@@ -27,9 +34,16 @@ const patients = [
|
||||
firstName: 'Bob',
|
||||
lastName: 'B',
|
||||
mrn: 'M2',
|
||||
room: '102',
|
||||
roomBed: '102',
|
||||
status: 'Active',
|
||||
news2Score: 5,
|
||||
sofaScore: 6,
|
||||
sofaDelta: 1,
|
||||
gcsScore: 12,
|
||||
qsofaScore: 1,
|
||||
attendingPhysician: 'Dr. B',
|
||||
admittedAt: '2026-06-22T10:00:00Z',
|
||||
lastObservationAt: '2026-06-23T10:00:00Z',
|
||||
sepsisActive: false,
|
||||
openAlertCount: 1,
|
||||
},
|
||||
@@ -38,9 +52,16 @@ const patients = [
|
||||
firstName: 'Carol',
|
||||
lastName: 'C',
|
||||
mrn: 'M3',
|
||||
room: '103',
|
||||
roomBed: '103',
|
||||
status: 'Active',
|
||||
news2Score: 8,
|
||||
sofaScore: 10,
|
||||
sofaDelta: 2,
|
||||
gcsScore: 8,
|
||||
qsofaScore: 2,
|
||||
attendingPhysician: 'Dr. C',
|
||||
admittedAt: '2026-06-20T10:00:00Z',
|
||||
lastObservationAt: '2026-06-23T08:00:00Z',
|
||||
sepsisActive: true,
|
||||
openAlertCount: 3,
|
||||
},
|
||||
@@ -67,4 +88,14 @@ describe('WardTable', () => {
|
||||
const highRiskRow = wrapper.findAll('tbody tr')[2]
|
||||
expect(highRiskRow.html()).toContain('text-severity-critical')
|
||||
})
|
||||
|
||||
it('showsExtendedClinicalColumns', () => {
|
||||
const wrapper = mount(WardTable, { props: { patients } })
|
||||
const header = wrapper.find('thead').text()
|
||||
expect(header).toContain('SOFA')
|
||||
expect(header).toContain('GCS')
|
||||
expect(header).toContain('Last vitals')
|
||||
expect(wrapper.text()).toContain('Dr. C')
|
||||
expect(wrapper.text()).toContain('Δ+2')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user