Class: Api::V1::RollbackController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Api::V1::RollbackController
- Defined in:
- app/controllers/dde_client/api/v1/rollback_controller.rb
Overview
controller for managing merge rollback
Instance Method Summary collapse
Instance Method Details
#merge_history ⇒ Object
5 6 7 8 |
# File 'app/controllers/dde_client/api/v1/rollback_controller.rb', line 5 def merge_history identifier = params.require(:identifier) render json: merge_service.get_patient_audit(identifier), status: :ok end |
#rollback_patient ⇒ Object
10 11 12 13 14 |
# File 'app/controllers/dde_client/api/v1/rollback_controller.rb', line 10 def rollback_patient patient_id = params.require(:patient_id) visit_type_id = params.require(:visit_type_id) render json: rollback_service.rollback_merged_patient(patient_id, visit_type_id), status: :ok end |