API 請求金額返却

メニュー

更新履歴

2021-01-27  「リクエスト一覧」に項目を追加。
      「レスポンス一覧」に項目を追加。

2014-07-03  「エラーメッセージ一覧」を追加。
      「警告メッセージ一覧」を追加。

 

概要

POSTメソッドによる請求金額の返却を行います。

日レセ Ver4.7.0[第4回パッチ適用]以降

リクエストおよびレスポンスデータはxml2形式になります。

 

テスト方法

  1. 参考提供されている sample_acsimulate_v2.rb 内の変数HOST等を接続環境に合わせます。
  2. sample_acsimulate_v2.rb 内の患者番号等を接続先の日レセの環境に合わせます。
  3. ruby sample_acsimulate_v2.rb により接続。

 

リクエスト(POSTリクエスト)サンプル

POST : /api01rv2/acsimulatev2?class=01
class = 01 請求金額シミュレーション
Content-Type: application/xml

application/xml の場合の文字コードは UTF-8 とします。

 

<data>
<acsimulatereq type="record">
<Patient_ID type="string">3999</Patient_ID>
<Perform_Date type="string">2012-12-27</Perform_Date>
<Perform_Time type="string">15:34:12</Perform_Time>
<Time_Class type="string">1</Time_Class>
<!-- ========================================================== -->
<!-- 診療データ -->
<!-- ========================================================== -->
<Diagnosis_Information type="record">
<Department_Code type="string">01</Department_Code>
<HealthInsurance_Information type="record">
<InsuranceProvider_Class type="string">060</InsuranceProvider_Class>
<InsuranceProvider_Number type="string">138057</InsuranceProvider_Number>
<InsuranceProvider_WholeName type="string">国保</InsuranceProvider_WholeName>
<HealthInsuredPerson_Symbol type="string">01</HealthInsuredPerson_Symbol>
<HealthInsuredPerson_Number type="string">12345</HealthInsuredPerson_Number>
<HealthInsuredPerson_Continuation type="string"></HealthInsuredPerson_Continuation>
<HealthInsuredPerson_Assistance type="string"></HealthInsuredPerson_Assistance>
<RelationToInsuredPerson type="string"></RelationToInsuredPerson>
<HealthInsuredPerson_WholeName type="string">日医 太郎</HealthInsuredPerson_WholeName>
<Certificate_StartDate type="string">2012-12-17</Certificate_StartDate>
<Certificate_ExpiredDate type="string">9999-12-31</Certificate_ExpiredDate>
<PublicInsurance_Information type="array">
<PublicInsurance_Information_child type="record">
<PublicInsurance_Class type="string">010</PublicInsurance_Class>
<PublicInsurance_Name type="string">感37の2</PublicInsurance_Name>
<PublicInsurer_Number type="string">10131142</PublicInsurer_Number>
<PublicInsuredPerson_Number type="string">1234566</PublicInsuredPerson_Number>
<Certificate_IssuedDate type="string">2012-12-17</Certificate_IssuedDate>
<Certificate_ExpiredDate type="string">9999-12-31</Certificate_ExpiredDate>
</PublicInsurance_Information_child>
           ・
           ・
           ・
