コード例 #1
0
        [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));
        }
コード例 #2
0
        [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));
        }
コード例 #3
0
        [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));
        }
コード例 #4
0
        [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));
        }
コード例 #5
0
        [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));
        }
コード例 #6
0
        [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));
        }