JP6236888B2 - Program, data synchronization method, and data synchronization apparatus - Google Patents

Program, data synchronization method, and data synchronization apparatus Download PDF

Info

Publication number
JP6236888B2
JP6236888B2 JP2013119145A JP2013119145A JP6236888B2 JP 6236888 B2 JP6236888 B2 JP 6236888B2 JP 2013119145 A JP2013119145 A JP 2013119145A JP 2013119145 A JP2013119145 A JP 2013119145A JP 6236888 B2 JP6236888 B2 JP 6236888B2
Authority
JP
Japan
Prior art keywords
update date
server
information
score
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2013119145A
Other languages
Japanese (ja)
Other versions
JP2014235712A (en
Inventor
洋平 曽根
洋平 曽根
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2013119145A priority Critical patent/JP6236888B2/en
Publication of JP2014235712A publication Critical patent/JP2014235712A/en
Application granted granted Critical
Publication of JP6236888B2 publication Critical patent/JP6236888B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Description

本発明は、プログラム、データ同期方法及びデータ同期装置に関する。   The present invention relates to a program, a data synchronization method, and a data synchronization apparatus.

ネットワークを利用してクライアント端末からのリクエストを処理するサーバシステムでは、複数のクライアント端末からのリクエストを複数のサーバに分散させることで負荷分散を行っている。   In a server system that processes requests from client terminals using a network, load distribution is performed by distributing requests from a plurality of client terminals to a plurality of servers.

特許文献1には、記憶サブシステムのデータ二重化方法において、データの整合性を保証する技術が開示されている。特許文献2には、サーバに負荷をかけずに、ユーザが監視するファイルの更新状態を迅速に知ることができるワールドワイドウェブブラウザ装置が開示されている。特許文献3には、クライアント・サーバ型データベースにおいて、クライアントがサーバにアクセスする際のネットワークの使用率を少なくする技術が開示されている。特許文献4には、一度のデータ同期で大量の情報を送受信することがないように、適当なデータ送信量でのデータ同期を自動的に開始することで、通信時間の増大やデータ同期中のエラーの起こる可能性を抑えるデータ同期システムが開示されている。   Patent Document 1 discloses a technique for guaranteeing data consistency in a data duplication method for a storage subsystem. Patent Document 2 discloses a world wide web browser device that can quickly know the update state of a file monitored by a user without imposing a load on the server. Patent Document 3 discloses a technique for reducing the network usage rate when a client accesses a server in a client-server database. In Patent Document 4, data synchronization with an appropriate data transmission amount is automatically started so that a large amount of information is not transmitted / received by one data synchronization, thereby increasing communication time and data synchronization. A data synchronization system is disclosed that reduces the likelihood of errors.

特開2001−282628号公報JP 2001-282628 A 特開2001−256100号公報JP 2001-256100 A 特開平9−54719号公報JP-A-9-54719 特開2004−86800号公報JP 2004-86800 A

複数のサーバでクライアント端末からのリクエストを処理する場合、各サーバが記憶する、リクエストを処理するためのデータを同期させておかないと、リクエストを処理するサーバによって異なる処理結果が生じる場合がある。   When a request from a client terminal is processed by a plurality of servers, different processing results may occur depending on the server that processes the request unless data for processing the request stored in each server is synchronized.

1つの側面では、本発明は、複数のサーバ間で、各サーバが処理に使用するデータを同期させることができるプログラム、データ同期方法及びデータ同期装置を提供することを目的とする。   In one aspect, an object of the present invention is to provide a program, a data synchronization method, and a data synchronization apparatus that can synchronize data used by each server for processing among a plurality of servers.

1つの態様では、プログラムは、管理装置が記憶する更新日時情報に対応するデータを処理に使用する複数のサーバから、各サーバの記憶するデータのうち、更新日時が最も新しいデータの更新日時情報を取得し、取得した更新日時情報のなかから、更新日時が最も古い更新日時情報を選択して、選択した前記更新日時情報に対応するデータを、前記複数のサーバで処理に使用するデータに決定し、前記決定したデータの前記更新日時情報を前記管理装置に出力する処理をコンピュータに実行させる。 In one aspect, the program receives update date / time information of data having the latest update date / time from among a plurality of servers that use data corresponding to the update date / time information stored in the management device for processing. The update date / time information having the oldest update date / time is selected from the acquired update date / time information, and the data corresponding to the selected update date / time information is determined as data to be used for processing by the plurality of servers. , Causing the computer to execute a process of outputting the update date / time information of the determined data to the management device .

1つの態様では、データ同期方法は、管理装置が記憶する更新日時情報に対応するデータを処理に使用する複数のサーバから、各サーバの記憶するデータのうち、更新日時が最も新しいデータの更新日時情報を取得するステップと、前記取得するステップで取得した更新日時情報のなかから、更新日時が最も古い更新日時情報を選択して、選択した前記更新日時情報に対応するデータを、前記複数のサーバで処理に使用するデータに決定するステップと、前記決定したデータの前記更新日時情報を前記管理装置に出力するステップとを有する。 In one aspect, the data synchronization method includes a plurality of servers that use data corresponding to the update date / time information stored in the management apparatus for processing, and the update date / time of the latest update date / time among the data stored in each server. An update date and time information having the oldest update date and time among the update date and time information acquired in the acquiring step, and the data corresponding to the selected update date and time information is selected from the plurality of servers. And determining the data to be used for the processing, and outputting the update date / time information of the determined data to the management device .

1つの態様では、データ同期装置は、管理装置が記憶する更新日時情報に対応するデータを処理に使用する複数のサーバから、各サーバの記憶するデータのうち、更新日時が最も新しいデータの更新日時情報を取得する取得手段と、前記取得手段で取得した更新日時情報のなかから、更新日時が最も古い更新日時情報を選択して、選択した前記更新日時情報に対応するデータを、前記複数のサーバで処理に使用するデータに決定する選択手段と、前記決定したデータの前記更新日時情報を前記管理装置に出力する出力手段とを備える。 In one aspect, the data synchronization apparatus updates the update date and time of the data with the newest update date among the data stored in each server from a plurality of servers that use data corresponding to the update date and time information stored in the management apparatus. An update unit that acquires information, and an update date and time information that has the oldest update date and time is selected from the update date and time information acquired by the acquisition unit, and data corresponding to the selected update date and time information is stored in the plurality of servers. And selecting means for determining data to be used for processing, and output means for outputting the update date and time information of the determined data to the management device .

複数のサーバ間で、各サーバが処理に使用するデータを同期させることができる。   Data used for processing by each server can be synchronized among a plurality of servers.

実施形態のシステム構成の一例を示す図である。It is a figure which shows an example of the system configuration | structure of embodiment. 点数マスタファイル及びWEB点数ファイルの一例を示す図である。It is a figure which shows an example of a score master file and a WEB score file. WEBサーバ、クライアント端末及びAPサーバの備えるハードウェアの一例を示す図である。It is a figure which shows an example of the hardware with which a WEB server, a client terminal, and AP server are provided. WEBサーバの制御部が備える機能ブロックの一例を示す図である。It is a figure which shows an example of the functional block with which the control part of a WEB server is provided. APサーバの制御部が備える機能ブロックの一例を示す図である。It is a figure which shows an example of the functional block with which the control part of AP server is provided. WEBサーバで保険点数の計算を行う場合の処理手順を示すシーケンス図である。It is a sequence diagram which shows the process sequence in the case of calculating an insurance score with a WEB server. WEBサーバのHDDが記憶するWEB点数ファイルの一例を示す図である。It is a figure which shows an example of the WEB score file which HDD of a WEB server memorize | stores. APサーバで保険点数の計算を行う場合の処理手順を示すシーケンス図である。It is a sequence diagram which shows the process sequence in the case of calculating an insurance score with AP server. DBサーバの記憶する点数マスタファイルを更新する場合の処理手順を示すシーケンス図である。It is a sequence diagram which shows the process sequence in the case of updating the score master file which DB server memorize | stores. (A)は更新前の点数マスタファイルに登録された保険点数情報の一例を示す図であり、(B)は更新後の点数マスタファイルに登録された保険点数情報の一例を示す図である。(A) is a figure showing an example of insurance score information registered in the score master file before update, and (B) is a diagram showing an example of insurance score information registered in the score master file after update. WEBサーバの記憶する保険点数情報を更新する場合の処理手順を示すシーケンス図である。It is a sequence diagram which shows the process sequence in the case of updating insurance score information which a WEB server memorize | stores. (A)はDBサーバの記憶する点数マスタファイルの一例を示す図であり、(B)はWEBサーバの記憶するWEB点数ファイルの一例を示す図である。(A) is a figure which shows an example of the score master file which a DB server memorize | stores, (B) is a figure which shows an example of the WEB score file which a WEB server memorize | stores. 保険点数の計算に使用する保険点数情報の更新日時を同期させる場合の処理手順を示すシーケンス図である。It is a sequence diagram which shows the process sequence in the case of synchronizing the update date of insurance score information used for calculation of insurance score. WEBサーバの起動時の処理手順を示すシーケンス図である。It is a sequence diagram which shows the process sequence at the time of starting of a WEB server. クライアント端末の表示装置に表示される画面の一例を示す図であり、WEBサーバが選択された場合に表示される画面の一例を示す図である。It is a figure which shows an example of the screen displayed on the display apparatus of a client terminal, and is a figure which shows an example of the screen displayed when a WEB server is selected. クライアント端末の表示装置に表示される画面の一例を示す図であり、更新日時管理装置が選択される場合の一例を示す図である。It is a figure which shows an example of the screen displayed on the display apparatus of a client terminal, and is a figure which shows an example when an update date management apparatus is selected. クライアント端末から保険点数の計算指示を受け付けたWEBサーバの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the WEB server which received the calculation instruction | indication of the insurance score from the client terminal. クライアント端末から保険点数の計算指示を受け付けて、APサーバに保険点数の計算を行わせる場合のWEBサーバの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of a WEB server in the case of receiving the calculation instruction | indication of an insurance score from a client terminal, and making an AP server calculate an insurance score. WEBサーバからの保険点数の計算要求を受け付けたAPサーバの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of AP server which received the calculation request | requirement of the insurance score from a WEB server. クライアント端末から点数マスタファイルの更新指示を受け付けたWEBサーバの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the WEB server which received the update instruction | indication of the score master file from the client terminal. WEBサーバから点数マスタファイルの更新指示を受け付けたAPサーバの処理手順を示すフローチャートであるIt is a flowchart which shows the process sequence of AP server which received the update instruction | indication of the score master file from the WEB server. WEB点数ファイルを更新する場合のWEBサーバの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of a WEB server in the case of updating a WEB score file. WEBサーバから保険点数情報の取得要求を受け付けたAPサーバの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of AP server which received the acquisition request | requirement of insurance score information from the WEB server. クライアント端末から同期処理の指示を受け付けたWEBサーバの処理手順を示すフローチャートである。It is a flowchart which shows the process sequence of the WEB server which received the instruction | indication of the synchronous process from the client terminal.

まず、図1を参照しながら本実施形態のシステム構成の一例について説明する。図1に、本実施形態のシステム構成の一例を示す。本実施形態は、ネットワーク50に、複数のクライアント端末100a〜100m(mは任意の自然数)と、複数のサーバ装置と、更新日時管理装置500とを接続した構成を備える。複数のサーバ装置は、複数のWEB(ウェブ)サーバ200a〜200n(nは任意の自然数)と、複数のAP(アプリケーション)サーバ300a〜300k(kは任意の自然数)と、DB(データベース)サーバ400とを備える。ネットワーク50は、有線または無線を問わず、インターネット(Internet)、LAN(Local Area Network)、WAN(Wide Area Network)やVPN(Virtual Private Network)などの任意の種類の通信網を採用することができる。なお、以下では、クライアント端末100a〜100mを総称して呼ぶ場合に、クライアント端末100と表記する。同様に、WEBサーバ200a〜200n、APサーバ300a〜300kについても、WEBサーバ200、APサーバ300と表記する。   First, an example of the system configuration of this embodiment will be described with reference to FIG. FIG. 1 shows an example of the system configuration of this embodiment. The present embodiment includes a configuration in which a plurality of client terminals 100 a to 100 m (m is an arbitrary natural number), a plurality of server devices, and an update date and time management device 500 are connected to a network 50. The plurality of server devices include a plurality of WEB (web) servers 200a to 200n (n is an arbitrary natural number), a plurality of AP (application) servers 300a to 300k (k is an arbitrary natural number), and a DB (database) server 400. With. The network 50 may employ any type of communication network, such as the Internet (Internet), a LAN (Local Area Network), a WAN (Wide Area Network), and a VPN (Virtual Private Network), whether wired or wireless. . Hereinafter, the client terminals 100a to 100m are collectively referred to as the client terminal 100 when collectively referred to. Similarly, the WEB servers 200a to 200n and the AP servers 300a to 300k are also expressed as the WEB server 200 and the AP server 300.

クライアント端末100は、例えば、医療機関に設置される端末である。クライアント端末100は、操作者によって入力された診療データをWEBサーバ200に送信して、WEBサーバ200に保険点数の計算等の会計処理を依頼する。なお、診療データには、例えば、患者の氏名、生年月日等の患者情報、処方された薬、採血等の検査の有無、レントゲン等の画像撮影の有無、注射、手術等の患者に対して行われた診療行為及びその結果のデータ等が含まれる。また、クライアント端末100は、WEBサーバ200に、点数マスタファイルの更新指示、保険点数情報の取込み指示、同期処理の指示等の指示を送る。これらの指示の詳細については後述する。   The client terminal 100 is a terminal installed in a medical institution, for example. The client terminal 100 transmits the medical data input by the operator to the WEB server 200 and requests the WEB server 200 for accounting processing such as calculation of insurance points. The medical data includes, for example, patient information such as the patient's name, date of birth, prescription drugs, presence / absence of blood sampling, presence / absence of radiographs, injection, surgery, etc. Data on the medical practice performed and its results are included. In addition, the client terminal 100 sends instructions to the WEB server 200 such as an instruction for updating the score master file, an instruction for taking insurance score information, and an instruction for synchronization processing. Details of these instructions will be described later.

WEBサーバ200は、クライアント端末100からの指示により、保険点数の計算、点数マスタファイルの更新処理、保険点数情報の取込み処理、同期処理等の処理を行う。   In response to an instruction from the client terminal 100, the WEB server 200 performs processing such as insurance score calculation, score master file update processing, insurance score information take-in processing, and synchronization processing.

APサーバ300は、DBサーバ400へのデータ保存、DBサーバ400からのデータの読み出し等を行う。また、APサーバ300は、WEBサーバ200からの要求により、保険点数の計算等の処理を行う。   The AP server 300 stores data in the DB server 400, reads data from the DB server 400, and the like. Further, the AP server 300 performs processing such as calculation of insurance points in response to a request from the WEB server 200.

DBサーバ400は、点数マスタファイル、各WEBサーバ200のIPアドレス等を記憶する。図2に、点数マスタファイルの一例を示す。点数マスタファイルとは、医療費算定の基礎となる個々の診療行為の保険点数を記録したファイルである。点数マスタファイルには、版数、更新日時、診療行為コード、診療行為省略名称、点数情報等の情報が含まれる。なお、以下では、版数と、更新日時と、診療行為コードと、診療行為省略名称と、点数情報とを少なくとも含む情報の集まりを保険点数情報と呼ぶ。また、保険点数情報の集まりを点数マスタと呼び、この点数マスタを登録したファイルを点数マスタファイルと呼ぶ。版数は、保険点数情報が更新された回数を示している。版数の値が大きいものほど、更新日時が新しい保険点数情報であることを示している。更新日時は、対応する保険点数情報の直近の更新日時を示している。診療行為コードは、各診療行為を識別するコードを示す。診療行為コードは、例えば、9桁の数字で表される。診療行為省略名称は、診療行為コードが示す診療行為の省略名称を示している。点数情報は、診療行為ごとの保険点数を示す。   The DB server 400 stores a score master file, the IP address of each WEB server 200, and the like. FIG. 2 shows an example of the score master file. The score master file is a file that records the insurance score of each medical practice that is the basis for calculating medical expenses. The score master file includes information such as version number, update date and time, medical practice code, medical practice omitted name, and score information. Hereinafter, a collection of information including at least the version number, the update date / time, the medical practice code, the medical practice abbreviation name, and the score information is referred to as insurance score information. A collection of insurance score information is called a score master, and a file in which the score master is registered is called a score master file. The version number indicates the number of times the insurance score information has been updated. The larger the version number, the newer the insurance date information is. The update date / time indicates the latest update date / time of the corresponding insurance score information. The medical practice code indicates a code for identifying each medical practice. The medical practice code is represented by a 9-digit number, for example. The medical practice abbreviation name indicates the abbreviated name of the medical practice indicated by the medical practice code. The score information indicates the insurance score for each medical practice.

更新日時管理装置500は、更新日時情報を記憶する。更新日時情報は、WEBサーバ200又はAPサーバ300が保険点数の計算に使用する保険点数情報の更新日時を示している。WEBサーバ200又はAPサーバ300は、保険点数の計算の際に、更新日時管理装置500から更新日時情報を取得し、取得した更新日時情報の示す更新日時の保険点数情報を使用して保険点数の計算を行う。   The update date / time management apparatus 500 stores update date / time information. The update date / time information indicates the update date / time of the insurance score information used by the WEB server 200 or the AP server 300 for calculating the insurance score. When calculating the insurance score, the WEB server 200 or the AP server 300 acquires the update date / time information from the update date / time management apparatus 500, and uses the insurance score information of the update date / time indicated by the acquired update date / time information to calculate the insurance score. Perform the calculation.

次に、図3を参照しながら、クライアント端末100、WEBサーバ200及びAPサーバ300の備えるハードウェアの一例を説明する。なお、クライアント端末100、WEBサーバ200及びAPサーバ300は、ほぼ同一のハードウェア構成を備えているので、以下の説明では、代表してWEBサーバ200のハードウェア構成について説明する。また、図3に示す括弧内の数字は、クライアント端末100とAPサーバ300との備えるハードウェアに付した番号をそれぞれ示している。   Next, an example of hardware included in the client terminal 100, the WEB server 200, and the AP server 300 will be described with reference to FIG. In addition, since the client terminal 100, the WEB server 200, and the AP server 300 have substantially the same hardware configuration, in the following description, the hardware configuration of the WEB server 200 will be described as a representative. Also, the numbers in parentheses shown in FIG. 3 indicate numbers assigned to the hardware provided in the client terminal 100 and the AP server 300, respectively.

WEBサーバ200は、制御部210を備える。制御部210は、CPU(Central Processing Unit)211、ROM(Read Only Memory)212、RAM(Random Access Memory)213を備える。CPU211、ROM212、RAM213の各部は、バス260に接続している。ROM212には、CPU211が制御に使用する制御プログラム等が保存されている。CPU211は、制御プログラムをROM212又はハードディスク装置(以下、HDDと表記する)250から読み出してRAM213に記憶させる。その後、CPU211は、RAM213に記憶させた制御プログラムに従って処理(演算)を行う。RAM213は、CPU211のワークメモリとして使用され、CPU211が演算に使用するデータや、CPU211による演算後のデータ等を記憶する。CPU211、RAM213などのハードウェアと、制御プログラムとの協働によって実現される機能ブロックについては、図4を参照しながら後述する。   The WEB server 200 includes a control unit 210. The control unit 210 includes a CPU (Central Processing Unit) 211, a ROM (Read Only Memory) 212, and a RAM (Random Access Memory) 213. Each unit of the CPU 211, ROM 212, and RAM 213 is connected to the bus 260. The ROM 212 stores a control program used by the CPU 211 for control. The CPU 211 reads the control program from the ROM 212 or the hard disk device (hereinafter referred to as HDD) 250 and stores it in the RAM 213. Thereafter, the CPU 211 performs processing (calculation) according to the control program stored in the RAM 213. The RAM 213 is used as a work memory of the CPU 211, and stores data used by the CPU 211 for calculation, data after calculation by the CPU 211, and the like. Functional blocks realized by cooperation of hardware such as the CPU 211 and RAM 213 and the control program will be described later with reference to FIG.

WEBサーバ200は、入力装置221と、入力インターフェース(以下、インターフェースをI/Fと略記する)222とを備える。入力I/F222は、入力装置221と、バス260とに接続している。入力装置221は、マウス、キーボード等の入力デバイスである。入力装置221がユーザによって操作されると、入力装置221は、受け付けた操作内容を示す操作情報を、入力I/F222を介して制御部210に送る。入力I/F222は、入力装置221から操作情報を入力し、入力した操作情報を、バス260を介して制御部210に送る。   The WEB server 200 includes an input device 221 and an input interface (hereinafter, the interface is abbreviated as I / F) 222. The input I / F 222 is connected to the input device 221 and the bus 260. The input device 221 is an input device such as a mouse or a keyboard. When the input device 221 is operated by the user, the input device 221 sends operation information indicating the received operation content to the control unit 210 via the input I / F 222. The input I / F 222 receives operation information from the input device 221 and sends the input operation information to the control unit 210 via the bus 260.

WEBサーバ200は、グラフィックI/F232と、表示装置231とを備える。グラフィックI/F232は、バス260と表示装置231とに接続している。グラフィックI/F232は、制御部210で処理されたグラフィックデータを表示装置231に表示させるためのインターフェースである。グラフィックI/F232は、制御部210から受け取ったグラフィックデータを波形電気信号に変換して表示装置231に送る。   The WEB server 200 includes a graphic I / F 232 and a display device 231. The graphic I / F 232 is connected to the bus 260 and the display device 231. The graphic I / F 232 is an interface for causing the display device 231 to display graphic data processed by the control unit 210. The graphic I / F 232 converts the graphic data received from the control unit 210 into a waveform electric signal and sends it to the display device 231.

WEBサーバ200は、ネットワークI/F240を備える。ネットワークI/F240は、バス260と、ネットワーク50とに接続する。ネットワークI/F240は、制御部210から送られたデータを入力し、入力したデータを、ネットワーク50を介してクライアント端末100、APサーバ300又は他のWEBサーバ200に送信する。また、ネットワークI/F240は、ネットワーク50を介してクライアント端末100、APサーバ300又は他のWEBサーバ200から受信したデータを制御部210に出力する。   The WEB server 200 includes a network I / F 240. The network I / F 240 is connected to the bus 260 and the network 50. The network I / F 240 receives the data sent from the control unit 210 and transmits the input data to the client terminal 100, the AP server 300, or another WEB server 200 via the network 50. The network I / F 240 outputs data received from the client terminal 100, the AP server 300, or another WEB server 200 via the network 50 to the control unit 210.

WEBサーバ200は、HDD250を備える。HDD250は、CPU211が制御に使用する制御プログラムや、図2に示す点数マスタファイルを記憶する。なお、以下では、WEBサーバ200のHDD250が記憶する点数マスタファイルをWEB点数ファイルと呼び、DBサーバ400の記憶する点数マスタファイルと区別できるようにする。DBサーバ400の記憶する点数マスタファイルと、WEBサーバ200の記憶するWEB点数ファイルとは同一のファイルである。しかし、DBサーバ400の点数マスタファイルは更新されたが、WEBサーバ200のWEB点数ファイルは更新されていない場合、両ファイルは、一致しない場合がある。すなわち、WEBサーバ200が、DBサーバ400から更新された保険点数情報を取得しないと、WEB点数ファイルには、更新された新しい保険点数情報が登録されていないことになる。
なお、図3には、記憶装置の一例としてHDD250を示したが、ハードディスク装置に限定されるものではない。例えば、コンピュータで読み込み可能なフレキシブルディスク(FD)、DVD(Digital Versatile Disc)、DVD−RAM等の可搬記憶媒体でもよい。また、CD−ROM(Compact Disc Read Only Memory)、CD−R(Recordable)/RW(ReWritable)、光磁気ディスク、ICカードなどの可搬記憶媒体であってもよい。
The WEB server 200 includes an HDD 250. The HDD 250 stores a control program used for control by the CPU 211 and a score master file shown in FIG. Hereinafter, the score master file stored in the HDD 250 of the WEB server 200 is referred to as a WEB score file so that it can be distinguished from the score master file stored in the DB server 400. The score master file stored in the DB server 400 and the WEB score file stored in the WEB server 200 are the same file. However, if the score master file of the DB server 400 has been updated, but the WEB score file of the WEB server 200 has not been updated, the two files may not match. That is, unless the WEB server 200 acquires the updated insurance score information from the DB server 400, the updated new insurance score information is not registered in the WEB score file.
Although FIG. 3 shows the HDD 250 as an example of the storage device, it is not limited to the hard disk device. For example, a portable storage medium such as a computer-readable flexible disk (FD), DVD (Digital Versatile Disc), or DVD-RAM may be used. Further, it may be a portable storage medium such as a CD-ROM (Compact Disc Read Only Memory), a CD-R (Recordable) / RW (ReWritable), a magneto-optical disk, or an IC card.

次に、図4を参照しながらWEBサーバ200の備える機能ブロック270について説明する。機能ブロック270とは、制御部210のCPU211、RAM213などのハードウェアと、制御プログラムとの協働によって実現される処理を、一連の処理で実現される機能ごとにまとめたブロックである。WEBサーバ200は、機能ブロック270として、入力部271と、要求解析部272と、更新要求部273と、データ取得部274と、点数計算処理部275と、出力部276とを備える。   Next, the functional block 270 provided in the WEB server 200 will be described with reference to FIG. The function block 270 is a block in which processes realized by cooperation of hardware such as the CPU 211 and the RAM 213 of the control unit 210 and the control program are grouped for each function realized by a series of processes. The WEB server 200 includes an input unit 271, a request analysis unit 272, an update request unit 273, a data acquisition unit 274, a score calculation processing unit 275, and an output unit 276 as function blocks 270.

入力部271は、クライアント端末100、APサーバ300又は他のWEBサーバ200から送信され、ネットワークI/F240で受信したデータを入力する。入力部271は、入力したデータを要求解析部272に出力する。   The input unit 271 inputs data transmitted from the client terminal 100, the AP server 300, or another WEB server 200 and received by the network I / F 240. The input unit 271 outputs the input data to the request analysis unit 272.

要求解析部272は、入力部271が出力したデータを入力する。要求解析部272は、入力したデータを解析し、入力したデータの出力先を、解析結果に応じて更新要求部273、データ取得部274、点数計算処理部275のいずれかに変更する。   The request analysis unit 272 receives the data output from the input unit 271. The request analysis unit 272 analyzes the input data and changes the output destination of the input data to any one of the update request unit 273, the data acquisition unit 274, and the score calculation processing unit 275 according to the analysis result.

更新要求部273は、要求解析部272の出力したデータを入力する。更新要求部273は、入力したデータにクライアント端末100から送られた点数マスタファイルの更新指示が含まれる場合、APサーバ300に送る、点数マスタファイルの更新要求を生成する。この更新要求には、クライアント端末100から送られた、更新する保険点数情報が含まれる。更新要求部273は、生成した更新要求と、更新する保険点数情報とを含むデータを出力部276に出力する。出力部276は、更新要求部273から入力したデータを、ネットワークI/F240を介してAPサーバ300に送信する。APサーバ300は、WEBサーバ200から点数マスタファイルの更新要求と、更新する保険点数情報とを入力すると、入力した保険点数情報をDBサーバ400に送り、DBサーバ400に登録する。保険点数情報のDBサーバ400への登録が完了すると、APサーバ300は、更新の完了を通知する情報(以下、更新完了通知と呼ぶ)をWEBサーバ200に送信する。更新要求部273は、APサーバ300から送られた更新完了通知を入力すると、クライアント端末100に送信する更新完了通知を生成して、出力部276に出力する。   The update request unit 273 receives the data output from the request analysis unit 272. The update request unit 273 generates a score master file update request to be sent to the AP server 300 when the input data includes a score master file update instruction sent from the client terminal 100. This update request includes the insurance point information to be updated sent from the client terminal 100. The update request unit 273 outputs data including the generated update request and the insurance point information to be updated to the output unit 276. The output unit 276 transmits the data input from the update request unit 273 to the AP server 300 via the network I / F 240. When the AP server 300 receives an update request for the score master file from the WEB server 200 and the insurance score information to be updated, the AP server 300 sends the input insurance score information to the DB server 400 and registers it in the DB server 400. When registration of the insurance point information in the DB server 400 is completed, the AP server 300 transmits information for notifying completion of update (hereinafter referred to as update completion notification) to the WEB server 200. When receiving the update completion notification sent from the AP server 300, the update request unit 273 generates an update completion notification to be transmitted to the client terminal 100 and outputs it to the output unit 276.

データ取得部274は、要求解析部272の出力したデータを入力する。データ取得部274が要求解析部272から入力するデータには、クライアント端末100から送られた、保険点数情報の取込み指示がある。取込み指示とは、DBサーバ400の点数マスタファイルに登録され、WEBサーバ200のWEB点数ファイルには登録されていない保険点数情報を、WEBサーバ200にDBサーバ400から取得させる指示である。データ取得部274は、HDD250のWEB点数ファイルを参照して、更新日時が最も新しい保険点数情報の更新日時情報を取得する。データ取得部274は、更新日時情報を取得すると、APサーバ300に送る保険点数情報の取得要求を生成する。データ取得部274は、生成した取得要求に、取得した更新日時情報を付加したデータを出力部276に出力する。出力部276は、データ取得部274から入力したデータをネットワークI/F240を介してAPサーバ300に送信する。
データ取得部274は、取得要求に対する応答として、APサーバ300から送られた保険点数情報を入力すると、入力した保険点数情報をHDD250の記憶するWEB点数ファイルに登録する。
The data acquisition unit 274 receives the data output from the request analysis unit 272. The data input from the request analysis unit 272 by the data acquisition unit 274 includes an instruction for taking insurance point information sent from the client terminal 100. The take-in instruction is an instruction for causing the WEB server 200 to acquire insurance score information registered in the score master file of the DB server 400 and not registered in the WEB score file of the WEB server 200 from the DB server 400. The data acquisition unit 274 refers to the WEB score file of the HDD 250 and acquires the update date / time information of the insurance score information with the latest update date / time. When the data acquisition unit 274 acquires the update date and time information, the data acquisition unit 274 generates an insurance score information acquisition request to be sent to the AP server 300. The data acquisition unit 274 outputs data obtained by adding the acquired update date / time information to the generated acquisition request to the output unit 276. The output unit 276 transmits the data input from the data acquisition unit 274 to the AP server 300 via the network I / F 240.
When the insurance score information sent from the AP server 300 is input as a response to the acquisition request, the data acquisition unit 274 registers the input insurance score information in the WEB score file stored in the HDD 250.

また、データ取得部274が要求解析部272から入力するデータには、クライアント端末100から送られる、同期処理の指示がある。同期処理の指示とは、各WEBサーバ200が保険点数の計算に使用する保険点数情報を同期させる指示である。すなわち、各WEBサーバ200が、保険点数の計算に使用する保険点数情報の更新日時を一致させる処理である。この同期処理は、例えば、各WEBサーバ200に割り当てられたIPアドレスのうち、IPアドレスの値が最も小さいWEBサーバ200が実行する。WEBサーバ200は、更新日時管理装置500からIPアドレスを取得し、自身のIPアドレスよりも値の小さいIPアドレスのWEBサーバ200にpingコマンドを送信する。送信したpingコマンドに対する応答がWEBサーバ200からあった場合には、自身よりもIPアドレスの値の小さいWEBサーバ200が存在する。この場合、pingコマンドを送信したWEBサーバ200は、同期処理を行わない。また、pingコマンドを送信したWEBサーバ200からの応答がない場合、自身よりもIPアドレスの値の小さいWEBサーバ200が起動状態にないことになる。この場合、pingコマンドを送信したWEBサーバ200が同期処理を実行することになる。   Further, data input from the request analysis unit 272 by the data acquisition unit 274 includes a synchronization processing instruction sent from the client terminal 100. The instruction of the synchronization process is an instruction to synchronize the insurance score information used by each WEB server 200 for calculating the insurance score. That is, this is a process in which each WEB server 200 matches the update date and time of the insurance point information used for calculating the insurance points. This synchronization process is executed, for example, by the WEB server 200 having the smallest IP address value among the IP addresses assigned to each WEB server 200. The WEB server 200 acquires an IP address from the update date and time management apparatus 500, and transmits a ping command to the WEB server 200 having an IP address smaller than its own IP address. When there is a response to the transmitted ping command from the WEB server 200, there is a WEB server 200 having a smaller IP address value than itself. In this case, the WEB server 200 that has transmitted the ping command does not perform the synchronization process. Further, when there is no response from the WEB server 200 that has transmitted the ping command, the WEB server 200 having a smaller IP address value than itself is not in the activated state. In this case, the WEB server 200 that transmitted the ping command executes the synchronization process.

データ取得部274は、同期指示を入力すると、他のWEBサーバ200に送信する、更新日時情報の取得要求を生成する。この取得要求は、各WEBサーバ200の保有する点数マスタファイルに登録された保険点数情報のうち、更新日時が最も新しい保険点数情報の更新日時の取得を要求するものである。データ取得部274は、生成した取得要求を含むデータを出力部276に出力する。出力部276は、データ取得部274から入力したデータを、ネットワークI/F240を介して各WEBサーバ200に送信する。
データ取得部274は、各WEBサーバ200から最新の更新日時情報を取得すると、取得した更新日時情報のうち、更新日時が最も古い更新日時を選択する。更新日時が最も古いものを選択することで、すべてのWEBサーバ200で同じ更新日時の保険点数情報を使用した保険点数の計算が可能になる。すなわち、各WEBサーバ200で保険点数計算に使用する保険点数情報の同期をとることができる。データ取得部274は、選択した更新日時を更新日時情報として更新日時管理装置500に送信し、更新日時管理装置500に登録する。
When the data acquisition unit 274 receives the synchronization instruction, the data acquisition unit 274 generates an update date / time information acquisition request to be transmitted to another WEB server 200. This acquisition request requests acquisition of the update date / time of the insurance score information with the latest update date / time among the insurance score information registered in the score master file held by each WEB server 200. The data acquisition unit 274 outputs data including the generated acquisition request to the output unit 276. The output unit 276 transmits the data input from the data acquisition unit 274 to each WEB server 200 via the network I / F 240.
When acquiring the latest update date / time information from each WEB server 200, the data acquisition unit 274 selects the update date / time having the oldest update date / time from the acquired update date / time information. By selecting the oldest update date and time, it is possible to calculate the insurance score using the insurance score information of the same update date and time on all the WEB servers 200. That is, it is possible to synchronize insurance point information used for insurance point calculation in each WEB server 200. The data acquisition unit 274 transmits the selected update date / time as update date / time information to the update date / time management apparatus 500 and registers it in the update date / time management apparatus 500.

点数計算処理部275は、要求解析部272が出力したデータを入力する。点数計算処理部275が要求解析部272から入力するデータには、クライアント端末100から送られる、保険点数の計算指示がある。点数計算処理部275は、保険点数の計算指示を入力すると、更新日時管理装置500に送る、更新日時情報の取得要求を生成する。点数計算処理部275は、生成した取得要求を含むデータを出力部276に出力する。出力部276は、データ取得部274から入力したデータを、ネットワークI/F240を介して更新日時管理装置500に送信する。
点数計算処理部275は、更新日時管理装置500から送られた更新日時情報を入力した場合、入力した更新日時情報の示す更新日時の保険点数情報を、HDD250のWEB点数ファイルから取得する。点数計算処理部275は、取得した保険点数情報を使用して保険点数の計算を行い、処理結果をRAM213に記憶させる。また、点数計算処理部275は、保険点数の計算結果を含む、クライアント端末100に送信するデータを生成する。点数計算処理部275は、生成したデータを出力部276に出力する。出力部276は、点数計算処理部275から入力したデータをネットワークI/F240を介してクライアント端末100に送信する。
The score calculation processing unit 275 receives the data output from the request analysis unit 272. Data input from the request analysis unit 272 by the score calculation processing unit 275 includes an insurance score calculation instruction sent from the client terminal 100. The score calculation processing unit 275 generates an update date / time information acquisition request to be sent to the update date / time management apparatus 500 when an insurance score calculation instruction is input. The score calculation processing unit 275 outputs data including the generated acquisition request to the output unit 276. The output unit 276 transmits the data input from the data acquisition unit 274 to the update date and time management apparatus 500 via the network I / F 240.
When the update date / time information sent from the update date / time management apparatus 500 is input, the score calculation processing unit 275 acquires the insurance point information of the update date / time indicated by the input update date / time information from the WEB score file of the HDD 250. The score calculation processing unit 275 calculates the insurance score using the acquired insurance score information, and stores the processing result in the RAM 213. In addition, the score calculation processing unit 275 generates data to be transmitted to the client terminal 100 including the insurance score calculation result. The score calculation processing unit 275 outputs the generated data to the output unit 276. The output unit 276 transmits the data input from the score calculation processing unit 275 to the client terminal 100 via the network I / F 240.

出力部276は、更新要求部273、データ取得部274及び点数計算処理部275から出力されたデータを入力し、入力したデータをネットワークI/F240に出力する。   The output unit 276 receives the data output from the update request unit 273, the data acquisition unit 274, and the score calculation processing unit 275, and outputs the input data to the network I / F 240.

次に、図5を参照しながらAPサーバ300の制御部310が備える機能ブロック370について説明する。APサーバ300は、機能ブロック370として、入力部371と、要求解析部372と、更新処理部373と、データ取得部374と、点数計算処理部375と、出力部376とを備える。入力部371、要求解析部372及び点数計算処理部375の処理動作については、図4にて説明したWEBサーバ200の入力部271、要求解析部272及び点数計算処理部275の処理とほぼ同一であるため、説明を省略する。   Next, the functional block 370 included in the control unit 310 of the AP server 300 will be described with reference to FIG. The AP server 300 includes an input unit 371, a request analysis unit 372, an update processing unit 373, a data acquisition unit 374, a score calculation processing unit 375, and an output unit 376 as functional blocks 370. The processing operations of the input unit 371, the request analysis unit 372, and the score calculation processing unit 375 are substantially the same as the processing of the input unit 271, the request analysis unit 272, and the score calculation processing unit 275 of the WEB server 200 described with reference to FIG. Therefore, the description is omitted.

更新処理部373は、APサーバ300の具備するクロックからシステム時刻を入力している。更新処理部373は、WEBサーバ200から送られた更新要求及び更新する保険点数情報を入力すると、DBサーバ400に送る、保険点数情報の更新要求を生成する。この更新要求には、クライアント端末100から送られた、更新する保険点数情報が含まれる。更新処理部373は、生成した更新要求と、更新する保険点数情報とを含むデータを出力部376に出力する。更新処理部373は、更新要求と、更新する保険点数情報とを含むデータをDBサーバ400に送って、DBサーバ400の記憶する点数マスタファイルに登録させる。更新処理部373は、DBサーバ400から更新完了通知を受け取ると、更新完了通知を受け取ったシステム時刻を更新日時としてDBサーバ400に登録する。更新処理部373は、更新完了通知を受け取ったシステム時刻をDBサーバ400に送り、DBサーバ400の記憶する点数マスタファイルに登録させる。DBサーバ400への保険点数情報及び更新日時の登録が完了すると、更新処理部373は、WEBサーバ200に更新完了通知を送信する。   The update processing unit 373 inputs the system time from the clock provided in the AP server 300. When the update request sent from the WEB server 200 and the insurance score information to be updated are input, the update processing unit 373 generates an insurance score information update request to be sent to the DB server 400. This update request includes the insurance point information to be updated sent from the client terminal 100. The update processing unit 373 outputs data including the generated update request and the insurance point information to be updated to the output unit 376. The update processing unit 373 sends data including the update request and the insurance score information to be updated to the DB server 400 and registers the data in the score master file stored in the DB server 400. When receiving the update completion notification from the DB server 400, the update processing unit 373 registers the system time at which the update completion notification is received in the DB server 400 as the update date and time. The update processing unit 373 sends the system time when the update completion notification is received to the DB server 400, and registers it in the score master file stored in the DB server 400. When the registration of the insurance point information and the update date / time in the DB server 400 is completed, the update processing unit 373 transmits an update completion notification to the WEB server 200.

データ取得部374は、要求解析部372から入力したデータが、WEBサーバ200から受信した、保険点数情報の取得要求及び更新日時情報であった場合、DBサーバ400に送る、保険点数情報の取得要求を生成する。データ取得部374は、生成した取得要求に、WEBサーバ200から受信した更新日時情報を付加したデータを出力部376に出力する。出力部376は、データ取得部374から入力したデータを、ネットワークI/F340を介してDBサーバ400に送信する。
DBサーバ400は、APサーバ300から取得要求と、更新日時情報とを受信すると、受信した更新日時情報の示す更新日時よりも更新日時の新しい保険点数情報を点数マスタファイルから取得する。DBサーバ400は、取得した保険点数情報をAPサーバ300に送信する。
データ取得部374は、DBサーバ400から送られた、保険点数情報を入力した場合、入力した保険点数情報を含むデータをWEBサーバ200に送信する。
The data acquisition unit 374 sends the insurance point information acquisition request to the DB server 400 when the data input from the request analysis unit 372 is the insurance point information acquisition request and update date / time information received from the WEB server 200. Is generated. The data acquisition unit 374 outputs, to the output unit 376, data obtained by adding the update date / time information received from the WEB server 200 to the generated acquisition request. The output unit 376 transmits the data input from the data acquisition unit 374 to the DB server 400 via the network I / F 340.
When the DB server 400 receives the acquisition request and the update date / time information from the AP server 300, the DB server 400 acquires, from the score master file, insurance point information that is newer in update date / time than the update date / time indicated by the received update date / time information. The DB server 400 transmits the acquired insurance score information to the AP server 300.
When the insurance score information sent from the DB server 400 is input, the data acquisition unit 374 transmits data including the input insurance score information to the WEB server 200.

次に、シーケンス図を参照しながらクライアント端末100からの処理要求を受けたWEBサーバ200、APサーバ300及び更新日時管理装置500の処理の概要を説明する。   Next, an outline of processing of the WEB server 200, the AP server 300, and the update date and time management apparatus 500 that has received a processing request from the client terminal 100 will be described with reference to a sequence diagram.

まず、クライアント端末100から送られた保険点数の計算指示を受信したWEBサーバ200と、更新日時管理装置500との処理の概要を図6のシーケンス図を参照しながら説明する。
WEBサーバ200は、クライアント端末100から保険点数の計算指示を受け付ける(図6に示す保険点数の計算指示A)。WEBサーバ200は、保険点数の計算指示を受け付けると、更新日時管理装置500に、更新日時管理装置500の記憶する更新日時情報の取得要求を出力する(図6に示す更新日時情報の取得要求B)。取得要求を受信した更新日時管理装置500は、不図示の記憶部に記憶している更新日時情報を取り出し、WEBサーバ200に送信する(図6に示す更新日時情報の送信C)。WEBサーバ200は、更新日時情報を更新日時管理装置500から取得すると、取得した更新日時情報の示す更新日時の保険点数情報をHDD250に記憶したWEB点数ファイルから取得する(図6に示す保険点数情報の取得D)。また、該当する更新日時の保険点数情報が点数マスタファイルに登録されていない場合、WEBサーバ200は、更新日時情報の示す更新日時よりも更新日時が古い保険点数情報のうち、版数が最大のものの保険点数情報を取得する。
First, an overview of processing performed by the WEB server 200 that has received the insurance point calculation instruction sent from the client terminal 100 and the update date and time management apparatus 500 will be described with reference to the sequence diagram of FIG.
The WEB server 200 receives an insurance score calculation instruction from the client terminal 100 (insurance score calculation instruction A shown in FIG. 6). Upon receiving the insurance score calculation instruction, the WEB server 200 outputs an update date information acquisition request stored in the update date management device 500 to the update date management device 500 (update date information acquisition request B shown in FIG. 6). ). The update date and time management apparatus 500 that has received the acquisition request retrieves update date and time information stored in a storage unit (not shown) and transmits it to the WEB server 200 (transmission date and time information C shown in FIG. 6). When acquiring the update date / time information from the update date / time management apparatus 500, the WEB server 200 acquires the insurance score information of the update date / time indicated by the acquired update date / time information from the WEB score file stored in the HDD 250 (the insurance score information shown in FIG. 6). Acquisition D). Further, when the insurance score information of the corresponding update date / time is not registered in the score master file, the WEB server 200 has the largest version number among the insurance score information whose update date / time is older than the update date / time indicated by the update date / time information. Get insurance point information of things.

