public List <PatientSystemData> GetPatientSystems(GetPatientSystemsDataRequest request) { List <PatientSystemData> dataList = null; try { var repo = Factory.GetRepository(RepositoryType.PatientSystem); dataList = repo.FindByPatientId(request.PatientId) as List <PatientSystemData>; return(dataList); } catch (Exception ex) { throw ex; } }
public void GetPatientSystems_Test() { GetPatientSystemsDataRequest request = new GetPatientSystemsDataRequest { Context = context, ContractNumber = contractNumber, UserId = userId, Version = version, PatientId = "546d0d0684ac0508e43299d2" }; //[Route("/{Context}/{Version}/{ContractNumber}/Patient/{PatientId}/PatientSystems", "GET")] GetSystemsDataResponse response = client.Get <GetSystemsDataResponse>(string.Format("{0}/{1}/{2}/{3}/Patient/{4}/PatientSystems?UserId={5}", url, context, version, contractNumber, request.PatientId, request.UserId)); Assert.IsNotNull(response); }
public GetPatientSystemsDataResponse Get(GetPatientSystemsDataRequest request) { GetPatientSystemsDataResponse response = new GetPatientSystemsDataResponse(); try { RequireUserId(request); response.PatientSystemsData = Manager.GetPatientSystems(request); response.Version = request.Version; } catch (Exception ex) { RaiseException(response, ex); } return(response); }
List <PatientSystemData> IPatientSystemDataManager.GetPatientSystems(GetPatientSystemsDataRequest request) { throw new NotImplementedException(); }