Skip to content

Commit 37c82d8

Browse files
committed
wip - fixed
1 parent 40a5ac9 commit 37c82d8

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

apps/ehr/src/pages/reports/InvoiceablePatients.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export default function InvoiceablePatients(): React.ReactElement {
252252
DOB
253253
</Typography>
254254
</TableCell>
255-
<TableCell style={{ width: '200px' }}>
255+
<TableCell>
256256
<Typography fontWeight="500" fontSize="14px">
257257
Appointment Date
258258
</Typography>
@@ -267,7 +267,7 @@ export default function InvoiceablePatients(): React.ReactElement {
267267
Responsible Party
268268
</Typography>
269269
</TableCell>
270-
<TableCell style={{ width: '200px' }}>
270+
<TableCell style={{ width: '70px' }}>
271271
<Typography fontWeight="500" fontSize="14px">
272272
Amount
273273
</Typography>
@@ -277,7 +277,7 @@ export default function InvoiceablePatients(): React.ReactElement {
277277
Claim id
278278
</Typography>
279279
</TableCell>
280-
<TableCell style={{ width: '200px' }}>
280+
<TableCell style={{ width: '100px' }}>
281281
<Typography fontWeight="500" fontSize="14px">
282282
Status
283283
</Typography>
@@ -354,6 +354,7 @@ export default function InvoiceablePatients(): React.ReactElement {
354354
onClick={() => {
355355
setSelectedReportToSend(report);
356356
}}
357+
variant="contained"
357358
>
358359
Invoice
359360
</Button>

packages/zambdas/src/ehr/get-invoices-tasks/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
} from 'fhir/r4b';
1414
import { DateTime } from 'luxon';
1515
import {
16+
DISPLAY_DATE_FORMAT,
1617
FHIR_EXTENSION,
1718
formatDateConfigurable,
1819
GET_INVOICES_TASKS_ZAMBDA_KEY,
@@ -114,12 +115,16 @@ function performEffect(taskGroups: TaskGroup[], total: number): GetInvoicesTasks
114115
}
115116
}
116117
const visitDate = formatDateConfigurable({ isoDate: appointment?.start, timezone });
118+
const finalizationDate = formatDateConfigurable({
119+
isoDate: taskInput.finalizationDate,
120+
format: DISPLAY_DATE_FORMAT + ' HH:mm',
121+
});
117122

118123
const patientPhoneNumber = group.relatedPerson && getPhoneNumberForIndividual(group.relatedPerson);
119124

120125
reports.push({
121126
claimId: taskInput.claimId ?? '---',
122-
finalizationDate: taskInput.finalizationDate ?? '---',
127+
finalizationDate: finalizationDate ?? '---',
123128
amountInvoiceable: `${(taskInput.amountCents ?? 0) / 100}`,
124129
visitDate: visitDate ?? '---',
125130
location: group.location?.name ?? '---',

0 commit comments

Comments
 (0)