ここで、図7を参照しながら、保険点数の計算に使用する保険点数情報の選択方法について具体的に説明する。図7には、WEBサーバ200のWEB点数ファイルの一例を示す。図7に示す例では、診療行為コードが「000001」、「000002」、「000003」の3種類の保険点数情報がWEB点数ファイルに登録されている。また、診療行為コードが「000001」、「000002」の保険点数情報は、更新日時が2012年10月2日、1時23分45秒のものと、2012年9月15日、10時03分20秒のものが登録されている。診療行為コードが「000003」の保険点数情報は、更新日時が2012年10月2日、1時23分45秒のものは登録されておらず、2012年9月15日、10時03分20秒のものが登録されている。例えば、診療行為コードが「000001」、「000002」の保険点数情報は更新が行われたが、診療行為コードが「000003」の保険点数情報は、更新がされなかったとする。この場合、診療行為コードによって更新日時にずれが生じる。   Here, with reference to FIG. 7, a method for selecting insurance score information used for calculating the insurance score will be specifically described. FIG. 7 shows an example of a WEB score file of the WEB server 200. In the example shown in FIG. 7, three types of insurance point information with medical practice code “000001”, “000002”, and “000003” are registered in the WEB score file. In addition, the insurance score information for the medical practice codes “000001” and “000002” is updated on October 2, 2012, 1:23:45, September 15, 2012, 10:03 The one for 20 seconds is registered. Insurance score information with the medical practice code "000003" is not registered for the update date of October 2, 2012, 1:23:45, September 15, 2012, 10:03:20 Seconds are registered. For example, it is assumed that the insurance point information with the medical practice code “000001” and “000002” has been updated, but the insurance point information with the medical practice code “000003” has not been updated. In this case, the update date and time varies depending on the medical practice code.

