public void SaveAppointmentStatusValue() { IFhirAppointmentUpdater updater = new FhirAppointmentUpdater(GetFhirClient); var server = GetFhirClient(); var appt = new PmsAppointment() { AppointmentFhirID = "example", ArrivalStatus = Appointment.AppointmentStatus.Arrived }; updater.SaveAppointmentStatusValue(appt); var apptSaved = server.Read <Appointment>($"{server.Endpoint}Appointment/{appt.AppointmentFhirID}"); Assert.AreEqual(Appointment.AppointmentStatus.Arrived, apptSaved.Status); }
public void SaveAppointmentAsVideoMeeting() { IFhirAppointmentUpdater updater = new FhirAppointmentUpdater(GetFhirClient); var server = GetFhirClient(); var appt = new PmsAppointment() { AppointmentFhirID = "example", ArrivalStatus = Appointment.AppointmentStatus.Arrived }; string notes = "Video Link: blah2"; updater.SaveAppointmentAsVideoMeeting(appt, notes, notes); var apptSaved = server.Read <Appointment>($"{server.Endpoint}Appointment/{appt.AppointmentFhirID}"); Assert.IsTrue(apptSaved.Comment.Contains(notes), "expected the notes to contain the video link"); }