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(