例えば、WEBサーバ200が更新日時管理装置500から取得した更新日時情報が、2012年10月2日、1時23分45秒であったと仮定する。この場合、WEBサーバ200は、保険点数の計算に、診療行為コードが「000001」、「000002」の保険点数情報を使用する場合には、2012年10月2日、1時23分45秒のものを使用する。また、WEBサーバ200は、保険点数の計算に、診療行為コードが「000003」の保険点数情報を使用する場合には、2012年9月15日、10時03分20秒のものを使用する。すなわち、WEBサーバ200は、更新日時情報の示す更新日時よりも更新日時が古い保険点数情報のうち、版数の値が最も大きい保険点数情報を使用する。版数の値が最も大きいということは、更新日時管理装置500から取得した更新日時よりも更新日時が古い保険点数情報のなかで、更新日時が最も新しいことを示している。   For example, it is assumed that the update date / time information acquired from the update date / time management apparatus 500 by the WEB server 200 was October 2, 2012, 1:23:45. In this case, when using the insurance score information with the medical treatment code “000001” and “000002” for calculating the insurance score, the WEB server 200 is set to 1:23:45 on October 2, 2012. Use things. In addition, the WEB server 200 uses the insurance point information with the medical practice code “000003” for the calculation of the insurance points, the data on September 15, 2012, 10:03:20. That is, the WEB server 200 uses the insurance point information having the largest version number among the insurance point information whose update date and time is older than the update date and time indicated by the update date and time information. The largest version number indicates that the update date is the newest in the insurance point information whose update date is older than the update date acquired from the update date management device 500.

