Method: DdeClient::Api::V1::DdeController#refresh_patient
- Defined in:
- app/controllers/dde_client/api/v1/dde_controller.rb
#refresh_patient ⇒ Object
Updates local patient with demographics in Dde.
63 64 65 66 67 68 69 70 |
# File 'app/controllers/dde_client/api/v1/dde_controller.rb', line 63 def refresh_patient patient_id = params.require(:patient_id) update_npid = params[:update_npid]&.casecmp?('true') || false patient = service.update_local_patient(Patient.find(patient_id), update_npid: update_npid) render json: patient end |