Table of Contents

Class CreateAppointmentRequest

Namespace
Core.CliniCore.Requests.Appointments
Assembly
Core.CliniCore.dll

Request DTO for creating a new appointment

public class CreateAppointmentRequest
Inheritance
CreateAppointmentRequest
Inherited Members

Properties

End

[Required(ErrorMessage = "End time is required")]
public DateTime End { get; set; }

Property Value

DateTime

Notes

public string? Notes { get; set; }

Property Value

string

PatientId

[Required(ErrorMessage = "Patient ID is required")]
public Guid PatientId { get; set; }

Property Value

Guid

PhysicianId

[Required(ErrorMessage = "Physician ID is required")]
public Guid PhysicianId { get; set; }

Property Value

Guid

ReasonForVisit

public string? ReasonForVisit { get; set; }

Property Value

string

RoomNumber

Room number (1-999) where the appointment will take place. If specified, validates no double-booking of rooms.

[Range(1, 999, ErrorMessage = "Room number must be between 1 and 999")]
public int? RoomNumber { get; set; }

Property Value

int?

Start

[Required(ErrorMessage = "Start time is required")]
public DateTime Start { get; set; }

Property Value

DateTime