</PublicInsurance_Information>
</HealthInsurance_Information>
<Medical_Information type="array">
<Medical_Information_child type="record">
<Medical_Class type="string">120</Medical_Class>
<Medical_Class_Name type="string">再診</Medical_Class_Name>
<Medical_Class_Number type="string">1</Medical_Class_Number>
<Medication_info type="array">
<Medication_info_child type="record">
<Medication_Code type="string">112007410</Medication_Code>
<Medication_Name type="string">再診</Medication_Name>
<Medication_Number type="string">1</Medication_Number>
</Medication_info_child>
<Medication_info_child type="record">
<Medication_Code type="string">112016070</Medication_Code>
<Medication_Name type="string">時間外対応加算2</Medication_Name>
<Medication_Number type="string"></Medication_Number>
</Medication_info_child>
<Medication_info_child type="record">
<Medication_Code type="string">112015770</Medication_Code>
<Medication_Name type="string">明細書発行体制加算</Medication_Name>
<Medication_Number type="string">1</Medication_Number>
</Medication_info_child>
</Medication_info>
</Medical_Information_child>
<Medical_Information_child type="record">
<Medical_Class type="string">210</Medical_Class>
<Medical_Class_Name type="string">内服薬剤</Medical_Class_Name>
<Medical_Class_Number type="string">10</Medical_Class_Number>
<Medication_info type="array">
<Medication_info_child type="record">
<Medication_Code type="string">616140105</Medication_Code>
<Medication_Name type="string">クラリス錠200 200mg</Medication_Name>
<Medication_Number type="string">2</Medication_Number>
</Medication_info_child>
</Medication_info>
</Medical_Information_child>
<Medical_Information_child type="record">
<Medical_Class type="string">310</Medical_Class>
<Medical_Class_Name type="string">皮下筋肉注射</Medical_Class_Name>
<Medical_Class_Number type="string">1</Medical_Class_Number>
<Medication_info type="array">
<Medication_info_child type="record">
<Medication_Code type="string">641210099</Medication_Code>
<Medication_Name type="string">キシロカイン注射液1%</Medication_Name>
<Medication_Number type="string">1</Medication_Number>
</Medication_info_child>
</Medication_info>
</Medical_Information_child>
           ・
           ・
           ・
</Medical_Information>
</Diagnosis_Information>
</acsimulatereq>
</data>

 

処理概要

請求金額リクエストにより該当患者の請求金額のシミュレーションを行います。

処理詳細

  1. 患者番号、診療科の妥当性チェック
  2. 保険組合せ番号が空白の時、保険・公費情報から保険組合せを決定します。
    保険組合せ・保険・公費情報が未設定の時は、診療科の前回の保険組合せを対象とします。
    前回の受診が無ければ、公費の多い保険組合せとなります。
    対象が無ければエラーとなります。
  3. 時間外加算区分は、環境設定の外来時間外区分(1〜8)を設定します。
    設定した時間外区分を外来時間外区分として初診・再診料に反映します。
    初診・再診料が無い場合は反映できません。
  4. 初診・再診料の再自動算定はおこないません。
    送信された内容で処理をおこなうため、時間外対応加算・明細書発行体制等加算・外来管理加算は送信して下さい。なお、外来管理加算は、システム管理の外来管理加算チェックが「0 チェックなし」、「1 チェックあり」であれば送信内容によって登録時に自動発生しますので、必ず送信する必要はありません。
    時間外加算コードは、時間外加算区分の設定があれば自動で算定をおこないます。
  5. 診療行為入力時と同じ処理をおこないます。
    併用算定エラーなどエラーが一箇所でもあれば、処理を終了してエラーメッセージと診療コードを返却します。
    警告は無視してそのまま処理をおこないます。警告メッセージの返却はおこないません。
    乳幼児の年齢加算、検査などの月2回目の逓減などは診療行為入力と同様におこないます。
  6. 診療行為の登録時に自動算定する項目はすべて自動算定をおこないます。
    特定疾患処方管理加算など登録時に確認メッセージを表示して算定の有無を選択する場合は、すべて「OK」として自動算定します。

レスポンスサンプル