WEBサーバ200は、WEB点数ファイルから保険点数情報を取得すると、取得した保険点数情報を使用して、保険点数の計算を行う(図6に示す点数計算E)。WEBサーバ200は、クライアント端末100から取得した診療データに記録された診療行為の保険点数を計算する。保険点数の計算が終了すると、WEBサーバ200は、保険点数の計算結果をクライアント端末100に送信する(図6に示す計算結果の送信F)。   When the WEB server 200 acquires the insurance score information from the WEB score file, the WEB server 200 calculates the insurance score using the acquired insurance score information (score calculation E shown in FIG. 6). The WEB server 200 calculates the insurance points for the medical practice recorded in the medical data acquired from the client terminal 100. When the calculation of the insurance score is completed, the WEB server 200 transmits the calculation result of the insurance score to the client terminal 100 (transmission F of the calculation result shown in FIG. 6).

次に、WEBサーバ200から保険点数の計算要求を受信した場合のAPサーバ300の処理の概要を、図8に示すシーケンス図を参照しながら説明する。クライアント端末100から保険点数の計算要求を受信したWEBサーバ200は、APサーバ300に、保険点数の計算要求を出力する(図8に示す保険点数の計算要求A)。例えば、WEBサーバ200の処理負荷が高く、WEBサーバ200で保険点数の計算を行っていると、処理に遅延が生じると判定した場合、WEBサーバ200は、APサーバ300に保険点数の計算要求を出力する。
APサーバ300は、保険点数の計算要求を受け付けると、更新日時管理装置500に、更新日時管理装置500の記憶する更新日時情報の取得を要求する(図8に示す更新日時情報の取得要求B)。取得要求を受信した更新日時管理装置500は、更新日時情報をAPサーバ300に送信する(図8に示す更新日時情報の送信C)。APサーバ300は、更新日時情報を取得すると、保険点数情報の取得要求に、取得した更新日時情報を付加してDBサーバ400に送信する(図8に示す保険点数情報の取得要求D)。DBサーバ400に登録された点数マスタファイルも、診療行為コードごとに更新日時が管理されている。このため、DBサーバ400は、診療行為コードごとに、APサーバ300から受信した更新日時の保険点数情報が存在するか否かを判定する。すなわち、図7を参照しながら説明したように、DBサーバ400は、保険点数情報の診療行為コードが、APサーバ300から受信した更新日時のものが存在する保険点数情報の診療行為コードの場合には、受信した更新日時の保険点数情報を選択する。また、DBサーバ400は、APサーバ300から受信した更新日時のものが存在しない保険点数情報の診療行為コードの場合には、更新日時情報の示す更新日時よりも更新日時が古い保険点数情報のうち、版数が最も大きい保険点数情報を選択する。DBサーバ400は、診療行為コードごとに選択した保険点数情報を、要求元のAPサーバ300に送信する(図8に示す保険点数情報の送信E)。
Next, an outline of processing of the AP server 300 when a request for insurance score calculation is received from the WEB server 200 will be described with reference to a sequence diagram shown in FIG. Upon receiving the insurance score calculation request from the client terminal 100, the WEB server 200 outputs an insurance score calculation request to the AP server 300 (insurance score calculation request A shown in FIG. 8). For example, if the processing load of the WEB server 200 is high and the WEB server 200 is calculating the insurance score, if it is determined that the processing is delayed, the WEB server 200 requests the AP server 300 to calculate the insurance score. Output.
Upon receiving the insurance score calculation request, the AP server 300 requests the update date and time management apparatus 500 to acquire the update date and time information stored in the update date and time management apparatus 500 (update date and time information acquisition request B shown in FIG. 8). . The update date and time management apparatus 500 that has received the acquisition request transmits update date and time information to the AP server 300 (transmission date and time information C shown in FIG. 8). Upon acquiring the update date / time information, the AP server 300 adds the acquired update date / time information to the insurance score information acquisition request and transmits it to the DB server 400 (insurance score information acquisition request D shown in FIG. 8). The score master file registered in the DB server 400 also manages the update date and time for each medical practice code. For this reason, the DB server 400 determines whether or not the insurance point information of the update date and time received from the AP server 300 exists for each medical practice code. That is, as described with reference to FIG. 7, the DB server 400 determines that the medical practice code of the insurance score information is the medical practice code of the insurance score information that has the update date and time received from the AP server 300. Selects the insurance point information of the received update date and time. Further, in the case of the medical practice code of the insurance score information that does not exist with the update date and time received from the AP server 300, the DB server 400 includes the insurance score information whose update date and time is older than the update date and time indicated by the update date and time information. The insurance score information with the largest version is selected. The DB server 400 transmits the insurance point information selected for each medical practice code to the requesting AP server 300 (insurance point information transmission E shown in FIG. 8).

APサーバ300は、点数マスタファイルから保険点数情報を取得すると、取得した保険点数情報を使用して、保険点数の計算を行う(図8に示す点数計算F)。APサーバ300は、WEBサーバ200から取得した診療データに記録された各診療行為の保険点数の合計値を計算する。保険点数の計算が終了すると、APサーバ300は、保険点数の計算結果をWEBサーバ200に送信する(図8に示す計算結果の返信G)。   When acquiring the insurance score information from the score master file, the AP server 300 calculates the insurance score using the acquired insurance score information (score calculation F shown in FIG. 8). The AP server 300 calculates the total value of the insurance points of each medical practice recorded in the medical data acquired from the WEB server 200. When the insurance score calculation is completed, the AP server 300 transmits the insurance score calculation result to the WEB server 200 (calculation result reply G shown in FIG. 8).

次に、図9を参照しながら、クライアント端末100から点数マスタファイルの更新要求を受け付けたWEBサーバ200とAPサーバ300との処理の概要を説明する。
WEBサーバ200は、クライアント端末100から点数マスタファイルの更新指示を受け付ける(図9に示す点数マスタファイルの更新指示A)。この点数マスタファイルの更新指示には、更新する保険点数情報が付加されている。なお、更新する保険点数情報は、クライアント端末100の操作者が、入力装置221を操作して入力してもよい。又は、クライアント端末100からの更新要求を受信したWEBサーバ200が、保険点数情報を登録したサイトにアクセスして保険点数情報を取得するものであってもよい。点数マスタファイルの更新要求を受け付けたWEBサーバ200は、点数マスタファイルの更新要求をAPサーバ300に送信する(図9に示す点数マスタファイルの更新要求B)。この点数マスタファイルの更新要求にも、更新する保険点数情報が付加されている。WEBサーバ200から点数マスタファイルの更新要求を受け付けたAPサーバ300は、WEBサーバ200から取得した保険点数情報をDBサーバ400に送信して、DBサーバ400に登録する(図9に示す点数マスタファイルの更新処理C)。また、APサーバ300は、DBサーバ400への保険点数情報の登録が完了すると、更新完了通知をWEBサーバ200に送信する(図9に示す更新完了通知D)。APサーバ300からの通知を受けたWEBサーバ200は、更新完了通知をクライアント端末100に送信する(図9に示す更新完了通知E)。
図10(A)に、更新前の点数マスタファイルの一例を示し、図10(B)に、更新後の点数マスタファイルの一例を示す。点数マスタファイルの更新処理により、更新後の点数マスタファイルには、診療行為コードが「000001」、「000002」であって、更新日時が2012年10月2日、1時23分45秒の保険点数情報が追加登録されている。
Next, an overview of processing performed by the WEB server 200 and the AP server 300 that has received a score master file update request from the client terminal 100 will be described with reference to FIG.
The WEB server 200 receives a score master file update instruction from the client terminal 100 (score master file update instruction A shown in FIG. 9). Insurance point information to be updated is added to the update instruction of the score master file. The insurance point information to be updated may be input by the operator of the client terminal 100 operating the input device 221. Alternatively, the WEB server 200 that has received the update request from the client terminal 100 may access the site where the insurance score information is registered to acquire the insurance score information. Upon receiving the score master file update request, the WEB server 200 transmits a score master file update request to the AP server 300 (score master file update request B shown in FIG. 9). The insurance point information to be updated is also added to the update request for the score master file. The AP server 300 that has received the score master file update request from the WEB server 200 transmits the insurance score information acquired from the WEB server 200 to the DB server 400 and registers it in the DB server 400 (the score master file shown in FIG. 9). Update processing C). In addition, when the registration of insurance point information in the DB server 400 is completed, the AP server 300 transmits an update completion notification to the WEB server 200 (update completion notification D shown in FIG. 9). Upon receiving the notification from the AP server 300, the WEB server 200 transmits an update completion notification to the client terminal 100 (update completion notification E shown in FIG. 9).
FIG. 10A shows an example of the score master file before update, and FIG. 10B shows an example of the score master file after update. With the score master file update process, the updated score master file has insurance treatment codes of “000001” and “000002”, and the update date is October 2, 2012, 1:23:45. Additional point information is registered.

