Class: OrcaApi::IncomeService

Inherits:
Service
  • Object
show all
Defined in:
lib/orca_api/income_service.rb

Overview

患者収納情報を扱うサービスを表現したクラス

Constant Summary

PATH =
"/orca23/incomev3".freeze
REQUEST_NAME =
"incomev3req".freeze

Instance Attribute Summary

Attributes inherited from Service

#orca_api

Instance Method Summary collapse

Methods inherited from Service

#initialize, reuse_session

Constructor Details

This class inherits a constructor from OrcaApi::Service

Constructor Details

This class inherits a constructor from OrcaApi::Service

Instance Method Details

#bulk_recalculate(args) ⇒ Object

一括再計算



69
70
71
# File 'lib/orca_api/income_service.rb', line 69

def bulk_recalculate(args)
  common_update_process(args, "06")
end

#bulk_update(args) ⇒ Object

一括入返金



76
77
78
# File 'lib/orca_api/income_service.rb', line 76

def bulk_update(args)
  common_update_process(args, "07")
end

#cancel(args) ⇒ Object

入金取消



48
49
50
# File 'lib/orca_api/income_service.rb', line 48

def cancel(args)
  common_update_process(args, "03")
end

#destroy(args) ⇒ Object

請求取消



83
84
85
# File 'lib/orca_api/income_service.rb', line 83

def destroy(args)
  common_update_process(args, "08")
end

#get(args) ⇒ Object

請求確認



25
26
27
28
29
# File 'lib/orca_api/income_service.rb', line 25

def get(args)
  res = call_01("02", args)
  unlock(res)
  res
end

#list(args) ⇒ Object

請求一覧



16
17
18
19
20
# File 'lib/orca_api/income_service.rb', line 16

def list(args)
  res = call_01("01", args)
  unlock(res)
  res
end

#pay_back(args) ⇒ Object

返金



55
56
57
# File 'lib/orca_api/income_service.rb', line 55

def pay_back(args)
  common_update_process(args, "04")
end

#recalculate(args) ⇒ Object

再計算



62
63
64
# File 'lib/orca_api/income_service.rb', line 62

def recalculate(args)
  common_update_process(args, "05")
end

#reprint(args) ⇒ Object

再発行



90
91
92
# File 'lib/orca_api/income_service.rb', line 90

def reprint(args)
  common_update_process(args, "09")
end

#update(args) ⇒ Object

入金



34
35
36
# File 'lib/orca_api/income_service.rb', line 34

def update(args)
  common_update_process(args, "01")
end

#update_history(args) ⇒ Object

履歴修正



41
42
43
# File 'lib/orca_api/income_service.rb', line 41

def update_history(args)
  common_update_process(args, "02")
end