<xmlio2>
<acsimulateres type="record">
<Information_Date type="string">2012-12-27</Information_Date>
<Information_Time type="string">20:03:33</Information_Time>
<Api_Result type="string">00</Api_Result>
<Api_Result_Message type="string">処理終了</Api_Result_Message>
<Reskey type="string">Medical Info</Reskey>
<Perform_Date type="string">2012-12-27</Perform_Date>
<Time_Class type="string">1</Time_Class>
<Department_Code type="string">01</Department_Code>
<Department_Name type="string">内科</Department_Name>
<Patient_Information type="record">
<Patient_ID type="string">03999</Patient_ID>
<WholeName type="string">日医 太郎</WholeName>
<WholeName_inKana type="string">ニチイ タロウ</WholeName_inKana>
<BirthDate type="string">1970-01-01</BirthDate>
<Sex type="string">1</Sex>
<HealthInsurance_Information type="record">
<Combination_Number type="string">0002</Combination_Number>
<InsuranceProvider_Class type="string">060</InsuranceProvider_Class>
<InsuranceProvider_Number type="string">138057</InsuranceProvider_Number>
<InsuranceProvider_WholeName type="string">国保</InsuranceProvider_WholeName>
<HealthInsuredPerson_Symbol type="string">01</HealthInsuredPerson_Symbol>
<HealthInsuredPerson_Number type="string">12345</HealthInsuredPerson_Number>
<HealthInsuredPerson_Assistance type="string">3</HealthInsuredPerson_Assistance>
<HealthInsuredPerson_Assistance_Name type="string">3割</HealthInsuredPerson_Assistance_Name>
<RelationToInsuredPerson type="string">1</RelationToInsuredPerson>
<HealthInsuredPerson_WholeName type="string">日医 太郎</HealthInsuredPerson_WholeName>
<Certificate_StartDate type="string">2012-12-17</Certificate_StartDate>
<Certificate_ExpiredDate type="string">9999-12-31</Certificate_ExpiredDate>
<PublicInsurance_Information type="array">
<PublicInsurance_Information_child type="record">
<PublicInsurance_Class type="string">010</PublicInsurance_Class>
<PublicInsurance_Name type="string">感37の2</PublicInsurance_Name>
<PublicInsurer_Number type="string">10131142</PublicInsurer_Number>
<PublicInsuredPerson_Number type="string">1234566</PublicInsuredPerson_Number>
<Rate_Admission type="string">0.05</Rate_Admission>
<Money_Admission type="string"> 0</Money_Admission>
<Rate_Outpatient type="string">0.05</Rate_Outpatient>
<Money_Outpatient type="string"> 0</Money_Outpatient>
<Certificate_IssuedDate type="string">2012-12-17</Certificate_IssuedDate>
<Certificate_ExpiredDate type="string">9999-12-31</Certificate_ExpiredDate>
</PublicInsurance_Information_child>
</PublicInsurance_Information>
</HealthInsurance_Information>
<Cd_Information type="record">
<Ac_Money type="string"> 340</Ac_Money>
<Ai_Money type="string"> 0</Ai_Money>
<Oe_Money type="string"> 0</Oe_Money>
<Pi_Smoney type="string"> 340</Pi_Smoney>
</Cd_Information>
<Ac_Point_Information type="record">
<Ac_Ttl_Point type="string"> 675</Ac_Ttl_Point>
<Ac_Point_Detail type="array">
<Ac_Point_Detail_child type="record">
<AC_Point_Name type="string">初・再診料</AC_Point_Name>
<AC_Point type="string"> 140</AC_Point>
</Ac_Point_Detail_child>
<Ac_Point_Detail_child type="record">
<AC_Point_Name type="string">医学管理等</AC_Point_Name>
<AC_Point type="string"> 0</AC_Point>
</Ac_Point_Detail_child>
<Ac_Point_Detail_child type="record">
<AC_Point_Name type="string">在宅療養</AC_Point_Name>
<AC_Point type="string"> 0</AC_Point>
</Ac_Point_Detail_child>
<Ac_Point_Detail_child type="record">
<AC_Point_Name type="string">投薬</AC_Point_Name>
<AC_Point type="string"> 234</AC_Point>
</Ac_Point_Detail_child>
<Ac_Point_Detail_child type="record">
<AC_Point_Name type="string">注射</AC_Point_Name>
<AC_Point type="string"> 19</AC_Point>
</Ac_Point_Detail_child>
<Ac_Point_Detail_child type="record">
<AC_Point_Name type="string">処置</AC_Point_Name>
<AC_Point type="string"> 58</AC_Point>
</Ac_Point_Detail_child>
<Ac_Point_Detail_child type="record">
<AC_Point_Name type="string">手術</AC_Point_Name>
<AC_Point type="string"> 0</AC_Point>
</Ac_Point_Detail_child>
<Ac_Point_Detail_child type="record">
<AC_Point_Name type="string">麻酔</AC_Point_Name>
<AC_Point type="string"> 0</AC_Point>
</Ac_Point_Detail_child>
<Ac_Point_Detail_child type="record">
<AC_Point_Name type="string">検査</AC_Point_Name>
<AC_Point type="string"> 0</AC_Point>
</Ac_Point_Detail_child>
<Ac_Point_Detail_child type="record">
<AC_Point_Name type="string">画像診断</AC_Point_Name>
<AC_Point type="string"> 224</AC_Point>
</Ac_Point_Detail_child>
<Ac_Point_Detail_child type="record">
<AC_Point_Name type="string">リハビリ</AC_Point_Name>
<AC_Point type="string"> 0</AC_Point>
</Ac_Point_Detail_child>
<Ac_Point_Detail_child type="record">
<AC_Point_Name type="string">精神科専門</AC_Point_Name>
<AC_Point type="string"> 0</AC_Point>
</Ac_Point_Detail_child>
<Ac_Point_Detail_child type="record">
<AC_Point_Name type="string">放射線治療</AC_Point_Name>
<AC_Point type="string"> 0</AC_Point>
</Ac_Point_Detail_child>
<Ac_Point_Detail_child type="record">
<AC_Point_Name type="string">病理診断</AC_Point_Name>
<AC_Point type="string"> 0</AC_Point>
</Ac_Point_Detail_child>
</Ac_Point_Detail>
</Ac_Point_Information>
</Patient_Information>
</acsimulateres>
</xmlio2>

 

