public async Task <ListModel <PatientPhysicalRecordModel> > Handle(GetPatientPhysicalRecordsListQuery request, CancellationToken cancellationToken)
            {
                var defaultSort = BuildSortList <PatientPhysicalRecord>(i => i.PatientPhysicalRecordId);

                return(await RetrieveListResults <PatientPhysicalRecord, PatientPhysicalRecordModel>(null, defaultSort, request, cancellationToken));
            }
 public async Task <ActionResult <ListModel <PatientPhysicalRecordModel> > > GetAll([FromQuery] GetPatientPhysicalRecordsListQuery request)
 {
     return(Ok(await Mediator.Send(request)));
 }