Class: DdeMahis::Api::V1::RollbackController
- Inherits:
-
DdeMahis::ApplicationController
- Object
- ActionController::API
- DdeMahis::ApplicationController
- DdeMahis::Api::V1::RollbackController
- Defined in:
- app/controllers/dde_mahis/api/v1/rollback_controller.rb
Instance Method Summary collapse
Instance Method Details
#merge_history ⇒ Object
8 9 10 11 |
# File 'app/controllers/dde_mahis/api/v1/rollback_controller.rb', line 8 def merge_history identifier = params.require(:identifier) render json: merge_service.get_patient_audit(identifier), status: :ok end |
#rollback_patient ⇒ Object
13 14 15 16 17 |
# File 'app/controllers/dde_mahis/api/v1/rollback_controller.rb', line 13 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 |