"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getFutureAppointments = void 0;
const client_1 = require("../../client");
const getFutureAppointments = async (elationSettings, patientId) => {
    const api = (0, client_1.makeAPIClient)(elationSettings);
    const appointments = await api.findAppointments({
        patient: patientId,
        from_date: new Date().toISOString(),
    });
    return appointments.filter((appointment) => appointment.status.status === 'Scheduled' ||
        appointment.status.status === 'Confirmed');
};
exports.getFutureAppointments = getFutureAppointments;
//# sourceMappingURL=getFutureAppointments.js.map