リクエスト一覧

番号項目名内容備考
1 Patient_ID患者番号3999
必須
2 Perform_Date
診療日2012-12-27
 
3 Time_Class
時間外区分1
 
4 Diagnosis_Information
診療情報
  
4-1 Department_Code
診療科コード ※1
(01:内科)
01
必須
4-2 Combination_Number保険組合せ番号
  
4-3 HealthInsurance_Information保険組合せ情報
  
4-3-1 InsuranceProvider_Class保険の種類
(060:国保)
060
※2
4-3-2 InsuranceProvider_Number保険者番号
138057
※2
4-3-3 InsuranceProvider_WholeName保険の制度名称
国保
※2
4-3-4 HealthInsuredPerson_Symbol記号
01
 
4-3-5 HealthInsuredPerson_Number番号
12345
 
4-3-6
 HealthInsuredPerson_Branch_Number
枝番
 追加
(2021-01-27)
4-3-7 HealthInsuredPerson_Continuation継続区分
(1:継続療養、2:任意継続)
1
 
4-3-8 HealthInsuredPerson_Assistance
補助区分
(詳細については、「日医標準レセプトソフトデータベーステーブル定義書」を参照して下さい)
3
 
4-3-9 RelationToInsuredPerson本人家族区分
(1:本人、2:家族)
1
 
4-3-10 HealthInsuredPerson_WholeName被保険者名
日医 太郎
 
4-3-11 Certificate_StartDate適用開始日
2012-12-17
 
4-3-12 Certificate_ExpiredDate適用終了日
9999-12-31
 
4-3-13 PublicInsurance_Information
公費情報(繰り返し 4)
  