次に、図11を参照しながら、保険点数情報の取込み指示をクライアント端末100から受信した場合のWEBサーバ200とAPサーバ300の処理の概要を説明する。
WEBサーバ200は、クライアント端末100から保険点数情報の取込み指示を受け付ける(図11に示す保険点数情報の取込み指示A)。取込み指示を受け付けたWEBサーバ200は、HDD250に記憶するWEB点数ファイルから更新日時情報を取得する。WEBサーバ200は、点数マスタファイルに登録された保険点数情報のうち、更新日時が最も新しい保険点数情報の更新日時情報を取得する(図11に示す更新日時情報の取得B)。WEBサーバ200は、保険点数情報の取得要求を生成して、生成した取得要求に、取得した更新日時情報を付加してAPサーバ300に送信する(図11に示す保険点数情報の取得要求C)。保険点数情報の取得要求を受信したAPサーバ300は、DBサーバ400に保険点数情報の取得要求を送信する(図11に示す険点数情報の取得要求D)。この取得要求にも、更新日時情報が付加されている。DBサーバ400は、取得要求を受信すると、受信した取得要求に付加された更新日時情報の示す更新日時よりも更新日時が新しい保険点数情報を点数マスタファイルから取得する。すなわち、APサーバ300から受信した更新日時情報が示す更新日時の保険点数情報と、この更新日時よりも前の保険点数情報とは、WEBサーバ200のWEB点数ファイルに登録されている。このため、DBサーバ400は、APサーバ300から受信した更新日時情報の示す更新日時よりも更新日時が新しい保険点数情報を点数マスタファイルから取得する。DBサーバ400は、取得した保険点数情報をAPサーバ300に送信する(図11に示す保険点数情報の送信E)。APサーバ300は、保険点数情報をDBサーバ400から受信すると、受信した保険点数情報をWEBサーバ200に送信する(図11に示す保険点数情報の送信F)。
図12を参照しながら、上述の処理についてより具体的に説明する。図12(A)に、DBサーバ400が記憶する点数マスタファイルの一例を示し、図12(B)に、WEBサーバ200が記憶するWEB点数ファイルの一例を示す。WEBサーバ200は、WEB点数ファイルを参照して、更新日時情報として2012年9月15日の10時03分20秒を選択する。WEBサーバ200は、WEB点数ファイルに登録された保険点数情報のうち、更新日時が最も新しい更新日時を選択する。WEBサーバ200は、選択した更新日時情報をAPサーバ300を介してDBサーバ400に送信する。DBサーバ400は、APサーバ300から受信した更新日時が、2012年9月15日の10時03分20秒であった場合、この日時よりも更新日時が新しい2012年10月2日1時23分45秒の保険点数情報を取得する。DBサーバ400は、取得した保険点数情報をAPサーバ300に送信する。
Next, an overview of processing of the WEB server 200 and the AP server 300 when an instruction for taking insurance score information is received from the client terminal 100 will be described with reference to FIG.
The WEB server 200 receives an instruction for taking in insurance score information from the client terminal 100 (instruction instruction A for taking in insurance score information shown in FIG. 11). The WEB server 200 that has received the take-in instruction acquires update date / time information from the WEB score file stored in the HDD 250. The WEB server 200 acquires the update date / time information of the insurance score information with the newest update date / time from the insurance score information registered in the score master file (update date / time information acquisition B shown in FIG. 11). The WEB server 200 generates an insurance score information acquisition request, adds the acquired update date and time information to the generated acquisition request, and transmits the request to the AP server 300 (insurance score information acquisition request C shown in FIG. 11). . Upon receiving the insurance score information acquisition request, the AP server 300 transmits an insurance score information acquisition request to the DB server 400 (skill point information acquisition request D shown in FIG. 11). Update date information is also added to this acquisition request. When the DB server 400 receives the acquisition request, the DB server 400 acquires, from the score master file, insurance score information having a newer update date and time than the update date and time indicated by the update date and time information added to the received acquisition request. That is, the insurance point information of the update date and time indicated by the update date and time information received from the AP server 300 and the insurance score information before this update date and time are registered in the WEB score file of the WEB server 200. For this reason, the DB server 400 acquires from the score master file insurance score information that has a newer update date and time than the update date and time indicated by the update date and time information received from the AP server 300. The DB server 400 transmits the acquired insurance score information to the AP server 300 (transmission E of insurance score information shown in FIG. 11). Upon receiving the insurance score information from the DB server 400, the AP server 300 transmits the received insurance score information to the WEB server 200 (insurance score information transmission F shown in FIG. 11).
The above process will be described more specifically with reference to FIG. FIG. 12A shows an example of a score master file stored in the DB server 400, and FIG. 12B shows an example of a WEB score file stored in the WEB server 200. The WEB server 200 refers to the WEB score file and selects 10:03:20 on September 15, 2012 as the update date / time information. The WEB server 200 selects the update date and time with the latest update date and time from the insurance score information registered in the WEB score file. The WEB server 200 transmits the selected update date / time information to the DB server 400 via the AP server 300. When the update date and time received from the AP server 300 is 10:03:20 on September 15, 2012, the DB server 400 has a newer update date and time than this date and time, October 2, 2012, 1:23 Get insurance point information for 45 seconds. The DB server 400 transmits the acquired insurance score information to the AP server 300.

WEBサーバ200は、APサーバ300から保険点数情報を受信すると、受信した保険点数情報をHDD250のWEB点数ファイルに登録する(図11に示す保険点数情報のWEB点数ファイルへの登録G)。また、WEBサーバ200は、保険点数情報の登録が終了すると、点数マスタファイルの更新完了通知をクライアント端末100に送信する(図11に示す保険点数情報の取込み完了通知H)。   Upon receiving the insurance score information from the AP server 300, the WEB server 200 registers the received insurance score information in the WEB score file of the HDD 250 (Registration G of insurance score information in the WEB score file shown in FIG. 11). Further, when the registration of the insurance score information is completed, the WEB server 200 transmits an update completion notification of the score master file to the client terminal 100 (insurance score information capture completion notification H shown in FIG. 11).

次に、クライアント端末100から保険点数情報の同期指示を受信した場合のWEBサーバ200及び更新日時管理装置500の処理の概要を図13を参照しながら説明する。なお、図13を参照しながら行う説明では、WEBサーバ200として、WEBサーバ200a、200b、200cの3つがあるものとし、WEBサーバ200aが処理を実行するものとして説明する。   Next, an overview of the processing of the WEB server 200 and the update date and time management apparatus 500 when an insurance point information synchronization instruction is received from the client terminal 100 will be described with reference to FIG. In the description given with reference to FIG. 13, it is assumed that there are three WEB servers 200a, 200b, and 200c as the WEB server 200, and the WEB server 200a executes processing.

WEBサーバ200aは、クライアント端末100から保険点数情報の同期処理の指示を受け付ける(図13に示す同期処理指示A)。同期処理の指示を受け付けたWEBサーバ200aは、更新日時管理装置500に、各WEBサーバ200a、200b、200cのIPアドレスの取得要求を送信する(図13に示すIPアドレスの取得要求B)。IPアドレスの取得要求を受信した更新日時管理装置500は、WEBサーバ200aに、各WEBサーバ200a、200b、200cのIPアドレスを送信する(図13に示すIPアドレスの送信C)。IPアドレスを取得したWEBサーバ200aは、各WEBサーバ200a、200b、200cのIPアドレスを比較し、自身のIPアドレスが値の最も小さいIPアドレスであるか否かを判定する。ここでは、WEBサーバ200aのIPアドレスが値の最も小さいIPアドレスであるとする。自身のIPアドレスが値の最も小さいIPアドレスであると判定したWEBサーバ200aは、他のWEBサーバ200b、200cに更新日時情報の取得要求を送信する(図13に示す更新日時情報の取得要求D1、D2)。更新日時情報の取得要求を受信したWEBサーバ200b、200cは、それぞれに記憶するWEB点数ファイルに登録された保険点数情報のうち、更新日時が最も新しい保険点数情報を選択し、選択した保険点数情報の更新日時情報を取得する。WEBサーバ200b、200cは、取得した更新日時情報をWEBサーバ200aに送信する(図13に示す更新日時情報の送信E1、E2)。WEBサーバ200aは、各WEBサーバ200から更新日時情報を取得すると、取得した更新日時情報のなかから更新日時が最も古い更新日時を選択する(図13に示す更新日時の選択F)。WEBサーバ200aは、更新日時の登録要求に、選択した更新日時を添付して更新日時管理装置500に送信する(図13に示す更新日時の登録要求G)。また、WEBサーバ200aは、要求元のクライアント端末100に、同期処理の完了通知を送信する(図13に示す同期処理完了通知H)。   The WEB server 200a receives an instruction for a synchronization process of insurance point information from the client terminal 100 (synchronization process instruction A shown in FIG. 13). The WEB server 200a that has received the synchronization processing instruction transmits an acquisition request for the IP addresses of the WEB servers 200a, 200b, and 200c to the update date and time management apparatus 500 (IP address acquisition request B shown in FIG. 13). Receiving the IP address acquisition request, the update date and time management apparatus 500 transmits the IP addresses of the WEB servers 200a, 200b, and 200c to the WEB server 200a (IP address transmission C shown in FIG. 13). The WEB server 200a that acquired the IP address compares the IP addresses of the WEB servers 200a, 200b, and 200c, and determines whether or not its own IP address is the IP address with the smallest value. Here, it is assumed that the IP address of the WEB server 200a is the IP address having the smallest value. The WEB server 200a that has determined that its own IP address is the smallest IP address transmits an update date / time information acquisition request to the other WEB servers 200b and 200c (update date / time information acquisition request D1 shown in FIG. 13). , D2). The WEB servers 200b and 200c that have received the acquisition request for the update date / time information select the insurance score information with the latest update date / time from the insurance score information registered in the WEB score file stored therein, and the selected insurance score information Get update date / time information. The WEB servers 200b and 200c transmit the acquired update date / time information to the WEB server 200a (transmission date / time information transmission E1 and E2 shown in FIG. 13). When acquiring the update date / time information from each WEB server 200, the WEB server 200a selects the update date / time having the oldest update date / time from the acquired update date / time information (update date / time selection F shown in FIG. 13). The WEB server 200a attaches the selected update date to the update date registration request and transmits it to the update date management apparatus 500 (update date registration request G shown in FIG. 13). Further, the WEB server 200a transmits a synchronization processing completion notification to the requesting client terminal 100 (synchronization processing completion notification H shown in FIG. 13).

次に、WEBサーバ200の起動時の処理の概要について、図14に示すシーケンス図を参照しながら説明する。なお、図14を参照しながら行う説明でも、WEBサーバ200として、WEBサーバ200a、200b、200cの3つがあるものとし、WEBサーバ200aが処理を実行するものとして説明する。
WEBサーバ200は、起動すると、自身のRAM213に各WEBサーバ200のIPアドレスが記憶されているか否かを判定する(図14に示す起動A、構成情報の確認B)。IPアドレスがRAM213に記憶されていないと判定すると、WEBサーバ200は、APサーバ300に、IPアドレスの取得要求を送信する(図14に示すIPアドレスの取得要求C)。APサーバ300は、WEBサーバ200からの取得要求に応じて、各WEBサーバ200のIPアドレスをDBサーバ400から取得する(図14に示すIPアドレスの取得要求D及びIPアドレスの送信E)。APサーバ300は、IPアドレスを取得すると、取得したIPアドレスをWEBサーバ200に送信する(図14に示すIPアドレスの送信F)。
Next, an outline of processing at the time of starting the WEB server 200 will be described with reference to the sequence diagram shown in FIG. In the description given with reference to FIG. 14, it is assumed that there are three WEB servers 200a, 200b, and 200c as the WEB server 200, and the WEB server 200a executes processing.
When activated, the WEB server 200 determines whether or not the IP address of each WEB server 200 is stored in its own RAM 213 (activation A, configuration information confirmation B shown in FIG. 14). If it is determined that the IP address is not stored in the RAM 213, the WEB server 200 transmits an IP address acquisition request to the AP server 300 (IP address acquisition request C shown in FIG. 14). In response to the acquisition request from the WEB server 200, the AP server 300 acquires the IP address of each WEB server 200 from the DB server 400 (IP address acquisition request D and IP address transmission E shown in FIG. 14). Upon acquiring the IP address, the AP server 300 transmits the acquired IP address to the WEB server 200 (IP address transmission F shown in FIG. 14).

次に、WEBサーバ200は、更新日時管理装置500に、更新日時情報が記憶されているか否かを確認する処理を行う。WEBサーバ200は、更新日時管理装置500に、更新日時情報の送信を要求する(図14に示す更新日時情報の送信要求G)。WEBサーバ200は、更新日時管理装置500から更新日時情報を受信することができた場合には、この処理を終了する。また、WEBサーバ200は、更新日時情報を受信することができなかった場合、他のWEBサーバ200b、200cに更新日時情報の取得要求を送信する(図14に示す更新日時情報の取得要求H1、H2)。なお、この後のWEBサーバ200a、200b、200c及び更新日時管理装置500の処理は、図13に示すシーケンス図のD〜Hで説明済みであるので省略する。また、図14に示す処理は、WEBサーバ200の起動時だけに行われるものではなく、例えば、WEBサーバ200が処理を行っていない時間帯に行うものであってもよい。   Next, the WEB server 200 performs processing for confirming whether or not the update date / time information is stored in the update date / time management apparatus 500. The WEB server 200 requests the update date and time management apparatus 500 to transmit update date and time information (update date and time information transmission request G shown in FIG. 14). If the WEB server 200 can receive the update date / time information from the update date / time management apparatus 500, the WEB server 200 ends this process. If the update date / time information cannot be received, the web server 200 transmits an update date / time information acquisition request to the other web servers 200b and 200c (update date / time information acquisition request H1 shown in FIG. 14). H2). Note that the subsequent processing of the WEB servers 200a, 200b, and 200c and the update date and time management apparatus 500 has been described with reference to DH in the sequence diagram shown in FIG. Further, the process illustrated in FIG. 14 is not performed only when the WEB server 200 is activated, and may be performed, for example, during a time period when the WEB server 200 is not performing the process.

図15に、クライアント端末100の表示装置131に表示される表示画面の一例を示す。図15に示す表示画面には、ネットワーク50に接続したサーバを選択するサーバ選択欄610と、サーバ選択欄610に表示された各サーバが保険点数情報の更新を行った最新の更新日時を示す更新日時表示欄620とが表示される。また、表示画面には、サーバ選択欄610で選択されたサーバの記憶する点数マスタファイル又はWEB点数ファイルの登録情報を表示するメイン表示欄630が表示される。このメイン表示欄630には、サーバ選択欄610で選択されたサーバに、保険点数情報のDBサーバ400からの取得を要求する取込ボタン631が表示される。この取込ボタン631が押下されることで、図11のシーケンス図で説明した保険点数情報の取込み処理が、サーバ選択欄610で選択したサーバで実行される。また、メイン表示欄630には、サーバ選択欄610で選択したサーバに、このサーバが記憶する古い保険点数情報を消去するように指示する削除ボタン632が表示される。削除ボタン632が押下されることで、サーバ選択欄610で選択されたサーバが記憶する、選択された保険点数情報が削除される。さらに、メイン表示欄630には、更新日時管理装置500の記憶する更新日時情報を更新する同期ボタン633が表示される。この同期ボタン633が押下されることで、図13のシーケンス図で説明した保険点数情報の同期処理が、サーバ選択欄610で選択されたサーバで実行される。   FIG. 15 shows an example of a display screen displayed on the display device 131 of the client terminal 100. The display screen shown in FIG. 15 includes a server selection field 610 for selecting a server connected to the network 50, and an update indicating the latest update date and time when each server displayed in the server selection field 610 has updated insurance score information. A date / time display field 620 is displayed. The display screen also displays a main display field 630 for displaying registration information of the score master file or WEB score file stored in the server selected in the server selection field 610. In the main display column 630, a take-in button 631 for requesting the server selected in the server selection column 610 to obtain insurance score information from the DB server 400 is displayed. When the take-in button 631 is pressed, the insurance score information take-in process described in the sequence diagram of FIG. 11 is executed on the server selected in the server selection field 610. The main display field 630 displays a delete button 632 that instructs the server selected in the server selection field 610 to delete the old insurance point information stored in the server. When the delete button 632 is pressed, the selected insurance point information stored in the server selected in the server selection field 610 is deleted. Further, a synchronization button 633 for updating the update date / time information stored in the update date / time management apparatus 500 is displayed in the main display field 630. When this synchronization button 633 is pressed, the insurance point information synchronization processing described in the sequence diagram of FIG. 13 is executed on the server selected in the server selection field 610.

