Skip to content

Commit

Permalink
Fix ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
ir4y committed Dec 18, 2024
1 parent 459dba9 commit 67b6782
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 67b6782

Please sign in to comment.