[HttpGet("getForPatient/{patientID}")] // GET /api/medicalExaminationReport/getForPatient/{id} public IActionResult GetMedicalExaminationReportsForPatient(int patientID) { List <MedicalExaminationReportDto> result = new List <MedicalExaminationReportDto>(); this.medicalExaminationReportService.GetMedicalExaminationReportsForPatient(patientID).ToList().ForEach( medicalExaminationReport => result.Add(MedicalExaminationReportMapper.MedicalExaminationReportToMedicalExaminationReportDto(medicalExaminationReport))); return(Ok(result)); }
[HttpGet("simpleSearchReportsForPatient")] // GET /api/medicalExaminationReport/simpleSearchReportsForPatient public IActionResult FindMedicalExaminationReportsForPatientUsingSimpleSearch([FromQuery(Name = "patientId")] int patientId, [FromQuery(Name = "doctor")] string doctor, [FromQuery(Name = "date")] string date, [FromQuery(Name = "comment")] string comment, [FromQuery(Name = "room")] string room) { List <MedicalExaminationReportDto> result = new List <MedicalExaminationReportDto>(); this.medicalExaminationReportService.FindReportsUsingSimpleSearch(patientId, doctor, date, comment, room).ToList().ForEach(medicalExaminationReport => result.Add(MedicalExaminationReportMapper.MedicalExaminationReportToMedicalExaminationReportDto(medicalExaminationReport))); return(Ok(result)); }
[HttpPost("advancedSearchReportsForPatient")] // POST /api/medicalExaminationReport/advancedSearchReportsForPatient public IActionResult FindMedicalExaminationReportsForPatient(MedicalExaminationReportDto dto) { List <MedicalExaminationReportDto> result = new List <MedicalExaminationReportDto>(); this.medicalExaminationReportService.FindReportsUsingAdvancedSearch(dto.PatientId, dto.SearchParams, dto.LogicOperators).ToList().ForEach(medicalExaminationReport => result.Add(MedicalExaminationReportMapper.MedicalExaminationReportToMedicalExaminationReportDto(medicalExaminationReport))); return(Ok(result)); }
[HttpGet("findReportsByRoom")] // GET /api/medicalExaminationReport/findReportsByRoom public IActionResult FindMedicalExaminationReportsByRoom([FromQuery(Name = "patientId")] int patientId, [FromQuery(Name = "room")] string room) { List <MedicalExaminationReportDto> result = new List <MedicalExaminationReportDto>(); this.medicalExaminationReportService.FindReportsForRoomParameter(patientId, room).ToList().ForEach(medicalExaminationReport => result.Add(MedicalExaminationReportMapper.MedicalExaminationReportToMedicalExaminationReportDto(medicalExaminationReport))); return(Ok(result)); }
[HttpGet] // GET /api/medicalExaminationReport public IActionResult GetAllMedicalExaminationReports() { List <MedicalExaminationReportDto> result = new List <MedicalExaminationReportDto>(); this.medicalExaminationReportService.GetAllEntities().ToList().ForEach(medicalExaminationReport => result.Add(MedicalExaminationReportMapper.MedicalExaminationReportToMedicalExaminationReportDto(medicalExaminationReport))); return(Ok(result)); }
[HttpGet("findReportsByComment")] // GET /api/medicalExaminationReport/findReportsByComment public IActionResult FindMedicalExaminationReportsByComment([FromQuery(Name = "patientId")] int patientId, [FromQuery(Name = "comment")] string comment) { List <MedicalExaminationReportDto> result = new List <MedicalExaminationReportDto>(); App.Instance().MedicalExaminationReportService.FindReportsForCommentParameter(patientId, comment).ToList().ForEach(medicalExaminationReport => result.Add(MedicalExaminationReportMapper.MedicalExaminationReportToMedicalExaminationReportDto(medicalExaminationReport))); return(Ok(result)); }