出産育児一時金
メニュー
更新履歴
2017-02-22 平成29年4月提出分以降の提出先変更に伴い、正常分娩の場合の提出先区分を変更。
概要
POSTメソッドにより出産育児一時金の照会、登録を行います。
日レセ Ver.4.8.0[第26回パッチ適用] 以降
リクエストおよびレスポンスデータはxml2形式となります。
出産育児一時金の登録処理は、通常退院登録後に行います。
この時に退院登録時の情報(入院料等)を設定する必要があるので、その場合に出産育児一時金の参照機能を利用します。
テスト方法
- 参考提供されている sample_birthdelivery_v2.rb 内の変数HOST等を接続環境に合わせます。
- sample_birthdelivery_v2.rb 内の患者番号等を指定します。
- ruby sample_birthdelivery_v2.rb により接続。
リクエスト(POSTリクエスト)サンプル
POST : /orca31/birthdeliveryv2
Request_Number:
01: 照会
02: 登録
Content-Type: application/xml
application/xml の場合の文字コードは UTF-8 とします。
<data>
<private_objects type ="record">
<Save_Request type ="string">1</Save_Request>
<Request_Number type ="string">02</Request_Number>
<Patient_ID type ="string">00002</Patient_ID>
<Admission_Date type ="string">2015-12-15</Admission_Date>
<Direct_Payment type ="string">1</Direct_Payment>
<Ac_Month type ="string">2015-12</Ac_Month>
<Ac_Date_Class type ="string">2</Ac_Date_Class>
<Ac_Class type ="string">1</Ac_Class>
<Delivery type ="string">1</Delivery>
<Submission_Provider type ="string">2</Submission_Provider>
<Gestation_Period_Passed type ="string">40</Gestation_Period_Passed>
<Delivery_Date type ="string">2015-12-15</Delivery_Date>
<Stillborn_Children type ="string">2</Stillborn_Children>
<Children_Born_Number type ="string">1</Children_Born_Number>
<Hospital_Stay_Days type ="string">6</Hospital_Stay_Days>
<Obstetric_Compensation_System type ="string">1</Obstetric_Compensation_System>
<Hospital_Money type ="string">100000</Hospital_Money>
<Delivery_Money type ="string">300000</Delivery_Money>
<Child_Care_Money type ="string">30000</Child_Care_Money>
<OCS_Money type ="string">16000</OCS_Money>
<Insurance_Combination_Number type ="string">0001</Insurance_Combination_Number>
</private_objects>
</data>
処理概要
出産育児一時金の照会、登録リクエストにより指定患者の出産育児一時金情報の取得、登録を行います。
リクエスト一覧(照会)
番号 | 項目名 | 内容 | 例 | 備考 |
---|---|---|---|---|
1 | Request_Number | リクエスト番号 01:照会 | 01 | 必須 |
2 | Patient_ID | 患者番号 | 00002 | 必須 |
3 | Admission_Date | 入院日 | 2015-12-15 | 必須 |
リクエスト一覧(登録)
番号 | 項目名 | 内容 | 例 | 備考 |
---|---|---|---|---|
1 | Save_Request | リクエスト保持区分 0:残さない 1:残す | 1 | 未設定時初期値[0]を設定 (日レセにリクエストの情報を保持するか否か指定) ※4 |
2 | Request_Number | リクエスト番号 02:登録 | 02 | 必須 |
3 | Patient_ID | 患者番号 | 00002 | 必須 |
4 | Admission_Date | 入院日 | 2015-12-15 | 必須 |
5 | Direct_Payment | 直接支払制度利用区分 0:利用しない 1:利用する | 1 | 必須 |
6 | Ac_Month | 請求年月 | 2015-12 | 必須 ※1 |
7 | Ac_Date_Class | 提出日区分 1:10日請求 2:25日請求 | 2 | 必須 ※1 |
8 | Ac_Class | 請求区分 0:請求しない 1:未請求 2:請求済 | 1 | 必須 ※1 |
9 | Delivery | 分娩区分 1:正常分娩 2:異常分娩 | 1 | 必須 |
10 | Submission_Provider | 提出先区分 1:支払基金 2:国保連合会 | 2 | 未設定時初期値 (2017-02-22 パッチ適用以前) 異常分娩の場合 |
11 | Gestation_Period_Passed | 在胎週数 | 40 | 必須 |
12 | Delivery_Date | 出産年月日 | 2015-12-15 | 必須 |
13 | Stillborn_Children | 死産有無区分 1:死産 2:死産でない 3:混在 | 2 | 必須 |
14 | Children_Born_Number | 出産数 | 1 | 必須 |
15 | Hospital_Stay_Days | 入院日数 | 6 | 必須 ※1、※2 |
16 | Obstetric_Compensation_System | 産科医療補償制度対象区分 1:対象分娩 2:対象分娩でない 3:混在 | 1 | 必須 |
17 | Hospital_Money | 入院料 | 100000 | ※1、※2 |
18 | Room_Money | 室料差額 | ※1、※2 | |
19 | Delivery_Care_Money | 分娩介助料 | ※1、※2 | |
20 | Delivery_Money | 分娩料 | 300000 | ※1、※2 |
21 | Child_Care_Money | 新生児管理保育料 | 30000 | ※1、※2 |
22 | Examination_Money | 検査・薬剤料 | ※1、※2 | |
23 | Medical_Treatment_Money | 処置・手当料 | ※1、※2 | |
24 | OCS_Money | 産科医療補償制度掛金 | 16000 | ※1、※2 |
25 | Other_Money | その他 | ※1、※2 | |
26 | Copayment_Money | 一部負担金等 | ※1、※2 | |
27 | Remarks | 備考 | ||
28 | Insurance_Combination_Number | 保険組合せ番号 | 0001 | ※3 |
29 | HealthInsurance_Information | 保険情報 | ||
29-1 | InsuranceProvider_Number | 保険者番号 | ※3 | |
29-2 | HealthInsuredPerson_Symbol | 記号 | ※3 | |
29-3 | HealthInsuredPerson_Number | 番号 | ※3 | |
29-4 | RelationToInsuredPerson | 本人家族区分 1:本人 2:家族 | ※3 |
※1:退院登録後に設定可能な項目です。
※2:退院登録後に照会(リクエスト番号[01])で取得した内容を設定します。任意の値を設定することも可能です。
※3:保険組合せ番号か保険情報はいずれか一方を必ず設定して下さい。両方とも設定した場合は保険組合せ番号を優先します。
保険情報が設定された場合、保険者番号、記号、本人家族区分は必須入力項目となります。
※4:「Save_Request」に「1」を設定した場合、日レセの「オーダ確認画面」にて、参照のみ可能です。
レスポンス一覧
番号 | 項目名 | 内容 | 例 | 備考 |
---|---|---|---|---|
1 | Information_Date | 実施日 | 2016-01-13 | |
2 | Information_Time | 実施時間 | 17:01:04 | |
3 | Api_Results | 結果情報 (繰り返し 10) | ||
3-1 | Api_Result | 結果コード(ゼロ以外エラー) | 0000 | |
3-2 | Api_Result_Message | エラーメッセージ | 処理終了 | |
4 | Request_Number | リクエスト番号 | ||
4-1 | Label | 内容の名称を返却 | リクエスト番号 | |
4-2 | Data | リクエスト番号を返却 | 02 | |
4-3 | Name | リクエスト番号の名称を返却 | 登録 | |
5 | Patient_Information | 患者情報 | | |
5-1 | Patient_ID | 患者番号 | 00002 | |
5-2 | WholeName | 漢字氏名 | 日医 佐織 | |
5-3 | WholeName_inKana | カナ氏名 | ニチイ サオリ | |
5-4 | BirthDate | 生年月日 | 1982-04-01 | |
5-5 | Sex | 性別 (2:女性) | 2 | |
6 | Birth_Delivery_Infomation | 出産育児一時金情報 | | |
6-1 | History_Number | 履歴番号 | 001 | |
6-2 | Admission_Date | 入院日 | 2015-12-15 | |
6-3 | Discharge_Date | 退院日 | 2015-12-20 | |
6-4 | Direct_Payment | 直接支払制度利用区分 | 0 | |
6-4-1 | Label | 内容の名称を返却 | 直接支払制度 | |
6-4-2 | Data | コードを返却 | 1 | |
6-4-3 | Name | 内容を返却 0:利用しない 1:利用する | 利用する | |
6-5 | Ac_Month | 請求年月 | ※1 | |
6-5-1 | Label | 内容の名称を返却 | 請求年月 | |
6-5-2 | Data | 年月を返却 | 2015-12 | |
6-6 | Ac_Date_Class | 提出日区分 | ※1 | |
6-6-1 | Label | 内容の名称を返却 | 提出日 | |
6-6-2 | Data | コードを返却 | 2 | |
6-6-3 | Name | 内容を返却 1:10日請求 2:25日請求 | 25日請求 | |
6-7 | Ac_Class | 請求区分 | ※1 | |
6-7-1 | Label | 内容の名称を返却 | 請求区分 | |
6-7-2 | Data | コードを返却 | 1 | |
6-7-3 | Name | 内容を返却 0:請求しない 1:未請求 2:請求済 | 未請求 | |
6-8 | Delivery | 分娩区分 | ||
6-8-1 | Label | 内容の名称を返却 | 分娩区分 | |
6-8-2 | Data | コードを返却 | 1 | |
6-8-3 | Name | 内容を返却 | 正常分娩 | |
6-9 | Submission_Provider | 提出先区分 | ||
6-9-1 | Label | 内容の名称を返却 | 提出先 | |
6-9-2 | Data | コードを返却 | 2 | |
6-9-3 | Name | 内容を返却 | 国保連合会 | |
6-10 | Gestation_Period_Passed | 在胎週数 | ||
6-10-1 | Label | 内容の名称を返却 | 在胎週数 | |
6-10-2 | Data | コードを返却 | 40 | |
6-10-3 | Name | 「週」を返却 | 週 | |
6-11 | Delivery_Date | 出産年月日 | ||
6-11-1 | Label | 内容の名称を返却 | 出産年月日 | |
6-11-2 | Data | 年月日を返却 | 2015-12-15 | |
6-12 | Stillborn_Children | 死産有無区分 | ||
6-12-1 | Label | 内容の名称を返却 | 死産有無 | |
6-12-2 | Data | コードを返却 | 2 | |
6-12-3 | Name | 内容を返却 | 死産でない | |
6-13 | Children_Born_Number | 出産数 | ||
6-13-1 | Label | 内容の名称を返却 | 出産数 | |
6-13-2 | Data | 人数を返却 | 1 | |
6-13-3 | Name | 「人」を返却 | 人 | |
6-14 | Hospital_Stay_Days | 入院日数 | ※1 | |
6-14-1 | Label | 内容の名称を返却 | 入院日数 | |
6-14-2 | Data | 日数を返却 | 6 | |
6-14-3 | Name | 「日」を返却 | 日 | |
6-15 | Obstetric_Compensation_System | 産科医療補償制度対象区分 | ||
6-15-1 | Label | 内容の名称を返却 | 産科医療補償制度 | |
6-15-2 | Data | コードを返却 | 1 | |
6-15-3 | Name | 内容を返却 | 対象分娩 | |
6-16 | Hospital_Money | 入院料 | ※1 | |
6-16-1 | Label | 内容の名称を返却 | 入院料 | |
6-16-2 | Data | 金額を返却 | 100000 | |
6-16-3 | Name | 「円」を返却 | 円 | |
6-17 | Room_Money | 室料差額 | ※1 | |
6-17-1 | Label | 内容の名称を返却 | 室料差額 | |
6-17-2 | Data | 金額を返却 | 0 | |
6-17-3 | Name | 「円」を返却 | 円 | |
6-18 | Delivery_Care_Money | 分娩介助料 | ※1 | |
6-18-1 | Label | 内容の名称を返却 | 分娩介助料 | |
6-18-2 | Data | 金額を返却 | 0 | |
6-18-3 | Name | 「円」を返却 | 円 | |
6-19 | Delivery_Money | 分娩料 | ※1 | |
6-19-1 | Label | 内容の名称を返却 | 分娩料 | |
6-19-2 | Data | 金額を返却 | 300000 | |
6-19-3 | Name | 「円」を返却 | 円 | |
6-20 | Child_Care_Money | 新生児管理保育料 | ※1 | |
6-20-1 | Label | 内容の名称を返却 | 新生児管理保育料 | |
6-20-2 | Data | 金額を返却 | 30000 | |
6-20-3 | Name | 「円」を返却 | 円 | |
6-21 | Examination_Money | 検査・薬剤料 | ※1 | |
6-21-1 | Label | 内容の名称を返却 | 検査・薬剤料 | |
6-21-2 | Data | 金額を返却 | 0 | |
6-21-3 | Name | 「円」を返却 | 円 | |
6-22 | Medical_Treatment_Money | 処置・手当料 | ※1 | |
6-22-1 | Label | 内容の名称を返却 | 処置・手当料 | |
6-22-2 | Data | 金額を返却 | 0 | |
6-22-3 | Name | 「円」を返却 | 円 | |
6-23 | OCS_Money | 産科医療補償制度掛金 | ※1 | |
6-23-1 | Label | 内容の名称を返却 | 産科医療補償制度掛金 | |
6-23-2 | Data | 金額を返却 | 16000 | |
6-23-3 | Name | 「円」を返却 | 円 | |
6-24 | Other_Money | その他 | ※1 | |
6-24-1 | Label | 内容の名称を返却 | その他 | |
6-24-2 | Data | 金額を返却 | 0 | |
6-24-3 | Name | 「円」を返却 | 円 | |
6-25 | Copayment_Money | 一部負担金等 | ※1 | |
6-25-1 | Label | 内容の名称を返却 | 一部負担金等 | |
6-25-2 | Data | 金額を返却 | 0 | |
6-25-3 | Name | 「円」を返却 | 円 | |
6-26 | Ac_Money | 妊婦合計負担額 | ※1 | |
6-26-1 | Label | 内容の名称を返却 | 妊婦合計負担額 | |
6-26-2 | Data | 金額を返却 | 446000 | |
6-26-3 | Name | 「円」を返却 | 円 | |
6-27 | Agency_Receipt | 代理受取額 | ※1 | |
6-27-1 | Label | 内容の名称を返却 | 代理受取額 | |
6-27-2 | Data | 金額を返却 | 420000 | |
6-27-3 | Name | 「円」を返却 | 円 | |
6-28 | Remarks | 備考 | ||
6-28-1 | Label | 内容の名称を返却 | ||
6-28-2 | Data | 内容を返却 | ||
6-29 | HealthInsurance_Information | 保険情報 | ||
6-29-1 | InsuranceProvider_Number | 保険者番号 | 01130012 | |
6-29-2 | InsuranceProvider_Name | 保険者名 | 全国健康保険協会東京支部 | |
6-29-3 | HealthInsuredPerson_Symbol | 記号 | 5010203 | |
6-29-4 | HealthInsuredPerson_Number | 番号 | 1 | |
6-29-5 | RelationToInsuredPerson | 本人家族区分 1:本人 5:家族 | 5 |
※1:退院登録後に返却を行います。
レスポンスサンプル
<xmlio2>
<private_objects type="record">
<Information_Date type="string">2016-01-13</Information_Date>
<Information_Time type="string">17:01:04</Information_Time>
<Api_Results type="array">
<Api_Results_child type="record">
<Api_Result type="string">0000</Api_Result>
<Api_Result_Message type="string">処理終了</Api_Result_Message>
</Api_Results_child>
</Api_Results>
<Request_Number type="record">
<Label type="string">リクエスト番号</Label>
<Data type="string">02</Data>
<Name type="string">登録</Name>
</Request_Number>
<Patient_Information type="record">
<Patient_ID type="string">00002</Patient_ID>
<WholeName type="string">日医 佐織</WholeName>
<WholeName_inKana type="string">ニチイ サオリ</WholeName_inKana>
<BirthDate type="string">1982-04-01</BirthDate>
<Sex type="string">2</Sex>
</Patient_Information>
<Birth_Delivery_Infomation type="record">
<History_Number type="string">001</History_Number>
<Admission_Date type="string">2015-12-15</Admission_Date>
<Discharge_Date type="string">2015-12-20</Discharge_Date>
<Direct_Payment type="record">
<Label type="string">直接支払制度</Label>
<Data type="string">1</Data>
<Name type="string">利用する</Name>
</Direct_Payment>
<Ac_Month type="record">
<Label type="string">請求年月</Label>
<Data type="string">2015-12</Data>
</Ac_Month>
<Ac_Date_Class type="record">
<Label type="string">提出日</Label>
<Data type="string">2</Data>
<Name type="string">25日請求</Name>
</Ac_Date_Class>
<Ac_Class type="record">
<Label type="string">請求区分</Label>
<Data type="string">1</Data>
<Name type="string">未請求</Name>
</Ac_Class>
<Delivery type="record">
<Label type="string">分娩区分</Label>
<Data type="string">1</Data>
<Name type="string">正常分娩</Name>
</Delivery>
<Submission_Provider type="record">
<Label type="string">提出先</Label>
<Data type="string">2</Data>
<Name type="string">国保連合会</Name>
</Submission_Provider>
<Gestation_Period_Passed type="record">
<Label type="string">在胎週数</Label>
<Data type="string">40</Data>
<Name type="string">週</Name>
</Gestation_Period_Passed>
<Delivery_Date type="record">
<Label type="string">出産年月日</Label>
<Data type="string">2015-12-15</Data>
</Delivery_Date>
<Stillborn_Children type="record">
<Label type="string">死産有無</Label>
<Data type="string">2</Data>
<Name type="string">死産でない</Name>
</Stillborn_Children>
<Children_Born_Number type="record">
<Label type="string">出産数</Label>
<Data type="string"> 1</Data>
<Name type="string">人</Name>
</Children_Born_Number>
<Hospital_Stay_Days type="record">
<Label type="string">入院日数</Label>
<Data type="string"> 6</Data>
<Name type="string">日</Name>
</Hospital_Stay_Days>
<Obstetric_Compensation_System type="record">
<Label type="string">産科医療補償制度</Label>
<Data type="string">1</Data>
<Name type="string">対象分娩</Name>
</Obstetric_Compensation_System>
<Hospital_Money type="record">
<Label type="string">入院料</Label>
<Data type="string"> 100000</Data>
<Name type="string">円</Name>
</Hospital_Money>
<Room_Money type="record">
<Label type="string">室料差額</Label>
<Data type="string"> 0</Data>
<Name type="string">円</Name>
</Room_Money>
<Delivery_Care_Money type="record">
<Label type="string">分娩介助料</Label>
<Data type="string"> 0</Data>
<Name type="string">円</Name>
</Delivery_Care_Money>
<Delivery_Money type="record">
<Label type="string">分娩料</Label>
<Data type="string"> 300000</Data>
<Name type="string">円</Name>
</Delivery_Money>
<Child_Care_Money type="record">
<Label type="string">新生児管理保育料</Label>
<Data type="string"> 30000</Data>
<Name type="string">円</Name>
</Child_Care_Money>
<Examination_Money type="record">
<Label type="string">検査・薬剤料</Label>
<Data type="string"> 0</Data>
<Name type="string">円</Name>
</Examination_Money>
<Medical_Treatment_Money type="record">
<Label type="string">処置・手当料</Label>
<Data type="string"> 0</Data>
<Name type="string">円</Name>
</Medical_Treatment_Money>
<OCS_Money type="record">
<Label type="string">産科医療補償制度掛金</Label>
<Data type="string"> 16000</Data>
<Name type="string">円</Name>
</OCS_Money>
<Other_Money type="record">
<Label type="string">その他</Label>
<Data type="string"> 0</Data>
<Name type="string">円</Name>
</Other_Money>
<Copayment_Money type="record">
<Label type="string">一部負担金等</Label>
<Data type="string"> 0</Data>
<Name type="string">円</Name>
</Copayment_Money>
<Ac_Money type="record">
<Label type="string">妊婦合計負担額</Label>
<Data type="string"> 446000</Data>
<Name type="string">円</Name>
</Ac_Money>
<Agency_Receipt type="record">
<Label type="string">代理受取額</Label>
<Data type="string"> 420000</Data>
<Name type="string">円</Name>
</Agency_Receipt>
<HealthInsurance_Information type="record">
<InsuranceProvider_Number type="string">01130012</InsuranceProvider_Number>
<InsuranceProvider_Name type="string">全国健康保険協会東京支部</InsuranceProvider_Name>
<HealthInsuredPerson_Symbol type="string">5010203</HealthInsuredPerson_Symbol>
<HealthInsuredPerson_Number type="string">1</HealthInsuredPerson_Number>
<RelationToInsuredPerson type="string">5</RelationToInsuredPerson>
</HealthInsurance_Information>
</Birth_Delivery_Infomation>
</private_objects>
</xmlio2>
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("/orca31/birthdeliveryv2")
# Request_Number:
# 01: 照会
# 02: 登録
#
BODY = <<EOF
<data>
<private_objects type ="record">
<Save_Request type ="string">1</Save_Request>
<Request_Number type ="string">02</Request_Number>
<Patient_ID type ="string">00002</Patient_ID>
<Admission_Date type ="string">2015-12-15</Admission_Date>
<Direct_Payment type ="string">1</Direct_Payment>
<Ac_Month type ="string">2015-12</Ac_Month>
<Ac_Date_Class type ="string">2</Ac_Date_Class>
<Ac_Class type ="string">1</Ac_Class>
<Delivery type ="string">1</Delivery>
<Submission_Provider type ="string">2</Submission_Provider>
<Gestation_Period_Passed type ="string">40</Gestation_Period_Passed>
<Delivery_Date type ="string">2015-12-15</Delivery_Date>
<Stillborn_Children type ="string">2</Stillborn_Children>
<Children_Born_Number type ="string">1</Children_Born_Number>
<Hospital_Stay_Days type ="string">6</Hospital_Stay_Days>
<Obstetric_Compensation_System type ="string">1</Obstetric_Compensation_System>
<Hospital_Money type ="string">100000</Hospital_Money>
<Delivery_Money type ="string">300000</Delivery_Money>
<Child_Care_Money type ="string">30000</Child_Care_Money>
<OCS_Money type ="string">16000</OCS_Money>
<Insurance_Combination_Number type ="string">0001</Insurance_Combination_Number>
</private_objects>
</data>
EOF
req.content_length = BODY.size
req.content_type = CONTENT_TYPE
req.body = BODY
req.basic_auth(USER, PASSWD)
puts req.body
Net::HTTP.start(HOST, PORT) {|http|
res = http.request(req)
puts res.body
}