Class PatientController
java.lang.Object
com.MedilaboSolutions.patient.controller.PatientController
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<SuccessResponse<PatientDto>> createPatient
(@Valid PatientRequestDto patientDto) org.springframework.http.ResponseEntity
<Void> deletePatient
(Long id) org.springframework.http.ResponseEntity
<SuccessResponse<List<PatientDto>>> org.springframework.http.ResponseEntity
<SuccessResponse<PatientDto>> getPatientById
(Long id, String correlationId) org.springframework.http.ResponseEntity
<Void> updateEarlyOnsetMailSent
(Long id, Boolean mailSent, String correlationId) org.springframework.http.ResponseEntity
<SuccessResponse<PatientDto>> updatePatient
(Long id, @Valid PatientRequestDto patientDto)
-
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
-
updateEarlyOnsetMailSent
-