The Ultimate Patient Appointment Manager App in .NET MAUI
Live Chat Icon For mobile
Live Chat Icon
Popular Categories.NET  (172).NET Core  (29).NET MAUI  (162)Angular  (100)ASP.NET  (51)ASP.NET Core  (81)ASP.NET MVC  (89)Azure  (40)Black Friday Deal  (1)Blazor  (194)BoldSign  (11)DocIO  (24)Essential JS 2  (102)Essential Studio  (195)File Formats  (56)Flutter  (127)JavaScript  (215)Microsoft  (118)PDF  (79)Python  (1)React  (93)Streamlit  (1)Succinctly series  (130)Syncfusion  (801)TypeScript  (33)Uno Platform  (3)UWP  (4)Vue  (45)Webinar  (47)Windows Forms  (59)WinUI  (65)WPF  (150)Xamarin  (160)XlsIO  (30)Other CategoriesBarcode  (5)BI  (29)Bold BI  (8)Bold Reports  (2)Build conference  (8)Business intelligence  (55)Button  (4)C#  (140)Chart  (103)Cloud  (14)Company  (443)Dashboard  (8)Data Science  (3)Data Validation  (8)DataGrid  (61)Development  (570)Doc  (7)DockingManager  (1)eBook  (98)Enterprise  (22)Entity Framework  (5)Essential Tools  (14)Excel  (31)Extensions  (22)File Manager  (6)Gantt  (17)Gauge  (12)Git  (5)Grid  (31)HTML  (13)Installer  (2)Knockout  (2)Language  (1)LINQPad  (1)Linux  (2)M-Commerce  (1)Metro Studio  (11)Mobile  (445)Mobile MVC  (9)OLAP server  (1)Open source  (1)Orubase  (12)Partners  (21)PDF viewer  (36)Performance  (12)PHP  (2)PivotGrid  (4)Predictive Analytics  (6)Report Server  (3)Reporting  (10)Reporting / Back Office  (11)Rich Text Editor  (12)Road Map  (11)Scheduler  (50)SfDataGrid  (9)Silverlight  (21)Sneak Peek  (29)Solution Services  (4)Spreadsheet  (11)SQL  (10)Stock Chart  (1)Surface  (4)Tablets  (5)Theme  (12)Tips and Tricks  (112)UI  (317)Uncategorized  (68)Unix  (2)User interface  (68)Visual State Manager  (2)Visual Studio  (28)Visual Studio Code  (17)Web  (527)What's new  (287)Windows 8  (19)Windows App  (2)Windows Phone  (15)Windows Phone 7  (9)WinRT  (26)
The Ultimate Patient Appointment Manager App in .NET MAUI

The Ultimate Patient Appointment Manager App in .NET MAUI

An appointment calendar can efficiently manage and organize patient appointments in healthcare organizations. It allows healthcare professionals and staff members to easily view, track, and manage patient appointments.

In our previous blog, “Creating a .NET MAUI Hospital Appointment Booking App,” we saw how to enable patients to book appointments with their preferred doctors. In this blog, we’ll see how to create a patient appointment manager app for doctors to easily keep track of their scheduled appointments using Syncfusion .NET MAUI controls.

The app will contain the following pages:

  • Login: To enter the app using credentials.
  • Profile: To view the doctor’s contact details for members of the organization.
  • Scheduler: To display the appointments booked for a day.
  • Appointments: To summarize upcoming and past appointments.
  • Logout: To log out of the app.

Let’s see the steps to design the patient appointment manager app using Syncfusion .NET MAUI controls!

Step 1: Designing the Login page

First, we need to create a login page to allow healthcare professionals (doctors) and staff members of the organization to access the app. Refer to the following code example to create a login model to get the credentials. 


public class LoginFormModel
   [Display(Prompt = "", Name = "Email")]
   [EmailAddress(ErrorMessage = "Enter your email -")]
   public string Email { get; set; }

   [Display(Name = "Password")]
   [Required(ErrorMessage = "Enter the password")]
   public string Password { get; set; }

Then, initialize the login details.


public ProfileViewModel() 
{ this.LoginFormModel = new LoginFormModel(); }

Now, add the Syncfusion .NET MAUI DataForm control to create the login form.


<dataForm:SfDataForm x:Name="loginForm" LayoutType="TextInputLayout" Grid.Row="1" DataObject="{Binding LoginFormModel}"  TextInputLayoutSettings="{dataForm:TextInputLayoutSettings FocusedStroke=#a64dff}" ValidationMode="PropertyChanged">

Then, register the handler for Syncfusion Core in the MauiProgram.cs file.


public static MauiApp CreateMauiApp()
   var builder = MauiApp.CreateBuilder();
Login Page in .NET MAUI Patient Appointment Manager App
Login page in .NET MAUI patient appointment manager app

