Class PatientController

java.lang.Object
com.MedilaboSolutions.patient.controller.PatientController

@RequestMapping("/patients") @RestController public class PatientController extends Object
  • Constructor Details

    • PatientController

      public PatientController()
  • Method Details

    • getAllPatients

      @GetMapping public org.springframework.http.ResponseEntity<SuccessResponse<List<PatientDto>>> getAllPatients()
    • getPatientById

      @GetMapping("/{id}") public org.springframework.http.ResponseEntity<SuccessResponse<PatientDto>> getPatientById(@PathVariable Long id, @RequestHeader("medilabo-solutions-correlation-id") String correlationId)
    • createPatient

      @PostMapping public org.springframework.http.ResponseEntity<SuccessResponse<PatientDto>> createPatient(@Valid @RequestBody @Valid PatientRequestDto patientDto)
    • updatePatient

      @PutMapping("/{id}") public org.springframework.http.ResponseEntity<SuccessResponse<PatientDto>> updatePatient(@PathVariable Long id, @Valid @RequestBody @Valid PatientRequestDto patientDto)
    • deletePatient

      @DeleteMapping("/{id}") public org.springframework.http.ResponseEntity<Void> deletePatient(@PathVariable Long id)
    • updateEarlyOnsetMailSent

      @PutMapping("/{id}/early-onset-mail") public org.springframework.http.ResponseEntity<Void> updateEarlyOnsetMailSent(@PathVariable Long id, @RequestParam Boolean mailSent, @RequestHeader("medilabo-solutions-correlation-id") String correlationId)