患者メモ取得
更新履歴
2021-01-27 レイアウト資料に項目を追加。
患者メモ取得(URL:/api01rv2/patientlst7v2)
基準日を基に対象患者のメモ情報の取得を可能とします。
- 基準日が未設定の時はシステム日付とします。
- メモ区分の設定がなければ、メモ2の内容を返却します。
メモ1を取得したいときのみ、メモ区分(Memo_Class)=1 を設定します。 - 診療科の設定がなければ、登録されているすべての診療科のメモ情報を返却します。
最大件数は10件とします。 - 診療科で受付中であれば、メモ情報に受付の保険組合せを返却します。
受付中でない(会計済み)場合は受付なしとして保険組合せの返却はしません。
登録されているメモ情報の診療科=00の場合は、最初の受付中の保険組合せと診療科を返却します。
登録されているメモ情報の診療科≠00の場合は、その診療科で受付中であれば受付時の保険組合せを返却します。
受付後に保険組合せの変更で保険組合せが削除・期間終了になった場合は、保険組合せ番号のみ返却します。
※ 基準日が過去日の場合は、基本的に会計済となるので保険組合せの返却はしませんが、会計済みにできなかった場合のみ返却を行います。
リクエストサンプル
<data>
<patientlst7req type="record">
<Request_Number type="string">01</Request_Number>
<Patient_ID type="string">161</Patient_ID>
<Base_Date type="string">2018-11-13</Base_Date>
<Department_Code type="string"></Department_Code>
<Memo_Class type="string"></Memo_Class>
</patientlst7req>
</data>
レスポンスサンプル
<?xml version="1.0" encoding="UTF-8"?>
<xmlio2>
<patientlst7res type="record">
<Information_Date type="string">2018-11-13</Information_Date>
<Information_Time type="string">14:45:18</Information_Time>
<Api_Result type="string">000</Api_Result>
<Api_Result_Message type="string">処理終了</Api_Result_Message>
<Reskey type="string">Patient Info</Reskey>
<Patient_Information type="record">
<Patient_ID type="string">00161</Patient_ID>
<WholeName type="string">羽織 てすと</WholeName>
<WholeName_inKana type="string">ハオリ テスト</WholeName_inKana>
<BirthDate type="string">1971-06-04</BirthDate>
<Sex type="string">2</Sex>
</Patient_Information>
<Base_Date type="string">2018-11-13</Base_Date>
<Patient_Memo_Information type="array">
<Patient_Memo_Information_child type="record">
<Department_Code type="string">01</Department_Code>
<Department_Name type="string">内科</Department_Name>
<Patient_Memo type="string">めも2 診療科01</Patient_Memo>
<Accept_Information type="record">
<HealthInsurance_Information type="record">
<Insurance_Combination_Number type="string">0006</Insurance_Combination_Number>
<InsuranceProvider_Class type="string">060</InsuranceProvider_Class>
<InsuranceProvider_Number type="string">320010</InsuranceProvider_Number>
<InsuranceProvider_WholeName type="string">国保</InsuranceProvider_WholeName>
<HealthInsuredPerson_Symbol type="string">1234567</HealthInsuredPerson_Symbol>
<HealthInsuredPerson_Number type="string">5566778</HealthInsuredPerson_Number>
<HealthInsuredPerson_Assistance type="string">3</HealthInsuredPerson_Assistance>
<RelationToInsuredPerson type="string">1</RelationToInsuredPerson>
<HealthInsuredPerson_WholeName type="string">羽織 てすと</HealthInsuredPerson_WholeName>
<Certificate_StartDate type="string">2014-01-01</Certificate_StartDate>
<Certificate_ExpiredDate type="string">9999-12-31</Certificate_ExpiredDate>
</HealthInsurance_Information>
</Accept_Information>
</Patient_Memo_Information_child>
<Patient_Memo_Information_child type="record">
<Department_Code type="string">00</Department_Code>
<Department_Name type="string">全科</Department_Name>
<Patient_Memo type="string">めも2 診療科00</Patient_Memo>
<Accept_Information type="record">
<Department_Code type="string">01</Department_Code>
<Department_Name type="string">内科</Department_Name>
<HealthInsurance_Information type="record">
<Insurance_Combination_Number type="string">0006</Insurance_Combination_Number>
<InsuranceProvider_Class type="string">060</InsuranceProvider_Class>
<InsuranceProvider_Number type="string">320010</InsuranceProvider_Number>
<InsuranceProvider_WholeName type="string">国保</InsuranceProvider_WholeName>
<HealthInsuredPerson_Symbol type="string">1234567</HealthInsuredPerson_Symbol>
<HealthInsuredPerson_Number type="string">5566778</HealthInsuredPerson_Number>
<HealthInsuredPerson_Assistance type="string">3</HealthInsuredPerson_Assistance>
<RelationToInsuredPerson type="string">1</RelationToInsuredPerson>
<HealthInsuredPerson_WholeName type="string">羽織 てすと</HealthInsuredPerson_WholeName>
<Certificate_StartDate type="string">2014-01-01</Certificate_StartDate>
<Certificate_ExpiredDate type="string">9999-12-31</Certificate_ExpiredDate>
</HealthInsurance_Information>
</Accept_Information>
</Patient_Memo_Information_child>
</Patient_Memo_Information>
</patientlst7res>
</xmlio2>
レイアウト資料(PDF)
api01rv2_patientlst7v2.pdf
api01rv2_patientlst7v2_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 -*-