Refer to the following code example to validate the user credentials when selecting the LOGIN button.


private async void loginButton_Clicked(object sender, EventArgs e)
   if (this.loginForm != null && App.Current?.MainPage != null)
       if (this.loginForm.Validate())
           App.Current.MainPage = new NavigationPage();
           App.Current.MainPage.Navigation.PushAsync(new AppShell());

Note: For more details, refer to the blog “Create and Validate a Login Form in .NET MAUI.”

Once we enter the credentials and select the LOGIN button, the user credentials will be validated. Then, the validated users will be directed to the shell page containing details of the Profile, Scheduler, Appointments, and Logout pages. We can add these pages into the shell page with the help of FlyoutItem.

Refer to the following code example.


 <FlyoutItem Title="Profile" Icon="profilepage.png">
  <ShellContent ContentTemplate="{DataTemplate local:ProfilePage}">
 <FlyoutItem Title="Scheduler" Icon="scheduler.png">
  <ShellContent ContentTemplate="{DataTemplate local:CalendarPage}"/>

 <FlyoutItem Title="Appointments" Icon="appointments.png">
  <ShellContent ContentTemplate="{DataTemplate local:AppointmentsPage}"/>

 <MenuItem Clicked="MenuItem_Clicked" IconImageSource="logout.png" Text="Logout"/>

Step 2: Designing the doctor’s profile page

After entering the credentials and clicking the LOGIN button, the user will be directed to the doctor’s Profile page to view the doctor’s contact information.

Refer to the following code example to design the doctor profile model.


public class ProfileDetails
    [DataFormDisplayOptions(ShowLabel =false)]
    public string Image { get; set; }
    public string Name { get; set; }    
    public DateTime DOB { get; set; }
    public string Gender { get; set; }

    [Display(Name = "Blood Group")]
    public string BloodGroup { get; set; }  
    public string Email { get; set; }   
    public string Phone { get; set; }

    public string Address { get; set; } 
    public string City { get; set; }    
    public string State { get; set; }
    public string PostalCode { get; set; }
    public string Country { get; set; }

    [Display(Name = "Emergency Contact Name")]
    public string EmergencyContactName { get; set; }

    [Display(Name = "Emergency Contact Number")]
    public string EmergencyContactNumber { get; set; }

Let’s initialize the doctor’s profile details like in the following code example.


