diff --git a/vigilcare-records-web/src/__tests__/views/CoverSheetView.test.ts b/vigilcare-records-web/src/__tests__/views/CoverSheetView.test.ts index 77e79a0..e2ead13 100644 --- a/vigilcare-records-web/src/__tests__/views/CoverSheetView.test.ts +++ b/vigilcare-records-web/src/__tests__/views/CoverSheetView.test.ts @@ -28,6 +28,31 @@ vi.mock('@/components/PatientSearch.vue', () => ({ }, })) +vi.mock('@/components/StatusBadge.vue', () => ({ + default: { + props: ['status'], + template: '{{ status }}', + }, +})) + +vi.mock('@/components/EmptyState.vue', () => ({ + default: { + props: ['title', 'description'], + template: '
{{ title }}
{{ message }}
+ Generate printable separators that reconnect scanned paper to batch metadata. +
| Code | -Batch Type | -Track | -Patient | -Assigned To | -Status | -Linked Batch | -Created | -
|---|---|---|---|---|---|---|---|
| {{ sheet.code }} | -{{ formatBatchType(sheet.batchType) }} | -
+ Last run: {{ lastGeneratedIds.length }} cover sheet(s) ready to print.
+
+
+
+
+
+ Preview++ Approximate printable layout for the current form values. + + +
+
+
+
+
+
+
+ VigilCare +Records · Cover Sheet +
+
+ |
- - - {{ sheet.patientName }} - ({{ sheet.patientMrn }}) - - — - | -- {{ sheet.assignToUserName ?? '—' }} - | -- - {{ sheet.isUsed ? 'Used' : 'Unused' }} - - | -
- |
- - {{ formatDate(sheet.createdAt) }} - | -
+ VCR-CS-XXXXXXXX +
++ {{ previewBatchType }} +
++ {{ track === 'BACKFILL' ? 'Backfill (Track A)' : 'Live Capture (Track B)' }} +
+Page {{ page }}
-| Code | +Batch Type | +Track | +Patient | +Assigned To | +Status | +Linked Batch | +Created | +
|---|---|---|---|---|---|---|---|
| {{ sheet.code }} | +{{ formatBatchType(sheet.batchType) }} | ++ + {{ sheet.track === 'BACKFILL' ? 'Backfill' : 'Live' }} + + | ++ + {{ sheet.patientName }} + + ({{ sheet.patientMrn }}) + + + — + | ++ {{ sheet.assignToUserName ?? '—' }} + | +
+ |
+
+ |
+ + {{ formatDate(sheet.createdAt) }} + | +
Page {{ page }}
+{{ searchError }}
- -- {{ searchTotal }} result(s) +
+ Read-only inspection of exposed FHIR resources for administrators and integration staff.
-| ID | -Name | -MRN | -DOB | -Status | -Patient | -Code | -Value | -Recorded | -
|---|---|---|---|---|---|---|---|---|
{{ formattedSelectedResource }}
- - Load all FHIR resources for a patient in one Bundle. -
+ +{{ everythingError }}
- -Name: {{ patientDisplayName(everythingPatient) }}
-MRN: {{ patientMrn(everythingPatient) }}
-DOB: {{ everythingPatient.birthDate ?? '—' }}
-Gender: {{ everythingPatient.gender ?? '—' }}
+ ++ {{ searchTotal }} result(s) +
+| ID | +Name | +MRN | +DOB | +Status | +Patient | +Code | +Value | +Recorded | +
|---|---|---|---|---|---|---|---|---|
| + {{ entry.resource?.id }} + | ++ {{ patientDisplayName(entry.resource) }} + | ++ {{ patientMrn(entry.resource) }} + | ++ {{ entry.resource?.birthDate ?? '—' }} + | ++ {{ entry.resource?.status ?? '—' }} + | ++ {{ subjectReference(entry.resource) }} + | ++ {{ observationCodeDisplay(entry.resource) }} + | ++ {{ observationValueDisplay(entry.resource) }} + | ++ {{ observationEffective(entry.resource) }} + | +
{{ formattedSelectedResource }}
+ Load all FHIR resources for a patient in one Bundle. +
+| ID | +Code | +Value | +Recorded | +
|---|---|---|---|
| {{ obs.id }} | +{{ observationCodeDisplay(obs) }} | +{{ observationValueDisplay(obs) }} | ++ {{ observationEffective(obs) }} + | +
- Scan or type a cover sheet barcode to auto-populate batch details. -
- -Cover Sheet Found
-- Select a file below and click "Upload with Cover Sheet" to create the batch. +
+ Create a digitization batch from a PDF or image scan.
-+ Optional. Scan or type a barcode to auto-fill batch details. +
- -+ Bedside observation recording — lighter than backfill digitization. +
+