2626import org .slf4j .LoggerFactory ;
2727import org .springframework .beans .factory .annotation .Autowired ;
2828import org .springframework .transaction .annotation .Transactional ;
29- import org . springframework . web . bind . annotation . CrossOrigin ;
29+
3030import org .springframework .web .bind .annotation .PostMapping ;
3131import org .springframework .web .bind .annotation .RequestBody ;
3232import org .springframework .web .bind .annotation .RequestHeader ;
4949/**
5050 * @Objective Saving Cancer screening data for Nurse and Doctor both.
5151 */
52- @ CrossOrigin
5352@ RestController
5453@ RequestMapping (value = "/CS-cancerScreening" , headers = "Authorization" , consumes = "application/json" , produces = "application/json" )
5554public class CancerScreeningController {
@@ -69,8 +68,6 @@ public void setCancerScreeningServiceImpl(CSServiceImpl cSServiceImpl) {
6968 * @return success or failure response
7069 * @throws Exception
7170 */
72-
73- @ CrossOrigin
7471 @ Operation (summary = "Save cancer screening data collected by nurse" )
7572 @ PostMapping (value = { "/save/nurseData" })
7673 public String saveBenCancerScreeningNurseData (@ RequestBody String requestObj ,
@@ -107,8 +104,6 @@ public String saveBenCancerScreeningNurseData(@RequestBody String requestObj,
107104 * @param JSON requestObj
108105 * @return success or failure response
109106 */
110-
111- @ CrossOrigin
112107 @ Operation (summary = "Update cancer screening data by the doctor" )
113108 @ PostMapping (value = { "/save/doctorData" })
114109 public String saveBenCancerScreeningDoctorData (@ RequestBody String requestObj ,
@@ -140,7 +135,6 @@ public String saveBenCancerScreeningDoctorData(@RequestBody String requestObj,
140135 return response .toString ();
141136 }
142137
143- @ CrossOrigin ()
144138 @ Operation (summary = "Get beneficiary visit details" )
145139 @ PostMapping (value = { "/getBenDataFrmNurseToDocVisitDetailsScreen" })
146140 public String getBenDataFrmNurseScrnToDocScrnVisitDetails (
@@ -170,8 +164,6 @@ public String getBenDataFrmNurseScrnToDocScrnVisitDetails(
170164 * @param benRegID and benVisitID
171165 * @return history details in JSON format
172166 */
173-
174- @ CrossOrigin ()
175167 @ Operation (summary = "Get beneficiary cancer history" )
176168 @ PostMapping (value = { "/getBenDataFrmNurseToDocHistoryScreen" })
177169 public String getBenDataFrmNurseScrnToDocScrnHistory (
@@ -201,8 +193,6 @@ public String getBenDataFrmNurseScrnToDocScrnHistory(
201193 * @param benRegID and benVisitID
202194 * @return vital details in JSON format
203195 */
204-
205- @ CrossOrigin ()
206196 @ Operation (summary = "Get beneficiary vitals" )
207197 @ PostMapping (value = { "/getBenDataFrmNurseToDocVitalScreen" })
208198 public String getBenDataFrmNurseScrnToDocScrnVital (
@@ -232,8 +222,6 @@ public String getBenDataFrmNurseScrnToDocScrnVital(
232222 * @param benRegID and benVisitID
233223 * @return examination details in JSON format
234224 */
235-
236- @ CrossOrigin ()
237225 @ Operation (summary = "Get beneficiary examination details" )
238226 @ PostMapping (value = { "/getBenDataFrmNurseToDocExaminationScreen" })
239227 public String getBenDataFrmNurseScrnToDocScrnExamination (
@@ -263,8 +251,6 @@ public String getBenDataFrmNurseScrnToDocScrnExamination(
263251 * @param benRegID
264252 * @return previous family history details in JSON format
265253 */
266-
267- @ CrossOrigin ()
268254 @ Operation (summary = "Get beneficiary family history" )
269255 @ PostMapping (value = { "/getBenCancerFamilyHistory" })
270256 public String getBenCancerFamilyHistory (
@@ -296,8 +282,6 @@ public String getBenCancerFamilyHistory(
296282 * @param benRegID
297283 * @return previous personal history details in JSON format
298284 */
299-
300- @ CrossOrigin ()
301285 @ Operation (summary = "Get beneficiary personal history" )
302286 @ PostMapping (value = { "/getBenCancerPersonalHistory" })
303287 public String getBenCancerPersonalHistory (
@@ -329,8 +313,6 @@ public String getBenCancerPersonalHistory(
329313 * @param benRegID
330314 * @return previous personal history details in JSON format
331315 */
332-
333- @ CrossOrigin ()
334316 @ Operation (summary = "Get beneficiary personal diet history" )
335317 @ PostMapping (value = { "/getBenCancerPersonalDietHistory" })
336318 public String getBenCancerPersonalDietHistory (
@@ -362,8 +344,6 @@ public String getBenCancerPersonalDietHistory(
362344 * @param benRegID
363345 * @return previous obstetric history details in JSON format
364346 */
365-
366- @ CrossOrigin ()
367347 @ Operation (summary = "Get beneficiary obstetric history" )
368348 @ PostMapping (value = { "/getBenCancerObstetricHistory" })
369349 public String getBenCancerObstetricHistory (
@@ -394,8 +374,6 @@ public String getBenCancerObstetricHistory(
394374 * @param benRegID
395375 * @return diagnosis details in JSON format
396376 */
397-
398- @ CrossOrigin ()
399377 @ Operation (summary = "Get beneficiary case record and referral details" )
400378 @ PostMapping (value = { "/getBenCaseRecordFromDoctorCS" })
401379 @ Transactional (rollbackFor = Exception .class )
@@ -422,7 +400,6 @@ public String getBenCaseRecordFromDoctorCS(
422400 return response .toString ();
423401 }
424402
425- @ CrossOrigin
426403 @ Operation (summary = "Update cancer screening history" )
427404 @ PostMapping (value = { "/update/historyScreen" })
428405 public String updateCSHistoryNurse (
@@ -474,8 +451,6 @@ public String updateCSHistoryNurse(
474451 * @objective Replace Cancer Screening Vital Details entered by Nurse with the
475452 * details entered by Doctor
476453 */
477-
478- @ CrossOrigin
479454 @ Operation (summary = "Update beneficiary vitals" )
480455 @ PostMapping (value = { "/update/vitalScreen" })
481456 public String upodateBenVitalDetail (
@@ -514,8 +489,6 @@ public String upodateBenVitalDetail(
514489 * @objective Replace Cancer Screening examination Details entered by Nurse with
515490 * the details entered by Doctor
516491 */
517-
518- @ CrossOrigin
519492 @ Operation (summary = "Update beneficiary examination details" )
520493 @ PostMapping (value = { "/update/examinationScreen" })
521494 public String upodateBenExaminationDetail (@ RequestBody String requestObj ) {
@@ -551,8 +524,6 @@ public String upodateBenExaminationDetail(@RequestBody String requestObj) {
551524 * @objective update Cancer Diagnosis Details By Oncologist
552525 *
553526 */
554-
555- @ CrossOrigin
556527 @ Operation (summary = "Update cancer diagnosis details by oncologist" )
557528 @ PostMapping (value = { "/update/examinationScreen/diagnosis" })
558529 public String updateCancerDiagnosisDetailsByOncologist (
@@ -587,8 +558,6 @@ public String updateCancerDiagnosisDetailsByOncologist(
587558 * @objective Replace doctor data for the doctor next visit
588559 *
589560 */
590-
591- @ CrossOrigin
592561 @ Operation (summary = "Update cancer screening data" )
593562 @ PostMapping (value = { "/update/doctorData" })
594563 public String updateCancerScreeningDoctorData (@ RequestBody String requestObj ) {
0 commit comments