Class PatientAppointmentController
- Namespace
- adas_core.Controllers
- Assembly
- adas-core.dll
[Route("appointments")]
[ApiController]
public class PatientAppointmentController : ControllerBase
- Inheritance
-
PatientAppointmentController
- Inherited Members
- Extension Methods
Constructors
PatientAppointmentController(IAppointmentService)
public PatientAppointmentController(IAppointmentService appointmentService)
Parameters
appointmentServiceIAppointmentService
Methods
ProcessRequest(AppointmentDto)
Processes an incoming appointment request by constructing an API request of type "SIU_S12" and persisting it asynchronously.
[HttpPost]
[AuthorizeRoles(PermissionEnum.RolesType.AuthAdmin)]
public IActionResult ProcessRequest(AppointmentDto appointmentDto)
Parameters
appointmentDtoAppointmentDtoThe appointment data received in the request body, containing patient number, location, appointments, message time, and wait result.
Returns
- IActionResult
An IActionResult that returns an HTTP 200 OK response when the request is successfully saved.