4-3-13-1 PublicInsurance_Class公費の種類
010
※2
4-3-13-2 PublicInsurance_Name公費の制度名称
感37の2
※2
4-3-13-3 PublicInsurer_Number負担者番号
10131142
※2
4-3-13-4 PublicInsuredPerson_Number受給者番号
1234566
※2
4-3-13-5 Certificate_IssuedDate適用開始日
2012-12-17
 
4-3-13-6 Certificate_ExpiredDate適用終了日
9999-12-31
 
4-4 Medical_Information診療行為情報(繰り返し 40)
  
4-4-1 Medical_Class診療種別区分
(詳細については、「日医標準レセプトソフトデータベーステーブル定義書」を参照して下さい)
120
 
4-4-2 Medical_Class_Name診療種別区分名称
再診
 
4-4-3 Medical_Class_Number診療回数、日数
1
 
4-4-4 Medication_info診療内容(繰り返し 40)
  
4-4-4-1 Medication_Code診療行為コード
112007410
 
4-4-4-2 Medication_Name診療名称
再診
 
4-4-4-3 Medication_Number数量
1
 
4-4-4-4 Medication_Generic_Flg処方せん一般名記載
  

 ※1:システム管理マスタの診療科目情報の診療科コードを参照して下さい。

 ※2:一箇所でも設定されていれば、一致する保険組合せが対象に設定されます。

 

レスポンス一覧

番号項目名内容備考
1 Information_Date実施日2012-12-27 
2
 Information_Time実施時間
20:03:33
 
3
 Api_Result
結果コード
00
 
4
 Api_Result_Message結果メッセージ
処理終了
 
5
 Reskeyレスポンスキー情報
Medical Info
 
6
 Perform_Date
診療年月日
2012-12-27
 
7
 Time_Class時間外区分
1
 
8
 Department_Code診療科コード
01
 
9
 Department_Name診療科名称
内科
 
10
 Patient_Information患者情報
  
10-1
 Patient_ID患者番号
03999
 
10-2
 WholeName患者氏名
日医 太郎
 
10-3
 WholeName_inKana
患者カナ氏名
ニチイ タロウ
 
10-4
 BirthDate生年月日
1970-01-01
 
10-5
 Sex性別
(1:男性、2:女性)
1
 
10-6
 Dis_Rate割引率
 割引率 + 円(%)
  (患者登録で設定した値)
10-7
 HealthInsurance_Information保険組合せ情報
  
10-7-1
 Combination_Number保険組合せ番号
0002 
10-7-2
 InsuranceProvider_Class保険の種類
060
 
10-7-3
 InsuranceProvider_Number保険者番号
138057
 
10-7-4
 InsuranceProvider_WholeName保険の制度名称
国保
 
10-7-5
 HealthInsuredPerson_Symbol記号
01
 
10-7-6
 HealthInsuredPerson_Number
番号
12345
 
10-7-7
 HealthInsuredPerson_Branch_Number
枝番
00
追加
(2021-01-27)
10-7-8
 HealthInsuredPerson_Continuation継続区分
(1:継続療養、2:任意継続)
  
10-7-9
 HealthInsuredPerson_Assistance補助区分
(詳細については、「日医標準レセプトソフトデータベーステーブル定義書」を参照して下さい)
3
 
10-7-10
 HealthInsuredPerson_Assistance_Name 
3割
 
10-7-11
 RelationToInsuredPerson本人家族区分
(1:本人、2:家族)
1
 
10-7-12
 HealthInsuredPerson_WholeName被保険者名
日医 太郎
 
10-7-13
 Certificate_StartDate適用開始日
2012-12-17
 
10-7-14
 Certificate_ExpiredDate適用終了日
9999-12-31
 
10-7-15
 PublicInsurance_Information公費情報(繰り返し 4)
  
10-7-15-1
 PublicInsurance_Class公費の種類
010
 
10-7-15-2
 PublicInsurance_Name公費の制度名称
感37の2
 
10-7-15-3
 PublicInsurer_Number負担者番号
10131142
 
