Class: OrcaApi::PhysicianService

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

Overview

ドクターコードを扱うサービスを表現したクラス

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

#list(base_date = "") ⇒ OrcaApi::Result

ドクターコード一覧の取得

Parameters:

  • base_date (String) (defaults to: "")

    基準日。YYYY-mm-dd形式。

Returns:

See Also:



15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/orca_api/physician_service.rb', line 15

def list(base_date = "")
  api_path = "/api01rv2/system01lstv2"
  req_name = "system01_managereq"

  body = {
    req_name => {
      "Request_Number" => "02",
      "Base_Date" => base_date,
    }
  }
  Result.new(orca_api.call(api_path, body: body))
end