Class: OrcaApi::DiseaseService

Inherits:
Service
  • Object
show all
Defined in:
lib/orca_api/disease_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

#get(params) ⇒ Object

患者の病名情報の取得



9
10
11
12
13
14
# File 'lib/orca_api/disease_service.rb', line 9

def get(params)
  body = {
    "disease_inforeq" => params,
  }
  Result.new(orca_api.call("/api01rv2/diseasegetv2", params: { "class" => "01" }, body: body))
end

#update(params) ⇒ Object

患者の病名情報の登録・更新・削除



19
20
21
22
23
24
# File 'lib/orca_api/disease_service.rb', line 19

def update(params)
  body = {
    "diseasereq" => params,
  }
  Result.new(orca_api.call("/orca22/diseasev3", body: body))
end