10-7-15-4
 PublicInsuredPerson_Number受給者番号
1234566
 
10-7-15-5
 Rate_Admission入院ー負担率(割)
0.05
 
10-7-15-6
 Money_Admission入院ー固定額
0
 
10-7-15-7
 Rate_Outpatient外来ー負担率(割)
0.05
 
10-7-15-8
 Money_Outpatient外来ー固定額
0
 
10-7-15-9
 Certificate_IssuedDate適用開始日
2012-12-17
 
10-7-15-10
 Certificate_ExpiredDate適用終了日
9999-12-17
 
10-8
 Cd_Information負担額情報
  
10-8-1
 Ac_Money請求金額
340
 
10-8-2
 Ai_Money保険適用金額
 負担金額(円)の保険分
0
 
10-8-3
 Oe_Money自費金額
 負担金額(円)の自費分 + その他自費のその他計の合計
0
 
10-8-4
 Dg_Smoney薬剤一部負担金
(ゼロは非表示)
  
10-8-5
 Om_Smoney老人一部負担金
(ゼロは非表示)
  
10-8-6
 Pi_Smoney公費一部負担金
(ゼロは非表示)
340
 
10-8-7
 Lsi_Total_Money労災合計金額
 労災自賠責保険適用分(円)の集計値
(初診 + 再診 + 指導 + その他)
(ゼロは非表示)
  
10-9
 Ac_Point_Information請求点数
  
10-9-1
 Ac_Ttl_Point合計点数
 保険分の合計点数
675
 
10-9-2
 Ac_Point_Detail点数詳細 (繰り返し 16)  
10-9-2-1
 AC_Point_Name名称
初・再診料
※1
10-9-2-2
 AC_Point点数
140
 

 ※1:入院料(15)、療養担当手当(16)は、点数ゼロは編集なし。
   初診・再診料〜病理診断は、点数ゼロを編集。

 

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 -*-  

 

sample_acsimulate_v2.rb 

