マスタデータ最終更新日取得
メニュー
マスタデータ最終更新日取得(URL:/orca51/masterlastupdatev3)
- 以下のマスタの最終更新日の返却を行います。
- 点数マスタ
- 病名マスタ
- 最終更新日の一覧、個別マスタの直近5回分の更新日の返却を行います。
サンプル1(マスタデータの最終更新日の一覧を返却)
リクエスト
<data>
<masterlastupdatev3req type ="record">
</masterlastupdatev3req>
</data>
レスポンス
<?xml version="1.0" encoding="UTF-8"?>
<xmlio2>
<masterlastupdatev3res type="record">
<Information_Date type="string">2017-11-14</Information_Date>
<Information_Time type="string">16:47:27</Information_Time>
<Api_Result type="string">000</Api_Result>
<Api_Result_Message type="string">正常終了</Api_Result_Message>
<Master_Last_Update_Information type="array">
<Master_Last_Update_Information_child type="record">
<Master_Id type="string">medication_master</Master_Id>
<Last_Update_Date type="string">2017-10-11</Last_Update_Date>
</Master_Last_Update_Information_child>
<Master_Last_Update_Information_child type="record">
<Master_Id type="string">disease_master</Master_Id>
<Last_Update_Date type="string">2017-09-23</Last_Update_Date>
</Master_Last_Update_Information_child>
</Master_Last_Update_Information>
</masterlastupdatev3res>
</xmlio2>
サンプル2(点数マスタの直近5回分の更新日を返却)
リクエスト
<data>
<masterlastupdatev3req type ="record">
<Master_Id type ="string">medication_master</Master_Id>
</masterlastupdatev3req>
</data>
レスポンス
<?xml version="1.0" encoding="UTF-8"?>
<xmlio2>
<masterlastupdatev3res type="record">
<Information_Date type="string">2017-11-14</Information_Date>
<Information_Time type="string">17:27:21</Information_Time>
<Api_Result type="string">000</Api_Result>
<Api_Result_Message type="string">正常終了</Api_Result_Message>
<Master_Id type="string">medication_master</Master_Id>
<Last_Update_Date type="string">2017-10-11</Last_Update_Date>
<Update_Information type="array">
<Update_Information_child type="record">
<Update_Date type="string">2017-10-11</Update_Date>
<Count type="string">1</Count>
</Update_Information_child>
<Update_Information_child type="record">
<Update_Date type="string">2017-09-25</Update_Date>
<Count type="string">3498</Count>
</Update_Information_child>
<Update_Information_child type="record">
<Update_Date type="string">2017-02-09</Update_Date>
<Count type="string">394</Count>
</Update_Information_child>
<Update_Information_child type="record">
<Update_Date type="string">2016-10-18</Update_Date>
<Count type="string">474</Count>
</Update_Information_child>
<Update_Information_child type="record">
<Update_Date type="string">2016-09-02</Update_Date>
<Count type="string">68</Count>
</Update_Information_child>
</Update_Information>
</masterlastupdatev3res>
</xmlio2>
レイアウト資料(PDF)
orca51_masterlastupdatev3.pdf
orca51_masterlastupdatev3_err.pdf
Rubyによるリクエストサンプルソース
Rubyのバージョンが1.9.2以前の環境の場合、HTTPのバージョン指定を1.1に変更する必要があります。 Rubyのバージョンを確認後、以下のように該当箇所を変更して下さい。
- Ruby1.9.2以降の場合
Net::HTTP.version_1_2
- Ruby1.9.2以前の場合
Net::HTTP.version_1_1
Rubyのバージョンが1.9.1以降の環境(日レセ4.8以降の環境)ではソースファイル内の文字コードの指定が必要になります。
サンプルソース内に以下の一行が記述されていることを確認して下さい。
# -*- coding: utf-8 -*-