Class: OrcaApi::PatientService::PiMoney
- Inherits:
 - 
      PiMoneyCommon
      
        
- Object
 - Service
 - PiMoneyCommon
 - OrcaApi::PatientService::PiMoney
 
 
- Defined in:
 - lib/orca_api/patient_service/pi_money.rb
 
Overview
患者公費負担額を扱うサービス
Instance Attribute Summary
Attributes inherited from Service
Instance Method Summary collapse
- 
  
    
      #fetch(id, pi_id = nil)  ⇒ OrcaApi::Result 
    
    
  
  
  
  
  
  
  
  
  
    
公費負担額一覧を取得する(排他ロックなし).
 - 
  
    
      #get(id, pi_id)  ⇒ OrcaApi::Result 
    
    
  
  
  
  
  
  
  
  
  
    
公費負担額一覧を取得する.
 - 
  
    
      #target_of(id)  ⇒ OrcaApi::Result 
    
    
  
  
  
  
  
  
  
  
  
    
公費負担額登録対象の公費一覧を取得する.
 - 
  
    
      #update(id, pi_id, args)  ⇒ OrcaApi::Result 
    
    
  
  
  
  
  
  
  
  
  
    
公費負担額を更新する.
 
Methods inherited from Service
Constructor Details
This class inherits a constructor from OrcaApi::Service
Constructor Details
This class inherits a constructor from OrcaApi::Service
Instance Method Details
#fetch(id, pi_id = nil) ⇒ OrcaApi::Result
公費負担額一覧を取得する(排他ロックなし)
      63 64 65  | 
    
      # File 'lib/orca_api/patient_service/pi_money.rb', line 63 def fetch(id, pi_id = nil) call_00(id, pi_id) end  | 
  
#get(id, pi_id) ⇒ OrcaApi::Result
公費負担額一覧を取得する
      39 40 41 42 43 44 45 46 47 48  | 
    
      # File 'lib/orca_api/patient_service/pi_money.rb', line 39 def get(id, pi_id) res = call_01(id) if !res.ok? return res end call_02(pi_id, res) ensure unlock(res) end  | 
  
#target_of(id) ⇒ OrcaApi::Result
公費負担額登録対象の公費一覧を取得する
      21 22 23 24 25  | 
    
      # File 'lib/orca_api/patient_service/pi_money.rb', line 21 def target_of(id) res = call_01(id) unlock(res) res end  | 
  
#update(id, pi_id, args) ⇒ OrcaApi::Result
公費負担額を更新する
      104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122  | 
    
      # File 'lib/orca_api/patient_service/pi_money.rb', line 104 def update(id, pi_id, args) locked_result = res = call_01(id) if !res.ok? return res end res = call_02(pi_id, res) if !res.ok? return res end res = call_03(args, res) if res.ok? locked_result = nil end res ensure unlock(locked_result) end  |