付録

日レセAPI

薬剤在庫管理システムが利用する日レセAPIについて説明します。
各API実行時にはBasic認証による認証を行います。

処方取込依頼(Request_Number=01)

Request URI

POST /orca51/stock1v2

Request Body

{
  "stock1v2req": {
    "Request_Number": "01",
    "Karte_Uid": "AAAAA",
    "Orca_Uid": "3f01b509-c861-4755-9031-c5fe40be4eed",
    "Base_Date": "2018-01-01"
  }
}

Response

{
  "stock1v2res": {
    "Request_Number": "01",
    "Response_Number": "02",
    "Karte_Uid": "AAAAA",
    "Orca_Uid": "3f01b509-c861-4755-9031-c5fe40be4eed",
    "Information_Date": "2018-01-01",
    "Information_Time": "00:00:00",
    "Api_Result": "000",
    "Api_Result_Message": "処理実施終了",
    "Reskey": "Stock Info",
    "Base_Date": "2018-01-01",
    "InOut": "O",
    "Data_Id_Information": [{"Data_Id":"225daad5-9e83-4d29-b238-abc1ad095cfb"}]
  }
}

主なエラーと対応

エラーメッセージ 原因 対応
xxx へのアクセスで例外が発生しました。 日レセAPIが無効化されている or 接続設定不備 インストールの日レセと連携するための有効化設定、および初期セットアップの日レセ接続設定作業を実施
処方取込中のため、処理を中止しました。 他の処方取込処理を実行中 日レセで「52 月次統計 > 情報削除」を実行し、異常終了したバッチ処理を削除

処方取込確認(Request_Number=02)

Request URI

POST /orca51/stock1v2

Request Body

{
  "stock1v2req":{
    "Request_Number":"02",
    "Karte_Uid":"AAAAA",
    "Orca_Uid":"3f01b509-c861-4755-9031-c5fe40be4eed",
    "Base_Date":"2018-01-01"
  }
}

Response

{
  "stock1v2res": {
    "Request_Number": "02",
    "Response_Number": "02",
    "Karte_Uid": "AAAAA",
    "Orca_Uid": "3f01b509-c861-4755-9031-c5fe40be4eed",
    "Information_Date": "2018-01-01",
    "Information_Time": "00:00:10",
    "Api_Result": "000",
    "Api_Result_Message": "処理確認終了",
    "Reskey": "Stock Info",
    "Base_Date": "2018-01-01",
    "InOut": "O",
    "Output_Count": "0000000002"
  }
}

主なエラーと対応

エラーメッセージ 原因 対応
処方取込中のため、処理を中止しました。 他の処方取込処理を実行中 日レセで「52 月次統計 > 情報削除」を実行し、異常終了したバッチ処理を削除

処方取込(大容量API)

Request URI

POST /blobapi/:Orca_Uid

Request Body

なし

Response

<?xml version='1.0' encoding='UTF-8'?>
<xmlio2>
  <stock1 type='array'>
    <stock1_child type='record'>
      <Invoice_Number type='string'>0000001</Invoice_Number>
      <Perform_Date type='string'>2018-10-31</Perform_Date>
      <Department_Code type='string'>01</Department_Code>
      <Department_Name type='string'>内科</Department_Name>
      <Medication_info type='array'>
        <Medication_info_child type='record'>
          <Medication_Code type='string'>622073101</Medication_Code>
          <Medication_Name type='string'>ヒアルロン酸ナトリウム点眼液0.1%「ニッテン」 5mL</Medication_Name>
          <Medication_KanaName type='string'>ヒアルロンサンナトリウムテンガンエキ0</Medication_KanaName>
          <Medication_Number type='string'>15</Medication_Number>
          <Unit_Price type='string'>184.7</Unit_Price>
          <Unit_Code type='string'>019</Unit_Code>
          <Unit_Code_Name type='string'>瓶</Unit_Code_Name>
        </Medication_info_child>
        <Medication_info_child type='record'>
          <Medication_Code type='string'>616140104</Medication_Code>
          <Medication_Name type='string'>クラリス錠50小児用 50mg</Medication_Name>
          <Medication_KanaName type='string'>クラリスジョウ50ショウニヨウ</Medication_KanaName>
          <Medication_Number type='string'>50</Medication_Number>
          <Unit_Price type='string'>54.9</Unit_Price>
          <Unit_Code type='string'>016</Unit_Code>
          <Unit_Code_Name type='string'>錠</Unit_Code_Name>
        </Medication_info_child>
        <Medication_info_child type='record'>
          <Medication_Code type='string'>620002624</Medication_Code>
          <Medication_Name type='string'>点眼・点鼻用リンデロンA液</Medication_Name>
          <Medication_KanaName type='string'>テンガンテンビヨウリンデロンAエキ</Medication_KanaName>
          <Medication_Number type='string'>15</Medication_Number>
          <Unit_Price type='string'>80.9</Unit_Price>
          <Unit_Code type='string'>036</Unit_Code>
          <Unit_Code_Name type='string'>mL</Unit_Code_Name>
        </Medication_info_child>
      </Medication_info>
    </stock1_child>
    <stock1_child type='record'>
      <Invoice_Number type='string'>0000002</Invoice_Number>
      <Perform_Date type='string'>2018-10-31</Perform_Date>
      <Department_Code type='string'>01</Department_Code>
      <Department_Name type='string'>内科</Department_Name>
      <Medication_info type='array'>
        <Medication_info_child type='record'>
          <Medication_Code type='string'>622073101</Medication_Code>
          <Medication_Name type='string'>ヒアルロン酸ナトリウム点眼液0.1%「ニッテン」 5mL</Medication_Name>
          <Medication_KanaName type='string'>ヒアルロンサンナトリウムテンガンエキ0</Medication_KanaName>
          <Medication_Number type='string'>8</Medication_Number>
          <Unit_Price type='string'>184.7</Unit_Price>
          <Unit_Code type='string'>011</Unit_Code>
          <Unit_Code_Name type='string'>mL</Unit_Code_Name>
        </Medication_info_child>
        <Medication_info_child type='record'>
          <Medication_Code type='string'>620002624</Medication_Code>
          <Medication_Name type='string'>点眼・点鼻用リンデロンA液</Medication_Name>
          <Medication_KanaName type='string'>テンガンテンビヨウリンデロンAエキ</Medication_KanaName>
          <Medication_Number type='string'>10</Medication_Number>
          <Unit_Price type='string'>80.9</Unit_Price>
          <Unit_Code type='string'>036</Unit_Code>
          <Unit_Code_Name type='string'>mL</Unit_Code_Name>
        </Medication_info_child>
      </Medication_info>
    </stock1_child>
  </stock1>
</xmlio2>

主なエラーと対応

特になし


目次にもどる