入院患者照会

各検索項目より検索条件に該当する入院患者情報の返却を行います。

更新履歴

  • 2018-05-28
    • 不具合修正
      • リクエスト項目[範囲指定の終了値]の設定が有効とならない不具合を修正
    • 機能追加
      • リクエスト項目[入院状態] に"5"(仮保険組合せ登録)を追加
      • レスポンス項目に[保険組合せ番号]を追加

入院患者照会処理

入院患者照会API(URL:/orca36/hsfindv3)

Request_Number=01

患者氏名、住所、入院日、退院日、病棟番号等の検索項目を設定し、入院患者の検索を行います。

リクエストサンプル
2017-09-01に入院した患者を検索

<data>
<hsfindv3req type ="record">
<Request_Number type ="string">01</Request_Number>
<Patient_Information type ="record">
<Admission_Date type ="record">
<First type ="string">2017-09-01</First>
<Last type ="string">2017-09-01</Last>
</Admission_Date>
</Patient_Information>
</hsfindv3req>
</data>

レスポンスサンプル

<?xml version="1.0" encoding="UTF-8"?>
<xmlio2>
<hsfindv3res type="record">
<Information_Date type="string">2017-09-22</Information_Date>
<Information_Time type="string">10:26:27</Information_Time>
<Api_Result type="string">00000</Api_Result>
<Api_Result_Message type="string">正常終了</Api_Result_Message>
<Count type="string">4</Count>
<Selection type="record">
<First type="string">1</First>
<Last type="string">4</Last>
</Selection>
<Result type="array">
<Result_child type="record">
<Number type="string">1</Number>
<Patient_ID type="string">00005</Patient_ID>
<WholeName_inKana type="string">ニチイ オキナ</WholeName_inKana>
<WholeName type="string">日医 翁</WholeName>
<Sex type="string">1</Sex>
<Birth_Date type="string">1937-01-10</Birth_Date>
<Ward_Number type="string">02</Ward_Number>
<Ward_Name type="string">療養</Ward_Name>
<HealthInsurance_Information type="record">
<InsuranceProvider_Class type="string">039</InsuranceProvider_Class>
<InsuranceProvider_Number type="string">39131057</InsuranceProvider_Number>
<InsuranceProvider_WholeName type="string">後期高齢者</InsuranceProvider_WholeName>
<HealthInsuredPerson_Assistance type="string">1</HealthInsuredPerson_Assistance>
<RelationToInsuredPerson type="string">1</RelationToInsuredPerson>
<HealthInsuredPerson_WholeName type="string">日医 翁</HealthInsuredPerson_WholeName>
<Certificate_StartDate type="string">2012-04-01</Certificate_StartDate>
<Certificate_ExpiredDate type="string">9999-12-31</Certificate_ExpiredDate>
</HealthInsurance_Information>
<Admission_Date type="string">2017-09-01</Admission_Date>
<Discharge_Date type="string">9999-12-31</Discharge_Date>
<Department_Name type="string">内科</Department_Name>
</Result_child>
<Result_child type="record">
<Number type="string">2</Number>
<Patient_ID type="string">00001</Patient_ID>
<WholeName_inKana type="string">ニチイ タロウ</WholeName_inKana>
<WholeName type="string">日医 太郎</WholeName>
<Sex type="string">1</Sex>
<Birth_Date type="string">1975-01-01</Birth_Date>
<Ward_Number type="string">01</Ward_Number>
<Ward_Name type="string">一般</Ward_Name>
<PhoneNumber type="string">090-0001-0001</PhoneNumber>
<HealthInsurance_Information type="record">
<InsuranceProvider_Class type="string">009</InsuranceProvider_Class>
<InsuranceProvider_Number type="string">01130012</InsuranceProvider_Number>
<InsuranceProvider_WholeName type="string">協会</InsuranceProvider_WholeName>
<RelationToInsuredPerson type="string">1</RelationToInsuredPerson>
<HealthInsuredPerson_WholeName type="string">日医 太郎</HealthInsuredPerson_WholeName>
<Certificate_StartDate type="string">2008-04-01</Certificate_StartDate>
<Certificate_ExpiredDate type="string">9999-12-31</Certificate_ExpiredDate>
</HealthInsurance_Information>
<Admission_Date type="string">2017-09-01</Admission_Date>
<Discharge_Date type="string">9999-12-31</Discharge_Date>
<Department_Name type="string">内科</Department_Name>
</Result_child>
<Result_child type="record">
<Number type="string">3</Number>
<Patient_ID type="string">00002</Patient_ID>
<WholeName_inKana type="string">ニチイ マミ</WholeName_inKana>
<WholeName type="string">日医 真美</WholeName>
<Sex type="string">2</Sex>
<Birth_Date type="string">1981-09-01</Birth_Date>
<Ward_Number type="string">02</Ward_Number>
<Ward_Name type="string">療養</Ward_Name>
<HealthInsurance_Information type="record">
<InsuranceProvider_Class type="string">009</InsuranceProvider_Class>
<InsuranceProvider_Number type="string">01130012</InsuranceProvider_Number>
<InsuranceProvider_WholeName type="string">協会</InsuranceProvider_WholeName>
<RelationToInsuredPerson type="string">2</RelationToInsuredPerson>
<HealthInsuredPerson_WholeName type="string">日医 太郎</HealthInsuredPerson_WholeName>
<Certificate_StartDate type="string">2016-04-01</Certificate_StartDate>
<Certificate_ExpiredDate type="string">9999-12-31</Certificate_ExpiredDate>
</HealthInsurance_Information>
<Admission_Date type="string">2017-09-01</Admission_Date>
<Discharge_Date type="string">9999-12-31</Discharge_Date>
<Department_Name type="string">内科</Department_Name>
</Result_child>
<Result_child type="record">
<Number type="string">4</Number>
<Patient_ID type="string">00003</Patient_ID>
<WholeName_inKana type="string">ニチイ イチロウ</WholeName_inKana>
<WholeName type="string">日医 一郎</WholeName>
<Sex type="string">1</Sex>
<Birth_Date type="string">2015-08-01</Birth_Date>
<Ward_Number type="string">01</Ward_Number>
<Ward_Name type="string">一般</Ward_Name>
<HealthInsurance_Information type="record">
<InsuranceProvider_Class type="string">009</InsuranceProvider_Class>
<InsuranceProvider_Number type="string">01130012</InsuranceProvider_Number>
<InsuranceProvider_WholeName type="string">協会</InsuranceProvider_WholeName>
<RelationToInsuredPerson type="string">2</RelationToInsuredPerson>
<HealthInsuredPerson_WholeName type="string">日医 太郎</HealthInsuredPerson_WholeName>
<Certificate_StartDate type="string">2015-08-01</Certificate_StartDate>
<Certificate_ExpiredDate type="string">9999-12-31</Certificate_ExpiredDate>
</HealthInsurance_Information>
<Admission_Date type="string">2017-09-01</Admission_Date>
<Discharge_Date type="string">9999-12-31</Discharge_Date>
<Department_Name type="string">内科</Department_Name>
</Result_child>
</Result>
</hsfindv3res>
</xmlio2>

レイアウト資料(PDF)

orca36_hsfindv3.pdf
orca36_hsfindv3_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 -*-   

sample_hsfind_v3.rb

このページのトップへ