図16には、サーバ選択欄610に表示された更新日時管理装置500が選択された場合に、メイン表示欄630に表示される表示画面の一例を示す。図16に示す表示画面には、自動ボタン651と、マニュアルボタン652と、更新日時入力欄653と、設定ボタン654とが表示される。自動ボタン651が操作されると、クライアント端末100から事前に設定されたWEBサーバ200に、図13で説明した保険点数情報の同期処理の指示が送信される。
また、図16に示すマニュアルボタン652が選択された状態で、更新日時入力欄653に更新日時が入力され、設定ボタン654が押下されると、更新日時入力欄653に入力された更新日時情報が更新日時管理装置500に送られる。更新日時管理装置500は、クライアント端末100から送られた更新日時情報を新たな更新日時として記憶する。従って、各WEBサーバ200、APサーバ300が保険点数の計算に使用する保険点数情報の更新日時を、クライアント端末100の表示画面から指定することができる。このため、例えば、WEBサーバ200に、更新日時が古い保険点数情報を使用した保険点数の計算を行わせることも可能となる。
FIG. 16 shows an example of a display screen displayed in the main display field 630 when the update date / time management apparatus 500 displayed in the server selection field 610 is selected. On the display screen shown in FIG. 16, an automatic button 651, a manual button 652, an update date / time input field 653, and a setting button 654 are displayed. When the automatic button 651 is operated, the insurance terminal information synchronization processing instruction described in FIG. 13 is transmitted from the client terminal 100 to the WEB server 200 set in advance.
In addition, when the manual button 652 shown in FIG. 16 is selected, when the update date / time is input to the update date / time input field 653 and the setting button 654 is pressed, the update date / time information input to the update date / time input field 653 is displayed. It is sent to the update date / time management apparatus 500. The update date and time management apparatus 500 stores the update date and time information sent from the client terminal 100 as a new update date and time. Therefore, the update date and time of the insurance point information used by each WEB server 200 and AP server 300 to calculate the insurance points can be designated from the display screen of the client terminal 100. For this reason, for example, it is possible to cause the WEB server 200 to calculate the insurance score using the insurance score information with the oldest update date and time.

次に、フローチャートを参照しながら、各サーバの個別の動作手順について説明する。まず、クライアント端末100から保険点数の計算指示を受けた場合のWEBサーバ200の制御部210の処理手順を図17に示すフローチャートを参照しながら説明する。
WEBサーバ200の制御部210は、保険点数の計算指示を受信した場合(ステップS1/YES)、更新日時管理装置500に更新日時情報の取得要求を送信する(ステップS2)。制御部210は、更新日時管理装置500からデータ送信があるまで待機する。更新日時管理装置500から送信されたデータを受信した場合(ステップS3/YES)、制御部210は、受信したデータが更新日時情報であるか否かを判定する(ステップS4)。受信したデータが更新日時情報ではなかった場合、制御部210は、ステップS3の処理に戻る。また、受信したデータが更新日時情報であった場合(ステップS4/YES)、制御部210は、HDD250に記憶するWEB点数ファイルから保険点数情報を取得する(ステップS5)。制御部210は、更新日時管理装置500から取得した更新日時情報の示す更新日時の保険点数情報をWEB点数ファイルから取得する(ステップS5)。また、WEB点数ファイルに登録された保険点数情報は、診療行為コードごとに更新され、診療行為コードには、更新日時管理装置500から取得した更新日時のものが登録されていないものがある。この場合、制御部210は、更新日時管理装置500から取得した更新日時情報よりも更新日時が古い保険点数情報のうち版数の値が最も大きい保険点数情報をWEB点数ファイルから取得する(ステップS5)。制御部210は、取得した保険点数情報を使用して保険点数を計算する(ステップS6)。制御部210は、保険点数を計算すると、保険点数の計算結果をクライアント端末100に送信して、表示装置131に表示させる(ステップS7)。
Next, an individual operation procedure of each server will be described with reference to a flowchart. First, the processing procedure of the control unit 210 of the WEB server 200 when receiving an insurance score calculation instruction from the client terminal 100 will be described with reference to the flowchart shown in FIG.
When receiving the insurance score calculation instruction (step S1 / YES), the control unit 210 of the WEB server 200 transmits an update date / time information acquisition request to the update date / time management apparatus 500 (step S2). The control unit 210 waits until there is data transmission from the update date and time management apparatus 500. When data transmitted from the update date / time management apparatus 500 is received (step S3 / YES), the control unit 210 determines whether or not the received data is update date information (step S4). When the received data is not the update date / time information, the control unit 210 returns to the process of step S3. If the received data is update date / time information (step S4 / YES), the control unit 210 acquires insurance score information from the WEB score file stored in the HDD 250 (step S5). The control unit 210 acquires the insurance point information of the update date and time indicated by the update date and time information acquired from the update date and time management apparatus 500 from the WEB score file (step S5). In addition, the insurance score information registered in the WEB score file is updated for each medical practice code, and there is a medical practice code in which the update date acquired from the update date management apparatus 500 is not registered. In this case, the control unit 210 acquires, from the WEB score file, the insurance score information having the largest version value among the insurance score information whose update date is older than the update date information acquired from the update date management device 500 (step S5). ). The control unit 210 calculates the insurance score using the acquired insurance score information (step S6). When calculating the insurance score, the control unit 210 transmits the insurance score calculation result to the client terminal 100 and displays it on the display device 131 (step S7).

次に、図18に示すフローチャートを参照しながら、APサーバ300に保険点数の計算処理を実行させる場合のWEBサーバ200の制御部210の処理手順を説明する。
WEBサーバ200の制御部210は、保険点数の計算指示をクライアント端末100から受信すると(ステップS11/YES)、クライアント端末100から受信した診療データと、保険点数の計算要求とをAPサーバ300に送信する(ステップS12)。
Next, a processing procedure of the control unit 210 of the WEB server 200 when causing the AP server 300 to execute insurance point calculation processing will be described with reference to a flowchart shown in FIG.
When receiving the insurance score calculation instruction from the client terminal 100 (step S11 / YES), the control unit 210 of the WEB server 200 transmits the medical data received from the client terminal 100 and the insurance score calculation request to the AP server 300. (Step S12).

APサーバ300に保険点数の計算要求を送信した制御部210は、APサーバ300から保険点数の計算完了通知があるまで待機する(ステップS13)。APサーバ300からデータを受信すると、(ステップS13/YES)、制御部210は、受信したデータは、保険点数の計算結果であるか否かを判定する(ステップS14)。受信したデータが保険点数の計算結果ではなかった場合(ステップS14/NO)、制御部210は、ステップS13に戻り、APサーバ300からのデータ受信を待機する。受信したデータが保険点数の計算結果であった場合(ステップS14/YES)、制御部210は、受信した保険点数の計算結果をクライアント端末100に送り、クライアント端末100の表示装置131に表示させる(ステップS15)。   The control unit 210 that has transmitted the insurance score calculation request to the AP server 300 waits until an insurance score calculation completion notification is received from the AP server 300 (step S13). When data is received from the AP server 300 (step S13 / YES), the control unit 210 determines whether or not the received data is a calculation result of the insurance score (step S14). When the received data is not the insurance score calculation result (step S14 / NO), the control unit 210 returns to step S13 and waits for data reception from the AP server 300. When the received data is the insurance score calculation result (step S14 / YES), the control unit 210 sends the received insurance score calculation result to the client terminal 100 and displays it on the display device 131 of the client terminal 100 ( Step S15).

次に、WEBサーバ200から保険点数の計算要求を受信した場合のAPサーバ300の制御部310の処理手順を図19に示すフローチャートを参照しながら説明する。
APサーバ300の制御部310は、WEBサーバ200から保険点数の計算要求を受信すると(ステップS21/YES)、更新日時管理装置500に更新日時情報の取得要求を送信する(ステップS22)。制御部310は、更新日時管理装置500からデータ送信があるまで待機する。更新日時管理装置500から送信されたデータを受信した場合(ステップS23/YES)、制御部310は、受信したデータが更新日時情報であるか否かを判定する(ステップS24)。受信したデータが更新日時情報ではなかった場合、制御部310は、ステップS23の処理に戻る。また、受信したデータが更新日時情報であった場合(ステップS24/YES)、制御部310は、DBサーバ400の記憶する点数マスタファイルから保険点数情報を取得する(ステップS25)。制御部310は、WEBサーバ200の場合と同様に、更新日時管理装置500から取得した更新日時情報の示す更新日時の保険点数情報をDBサーバ400から取得する(ステップS25)。また、点数マスタファイルに登録された保険点数情報には、更新日時管理装置500から取得した更新日時のものが登録されていないものもある。この場合、制御部310は、更新日時管理装置500から取得した更新日時情報よりも更新日時が古い保険点数情報のうち版数の値が最も大きい保険点数情報を点数マスタファイルから取得する(ステップS25)。制御部310は、取得した保険点数情報を使用して保険点数を計算する(ステップS26)。制御部310は、保険点数を計算すると、保険点数の計算結果をWEBサーバ200に送信する(ステップS27)。
Next, a processing procedure of the control unit 310 of the AP server 300 when a request for insurance score calculation is received from the WEB server 200 will be described with reference to a flowchart shown in FIG.
When receiving the insurance score calculation request from the WEB server 200 (step S21 / YES), the control unit 310 of the AP server 300 transmits an update date information acquisition request to the update date management apparatus 500 (step S22). The control unit 310 waits until data is transmitted from the update date and time management apparatus 500. When data transmitted from the update date / time management apparatus 500 is received (step S23 / YES), the control unit 310 determines whether or not the received data is update date information (step S24). When the received data is not the update date / time information, the control unit 310 returns to the process of step S23. If the received data is update date / time information (step S24 / YES), the control unit 310 acquires insurance score information from the score master file stored in the DB server 400 (step S25). Similar to the case of the WEB server 200, the control unit 310 acquires from the DB server 400 the insurance point information of the update date and time indicated by the update date and time information acquired from the update date and time management apparatus 500 (step S25). In addition, some insurance point information registered in the score master file may not have the update date acquired from the update date management apparatus 500 registered. In this case, the control unit 310 acquires, from the score master file, the insurance score information having the largest version number among the insurance score information whose update date is older than the update date information acquired from the update date management apparatus 500 (step S25). ). The control unit 310 calculates an insurance score using the acquired insurance score information (step S26). When calculating the insurance score, the control unit 310 transmits the insurance score calculation result to the WEB server 200 (step S27).

次に、クライアント端末100から点数マスタファイルの更新指示を受信した場合のWEBサーバ200の処理手順を図20に示すフローチャートを参照しながら説明する。
クライアント端末100の操作者は、入力装置121を操作して、点数マスタファイルの更新指示を入力する。クライアント端末100は、点数マスタファイルの更新要求を入力装置121で受け付けると、受け付けた更新指示をWEBサーバ200に送信する。
Next, the processing procedure of the WEB server 200 when receiving an instruction to update the score master file from the client terminal 100 will be described with reference to the flowchart shown in FIG.
The operator of the client terminal 100 operates the input device 121 to input a score master file update instruction. When the client terminal 100 receives a score master file update request via the input device 121, the client terminal 100 transmits the received update instruction to the WEB server 200.

WEBサーバ200の制御部210は、クライアント端末100から点数マスタファイルの更新指示を受信すると(ステップS31/YES)、APサーバ300に点数マスタファイルの更新要求を送信する(ステップS32)。制御部210は、点数マスタファイルの更新要求に、クライアント端末100から受信した、更新する保険点数情報を付加してAPサーバ300に送り、点数マスタファイルの更新を要求する(ステップS32)。そして、制御部210は、APサーバ300からデータを受信するまで待機する(ステップS33)。APサーバ300からデータを受信すると(ステップS33/YES)、制御部210は、受信したデータは、点数マスタファイルの更新完了通知であるか否かを判定する(ステップS34)。受信したデータが、点数マスタファイルの更新完了通知ではない場合(ステップS34/NO)、制御部210は、ステップS33に戻り、APサーバ300からのデータ受信があるまで待機する。また、受信したデータが、点数マスタファイルの更新完了通知であった場合(ステップS34/YES)、制御部210は、点数マスタファイルの更新完了通知をクライアント端末100に通知する(ステップS35)。   When receiving the score master file update instruction from the client terminal 100 (step S31 / YES), the control unit 210 of the WEB server 200 transmits a score master file update request to the AP server 300 (step S32). The control unit 210 adds the insurance score information to be updated received from the client terminal 100 to the score master file update request and sends it to the AP server 300, and requests the score master file to be updated (step S32). Then, control unit 210 waits until data is received from AP server 300 (step S33). When data is received from the AP server 300 (step S33 / YES), the control unit 210 determines whether or not the received data is a score master file update completion notification (step S34). If the received data is not a score master file update completion notification (step S34 / NO), the control unit 210 returns to step S33 and waits until data is received from the AP server 300. When the received data is a score master file update completion notification (step S34 / YES), the control unit 210 notifies the client terminal 100 of a score master file update completion notification (step S35).

次に、WEBサーバ200から点数マスタファイルの更新要求を受信したAPサーバ300の処理手順を図21に示すフローチャートを参照しながら説明する。
APサーバ300の制御部310は、WEBサーバ200から点数マスタファイルの更新要求を受信すると(ステップS41)、点数マスタファイルの更新要求に付加された保険点数情報をDBサーバ400に送ってDBサーバ400に登録する。DBサーバ400に送られた保険点数情報は、DBサーバ400の記憶する点数マスタファイルに登録される(ステップS42)。また、制御部310は、WEBサーバ200から更新要求を受信した時刻を、DBサーバ400に登録した保険点数情報の更新日時とし、この時刻をDBサーバ400に登録する(ステップS42)。保険点数情報のDBサーバ400への登録が完了すると、制御部310は、WEBサーバ200に点数マスタファイルの更新完了通知を送信する(ステップS43)。
Next, the processing procedure of the AP server 300 that has received the score master file update request from the WEB server 200 will be described with reference to the flowchart shown in FIG.
When receiving the score master file update request from the WEB server 200 (step S41), the control unit 310 of the AP server 300 sends the insurance score information added to the score master file update request to the DB server 400 and sends it to the DB server 400. Register with. The insurance score information sent to the DB server 400 is registered in the score master file stored in the DB server 400 (step S42). The control unit 310 sets the time when the update request is received from the WEB server 200 as the update date and time of the insurance score information registered in the DB server 400, and registers this time in the DB server 400 (step S42). When registration of the insurance score information in the DB server 400 is completed, the control unit 310 transmits a score master file update completion notification to the WEB server 200 (step S43).