public ProfileViewModel() { 
   this.ProfileDetails = new ProfileDetails(); 

Here, we’re going to display the doctor’s profile using the Syncfusion .NET MAUI DataForm control.


<dataform:SfDataForm x:Name="dataForm" IsReadOnly="True"  Background="#f8f7ff" VerticalOptions="Fill"  DataObject="{Binding ProfileDetails}"/>
Doctor Profile Page
Doctor profile page

Step 3: Designing the scheduler page

Then, create the Scheduler page to view or edit the scheduled appointments using the Syncfusion .NET MAUI Scheduler control.

To do so, first, create an event model for the scheduler.


public class Appointment
    /// <summary>
    /// Gets or sets the value to display the start date.
    /// </summary>
    public DateTime From { get; set; }

    /// <summary>
    /// Gets or sets the value to display the end date.
    /// </summary>
    public DateTime To { get; set; }

    /// <summary>
    /// Gets or sets the value indicating whether the appointment is all-day.
    /// </summary>
    public bool IsAllDay { get; set; }

    /// <summary>
    /// Gets or sets the value to display the subject.
    /// </summary>
    public string EventName { get; set; }

    /// <summary>
    /// Gets or sets the value to display the background.
    /// </summary>
    public Brush Background { get; set; }

    public string Location { get; set; }


Then, create the events, as seen in the following code example.


private void IntializeAppoitments()
    this.Events = new ObservableCollection<Appointment>();
    Random random = new();
    List<int> randomTimeCollection = this.GettingTimeRanges();

    DateTime date;
    DateTime dateFrom = DateTime.Now.AddDays(-2);
    DateTime dateTo = DateTime.Now.AddDays(3);
    int i = 0;
    for (date = dateFrom; date < dateTo; date = date.AddDays(1))
        var meeting = new Appointment();
        int hour = randomTimeCollection[random.Next(randomTimeCollection.Count)];
        meeting.From = new DateTime(date.Year, date.Month, date.Day, hour, 0, 0);
        meeting.To = meeting.From.AddHours(2);
        meeting.EventName = this.subjects.ElementAt(i);
        meeting.Background = this.GetColor(meeting.EventName);
        meeting.Location = this.GetImage(meeting.EventName);
        meeting.IsAllDay = false;

Now, bind the scheduler events to the AppointmentSource property.




<scheduler:SfScheduler View="Week" AppointmentsSource="{Binding Events}" DisplayDate="{Binding DisplayDate}">
  <scheduler:SchedulerAppointmentMapping Subject="EventName" StartTime="From" EndTime="To" Background="Background" IsAllDay="IsAllDay"/>

We can also customize the appearance of the scheduler appointments by adding images, customizing the text color, font size, and more. Refer to the following code example.

 <DataTemplate x:Key="dayAppointmentTemplate">
  <Grid RowDefinitions="0.35*,0.65*" Background="{Binding DataItem.Background}">
   <Label Text="{Binding DataItem.EventName}" VerticalOptions="Start"  TextColor="White" LineBreakMode="WordWrap" Margin="5,0" FontSize="12"/>
   <Image Aspect="AspectFit" VerticalOptions="Start"  Grid.Row="1" HorizontalOptions="Center" HeightRequest="30" WidthRequest="30" Source="{Binding DataItem.Location}"/>
 <scheduler:SchedulerDaysView AppointmentTemplate="{StaticResource dayAppointmentTemplate}"/>
Scheduler page in .NET MAUI patient appointment manager app
Scheduler page in .NET MAUI patient appointment manager app

Step 4: Listing upcoming and past appointments

Let’s design the Appointments page to list and track the upcoming and previous appointments. Refer to the following code example.

Here, we’ll add appointments in an agenda view using the Syncfusion .NET MAUI Scheduler’s agenda view.



<scheduler:SfScheduler View="Agenda" x:Name="Scheduler" AppointmentsSource="{Binding Events}" DisplayDate="{Binding DisplayDate}">
  <scheduler:SchedulerAppointmentMapping Subject="EventName" StartTime="From" EndTime="To" Background="Background" IsAllDay="IsAllDay"/>
  <scheduler:SchedulerAgendaView MonthHeaderTemplate="{StaticResource AgendaHeaderTemplate}"/>

Then, design the Scheduler to display the past and future appointments based on the user’s choice.

private void Button_Clicked(object sender, EventArgs e)
    var button = sender as Button;
    var upcomingAppointmentBorder = this.FindByName("UpcomingBorder") as BoxView;
    var pastAppointmentBordeer = this.FindByName("PastBordeer") as BoxView;

    if (button != null && button.Text == "Upcoming appointments")
       var upcomingEvents =  (this.BindingContext as SchedulerViewModel).Events.Where(x=>(x as Appointment).From > DateTime.Now).ToList();
       if(upcomingAppointmentBorder !=null)
          upcomingAppointmentBorder.Color = Color.FromArgb("#512BD4");	
       if(pastAppointmentBordeer != null)
          pastAppointmentBordeer.Color = Colors.Transparent;
       this.Scheduler.AppointmentsSource = upcomingEvents;
       this.Scheduler.MinimumDateTime = DateTime.Now;
       this.Scheduler.MaximumDateTime = DateTime.Now.AddDays(30);
   else if (button != null && button.Text == "Past appointments")
       var pastAppointments = (this.BindingContext as SchedulerViewModel).Events.Where(x => (x as Appointment).From < DateTime.Now).ToList();

        if (pastAppointmentBordeer != null)
           pastAppointmentBordeer.Color = Color.FromArgb("#512BD4");
        if(upcomingAppointmentBorder != null)
           upcomingAppointmentBorder.Color = Colors.Transparent;
        this.Scheduler.AppointmentsSource = pastAppointments;
        this.Scheduler.MinimumDateTime = DateTime.Now.AddDays(-30);
        this.Scheduler.MaximumDateTime = DateTime.Now;

Listing Upcoming Appointments
Listing upcoming appointments
Listing Past Appointments
Listing past appointments

Step 5: Designing the logout page

Finally, let’s create a logout module to exit the application.


<MenuItem Clicked="MenuItem_Clicked" IconImageSource="logout.png" Text="Logout"/>

Refer to the following code example to navigate to the login page by clicking the Logout option in the flyout item.


private void MenuItem_Clicked(object sender, EventArgs e)
   App.Current.MainPage = new NavigationPage();
   App.Current.MainPage.Navigation.PushAsync(new LoginPage());

GitHub reference

Also, check out the complete example for creating a .NET MAUI patient appointment manager app on GitHub.


Thanks for reading! In this blog, we’ve seen how to create a patient appointment manager app using Syncfusion .NET MAUI controls. We’d love to hear your thoughts, so try out the steps and please leave any feedback or specific requirements in the comments section below.

If you’re not already a Syncfusion customer, you can download a free trial of Essential Studio for .NET MAUI and start evaluating its controls immediately. You can also contact us through our support forumsupport portal, or feedback portal. We’re always here to assist you!

Test Flight
App Center Badge
Google Play Store Badge
Microsoft Badge
Github Store Badge

Related blogs


Share this post:

Comments (1)

best app for tuition. thanks very much

Comments are closed.

Popular Now

Be the first to get updates

Subscribe RSS feed
Scroll To Top