システム管理情報の取得
メニュー
- 更新履歴
- 概要
- テスト方法
- リクエスト(POSTリクエスト)サンプル
- レスポンスサンプル(診療科コード一覧)
- レスポンスサンプル(ドクター・職員コード一覧)
- レスポンスサンプル(医療機関基本情報)
- レスポンスサンプル(入金方法情報)
- リクエスト一覧
- レスポンス一覧(診療科コード一覧)
- レスポンス一覧(ドクター・職員コード一覧)
- レスポンス一覧(医療機関基本情報)
- レスポンス一覧(入金方法情報)
- Rubyによるリクエストサンプルソース
- C#によるリクエストサンプルソース
- エラーメッセージ一覧
更新履歴
2022-12-26 class=05「入金方法情報」を追加。
2018-11-27 「レスポンス一覧(医療機関基本情報)」に項目を追加。
2014-07-03 「エラーメッセージ一覧」を追加。
2014-05-27 レスポンスサンプル(医療機関基本情報)を追加。
レスポンス一覧(医療機関基本情報)を追加。
リクエストデータに「Request_Number」を追加。
概要
POSTメソッドによるシステム管理情報の取得を行います。
リクエストおよびレスポンスデータはxml2形式になります。
テスト方法
- 参考提供されている sample_system_info_v2.rb 内の変数HOST等を接続環境に合わせます。
- sample_system_info_v2.rb 内の基準日を接続先の日レセの環境に合わせます。
- ruby sample_system_info_v2.rb により接続。
リクエスト(POSTリクエスト)サンプル
POST : /api01rv2/system01lstv2?class=01 class =
01 : (システム管理に登録されている診療科コード) 02 : (システム管理に登録されているドクターコード) 03 : (システム管理に登録されているドクターコード以外の職員コード)
04 : (医療機関基本情報)
05 : (入金方法情報)
Content-Type: application/xml
application/xml の場合の文字コードは UTF-8 とします。
リクエストデータ内に「Request_Number」の項目を追加したことにより、引数(class)と「Request_Number」のどちらかで機能の選択が行えます。
機能の選択は「Request_Number」で行なうことを推奨します。
<data>
<system01_managereq type="record">
<Request_Number type="string">04</Request_Number>
<Base_Date type="string">2012-06-01</Base_Date>
</system01_managereq>
</data>
処理概要
指定された日付で有効な診療科、ドクター、職員情報、医療機関基本情報、入金方法情報を返却します。
処理詳細
- Request_Number値により、以下のように処理します。
01 :診療科情報
02 :ドクター情報
03 :職員情報
04 :医療機関基本情報
05 :入金方法情報 - 基準日の歴日チェック
- 返却maxは100とします。
レスポンスサンプル(診療科コード一覧)
<xmlio2>
<departmentres type="record">
<Information_Date type="string">2013-03-13</Information_Date>
<Information_Time type="string">10:50:00</Information_Time>
<Api_Result type="string">00</Api_Result>
<Api_Result_Message type="string">処理終了</Api_Result_Message>
<Reskey type="string">Patient Info</Reskey>
<Base_Date type="string">2012-06-01</Base_Date>
<Department_Information type="array">
<Department_Information_child type="record">
<Code type="string">01</Code>
<WholeName type="string">内科</WholeName>
<Name1 type="string">内科</Name1>
<Name2 type="string">内科</Name2>
<Name3 type="string">内</Name3>
<Receipt_Code type="string">01</Receipt_Code>
</Department_Information_child>
<Department_Information_child type="record">
<Code type="string">02</Code>
<WholeName type="string">精神科</WholeName>
<Name1 type="string">精神科</Name1>
<Name2 type="string">精神</Name2>
<Name3 type="string">精</Name3>
<Receipt_Code type="string">02</Receipt_Code>
</Department_Information_child>
</Department_Information>
</departmentres>
</xmlio2>
レスポンスサンプル(ドクター・職員コード一覧)
<xmlio2>
<physicianres type="record">
<Information_Date type="string">2013-03-13</Information_Date>
<Information_Time type="string">10:50:00</Information_Time>
<Api_Result type="string">00</Api_Result>
<Api_Result_Message type="string">処理終了</Api_Result_Message>
<Reskey type="string">Patient Info</Reskey>
<Base_Date type="string">2012-06-01</Base_Date>
<Physician_Information type="array">
<Physician_Information_child type="record">
<Code type="string">10001</Code>
<WholeName type="string">日本 一</WholeName>
<WholeName_inKana type="string">ニホン ハジメ</WholeName_inKana>
<Physician_Permission_Id type="string">ISEKI001</Physician_Permission_Id>
<Drug_Permission_Id type="string">001234</Drug_Permission_Id>
<Department_Code1 type="string">01</Department_Code1>
<Department_Code2 type="string">02</Department_Code2>
</Physician_Information_child>
<Physician_Information_child type="record">
<Code type="string">10002</Code>
<WholeName type="string">日医 太郎</WholeName>
<WholeName_inKana type="string">ニチイ タロウ</WholeName_inKana>
</Physician_Information_child>
</Physician_Information>
</physicianres>
</xmlio2>
レスポンスサンプル(医療機関基本情報)
<?xml version="1.0" encoding="UTF-8"?>
<xmlio2>
<system1001res type="record">
<Information_Date type="string">2018-11-15</Information_Date>
<Information_Time type="string">15:02:25</Information_Time>
<Api_Result type="string">00</Api_Result>
<Api_Result_Message type="string">処理終了</Api_Result_Message>
<Reskey type="string">Patient Info</Reskey>
<Base_Date type="string">2018-11-13</Base_Date>
<Medical_Information type="record">
<Prefectures_Number type="string">13</Prefectures_Number>
<Point_list type="string">1</Point_list>
<Institution_Code type="string">1234567</Institution_Code>
<Institution_Speciation type="string">1</Institution_Speciation>
<Institution_Id type="string">JPN000000000000</Institution_Id>
<Institution_WholeName type="string">医療法人 オルカ</Institution_WholeName>
<Short_Institution_WholeName type="string">オルカ</Short_Institution_WholeName>
<Establisher_WholeName type="string">日本 一</Establisher_WholeName>
<Administrator_WholeName type="string">日本 一</Administrator_WholeName>
<Hospital_bed_Capacity type="string">0020</Hospital_bed_Capacity>
<Hospital_bed_Capacity_General type="string">0020</Hospital_bed_Capacity_General>
<Om_Payment_Class type="string">1</Om_Payment_Class>
<Om_Payment_Class_Name type="string">定率</Om_Payment_Class_Name>
<Old_General_Hospital_Class type="string">0</Old_General_Hospital_Class>
<Old_General_Hospital_Class_Name type="string">旧総合病院でない</Old_General_Hospital_Class_Name>
<Outside_Class type="string">1</Outside_Class>
<Outside_Class_Name type="string">院外</Outside_Class_Name>
<Institution_Code_Kanji type="string">1212121</Institution_Code_Kanji>
<Delivery_Organization_Control_Number type="string">1234567890</Delivery_Organization_Control_Number>
<Print_Invoice_Receipt_Class type="string">2</Print_Invoice_Receipt_Class>
<Print_Invoice_Receipt_Class_Name type="string">発行する(請求あり)</Print_Invoice_Receipt_Class_Name>
<Print_Prescription_Class type="string">2</Print_Prescription_Class>
<Print_Prescription_Class_Name type="string">院内処方発行</Print_Prescription_Class_Name>
<Last_Prescription_Display_Class type="string">1</Last_Prescription_Display_Class>
<Last_Prescription_Display_Class_Name type="string">表示しない</Last_Prescription_Display_Class_Name>
<Print_Medicine_Information_Class type="string">0</Print_Medicine_Information_Class>
<Print_Medicine_Information_Class_Name type="string">発行しない</Print_Medicine_Information_Class_Name>
<Print_Statement_Class type="string">2</Print_Statement_Class>
<Print_Statement_Class_Name type="string">発行する(請求あり)</Print_Statement_Class_Name>
<Print_Medication_Note_Class type="string">1</Print_Medication_Note_Class>
<Print_Medication_Note_Class_Name type="string">発行する(後期高齢)</Print_Medication_Note_Class_Name>
<Print_Appointment_Form_Class type="string">0</Print_Appointment_Form_Class>
<Print_Appointment_Form_Class_Name type="string">発行しない</Print_Appointment_Form_Class_Name>
<Data_Collection_Creation_Class type="string">1</Data_Collection_Creation_Class>
<Data_Collection_Creation_Class_Name type="string">作成する</Data_Collection_Creation_Class_Name>
<Data_Collection_Submission_Method_Class type="string">1</Data_Collection_Submission_Method_Class>
<Data_Collection_Submission_Method_Class_Name type="string">自動で送信</Data_Collection_Submission_Method_Class_Name>
<Orca_Surveillance_Class type="string">2</Orca_Surveillance_Class>
<Orca_Surveillance_Class_Name type="string">作成する/日</Orca_Surveillance_Class_Name>
<Reduction_Calculation_Object_Class type="string">3</Reduction_Calculation_Object_Class>
<Reduction_Calculation_Object_Class_Name type="string">自費分のみ</Reduction_Calculation_Object_Class_Name>
<Ac_Money_Rounding_Reduction_Class type="string">2</Ac_Money_Rounding_Reduction_Class>
<Ac_Money_Rounding_Reduction_Class_Name type="string">10円未満切り捨て</Ac_Money_Rounding_Reduction_Class_Name>
<Ac_Money_Rounding_No_Reduction_Information type="record">
<Medical_Insurance_Class type="string">1</Medical_Insurance_Class>
<Medical_Insurance_Class_Name type="string">10円未満四捨五入</Medical_Insurance_Class_Name>
<Medical_Insurance_Oe_Class type="string">0</Medical_Insurance_Oe_Class>
<Medical_Insurance_Oe_Class_Name type="string">保険分に準ずる</Medical_Insurance_Oe_Class_Name>
<Accident_Insurance_Class type="string">4</Accident_Insurance_Class>
<Accident_Insurance_Class_Name type="string">10円未満端数処理なし</Accident_Insurance_Class_Name>
<Accident_Insurance_Oe_Class type="string">3</Accident_Insurance_Oe_Class>
<Accident_Insurance_Oe_Class_Name type="string">10円未満切り上げ</Accident_Insurance_Oe_Class_Name>
<Liability_Insurance_Class type="string">2</Liability_Insurance_Class>
<Liability_Insurance_Class_Name type="string">10円未満切り捨て</Liability_Insurance_Class_Name>
<Liability_Insurance_Oe_Class type="string">1</Liability_Insurance_Oe_Class>
<Liability_Insurance_Oe_Class_Name type="string">10円未満四捨五入</Liability_Insurance_Oe_Class_Name>
<Pollution_Oe_Class type="string">1</Pollution_Oe_Class>
<Pollution_Oe_Class_Name type="string">10円未満四捨五入</Pollution_Oe_Class_Name>
<Third_Party_Class type="string">2</Third_Party_Class>
<Third_Party_Class_Name type="string">10円未満切り捨て</Third_Party_Class_Name>
<Third_Party_Oe_Class type="string">3</Third_Party_Oe_Class>
<Third_Party_Oe_Class_Name type="string">10円未満切り上げ</Third_Party_Oe_Class_Name>
</Ac_Money_Rounding_No_Reduction_Information>
<Third_Party_Money_Calculation_Class type="string">2</Third_Party_Money_Calculation_Class>
<Third_Party_Money_Calculation_Class_Name type="string">負担金額10円未満端数処理なし</Third_Party_Money_Calculation_Class_Name>
<Tax_Rounding_Class type="string">1</Tax_Rounding_Class>
<Tax_Rounding_Class_Name type="string">1円未満四捨五入</Tax_Rounding_Class_Name>
<Self_Insurance_Total_Class type="string">2</Self_Insurance_Total_Class>
<Self_Insurance_Total_Class_Name type="string">自費分欄</Self_Insurance_Total_Class_Name>
<Local_Public_Expenses_Insurance_Number_Tab_Class type="string">1</Local_Public_Expenses_Insurance_Number_Tab_Class>
<Local_Public_Expenses_Insurance_Number_Tab_Class_Name type="string">有効</Local_Public_Expenses_Insurance_Number_Tab_Class_Name>
<Rehabilitation_Nurture_Credit_Limit_Calculate_Daily_Rate_Class type="string">1</Rehabilitation_Nurture_Credit_Limit_Calculate_Daily_Rate_Class>
<Rehabilitation_Nurture_Credit_Limit_Calculate_Daily_Rate_Class_Name type="string">日割計算しない</Rehabilitation_Nurture_Credit_Limit_Calculate_Daily_Rate_Class_Name>
<Oe_Rounding_Class type="string">2</Oe_Rounding_Class>
<Oe_Rounding_Class_Name type="string">1円未満切り捨て</Oe_Rounding_Class_Name>
<Address_Information type="record">
<WholeAddress type="string">東京都文京区駒込2−28−10</WholeAddress>
<Address_ZipCode type="string">1130021</Address_ZipCode>
<PhoneNumber type="string">03-3333-0001</PhoneNumber>
<FaxNumber type="string">03-3333-0002</FaxNumber>
<E_mail_Address type="string">test@orca.ne.jp</E_mail_Address>
<Homepage_Address type="string">http://www.orca.med.or.jp/</Homepage_Address>
</Address_Information>
</Medical_Information>
</system1001res>
</xmlio2>
レスポンスサンプル(入金方法情報)
<?xml version="1.0" encoding="UTF-8"?>
<xmlio2>
<incomeres type="record">
<Information_Date type="string">2022-12-13</Information_Date>
<Information_Time type="string">19:03:01</Information_Time>
<Api_Result type="string">00</Api_Result>
<Api_Result_Message type="string">処理終了</Api_Result_Message>
<Reskey type="string">Patient Info</Reskey>
<Base_Date type="string">2022-12-13</Base_Date>
<income_Information type="array">
<income_Information_child type="record">
<Ic_Code type="string">01</Ic_Code>
<Ic_Code_Name type="string">現金</Ic_Code_Name>
<Ic_Code_Abbreviation_Name type="string">現金</Ic_Code_Abbreviation_Name>
<Ic_Code_Class type="string">01</Ic_Code_Class>
</income_Information_child>
<income_Information_child type="record">
<Ic_Code type="string">02</Ic_Code>
<Ic_Code_Name type="string">クレジットカード</Ic_Code_Name>
<Ic_Code_Abbreviation_Name type="string">クレジット</Ic_Code_Abbreviation_Name>
<Ic_Code_Class type="string">99</Ic_Code_Class>
<Ic_Condition type="string">1</Ic_Condition>
<Ic_Discharge_Condition type="string">2</Ic_Discharge_Condition>
<Ic_Recurring_Billing_Condition type="string">3</Ic_Recurring_Billing_Condition>
</income_Information_child>
<income_Information_child type="record">
<Ic_Code type="string">03</Ic_Code>
<Ic_Code_Name type="string">電子マネー</Ic_Code_Name>
<Ic_Code_Abbreviation_Name type="string">電子</Ic_Code_Abbreviation_Name>
<Ic_Code_Class type="string">01</Ic_Code_Class>
<Ic_Condition type="string">1</Ic_Condition>
<Ic_Discharge_Condition type="string">2</Ic_Discharge_Condition>
<Ic_Recurring_Billing_Condition type="string">3</Ic_Recurring_Billing_Condition>
</income_Information_child>
</income_Information>
</incomeres>
</xmlio2>
リクエスト一覧
番号 | 項目名 | 内容 | 例 | 備考 |
---|---|---|---|---|
1 | Request_Number | リクエスト番号 | 01 | 01:診療科情報 02:ドクター情報 03:職員情報 04:医療機関基本情報 05:入金方法情報 |
2 | Base_Date | 基準日 | 2012-06-01 | 省略時はシステム日付 |
レスポンス一覧(診療科コード一覧)
番号 | 項目名 | 内容 | 例 |
---|---|---|---|
1 | Information_Date | 実施日 | 2013-03-13 |
2 | Information_Time | 実施時間 | 10:50:00 |
3 | Api_Result | 結果コード(ゼロ以外エラー) | 00 |
4 | Api_Result_Message | エラーメッセージ | 処理終了 |
5 | Reskey | Patient Info | |
6 | Base_Date | 基準日 | 2012-06-01 |
7 | Department_Information | 診療科情報 (繰り返し 100) | |
7-1 | Code | 診療科コード ※1 (01:内科) | 01 |
7-2 | WholeName | 診療科名称 | 内科 |
7-3 | Name1 | 短縮名称1 | 内科 |
7-4 | Name2 | 短縮名称2 | 内科 |
7-5 | Name3 | 短縮名称3 | 内 |
7-6 | Receipt_Code | レセ電診療科 | 01 |
※1:システム管理マスタの診療科目情報の診療科コードを参照して下さい。
レスポンス一覧(ドクター・職員コード一覧)
番号 | 項目名 | 内容 | 例 |
---|---|---|---|
1 | Information_Date | 実施日 | 2013-03-13 |
2 | Information_Time | 実施時間 | 10:50:00 |
3 | Api_Result | 結果コード(ゼロ以外エラー) | 00 |
4 | Api_Result_Message | エラーメッセージ | 処理終了 |
5 | Reskey | Patient Info | |
6 | Base_Date | 基準日 | 2012-06-01 |
7 | Physician_Information | ドクター情報 (繰り返し 300) | |
7-1 | Code | ドクターコード | 10001 |
7-2 | WholeName | 氏名 | 日本 一 |
7-3 | WholeName_inKana | カナ氏名 | ニホン ハジメ |
7-4 | Physician_Permission_Id | 医療登録番号 | ISEKI001 |
7-5 | Drug_Permission_Id | 麻薬施用者免許証番号 | 001234 |
7-6 | Department_Code1 | 専門科コード1 | 01 |
7-7 | Department_Code2 | 専門科コード2 | 02 |
7-8 | Department_Code3 | 専門科コード3 | |
7-9 | Department_Code4 | 専門科コード4 | |
7-10 | Department_Code5 | 専門科コード5 |
レスポンス一覧(医療機関基本情報)
番号 | 項目名 | 内容 | 例 | 備考 |
---|---|---|---|---|
1 | Information_Date | 実施日 | 2014-05-20 | |
2 | Information_Time | 実施時間 | 11:08:59 | |
3 | Api_Result | 結果コード(ゼロ以外エラー) | 00 | |
4 | Api_Result_Message | エラーメッセージ | 処理終了 | |
5 | Reskey | Patient Info | ||
6 | Base_Date | 基準日 | 2012-06-01 | |
7 | Medical_Information | 医療機関基本情報 | ||
7-1 | Prefectures_Number | 都道府県番号 | 13 | |
7-2 | Point_list | 点数表 (1:医科) | 1 | |
7-3 | Institution_Code | 医療機関コード | 1234567 | |
7-4 | Institution_Speciation | 医療機関種別 (1:病院、 2:診療所) | 1 | |
7-5 | Institution_Id | 医療機関ID | JPN000000000000 | |
7-6 | Institution_WholeName | 医療機関名称 | 医療法人 オルカ | |
7-7 | Short_Institution_WholeName | 短縮医療機関名称 | オルカ | 追加 (2018-11-27) |
7-8 | Establisher_WholeName | 開設者名称 | 日本 一 | |
7-9 | Administrator_WholeName | 管理者名称 | 日本 一 | |
7-10 | Hospital_bed_Capacity | 病床数(許可) | 0020 | 追加 (2018-11-27) |
7-11 | Hospital_bed_Capacity_General | 病床数(一般) | 0020 | 追加 (2018-11-27) |
7-12 | Om_Payment_Class | 老人支払区分 | 1 | 追加 (2018-11-27) |
7-13 | Om_Payment_Class_Name | 老人支払区分名称 | 定率 | 追加 (2018-11-27) |
7-14 | Old_General_Hospital_Class | 旧総合病院フラグ | 0 | 追加 (2018-11-27) |
7-15 | Old_General_Hospital_Class_Name | 旧総合病院フラグ名称 | 旧総合病院でない | 追加 (2018-11-27) |
7-16 | Outside_Class | 院外処方区分 | 1 | 追加 (2018-11-27) |
7-17 | Outside_Class_Name | 院外処方区分名称 | 院外 | 追加 (2018-11-27) |
7-18 | Institution_Code_Kanji | 医療機関コード(漢字) | 1212121 | 追加 (2018-11-27) |
7-19 | Delivery_Organization_Control_Number | 分娩機関管理番号 | 1234567890 | 追加 (2018-11-27) |
7-20 | Print_Invoice_Receipt_Class | 請求書発行フラグ | 2 | 追加 (2018-11-27) |
7-21 | Print_Invoice_Receipt_Class_Name | 請求書発行フラグ名称 | 発行する(請求あり) | 追加 (2018-11-27) |
7-22 | Print_Prescription_Class | 院外処方せん発行フラグ | 2 | 追加 (2018-11-27) |
7-23 | Print_Prescription_Class_Name | 院外処方せん発行フラグ名称 | 院内処方発行 | 追加 (2018-11-27) |
7-24 | Last_Prescription_Display_Class | 前回処方表示フラグ | 1 | 追加 (2018-11-27) |
7-25 | Last_Prescription_Display_Class_Name | 前回処方表示フラグ名称 | 表示しない | 追加 (2018-11-27) |
7-26 | Print_Medicine_Information_Class | 薬剤情報発行フラグ | 0 | 追加 (2018-11-27) |
7-27 | Print_Medicine_Information_Class_Name | 薬剤情報発行フラグ名称 | 発行しない | 追加 (2018-11-27) |
7-28 | Print_Statement_Class | 診療費明細書発行フラグ | 2 | 追加 (2018-11-27) |
7-29 | Print_Statement_Class_Name | 診療費明細書発行フラグ名称 | 発行する(請求あり) | 追加 (2018-11-27) |
7-30 | Print_Medication_Note_Class | お薬手帳発行フラグ | 1 | 追加 (2018-11-27) |
7-31 | Print_Medication_Note_Class_Name | お薬手帳発行フラグ名称 | 発行する(後期高齢) | 追加 (2018-11-27) |
7-32 | Print_Appointment_Form_Class | 予約票発行フラグ | 0 | 追加 (2018-11-27) |
7-33 | Print_Appointment_Form_Class_Name | 予約票発行フラグ名称 | 発行しない | 追加 (2018-11-27) |
7-34 | Data_Collection_Creation_Class | データ収集作成フラグ | 1 | 追加 (2018-11-27) |
7-35 | Data_Collection_Creation_Class_Name | データ収集作成フラグ名称 | 作成する | 追加 (2018-11-27) |
7-36 | Data_Collection_Submission_Method_Class | データ収集提出方法区分 | 1 | 追加 (2018-11-27) |
7-37 | Data_Collection_Submission_Method_Class_Name | データ収集提出方法区分名称 | 自動で送信 | 追加 (2018-11-27) |
7-38 | Orca_Surveillance_Class | ORCAサーベイランス区分 | 2 | 追加 (2018-11-27) |
7-39 | Orca_Surveillance_Class_Name | ORCAサーベイランス区分名称 | 作成する/日 | 追加 (2018-11-27) |
7-40 | Reduction_Calculation_Object_Class | 減免計算対象区分 | 3 | 追加 (2018-11-27) |
7-41 | Reduction_Calculation_Object_Class_Name | 減免計算対象区分名称 | 自費分のみ | 追加 (2018-11-27) |
7-42 | Ac_Money_Rounding_Reduction_Class | 請求額端数区分(減免有) | 2 | 追加 (2018-11-27) |
7-43 | Ac_Money_Rounding_Reduction_Class_Name | 請求額端数区分(減免有)名称 | 10円未満切り捨て | 追加 (2018-11-27) |
7-44 | Ac_Money_Rounding_No_Reduction_Information | 請求額端数区分(減免無)情報 | 追加 (2018-11-27) | |
7-44-1 | Medical_Insurance_Class | 請求額端数区分医保(減免無・保険分) | 1 | 追加 (2018-11-27) |
7-44-2 | Medical_Insurance_Class_Name | 請求額端数区分医保(減免無・保険分)名称 | 10円未満四捨五入 | 追加 (2018-11-27) |
7-44-3 | Medical_Insurance_Oe_Class | 請求額端数区分医保(減免無・自費分) | 0 | 追加 (2018-11-27) |
7-44-4 | Medical_Insurance_Oe_Class_Name | 請求額端数区分医保(減免無・自費分)名称 | 保険分に準ずる | 追加 (2018-11-27) |
7-44-5 | Accident_Insurance_Class | 請求額端数区分労災(減免無・保険分) | 4 | 追加 (2018-11-27) |
7-44-6 | Accident_Insurance_Class_Name | 請求額端数区分労災(減免無・保険分)名称 | 10円未満端数処理なし | 追加 (2018-11-27) |
7-44-7 | Accident_Insurance_Oe_Class | 請求額端数区分労災(減免無・自費分) | 3 | 追加 (2018-11-27) |
7-44-8 | Accident_Insurance_Oe_Class_Name | 請求額端数区分労災(減免無・自費分)名称 | 10円未満切り上げ | 追加 (2018-11-27) |
7-44-9 | Liability_Insurance_Class | 請求額端数区分自賠責(減免無・保険分) | 2 | 追加 (2018-11-27) |
7-44-10 | Liability_Insurance_Class_Name | 請求額端数区分自賠責(減免無・保険分)名称 | 10円未満切り捨て | 追加 (2018-11-27) |
7-44-11 | Liability_Insurance_Oe_Class | 請求額端数区分自賠責(減免無・自費分) | 1 | 追加 (2018-11-27) |
7-44-12 | Liability_Insurance_Oe_Class_Name | 請求額端数区分自賠責(減免無・自費分)名称 | 10円未満四捨五入 | 追加 (2018-11-27) |
7-44-13 | Pollution_Oe_Class | 請求額端数区分公害(減免無・自費分) | 1 | 追加 (2018-11-27) |
7-44-14 | Pollution_Oe_Class_Name | 請求額端数区分公害(減免無・自費分)名称 | 10円未満四捨五入 | 追加 (2018-11-27) |
7-44-15 | Third_Party_Class | 請求額端数区分第三者行為(減免無・保険分) | 2 | 追加 (2018-11-27) |
7-44-16 | Third_Party_Class_Name | 請求額端数区分第三者行為(減免無・保険分)名称 | 10円未満切り捨て | 追加 (2018-11-27) |
7-44-17 | Third_Party_Oe_Class | 請求額端数区分第三者行為(減免無・自費分) | 3 | 追加 (2018-11-27) |
7-44-18 | Third_Party_Oe_Class_Name | 請求額端数区分第三者行為(減免無・自費分)名称 | 10円未満切り上げ | 追加 (2018-11-27) |
7-45 | Third_Party_Money_Calculation_Class | 第三者行為(医療費)負担金額計算区分 | 2 | 追加 (2018-11-27) |
7-46 | Third_Party_Money_Calculation_Class_Name | 第三者行為(医療費)負担金額計算区分名称 | 負担金額10円未満端数処理なし | 追加 (2018-11-27) |
7-47 | Tax_Rounding_Class | 消費税端数区分 | 1 | 追加 (2018-11-27) |
7-48 | Tax_Rounding_Class_Name | 消費税端数区分名称 | 1円未満四捨五入 | 追加 (2018-11-27) |
7-49 | Self_Insurance_Total_Class | 自費保険集計先区分 | 2 | 追加 (2018-11-27) |
7-50 | Self_Insurance_Total_Class_Name | 自費保険集計先区分名称 | 自費分欄 | 追加 (2018-11-27) |
7-51 | Local_Public_Expenses_Insurance_Number_Tab_Class | 地方公費保険番号タブ区分 | 1 | 追加 (2018-11-27) |
7-52 | Local_Public_Expenses_Insurance_Number_Tab_Class_Name | 地方公費保険番号タブ区分名称 | 有効 | 追加 (2018-11-27) |
7-53 | Rehabilitation_Nurture_Credit_Limit_Calculate_Daily_Rate_Class | 更正・育成限度額日割計算区分 | 1 | 追加 (2018-11-27) |
7-54 | Rehabilitation_Nurture_Credit_Limit_Calculate_Daily_Rate_Class_Name | 更正・育成限度額日割計算区分名称 | 日割計算しない | 追加 (2018-11-27) |
7-55 | Oe_Rounding_Class | 自費コード数量計算端数区分 | 2 | 追加 (2018-11-27) |
7-56 | Oe_Rounding_Class_Name | 自費コード数量計算端数区分名称 | 1円未満切り捨て | 追加 (2018-11-27) |
7-57 | Address_Information | 連絡先・広告情報 | ||
7-57-1 | WholeAddress | 所在地 | 東京都文京区本駒込2−28−10 | |
7-57-2 | Address_ZipCode | 郵便番号 | 1130021 | |
7-57-3 | PhoneNumber | 電話番号 | 03-3333-0001 | |
7-57-4 | FaxNumber | FAX番号 | 03-3333-0002 | |
7-57-5 | E_mail_Address | eメールアドレス | test@orca.ne.jp | |
7-57-6 | Homepage_Address | ホームページアドレス | http://www.orca.med.or.jp/ |
レスポンス一覧(入金方法情報)
番号 | 項目名 | 内容 | 例 | 備考 |
---|---|---|---|---|
1 | Information_Date | 実施日 | 2022-12-26 | |
2 | Information_Time | 実施時間 | 10:00:00 | |
3 | Api_Result | 結果コード(ゼロ以外エラー) | 00 | |
4 | Api_Result_Message | エラーメッセージ | 処理終了 | |
5 | Reskey | Patient Info | ||
6 | Base_Date | 基準日 | 2022-12-26 | |
7 | income_Information | 入金方法情報 (繰り返し 100) | ||
7-1 | Ic_Code | 入金方法コード | 01 | |
7-2 | Ic_Code_Name | 入金方法名称 | 現金 | |
7-3 | Ic_Code_Abbreviation_Name | 入金方法略称 | 現金 | |
7-4 | Ic_Code_Class | 入金方法分類区分 | 01 | |
7-5 | Ic_Condition | 入金状態 | 1 | |
7-6 | Ic_Discharge_Condition | 入金状態(退院時) | 2 | |
7-7 | Ic_Recurring_Billing_Condition | 入金状態(定期請求) | 3 |
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 -*-
#!/usr/bin/ruby
# -*- coding: utf-8 -*-
#------ システム管理一覧取得
require 'uri'
require 'net/http'
Net::HTTP.version_1_2
HOST = "localhost"
PORT = "8000"
USER = "ormaster"
PASSWD = "ormaster"
CONTENT_TYPE = "application/xml"
req = Net::HTTP::Post.new("/api01rv2/system01lstv2")
# Request_Number :01 診療科対象
# :02 ドクター対象
# :03 ドクター以外の職員対象
# :04 医療機関基本情報
# :05 入金方法情報
#
# 1.リクエスト番号 Request_Number (REQUIRED)
# 2.基準日 Base_Date (IMPLIED)
#
# REQUIRED : 必須 IMPLIED : 任意
# BODY = <<EOF
<data>
<system01_managereq type="record">
<Request_Number type="string">04</Request_Number>
<Base_Date type="string">2012-06-01</Base_Date>
</system01_managereq>
</data>
EOF req.content_length = BODY.size req.content_type = "application/xml" req.body = BODY req.basic_auth(USER, PASSWD) puts req.body Net::HTTP.start(HOST, PORT) {|http| res = http.request(req) puts res.body }
C#によるリクエストサンプルソース
Windowsでの実行環境
- Microsoft Visual Studio 2008以降
- .NET Framework 2.0 SDK(C#コンパイラを含む.NET Frameworkの開発ツール)
(Microsoft Visual Studioに含まれています)
Ubuntuでの実行環境
- MonoDevelop 2.2(1.0でも実行可能)
- mono-gmcs(C#コンパイラ)
(MonoDevelopと一緒にインストールされます)
sample_system_info_v2.cs (xml2)
using System;
using System.IO;
using System.Net;
using System.Text;
namespace MedicalInfo
{
class MainClass
{
public static void Main(string[] args)
{
string HOST = "localhost";
string PORT = "8000";
string USER = "ormaster";
string PASSWD = "ormaster";
string CONTENT_TYPE = "application/xml";
string URL = "http://" + HOST + ":" + PORT + "/api01rv2/system01lstv2";
/*
Request_Number :01 診療科対象
:02 ドクター対象
:03 ドクター以外の職員対象
:04 医療機関基本情報
:05 入金方法情報
1.リクエスト番号 Request_Number (REQUIRED)
2.基準日 Base_Date (IMPLIED)
REQUIRED : 必須 IMPLIED : 任意
*/
string BODY = @"
<data>
<system01_managereq type=""record"">
<Request_Number type=""string"">04</Request_Number>
<Base_Date type=""string"">2012-06-01</Base_Date>
</system01_managereq>
</data> ";
byte[] BODY_byte = Encoding.UTF8.GetBytes(BODY); HttpWebRequest req = (HttpWebRequest) HttpWebRequest.Create(URL); req.Method = "POST"; req.ContentType = CONTENT_TYPE; req.ContentLength = BODY_byte.Length; req.Credentials = new NetworkCredential(USER, PASSWD); Console.WriteLine(BODY); HttpWebResponse res = null; try { Stream reqstream = req.GetRequestStream(); reqstream.Write(BODY_byte, 0, BODY_byte.Length); reqstream.Close(); res = (HttpWebResponse) req.GetResponse(); Console.WriteLine(res.ResponseUri); Console.WriteLine(res.StatusDescription); } catch(WebException wex) { if(wex.Status == WebExceptionStatus.ProtocolError) { HttpWebResponse err = (HttpWebResponse) wex.Response; int errcode = (int) err.StatusCode; Console.WriteLine(err.ResponseUri); Console.WriteLine("{0}:{1}", errcode, err.StatusDescription); err.Close(); } else { Console.WriteLine(wex.Message); } } if(res != null) { Stream str = res.GetResponseStream(); StreamReader strread = new StreamReader(str); Console.WriteLine(strread.ReadToEnd()); strread.Close(); str.Close(); res.Close(); } } } }
エラーメッセージ一覧
エラーコード | エラーメッセージ |
---|---|
10 | 対象が100件以上となります |
11 | 対象がありません |
89 | 職員情報が取得できません |
医療機関情報が取得できません | |
システム日付が取得できません | |
患者番号構成情報が取得できません | |
グループ医療機関が不整合です。処理を終了して下さい | |
システム項目が設定できません | |
90 | 他端末使用中 |
91 | 処理区分未設定 |
97 | 送信内容に誤りがあります |
98 | 送信内容の読込ができませんでした |
99 | ユーザID未登録 |