次に、DBサーバ400から保険点数情報を取得して、WEBサーバ200のWEB点数ファイルを更新する手順を図22に示すフローチャートを参照しながら説明する。
WEBサーバ200の制御部210は、クライアント端末100から保険点数情報の取込み指示を受信すると(ステップS51/YES)、HDD250に記憶したWEB点数ファイルから更新日時を取得する(ステップS52)。制御部210は、WEB点数ファイルに登録された保険点数情報のうち、更新日時が最も新しい保険点数情報を選択し、選択した保険点数情報の更新日時を取得する(ステップS52)。次に、制御部210は、保険点数情報の取得要求に、取得した更新日時を付加してAPサーバ300に送信する(ステップS53)。その後、制御部210は、APサーバ300からの応答があるまで待機する(ステップS54)。APサーバ300からデータを受信すると(ステップS54/YES)、制御部210は、受信したデータに保険点数情報が含まれるか否かを判定する(ステップS55)。APサーバ300は、WEBサーバ200から取得した更新日時よりも更新日時が新しい保険点数情報がDBサーバ400の点数マスタファイルに登録されていない場合、WEBサーバ200に保険点数情報を送信しない。この場合、APサーバ300は、WEBサーバ200に、WEBサーバ200のWEB点数ファイルは最新の状態である旨を通知する。また、APサーバ300は、WEBサーバ200から取得した更新日時よりも更新日時が新しい保険点数情報がDBサーバ400の点数マスタファイルに登録されている場合、該当する保険点数情報をDBサーバ400から取得する。APサーバ300は、DBサーバ400から取得した保険点数情報をWEBサーバ200に送信する。
制御部210は、APサーバ300から保険点数情報を受信しなかった場合(ステップS55/NO)、受信したデータに、WEB点数ファイルは最新の状態である旨の通知が含まれるか否かを判定する(ステップS56)。制御部210は、WEB点数ファイルは最新の状態である旨の通知を受信すると(ステップS56/YES)、この処理を終了する。また、制御部210は、APサーバ300から保険点数情報を受信した場合(ステップS55/YES)、受信した保険点数情報をHDD250に記憶したWEB点数ファイルに登録する(ステップS57)。
Next, a procedure for acquiring insurance score information from the DB server 400 and updating the WEB score file of the WEB server 200 will be described with reference to the flowchart shown in FIG.
When receiving the insurance score information take-in instruction from the client terminal 100 (step S51 / YES), the control unit 210 of the WEB server 200 acquires the update date and time from the WEB score file stored in the HDD 250 (step S52). The control unit 210 selects the insurance score information with the latest update date and time from the insurance score information registered in the WEB score file, and acquires the update date and time of the selected insurance score information (step S52). Next, the control unit 210 adds the acquired update date and time to the insurance score information acquisition request and transmits it to the AP server 300 (step S53). Thereafter, the control unit 210 waits until a response is received from the AP server 300 (step S54). When data is received from the AP server 300 (step S54 / YES), the control unit 210 determines whether the received data includes insurance score information (step S55). The AP server 300 does not transmit the insurance score information to the WEB server 200 when the insurance score information whose update date is newer than the update date acquired from the WEB server 200 is not registered in the score master file of the DB server 400. In this case, the AP server 300 notifies the WEB server 200 that the WEB score file of the WEB server 200 is in the latest state. In addition, the AP server 300 acquires the corresponding insurance score information from the DB server 400 when the insurance score information whose update date is newer than the update date acquired from the WEB server 200 is registered in the score master file of the DB server 400. To do. The AP server 300 transmits the insurance point information acquired from the DB server 400 to the WEB server 200.
When the insurance point information is not received from the AP server 300 (step S55 / NO), the control unit 210 determines whether or not the received data includes a notification that the WEB score file is the latest state. (Step S56). When the control unit 210 receives a notification that the WEB score file is in the latest state (step S56 / YES), the process ends. Further, when the insurance point information is received from the AP server 300 (step S55 / YES), the control unit 210 registers the received insurance point information in the WEB score file stored in the HDD 250 (step S57).

次に、WEBサーバ200から保険点数情報の取得要求を受信したAPサーバ300の処理手順を図23に示すフローチャートを参照しながら説明する。
WEBサーバ200から保険点数情報の取得要求と、更新日時とを受信すると(ステップS61)、APサーバ300の制御部310は、受信した取得要求と更新日時とをDBサーバ400に送信する(ステップS62)。DBサーバ400は、APサーバ300から保険点数情報の取得要求を受信すると、APサーバ300から受信した更新日時よりも更新日時が新しい保険点数情報が点数マスタファイルに登録されているか否かを判定する。DBサーバ400は、受信した更新日時よりも新しい保険点数情報が点数マスタファイルに登録されている場合には、該当する保険点数情報を取得してAPサーバ300に送信する。また、DBサーバ400は、受信した更新日時よりも新しい保険点数情報が登録されていない場合には、その旨をAPサーバ300に通知する。
制御部310は、DBサーバ400から保険点数情報を受信した場合には(ステップS63/YES)、受信した保険点数情報をWEBサーバ200に送信する(ステップS64)。また、制御部310は、DBサーバ400から保険点数情報を受信することができなかった場合には(ステップS63/NO)、WEBサーバの点数マスタファイルは最新の状態である旨をWEBサーバ200に通知する(ステップS65)。
Next, the processing procedure of the AP server 300 that has received the insurance score information acquisition request from the WEB server 200 will be described with reference to the flowchart shown in FIG.
When the insurance score information acquisition request and update date / time are received from the WEB server 200 (step S61), the control unit 310 of the AP server 300 transmits the received acquisition request and update date / time to the DB server 400 (step S62). ). When the DB server 400 receives the insurance score information acquisition request from the AP server 300, the DB server 400 determines whether or not the insurance score information whose update date is newer than the update date received from the AP server 300 is registered in the score master file. . When the insurance point information that is newer than the received update date / time is registered in the score master file, the DB server 400 acquires the corresponding insurance point information and transmits it to the AP server 300. Further, when insurance point information newer than the received update date / time is not registered, the DB server 400 notifies the AP server 300 to that effect.
When the insurance point information is received from the DB server 400 (step S63 / YES), the control unit 310 transmits the received insurance point information to the WEB server 200 (step S64). If the control unit 310 cannot receive the insurance score information from the DB server 400 (step S63 / NO), the control unit 310 informs the WEB server 200 that the score master file of the WEB server is in the latest state. Notification is made (step S65).

次に、クライアント端末100から同期処理の指示を受信した場合のWEBサーバ200の処理手順について図24に示すフローチャートを参照しながら説明する。
WEBサーバ200の制御部210は、クライアント端末100から同期処理の指示を受信すると(ステップS71/YES)、更新日時管理装置500に各WEBサーバ200のIPアドレスの取得要求を送信する(ステップS72)。制御部210は、更新日時管理装置500から各WEBサーバ200のIPアドレスを受信すると(ステップS73/YES)、自身のIPアドレスと、他のWEBサーバ200のIPアドレスとを比較する(ステップS74)。制御部210は、取得したIPアドレスのなかから自身のIPアドレスを取得し、自身のIPアドレスの値が他のIPアドレスよりも小さいか否かを判定する(ステップS74)。自身のIPアドレスが最も値の小さいアドレスではないと判定すると(ステップS74/NO)、制御部210は、自身のIPアドレスよりも値の小さいWEBサーバ200にpingコマンドを送信する(ステップS75)。そして、制御部210は、pingコマンドを送信したWEBサーバ200から応答を受信したか否かを判定する(ステップS76)。pingコマンドを送信したWEBサーバ200からの応答を受信した場合(ステップS76/YES)、制御部210は、この処理を終了する。また、pingコマンドを送信したWEBサーバ200からの応答を受信できなかった場合(ステップS76/NO)、制御部210は、ステップS77の処理に移行する。また、自身のIPアドレスが最も値の小さいアドレスであると判定した場合も(ステップS74/YES)、制御部210は、ステップS77の処理に移行する。ステップS77では、制御部210は、取得したIPアドレスを使用して他のWEBサーバ200との通信を行う。制御部210は、他のWEBサーバ200に、他のWEBサーバ200の記憶する保険点数情報のうち、更新日時が最も新しい保険点数情報の更新日時を送信するように要求する(ステップS77)。すべてのWEBサーバ200から更新日時を取得すると(ステップS78/YES)、制御部210は、取得した更新日時のうち、日時が最も古い更新日時を、更新日時管理装置500に記憶させる更新日時として選択する(ステップS79)。制御部210は、選択した更新日時を更新日時管理装置500に送り、更新日時管理装置500に記憶させる(ステップS80)。
Next, the processing procedure of the WEB server 200 when an instruction for synchronization processing is received from the client terminal 100 will be described with reference to the flowchart shown in FIG.
When receiving the synchronization processing instruction from the client terminal 100 (step S71 / YES), the control unit 210 of the WEB server 200 transmits an acquisition request for the IP address of each WEB server 200 to the update date and time management apparatus 500 (step S72). . When the control unit 210 receives the IP address of each WEB server 200 from the update date and time management apparatus 500 (step S73 / YES), it compares its own IP address with the IP address of another WEB server 200 (step S74). . The control unit 210 acquires its own IP address from the acquired IP addresses, and determines whether or not the value of its own IP address is smaller than other IP addresses (step S74). If it is determined that its own IP address is not the smallest address (step S74 / NO), the control unit 210 transmits a ping command to the WEB server 200 having a smaller value than its own IP address (step S75). And the control part 210 determines whether the response was received from the WEB server 200 which transmitted the ping command (step S76). When the response from the WEB server 200 that has transmitted the ping command is received (step S76 / YES), the control unit 210 ends this process. If the response from the WEB server 200 that transmitted the ping command cannot be received (step S76 / NO), the control unit 210 proceeds to the process of step S77. Also, when it is determined that its own IP address is the address with the smallest value (step S74 / YES), the control unit 210 proceeds to the process of step S77. In step S77, the control unit 210 performs communication with another WEB server 200 using the acquired IP address. The control unit 210 requests the other WEB server 200 to transmit the update date and time of the insurance score information with the latest update date and time among the insurance score information stored in the other WEB server 200 (step S77). When the update date / time is acquired from all the WEB servers 200 (step S78 / YES), the control unit 210 selects the update date / time having the oldest date / time as the update date / time to be stored in the update date / time management apparatus 500. (Step S79). The control unit 210 sends the selected update date / time to the update date / time management apparatus 500 and stores it in the update date / time management apparatus 500 (step S80).

以上、詳細に説明したように本実施形態は、WEBサーバ200が、他の各WEBサーバ200から、各WEBサーバ200の記憶する保険点数情報のうち、更新日時が最新の保険点数情報の更新日時を取得する。そして、取得した更新日時情報のうち、更新日時が最も古い更新日時をWEBサーバ200に保険点数の計算に使用させる保険点数情報として選択する。このため、他のWEBサーバ200に記憶されていない更新日時の保険点数情報を使用して保険点数を計算してしまうことがなく、各WEBサーバ200が保険点数の計算に使用する保険点数情報の更新日時を揃えることができる。従って、複数のWEBサーバ200間で、各WEBサーバ200が処理に使用するデータを同期させることができる。   As described above in detail, in the present embodiment, the WEB server 200 updates the update date / time of the latest insurance score information from the other WEB servers 200 among the insurance score information stored in each WEB server 200. To get. Then, of the acquired update date and time information, the update date and time with the oldest update date and time is selected as the insurance point information to be used by the WEB server 200 for calculating the insurance points. For this reason, the insurance score is not calculated using the insurance date information of the update date and time that is not stored in the other WEB servers 200, and the insurance score information used by each WEB server 200 to calculate the insurance score Update date and time can be aligned. Therefore, the data used by each WEB server 200 for processing can be synchronized among the plurality of WEB servers 200.

例えば、WEBサーバ200、APサーバ300及びDBサーバ400といった複数のサーバ間で、分散トランザクション制御により、DBサーバ400の記憶する点数マスタファイルを同期させる場合を考える。この場合、トランザクションの制御が複雑となり、また、分散トランザクション制御を実現するためのシステムを作成するためのコストがかかる。これに対して本実施形態は、各WEBサーバ200がDBサーバ400から取得済みの保険点数情報のうち、最新のものを選択して、選択した保険点数情報の更新日時を更新日時管理装置500に記憶させる構成を採用している。従って、複雑な制御を必要とせず、各WEBサーバ200が処理に使用するデータを同期させることができる。   For example, consider a case where the score master file stored in the DB server 400 is synchronized among a plurality of servers such as the WEB server 200, the AP server 300, and the DB server 400 by distributed transaction control. In this case, the control of the transaction becomes complicated, and the cost for creating a system for realizing the distributed transaction control is increased. On the other hand, in the present embodiment, the WEB server 200 selects the latest information from the insurance score information acquired from the DB server 400, and updates the update date and time of the selected insurance score information to the update date and time management apparatus 500. The structure to memorize is adopted. Therefore, it is possible to synchronize data used by each WEB server 200 for processing without requiring complicated control.

また、どのサーバからもアクセスが可能な更新日時管理装置500に更新日時情報を記憶させておき、保険点数の計算の際には、WEBサーバ200に更新日時情報を更新日時管理装置から取得させる。従って、複数のWEBサーバ200間で、各WEBサーバ200が処理に使用するデータを同期させることができる。   Also, update date information is stored in the update date management device 500 that can be accessed from any server, and when calculating the insurance score, the WEB server 200 is made to acquire the update date information from the update date management device. Therefore, the data used by each WEB server 200 for processing can be synchronized among the plurality of WEB servers 200.

また、WEBサーバ200が、更新日時管理装置に、更新日時情報が登録されているか否かを問い合わせ、更新日時情報が登録されていない場合に、前述のように各WEBサーバ200に保険点数情報の取得要求を送信する。取得要求を受け付けた他のWEBサーバ200は、各WEBサーバ200の記憶する保険点数情報のうち、更新日時が最新の保険点数情報の更新日時を取得要求を受け付けたWEBサーバ200に送る。従って、更新日時管理装置に更新日時情報が登録されていない場合に、更新日時管理装置に更新日時情報を登録することができる。   Further, the WEB server 200 inquires of the update date / time management apparatus whether or not the update date / time information is registered. If the update date / time information is not registered, the WEB server 200 stores the insurance point information as described above. Send an acquisition request. The other WEB server 200 that has received the acquisition request sends the update date / time of the insurance score information with the latest update date / time among the insurance score information stored in each WEB server 200 to the WEB server 200 that has received the acquisition request. Therefore, when the update date / time information is not registered in the update date / time management apparatus, the update date / time information can be registered in the update date / time management apparatus.

上述した実施形態は、本発明の好適な実施の形態である。但し、これに限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変形実施が可能である。例えば、上述した実施形態では、更新日時情報を記憶する更新日時管理装置500をWEBサーバ200やAPサーバ300とは別に設ける構成としていた。これ以外に、更新日時情報を記憶するWEBサーバ200又はAPサーバ300を事前に設定しておいて、設定したWEBサーバ200又はAPサーバ300に更新日時情報を記憶させるものであってもよい。   The above-described embodiment is a preferred embodiment of the present invention. However, the present invention is not limited to this, and various modifications can be made without departing from the scope of the present invention. For example, in the above-described embodiment, the update date and time management apparatus 500 that stores the update date and time information is provided separately from the WEB server 200 and the AP server 300. In addition, the WEB server 200 or AP server 300 that stores the update date / time information may be set in advance, and the update date / time information may be stored in the set WEB server 200 or AP server 300.