#!/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/acsimulatev2?class=01")
# class :01 請求金額シミュレーション
#
#
BODY = <<EOF
<data>
<acsimulatereq type="record">
<Patient_ID type="string">3999</Patient_ID>
<Perform_Date type="string">2012-12-27</Perform_Date>
<Perform_Time type="string">15:34:12</Perform_Time>
<Time_Class type="string">1</Time_Class>
<!-- ========================================================== -->
<!-- 診療データ -->
<!-- ========================================================== -->
<Diagnosis_Information type="record">
<Department_Code type="string">01</Department_Code>
<HealthInsurance_Information type="record">
<InsuranceProvider_Class type="string">060</InsuranceProvider_Class>
<InsuranceProvider_Number type="string">138057</InsuranceProvider_Number>
<InsuranceProvider_WholeName type="string">国保</InsuranceProvider_WholeName>
<HealthInsuredPerson_Symbol type="string">01</HealthInsuredPerson_Symbol>
<HealthInsuredPerson_Number type="string">12345</HealthInsuredPerson_Number>
<HealthInsuredPerson_Continuation type="string"></HealthInsuredPerson_Continuation>
<HealthInsuredPerson_Assistance type="string"></HealthInsuredPerson_Assistance>
<RelationToInsuredPerson type="string"></RelationToInsuredPerson>
<HealthInsuredPerson_WholeName type="string">日医 太郎</HealthInsuredPerson_WholeName>
<Certificate_StartDate type="string">2012-12-17</Certificate_StartDate>
<Certificate_ExpiredDate type="string">9999-12-31</Certificate_ExpiredDate>
<PublicInsurance_Information type="array">
<PublicInsurance_Information_child type="record">
<PublicInsurance_Class type="string">010</PublicInsurance_Class>
<PublicInsurance_Name type="string">感37の2</PublicInsurance_Name>
<PublicInsurer_Number type="string">10131142</PublicInsurer_Number>
<PublicInsuredPerson_Number type="string">1234566</PublicInsuredPerson_Number>
<Certificate_IssuedDate type="string">2012-12-17</Certificate_IssuedDate>
<Certificate_ExpiredDate type="string">9999-12-31</Certificate_ExpiredDate>
</PublicInsurance_Information_child>
<PublicInsurance_Information_child type="record">
<PublicInsurance_Class type="string"></PublicInsurance_Class>
<PublicInsurance_Name type="string"></PublicInsurance_Name>
<PublicInsurer_Number type="string"></PublicInsurer_Number>
<PublicInsuredPerson_Number type="string"></PublicInsuredPerson_Number>
<Certificate_IssuedDate type="string"></Certificate_IssuedDate>
<Certificate_ExpiredDate type="string"></Certificate_ExpiredDate>
</PublicInsurance_Information_child>
</PublicInsurance_Information>
</HealthInsurance_Information>
<Medical_Information type="array">
<Medical_Information_child type="record">
<Medical_Class type="string">120</Medical_Class>
<Medical_Class_Name type="string">再診</Medical_Class_Name>
<Medical_Class_Number type="string">1</Medical_Class_Number>
<Medication_info type="array">
<Medication_info_child type="record">
<Medication_Code type="string">112007410</Medication_Code>
<Medication_Name type="string">再診</Medication_Name>
<Medication_Number type="string">1</Medication_Number>
</Medication_info_child>
<Medication_info_child type="record">
<Medication_Code type="string">112016070</Medication_Code>
<Medication_Name type="string">時間外対応加算2</Medication_Name>
<Medication_Number type="string"></Medication_Number>
</Medication_info_child>
<Medication_info_child type="record">
<Medication_Code type="string">112015770</Medication_Code>
<Medication_Name type="string">明細書発行体制加算</Medication_Name>
<Medication_Number type="string">1</Medication_Number>
</Medication_info_child>
</Medication_info>
</Medical_Information_child>
<Medical_Information_child type="record">
<Medical_Class type="string">210</Medical_Class>
<Medical_Class_Name type="string">内服薬剤</Medical_Class_Name>
<Medical_Class_Number type="string">10</Medical_Class_Number>
<Medication_info type="array">
<Medication_info_child type="record">
<Medication_Code type="string">616140105</Medication_Code>
<Medication_Name type="string">クラリス錠200 200mg</Medication_Name>
<Medication_Number type="string">2</Medication_Number>
</Medication_info_child>
</Medication_info>
</Medical_Information_child>
<Medical_Information_child type="record">
<Medical_Class type="string">310</Medical_Class>
<Medical_Class_Name type="string">皮下筋肉注射</Medical_Class_Name>
<Medical_Class_Number type="string">1</Medical_Class_Number>
<Medication_info type="array">
<Medication_info_child type="record">
<Medication_Code type="string">641210099</Medication_Code>
<Medication_Name type="string">キシロカイン注射液1%</Medication_Name>
<Medication_Number type="string">1</Medication_Number>
</Medication_info_child>
</Medication_info>
</Medical_Information_child>
<Medical_Information_child type="record">
<Medical_Class type="string">400</Medical_Class>
<Medical_Class_Name type="string">処置行為</Medical_Class_Name>
<Medical_Class_Number type="string">1</Medical_Class_Number>
<Medication_info type="array">
<Medication_info_child type="record">
<Medication_Code type="string">140022810</Medication_Code>
<Medication_Name type="string">超音波ネブライザー</Medication_Name>
<Medication_Number type="string"> </Medication_Number>
</Medication_info_child>
<Medication_info_child type="record">
<Medication_Code type="string">620003816</Medication_Code>
<Medication_Name type="string">ホスミシンS静注用1g</Medication_Name>
<Medication_Number type="string">0.1 </Medication_Number>
</Medication_info_child>
<Medication_info_child type="record">
<Medication_Code type="string">620002615</Medication_Code>
<Medication_Name type="string">リンデロン注20mg</Medication_Name>
<Medication_Number type="string">0.2 </Medication_Number>
</Medication_info_child>
<Medication_info_child type="record">
<Medication_Code type="string">620518102</Medication_Code>
<Medication_Name type="string">ボスミン外用液0.1%</Medication_Name>
<Medication_Number type="string">0.2 </Medication_Number>
</Medication_info_child>
</Medication_info>
</Medical_Information_child>
<Medical_Information_child type="record">
<Medical_Class type="string">700</Medical_Class>
<Medical_Class_Name type="string">画像診断</Medical_Class_Name>
<Medical_Class_Number type="string">1</Medical_Class_Number>
<Medication_info type="array">
<Medication_info_child type="record">
<Medication_Code type="string">002000001</Medication_Code>
<Medication_Name type="string">頭部</Medication_Name>
<Medication_Number type="string"> </Medication_Number>
</Medication_info_child>
<Medication_info_child type="record">
<Medication_Code type="string">170027910</Medication_Code>
<Medication_Name type="string">単純撮影(デジタル撮影)</Medication_Name>
<Medication_Number type="string">2</Medication_Number>
</Medication_info_child>
<Medication_info_child type="record">
<Medication_Code type="string">170000510</Medication_Code>
<Medication_Name type="string">単純撮影(ロ)の写真診断</Medication_Name>
<Medication_Number type="string">2</Medication_Number>
</Medication_info_child>
<Medication_info_child type="record">
<Medication_Code type="string">170000210</Medication_Code>
<Medication_Name type="string">電子画像管理加算(単純撮影)</Medication_Name>
</Medication_info_child>
</Medication_info>
</Medical_Information_child>
<Medical_Information_child type="record">
<Medical_Class type="string">220</Medical_Class>
<Medical_Class_Name type="string">頓服</Medical_Class_Name>
<Medical_Class_Number type="string">1</Medical_Class_Number>
<Medication_info type="array">
<Medication_info_child type="record">
<Medication_Code type="string">621362001</Medication_Code>
<Medication_Name type="string">グリセリン</Medication_Name>
<Medication_Number type="string">5</Medication_Number>
</Medication_info_child>
<Medication_info_child type="record">
<Medication_Code type="string"> </Medication_Code>
<Medication_Name type="string"> </Medication_Name>
<Medication_Number type="string"> </Medication_Number>
</Medication_info_child>
</Medication_info>
</Medical_Information_child>
</Medical_Information>
</Diagnosis_Information>
</acsimulatereq>
</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
}

