From 67b6782d3b7e8b65107f6080c0efbd49c40c6538 Mon Sep 17 00:00:00 2001 From: Ilya Beda Date: Wed, 18 Dec 2024 05:31:55 +0400 Subject: [PATCH] Fix ts error --- .../components/StandardCard/prepare.tsx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx b/src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx index 57436773..58ca0bcd 100644 --- a/src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx +++ b/src/containers/PatientDetails/PatientOverviewDynamic/components/StandardCard/prepare.tsx @@ -15,7 +15,7 @@ import { } from 'fhir/r4b'; import _ from 'lodash'; import moment from 'moment'; -import { extractExtension, fromFHIRReference } from 'sdc-qrf'; +import { extractExtension } from 'sdc-qrf'; import { WithId, extractBundleResources, formatFHIRDate, parseFHIRDateTime } from '@beda.software/fhir-react'; @@ -281,12 +281,14 @@ export function prepareAppointmentDetails(appointment: Appointment) { ]; //TODO agree on terminology for Appointment.particioant.type and use it - const participants = appointment.participant.filter(p => p.type?.[0]?.coding?.[0]?.code !== 'patient').map(participant => ({ - title: participant.type?.[0]?.text, - value: participant.actor?.display, - })) + const participants = appointment.participant + .filter((p) => p.type?.[0]?.coding?.[0]?.code !== 'patient') + .map((participant) => ({ + title: participant.type?.[0]?.text, + value: participant.actor?.display, + })); - return [...appointmentDetails, ...participants] + return [...appointmentDetails, ...participants]; } export function prepareServiceRequest(