また、上述した実施形態では、保険点数情報を登録した点数マスタファイルを例に説明した。これ以外に、システム制御情報を登録した共通マスタファイルについても点数マスタファイルと同様に処理することができる。例えば、患者の年齢に応じて設定された入院基本料計算条件や、IDカードを発行するか否かを設定したIDカード発行条件等の情報が共通マスタファイルに登録される。   Moreover, in embodiment mentioned above, the score master file which registered insurance score information was demonstrated to the example. In addition to this, the common master file in which the system control information is registered can be processed in the same manner as the score master file. For example, information such as basic hospitalization fee calculation conditions set according to the age of the patient and ID card issuance conditions for setting whether or not to issue an ID card is registered in the common master file.

なお、以上の説明に関して更に以下の付記を開示する。
(付記1) 複数のサーバから、各サーバの記憶するデータのうち、更新日時が最も新しいデータの更新日時情報を取得し、取得した更新日時情報のなかから、更新日時が最も古い更新日時情報を選択して、選択した前記更新日時情報に対応するデータを、前記複数のサーバで処理に使用するデータに決定し、前記決定したデータの前記更新日時情報を出力する処理をコンピュータに実行させることを特徴とするプログラム。
(付記2) 前記出力する処理は、前記決定したデータの更新日時情報を記憶し、サーバからの要求により、該要求のあったサーバに前記更新日時情報を送信する管理装置に、前記決定したデータの更新日時情報を送信する処理であることを特徴とする付記1記載のプログラム。
(付記3) 前記管理装置に、前記更新日時情報が記憶されているか否かを問い合わせ、前記管理装置に前記更新日時情報が記憶されていない場合に、前記複数のサーバに、前記更新日時が最も新しいデータの更新日時情報の取得を要求することを特徴とする付記2記載のプログラム。
(付記4) 複数のサーバから、各サーバの記憶するデータのうち、更新日時が最も新しいデータの更新日時情報を取得するステップと、
前記取得するステップで取得した更新日時情報のなかから、更新日時が最も古い更新日時情報を選択して、選択した前記更新日時情報に対応するデータを、前記複数のサーバで処理に使用するデータに決定するステップと、
前記決定したデータの前記更新日時情報を出力するステップと、
を有することを特徴とするデータ同期方法。
(付記5) 前記出力するステップは、前記決定したデータの更新日時情報を記憶し、サーバからの要求により、該要求のあったサーバに前記更新日時情報を送信する管理装置に、前記決定したデータの更新日時情報を送信する処理であることを特徴とする付記4記載のデータ同期方法。
(付記6) 前記管理装置に、前記更新日時情報が記憶されているか否かを問い合わせ、前記管理装置に前記更新日時情報が記憶されていない場合に、前記複数のサーバに、前記更新日時が最も新しいデータの更新日時情報の取得を要求するステップを有することを特徴とする付記5記載のデータ同期方法。
(付記7) 複数のサーバから、各サーバの記憶するデータのうち、更新日時が最も新しいデータの更新日時情報を取得する取得手段と、
前記取得手段で取得した更新日時情報のなかから、更新日時が最も古い更新日時情報を選択して、選択した前記更新日時情報に対応するデータを、前記複数のサーバで処理に使用するデータに決定する選択手段と、
前記決定したデータの前記更新日時情報を出力する出力手段と、
を備えることを特徴とするデータ同期装置。
(付記8) 前記出力手段は、前記決定したデータの更新日時情報を記憶し、サーバからの要求により、該要求のあったサーバに前記更新日時情報を送信する管理装置に、前記決定したデータの更新日時情報を送信する手段であることを特徴とする付記7記載のデータ同期装置。
(付記9) 前記取得手段は、前記管理装置に、前記更新日時情報が記憶されているか否かを問い合わせ、前記管理装置に前記更新日時情報が記憶されていない場合に、前記複数のサーバに、前記更新日時が最も新しいデータの更新日時情報の取得を要求することを特徴とする付記8記載のデータ同期装置。
In addition, the following additional notes are disclosed regarding the above description.
(Supplementary Note 1) Of the data stored in each server, the update date / time information of the latest update date / time is acquired from a plurality of servers, and the update date / time information having the oldest update date / time is obtained from the acquired update date / time information. And selecting the data corresponding to the selected update date / time information as data to be used for processing by the plurality of servers, and causing the computer to execute a process of outputting the update date / time information of the determined data. A featured program.
(Additional remark 2) The said output process memorize | stores the update date information of the said determined data, and the determined data is transmitted to the management apparatus which transmits the said update date information to the server which requested | required according to the request | requirement from a server The program according to appendix 1, wherein the update date / time information is transmitted.
(Supplementary Note 3) The management device is inquired as to whether or not the update date / time information is stored. When the update date / time information is not stored in the management device, the plurality of servers have the update date / time most recently. The program according to appendix 2, which requests acquisition of update date / time information of new data.
(Additional remark 4) The step which acquires the update date information of the data with the newest update date among the data which each server memorize | stores from several servers,
The update date / time information having the oldest update date / time information is selected from the update date / time information acquired in the acquiring step, and the data corresponding to the selected update date / time information is used as data to be used for processing by the plurality of servers. The steps to decide;
Outputting the update date and time information of the determined data;
A data synchronization method comprising:
(Additional remark 5) The said output step memorize | stores the update date information of the said determined data, and the determined data is transmitted to the management apparatus which transmits the said update date information to the server which requested | required by the request | requirement from a server The data synchronization method according to appendix 4, wherein the update date / time information is transmitted.
(Supplementary Note 6) The management apparatus is inquired whether the update date / time information is stored, and when the update date / time information is not stored in the management apparatus, the plurality of servers have the update date / time most recently. The data synchronization method according to appendix 5, further comprising a step of requesting acquisition of update date / time information of new data.
(Additional remark 7) The acquisition means which acquires the update date information of the data with the newest update date among the data which each server memorize | stores from several servers,
The update date / time information having the oldest update date / time is selected from the update date / time information acquired by the acquisition unit, and the data corresponding to the selected update date / time information is determined as data to be used for processing by the plurality of servers. Selection means to
Output means for outputting the update date and time information of the determined data;
A data synchronizer comprising:
(Supplementary Note 8) The output means stores the update date / time information of the determined data, and sends a request to the management device that transmits the update date / time information to the server that requested the request. The data synchronizer according to appendix 7, wherein the data synchronizer is means for transmitting update date information.
(Additional remark 9) The said acquisition means inquires about whether the said update date information is memorize | stored in the said management apparatus, and when the said update date information is not memorize | stored in the said management apparatus, in these servers, 9. The data synchronization apparatus according to appendix 8, wherein acquisition of update date / time information of data having the latest update date / time is requested.

100 クライアント端末
200 WEBサーバ
300 APサーバ
400 DBサーバ
500 更新日時管理装置
110、210、310 制御部
271、371 入力部
272、372 要求解析部
273 更新要求部
274、374 データ取得部
275、375 点数計算処理部
276、376 出力部
373 更新処理部
DESCRIPTION OF SYMBOLS 100 Client terminal 200 WEB server 300 AP server 400 DB server 500 Update date management apparatus 110, 210, 310 Control part 271, 371 Input part 272, 372 Request analysis part 273 Update request part 274, 374 Data acquisition part 275, 375 Score calculation Processing unit 276, 376 Output unit 373 Update processing unit

Claims (5)

管理装置が記憶する更新日時情報に対応するデータを処理に使用する複数のサーバから、各サーバの記憶するデータのうち、更新日時が最も新しいデータの更新日時情報を取得し、取得した更新日時情報のなかから、更新日時が最も古い更新日時情報を選択して、選択した前記更新日時情報に対応するデータを、前記複数のサーバで処理に使用するデータに決定し、前記決定したデータの前記更新日時情報を前記管理装置に出力する処理をコンピュータに実行させることを特徴とするプログラム。 The update date / time information of the data with the latest update date / time is acquired from a plurality of servers that use the data corresponding to the update date / time information stored in the management device for processing. The update date / time information having the oldest update date / time is selected from among the data, the data corresponding to the selected update date / time information is determined as data to be used for processing by the plurality of servers, and the update of the determined data is performed. A program for causing a computer to execute processing for outputting date information to the management device . 前記出力する処理は、前記決定したデータの更新日時情報を記憶し、サーバからの要求により、該要求のあったサーバに前記更新日時情報を送信する前記管理装置に、前記決定したデータの更新日時情報を送信する処理であることを特徴とする請求項1記載のプログラム。 Processing of the output stores update date information of the data the determined, by request from the server, to the management apparatus for transmitting the update date information to the server for which the said request, Modified data the determined The program according to claim 1, wherein the program is a process of transmitting information. 前記管理装置に、前記更新日時情報が記憶されているか否かを問い合わせ、前記管理装置に前記更新日時情報が記憶されていない場合に、前記複数のサーバに、前記更新日時が最も新しいデータの更新日時情報の取得を要求することを特徴とする請求項2記載のプログラム。   An inquiry is made to the management device as to whether or not the update date / time information is stored. When the update date / time information is not stored in the management device, the plurality of servers update the data with the latest update date / time. 3. The program according to claim 2, wherein acquisition of date / time information is requested. 管理装置が記憶する更新日時情報に対応するデータを処理に使用する複数のサーバから、各サーバの記憶するデータのうち、更新日時が最も新しいデータの更新日時情報を取得するステップと、
前記取得するステップで取得した更新日時情報のなかから、更新日時が最も古い更新日時情報を選択して、選択した前記更新日時情報に対応するデータを、前記複数のサーバで処理に使用するデータに決定するステップと、
前記決定したデータの前記更新日時情報を前記管理装置に出力するステップと、
を有することを特徴とするデータ同期方法。
Obtaining update date / time information of the latest update date / time among the data stored in each server from a plurality of servers that use the data corresponding to the update date / time information stored in the management device ; and
The update date / time information having the oldest update date / time information is selected from the update date / time information acquired in the acquiring step, and the data corresponding to the selected update date / time information is used as data to be used for processing by the plurality of servers. A step to determine;
Outputting the update date and time information of the determined data to the management device ;
A data synchronization method comprising:
管理装置が記憶する更新日時情報に対応するデータを処理に使用する複数のサーバから、各サーバの記憶するデータのうち、更新日時が最も新しいデータの更新日時情報を取得する取得手段と、
前記取得手段で取得した更新日時情報のなかから、更新日時が最も古い更新日時情報を選択して、選択した前記更新日時情報に対応するデータを、前記複数のサーバで処理に使用するデータに決定する選択手段と、
前記決定したデータの前記更新日時情報を前記管理装置に出力する出力手段と、
を備えることを特徴とするデータ同期装置。
An acquisition means for acquiring update date / time information of data having the latest update date / time from a plurality of servers that use data corresponding to the update date / time information stored in the management device , among the data stored in each server;
The update date / time information having the oldest update date / time is selected from the update date / time information acquired by the acquisition unit, and the data corresponding to the selected update date / time information is determined as data to be used for processing by the plurality of servers. Selection means to
Output means for outputting the update date and time information of the determined data to the management device ;
A data synchronizer comprising:
JP2013119145A 2013-06-05 2013-06-05 Program, data synchronization method, and data synchronization apparatus Active JP6236888B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013119145A JP6236888B2 (en) 2013-06-05 2013-06-05 Program, data synchronization method, and data synchronization apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013119145A JP6236888B2 (en) 2013-06-05 2013-06-05 Program, data synchronization method, and data synchronization apparatus

Publications (2)

Publication Number Publication Date
JP2014235712A JP2014235712A (en) 2014-12-15
JP6236888B2 true JP6236888B2 (en) 2017-11-29

Family

ID=52138330

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013119145A Active JP6236888B2 (en) 2013-06-05 2013-06-05 Program, data synchronization method, and data synchronization apparatus

Country Status (1)

Country Link
JP (1) JP6236888B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002189622A (en) * 2000-12-21 2002-07-05 Nec Corp System and method for distributing updated data, and recording medium
JP2003271481A (en) * 2002-03-12 2003-09-26 Seiko Epson Corp Terminal standardization processing system, terminal standardization processing method, and terminal standardization processing program
WO2009107184A1 (en) * 2008-02-25 2009-09-03 株式会社富士通エフサス Method for processing replication, program for processing replication, and device for processing replication
GB0920644D0 (en) * 2009-11-25 2010-01-13 Geniedb System for improved record consistency and availability

Also Published As

Publication number Publication date
JP2014235712A (en) 2014-12-15

Similar Documents

Publication Publication Date Title
KR101292632B1 (en) Method of recommending content, method of creating recommendation information, computer-readable medium storing content recommendation program, content recommendation server, and content-providing system
JP6152289B2 (en) Information processing apparatus, terminal system, information processing program, and application update data acquisition method
CN103098024A (en) Memebership tracking and data eviction in mobile middleware scenarios
JP2011164704A (en) Client program, terminal, server device, system, and method
US9460179B1 (en) Systems and methods for providing adaptive visualization of synchronization of multiple files
JP6236888B2 (en) Program, data synchronization method, and data synchronization apparatus
JP4823761B2 (en) Management device, terminal device, communication system, synchronization management method, and program
JP6471479B2 (en) Test pattern creation program, test pattern creation method and test pattern creation device
JP2010224645A (en) Method and apparatus for display control of medical examination information, and program
JP5417930B2 (en) Electronic medical record input support program, electronic medical record input support method, and electronic medical record input support device
JP4861865B2 (en) Access result feedback program, recording medium, access result feedback method, access result feedback device, and terminal device
JP2007004301A (en) Computer, data processing method, program and communication method
JP6358049B2 (en) Local storage synchronization method, local storage synchronization apparatus, and local storage synchronization program
JP2010003051A (en) Document information processor and program
JP5370552B2 (en) Image processing apparatus and program
JP2009110358A (en) Electric appliance, image display controlling method, and image display controlling program
JP2014215935A (en) Information processing method, device, and program
JP2015200980A (en) Verification assistance program, verification assistance method, and verification assistance device
JP2018195039A (en) Data communication system and data processing device
JP5811869B2 (en) Master management program, master management method, and master management apparatus
JP6566828B2 (en) Screen display system for plant monitoring and inspection
JP7085311B2 (en) Information processing equipment, information processing system, information processing method, information processing program
JP6035192B2 (en) Information processing apparatus, terminal system, information processing program, and application update data acquisition method
JP2017083948A (en) Examination request information generation device and examination request information generation method
JP5655915B2 (en) Image processing apparatus and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160310

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170314

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170510

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20171003

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20171016

R150 Certificate of patent or registration of utility model

Ref document number: 6236888

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150