エラーメッセージ一覧

エラーコード
エラーメッセージ
備考
 01 患者番号の設定がありません 
 02 診療科の設定がありません 
 03 時間外加算区分が存在しません 
 10 患者番号に該当する患者が存在しません 
 11 診療日が暦日ではありません 
 12 該当する保険組合せがありません 
 13 診療科が存在しません 
 50 コード:112016070 診療所のコードです。病院では入力できません
左のエラーメッセージは一例になります。

このエラーに該当した場合に返却されるエラーメッセージは「エラー対象となったコード + エラー内容」になります。
このエラーは主に施設(病院、診療所)では使用できない診療行為コード等を設定した場合に返却されます。
 51 項目未設定 
 対象データなし 
 回数指定エラー 
 一時データ出力エラー 
 89 職員情報が取得できません 
 医療機関情報が取得できません 
 システム日付が取得できません 
 患者番号構成情報が取得できません 
 グループ医療機関が不整合です。処理を終了して下さい 
 システム項目が設定できません 
 90 他端末使用中 
 91 処理区分未設定 
 97 送信内容に誤りがあります 
 98 送信内容の読込ができませんでした 
 99 ユーザID未登録 

 

警告メッセージ一覧

エラーコード
警告メッセージ
 K1 診療日を設定しました

 

 

このページのトップへ