CN112786188A - Offline working method and device of auxiliary diagnosis system, terminal equipment and medium - Google Patents

Offline working method and device of auxiliary diagnosis system, terminal equipment and medium Download PDF

Info

Publication number
CN112786188A
CN112786188A CN202110164433.0A CN202110164433A CN112786188A CN 112786188 A CN112786188 A CN 112786188A CN 202110164433 A CN202110164433 A CN 202110164433A CN 112786188 A CN112786188 A CN 112786188A
Authority
CN
China
Prior art keywords
offline
data
prescription
network
network state
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.)
Pending
Application number
CN202110164433.0A
Other languages
Chinese (zh)
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.)
Beijing Zhiwei Health Information Technology Co ltd
Original Assignee
Beijing Zhiwei Health Information Technology Co 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 Beijing Zhiwei Health Information Technology Co ltd filed Critical Beijing Zhiwei Health Information Technology Co ltd
Priority to CN202110164433.0A priority Critical patent/CN112786188A/en
Publication of CN112786188A publication Critical patent/CN112786188A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H40/00ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices
    • G16H40/60ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the operation of medical equipment or devices
    • G16H40/67ICT specially adapted for the management or administration of healthcare resources or facilities; ICT specially adapted for the management or operation of medical equipment or devices for the operation of medical equipment or devices for remote operation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • G06F16/275Synchronous replication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16HHEALTHCARE INFORMATICS, i.e. INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR THE HANDLING OR PROCESSING OF MEDICAL OR HEALTHCARE DATA
    • G16H20/00ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance
    • G16H20/10ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to drugs or medications, e.g. for ensuring correct administration to patients

Abstract

The invention discloses an offline working method and device of an auxiliary diagnosis system, terminal equipment and a medium. Wherein, the method comprises the following steps: when the network state meets a first preset condition, starting an offline working mode and acquiring local cache data; generating offline data in response to the operation information of the local cache data, and respectively storing the offline data according to the category and the generation time of the offline data; and when the network state meets a second preset condition, synchronizing the offline data to the server according to the category and the generation time of the offline data respectively, and exiting the offline working mode. According to the technical scheme of the embodiment of the invention, the diagnosis service is carried out based on the local cache data in the offline working mode, and the offline data corresponding to the diagnosis service is uploaded to the server after the network is recovered, so that the condition that the network state is poor or the network is disconnected has great influence on the normal work of the auxiliary diagnosis system can be avoided, and the effect of supporting the normal work of the auxiliary diagnosis system in the offline state is realized.

Description

Offline working method and device of auxiliary diagnosis system, terminal equipment and medium
Technical Field
The embodiment of the invention relates to computer technology, in particular to an offline working method and device of an auxiliary diagnosis system, terminal equipment and a medium.
Background
At present, some clinics realize functions of online diagnosis, online prescription and the like through an auxiliary diagnosis system, and are convenient for doctors to see a doctor, prescribe a prescription and the like.
However, such an auxiliary diagnostic system often depends on a network to enable connection between the client and the cloud server. If the network state is not good or the network is disconnected, the normal work of the auxiliary diagnosis system is greatly influenced, and even the normal operation of a doctor in a clinic is influenced.
Disclosure of Invention
The invention provides an offline working method, an offline working device, terminal equipment and a medium of an auxiliary diagnosis system, which can reduce the influence of poor network state or network disconnection on the auxiliary diagnosis system.
In a first aspect, an embodiment of the present invention provides an offline working method of an auxiliary diagnostic system, including:
when the network state meets a first preset condition, starting an offline working mode to acquire local cache data, wherein the offline working mode is a working mode which is not in communication connection with a server, and the first preset condition is a condition which represents that the network state is abnormal;
responding to the operation information of the local cache data to generate offline data, and respectively storing the offline data according to the category and the generation time of the offline data;
and when the network state meets a second preset condition, synchronizing the offline data to the server according to the category and the generation time of the offline data, and exiting the offline working mode, wherein the second preset condition is a condition indicating that the network state is normal.
In a second aspect, an embodiment of the present invention further provides an offline operating apparatus for assisting a diagnostic system, where the apparatus includes:
the system comprises an offline mode starting module, a local cache data acquisition module and a local cache data acquisition module, wherein the offline mode starting module is used for starting an offline working mode to acquire local cache data when a network state meets a first preset condition, the offline working mode is a working mode which is not in communication connection with a server, and the first preset condition is a condition which represents that the network state is abnormal;
the offline data storage module is used for responding to the operation information of the local cache data to generate offline data and respectively storing the offline data according to the category and the generation time of the offline data;
and the offline data synchronization module is used for respectively synchronizing the offline data to the server according to the category and the generation time of the offline data and exiting the offline working mode when the network state meets a second preset condition, wherein the second preset condition is a condition indicating that the network state is normal.
In a third aspect, an embodiment of the present invention further provides a terminal device, where the terminal device includes:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of off-line operation of an auxiliary diagnostic system as described in any of the embodiments of the invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the offline working method of the auxiliary diagnostic system according to any embodiment of the present invention.
The embodiment of the invention provides an offline working method, an offline working device, terminal equipment and a medium of an auxiliary diagnostic system. According to the technical scheme of the embodiment of the invention, the diagnosis service is carried out based on the local cache data in the offline working mode, and the offline data corresponding to the diagnosis service is uploaded to the server after the network is recovered, so that the condition that the network state is poor or the network is disconnected has great influence on the normal work of the auxiliary diagnosis system can be avoided, and the effect of supporting the normal work of the auxiliary diagnosis system in the offline state is realized.
Drawings
Fig. 1 is a flowchart of an offline working method of an auxiliary diagnostic system according to an embodiment of the present invention;
fig. 2 is a process diagram of data synchronization in an offline working method of an auxiliary diagnostic system according to an embodiment of the present invention;
fig. 3 is a block diagram of an offline operating device of an auxiliary diagnostic system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1 is a flowchart of an offline working method of an auxiliary diagnostic system according to an embodiment of the present invention, where the embodiment is applicable to a situation where a network is disconnected or a network signal is not strong or a client is not connected to a server, and the method may be executed by an offline working apparatus of the auxiliary diagnostic system, where the apparatus may be implemented by software and/or hardware and is generally integrated in a terminal device such as a computer, a smart phone, or a personal computer. As shown in fig. 1, the method comprises the steps of:
and step 110, when the network state meets a first preset condition, starting an offline working mode and acquiring local cache data.
The first preset condition is a condition indicating that the network state is abnormal. Specifically, when the disconnection of the network is detected or the connection of the server is not possible, a first instruction of a set number of times is continuously sent, wherein the first instruction is used for detecting the network state information. A reply message corresponding to the first instruction is received. And if the reply information corresponding to each first instruction is abnormal, determining that the network state meets a first preset condition. For example, when the user cannot network or connect to the server, the system automatically detects whether the user network is normal or not from the user network environment through the command Telnet www.baidu.com 80, and if the user network fails to retry for 3 times, it is determined that the network status satisfies the first preset condition. Under the condition that a user network has no problem, if the user network fails to continuously retry for 3 times by commanding Telnet app.yunzhenshi.com.w.kunlengr.com 80, the network state is also judged to meet the first preset condition, namely the network state is also considered to meet the first preset condition under the condition that the user can network but the network signal is not strong.
The offline operating mode is an operating mode in which no communication connection is made with the server. Specifically, the offline operating mode supports a login function, a doctor-seeing and prescription-making function, a retail medicine-buying function, a patient management function, a pharmacy management function, a clinic management function and the like. After logging in the system, the user can create a new prescription, add a patient, check prescription data in the last period of time, modify, cancel the new prescription after offline, and the like. In addition, the user can print the prescription data before offline on the prescription list interface, and the prescription before offline is modified, the prescription template is clicked to enter the prescription template interface, and the like.
It should be noted that, for supporting the modification of the prescription before web offline, when the user clicks "modify" in the offline state, the pop-up box reminds the user that "you are currently in the offline state, the modified content cannot be synchronized to other account numbers, and confirm that it is to be modified? The button is 'modify' or 'not modify', if the modification is confirmed, the page is opened, otherwise, the current page is stopped. The medicine can be modified for the prescription temporarily stored/to be charged, but only the generation of a charge ticket can be temporarily stored/confirmed, the item which cannot be operated (the generation of the charge ticket, the immediate charging and the like) is in a non-clickable state by default on the page of the prescription, and the click prompts the user that the prescription state cannot be changed in an offline state.
It should be noted that, for the user, printing the prescription data before offline in the prescription list interface may further include: clicking a prescription label of a list page, and acquiring the latest state of the prescription from the local place when entering a print preview page; when the refresh page is pulled down, the latest state of the recipe is also obtained locally.
It should be noted that, after the working mode is switched to the online working mode, the prescription and retail drug selling order including the partner can be calculated to the statistical data such as the corresponding reimbursement record and statistical report of the partner. It is noted here that all prescriptions and retail drug orders in the offline state are paid offline.
And 120, responding to the operation information of the local cache data to generate offline data, and respectively storing the offline data according to the category and the generation time of the offline data.
Specifically, acquiring operation information of a user on a prescription list; when the operation information is a function supported in the offline working mode, responding to the operation information and entering an opening page; acquiring prescription related data input by a user on a prescription page, and generating a charging bill according to the prescription related data; patient information is stored in association with corresponding prescription related data, billing statements and billing status information according to category and generation time.
It should be noted that, in the offline operating mode, the prescription function is supported, including but not limited to: support for selecting or adding new patients, support for filling out chief complaints and physical examinations, support for filling out diagnoses, support for using prescription templates, support for adding medicines to prescriptions, support for modifying information (including price, quantity, usage, dosage, etc.) of added medicines, support for medical history (disease history) reminders, support for arrearage reminders, support for Chinese and western medicine switching, support for temporary saving/generating billing statements, support for immediate settlement, support for offline payments and printing, etc.
In the offline state, when the user clicks the temporary storage and generates the charge ticket, the prescription is stored locally in the terminal device.
It should be noted that, when charging is performed in an offline state, the inventory is not deducted after charging is successful, and the inventory is deducted uniformly after the network is recovered.
And step 130, when the network state meets a second preset condition, synchronizing the offline data to the server according to the category and the generation time of the offline data, and exiting the offline working mode.
Wherein the second preset condition is a condition indicating that the network state is normal. Specifically, the second instruction is periodically sent, wherein the second instruction is used for detecting the network state information. A reply message corresponding to the second instruction is received. And recording the reply information within a set time period from the moment when the reply information indicating that the network is normal is received in the case that the reply information is normal. And if the reply messages in the set time period are all normal, determining that the network state meets a second preset condition. For example, after entering the offline operating mode, every 1 minute, the system automatically determines the network status of the user and the service access condition of the server from the local location of the user through the command Telnet www.baidu.com 80 and Telnet app. And if the network is stable within 3 minutes after the user network is normal and the system access server is normal, considering that the network state meets a second preset condition.
Specifically, patient information and corresponding prescription-related data, billing statements and billing status information are synchronized to the server through a preset interface according to the category and the generation time to instruct the server to determine the billed prescription according to the billing statements and the billing status information and to perform an inventory deduction operation based on the billed prescription. Wherein, predetermine the interface and include: the system comprises an off-line unloading interface, an interface for uploading the related data of the western medicine prescription and an interface for uploading the related data of the traditional Chinese medicine prescription.
It should be noted that the offline background uses the open-source distributed service framework dubbo, so that the application can implement the output and input functions of the service through a high-performance RPC (remote Procedure Call), and the concurrence requirement of the batch service is met.
In the embodiment of the present invention, the design of the offline unloading interface includes:
1. offline data dump (saveClinicOfflineinfo)
Name of field Corresponding to the original interface field Type (B) Field description Remarks for note
postData postData String Offline data Json character string
It should be noted that: in response to the post request, success returns: an offline data serial number.
2. Offline data dump (uploadClinicOfflineinfo)
It should be noted that: in the compensation scheme when the data volume of the post request is large, json information is uploaded in a file form (uploading a file naming rule: type name + login name + device id, for example: PP _235da1_123), and after success, the following steps are returned: off-line database serial number
3. Obtaining corresponding off-line data according to serial number (getBySerialNumber)
Name of field Corresponding to the original interface field Type (B) Field description Remarks for note
serialNumber serialNumber String Offline data serial number Is free of
It should be noted that: and responding to the get request, returning the offline data corresponding to the serial number, and changing the state of the offline data into the read state when the request is made once.
4. Compensation queries, obtaining all future queries of offline data (getNotReadList)
It should be noted that: in response to the get request, the interface returns all unread offline data.
In the embodiment of the invention, the design of the interface for uploading the related data of the western medicine prescription comprises the following steps:
1. it is not verified whether the medicine is repeated.
2. And judging whether the medicine exists according to the id, if so, changing the medicine, and if not, adding the medicine.
3. Parameters are verified and assigned to the drug subject. The simple spelling of the drug name and the simple spelling for short are the generation of background tools.
4. The prescription price fluctuation table CommodityPrice adds information on medicines with fluctuating prices.
5. The product extension table clicictimodix is changed and the version number of the medicine is updated.
6. And taking the label id in the label labels, verifying whether the label exists or not, deleting the previous label, and setting a new label.
7. If the new medicine is added, an inventory record with the inventory quantity of 0 is added, and a purchase order, a purchase detail, an inventory operation record and a payment order are created.
8. When the uploaded medicines are synchronous, the medicine information is synchronously transmitted to the PC.
In the embodiment of the invention, the design of the interface for uploading the data related to the traditional Chinese medicine prescription comprises the following steps:
1. it is not verified whether the medicine is repeated.
2. And judging whether the medicine exists according to the id, if so, changing the medicine, and if not, adding the medicine.
3. Parameters are verified and assigned to the drug subject. The simple spelling of the drug name and the simple spelling for short are the generation of background tools.
4. If the traditional Chinese medicine is newly added, the stock quantity is required to be added, and the default is 0. When the medicine is modified, the inventory is not modified.
5. And taking the label id in the label labels, verifying whether the label exists or not, deleting the previous label, and setting a new label.
6. When the uploaded medicines are synchronous, medicine information is synchronized to the PC.
According to the technical scheme of the embodiment, whether the offline working mode is started is judged by detecting the network state, if the offline working mode is started, the local cache data are obtained, the offline data are generated in response to the operation information of the local cache data, the offline data are respectively stored according to the type and the generation time of the offline data, and when the network state meets a second preset condition, the offline data are respectively synchronized to the server according to the type and the generation time of the offline data, so that the normal work of the auxiliary diagnosis system is prevented from being greatly influenced by poor network state or network disconnection, and the effect of supporting the normal work of the auxiliary diagnosis system in the offline state is achieved.
On the basis of the above technical solution, exiting the offline operating mode may specifically include exiting the offline operating mode and starting the online operating mode when a handshake message sent by the server is detected. Fig. 2 is a process diagram of data synchronization in an offline working method of an auxiliary diagnostic system according to an embodiment of the present invention. As shown in fig. 2, when the system starts an offline operating mode, the client 201 obtains the local data cached in the local database 202, so as to ensure that the user can still perform the visiting service after offline. After the network is recovered and stabilized, the offline data is obtained and the masking layer is added, and then the offline data with the masking layer added is sent to the new architecture service 203. The new architecture service 203 sends the offline data to a remote Dictionary service (rdss) database 208. The new architecture service 203 sends the offline data to the message queue 204 based on the serial number of the offline data, and sends the offline data to the old background service 205 through the message queue 204 based on the serial number. The old back office service 205 synchronizes data to the back office database 206. In addition, the old back office service 205 also synchronizes data to other clients of the account. In addition, the old background service 205 also sends the data or serial number to be synchronized to the new architecture service 203. In addition, the old background service also sends the serial number to the pushing module 207, and the pushing module 207 acquires the offline data according to the serial number and pushes the offline data without the cover layer to other clients of the same account. The technical scheme solves the problem of how to not influence the diagnosis service under the condition that the user can not be connected with the network in a short time. By matching with local storage, the user can still perform the diagnosis service after offline. And after the network is recovered, sending the offline data generated by the offline service to the server through a special algorithm to complete the offline data synchronization cloud function. The cloud end ensures the consistency of multi-terminal data of the same account number through service judgment, and asynchronously completes data legalization to enter a final database. And finally, the core service and the online terminal handshake again to continue the online service processing.
According to the technical scheme, the user can still perform the diagnosis service after offline by matching with local storage. After the network is recovered, sending off-line data generated by off-line service to a server through a special algorithm to complete the synchronous cloud function of the off-line data, ensuring the consistency of multi-terminal data of the same account number through service judgment by the cloud, asynchronously completing data legalization and entering a final database, performing handshake again between core service and an on-line terminal, and continuing on-line service processing. The embodiment of the invention can meet the requirement that a user can normally carry out partial service development under the condition of short-time network disconnection or no access to the server, thereby ensuring that the core service is not greatly influenced.
Fig. 3 is a block diagram of an offline operating device of an auxiliary diagnostic system according to an embodiment of the present invention, where the offline operating device may be implemented by software and/or hardware and is generally integrated in a terminal device such as a computer, a smart phone, or a personal computer. The device reduces the influence on the auxiliary diagnosis system due to poor network state or network disconnection by executing the offline working method of the auxiliary diagnosis system. As shown in fig. 3, the apparatus includes:
an offline mode starting module 310, configured to start an offline working mode and obtain local cache data when a network state meets a first preset condition, where the offline working mode is a working mode that is not in communication connection with a server, and the first preset condition is a condition that indicates that the network state is abnormal;
an offline data saving module 320, configured to generate offline data in response to the operation information on the local cache data, and respectively save the offline data according to the category and the generation time of the offline data;
and an offline data synchronization module 330, configured to synchronize the offline data to the server according to the category and the generation time of the offline data when the network state meets a second preset condition, and exit the offline operating mode, where the second preset condition is a condition indicating that the network state is normal.
The embodiment of the invention provides an offline working device of an auxiliary diagnostic system, which judges whether an offline working mode is started or not by detecting the network state, acquires local cache data if the offline working mode is started, generates offline data in response to operation information of the local cache data, respectively stores the offline data according to the type and the generation time of the offline data, and respectively synchronizes the offline data to a server according to the type and the generation time of the offline data when the network state meets a second preset condition, so that the phenomenon that the normal work of the auxiliary diagnostic system is greatly influenced by poor network state or network disconnection is avoided, and the effect of supporting the normal work of the auxiliary diagnostic system in the offline state is realized.
Optionally, the apparatus further includes a first determining module, configured to detect whether the network state meets a first preset condition by:
when the condition that the network is disconnected or the server cannot be connected is detected, continuously sending a first instruction with set times, wherein the first instruction is used for detecting network state information;
receiving reply information corresponding to the first instruction;
and if the reply information corresponding to each first instruction is abnormal, determining that the network state meets a first preset condition.
Optionally, the apparatus further includes a second determining module, configured to detect whether the network state meets a second preset condition by:
after the offline working mode is started, periodically sending a second instruction, wherein the second instruction is used for detecting network state information;
receiving reply information corresponding to the second instruction;
recording the reply information within a set time period from the moment when the reply information indicating that the network is normal is received under the condition that the network is normal;
and if the reply messages in the set time period are all normal, determining that the network state meets a second preset condition.
Optionally, the offline data saving module 320 is specifically configured to:
acquiring operation information of a user on a prescription list, and responding to the operation information to enter a prescription page;
acquiring prescription related data input by a user on the prescription page, and generating a charging bill according to the prescription related data;
storing patient information and corresponding said prescription related data, billing statements and billing status information in association with a generation time according to a category.
Optionally, the offline data synchronization module 330 is specifically configured to:
and synchronizing the patient information and the corresponding prescription related data, the charging list and the charging state information to a server through a preset interface according to the category and the generation time so as to instruct the server to determine the charged prescription according to the charging list and the charging state information, and performing inventory deduction operation based on the charged prescription.
Optionally, the preset interface includes: the system comprises an off-line unloading interface, an interface for uploading the related data of the western medicine prescription and an interface for uploading the related data of the traditional Chinese medicine prescription.
Optionally, the offline data synchronization module 330 is further specifically configured to:
and when the handshake message sent by the server is detected, exiting the off-line working mode and starting the on-line working mode.
The offline working device of the auxiliary diagnostic system provided by the embodiment of the invention can execute the offline working method of the auxiliary diagnostic system provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present invention, as shown in fig. 4, the terminal device includes a processor 40, a memory 41, an input device 42, and an output device 43; the number of the processors 40 in the terminal device may be one or more, and one processor 40 is taken as an example in fig. 4; the processor 40, the memory 41, the input device 42 and the output device 43 in the terminal equipment may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 4.
The memory 41 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the offline operating method of the auxiliary diagnostic system in the embodiment of the present invention (for example, the offline mode starting module 310, the offline data saving module 320, and the offline data synchronization module in the offline operating device of the auxiliary diagnostic system). The processor 40 executes various functional applications and data processing of the terminal device by executing software programs, instructions and modules stored in the memory 41, that is, implements the above-described offline operation method of the auxiliary diagnostic system.
The memory 41 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 41 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 41 may further include memory located remotely from processor 40, which may be connected to the terminal device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 42 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. The output device 43 may include a display device such as a display screen.
Embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method of off-line operation of an auxiliary diagnostic system, the method comprising:
when the network state meets a first preset condition, starting an offline working mode to acquire local cache data, wherein the offline working mode is a working mode which is not in communication connection with a server, and the first preset condition is a condition which represents that the network state is abnormal;
responding to the operation information of the local cache data to generate offline data, and respectively storing the offline data according to the category and the generation time of the offline data;
and when the network state meets a second preset condition, synchronizing the offline data to the server according to the category and the generation time of the offline data, and exiting the offline working mode, wherein the second preset condition is a condition indicating that the network state is normal.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the offline working method of the auxiliary diagnostic system provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the offline operating device of the auxiliary diagnostic system, the included units and modules are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. An off-line method of assisting diagnostic system, comprising:
when the network state meets a first preset condition, starting an offline working mode to acquire local cache data, wherein the offline working mode is a working mode which is not in communication connection with a server, and the first preset condition is a condition which represents that the network state is abnormal;
responding to the operation information of the local cache data to generate offline data, and respectively storing the offline data according to the category and the generation time of the offline data;
and when the network state meets a second preset condition, synchronizing the offline data to the server according to the category and the generation time of the offline data, and exiting the offline working mode, wherein the second preset condition is a condition indicating that the network state is normal.
2. The method of claim 1, further comprising detecting whether the network status satisfies a first predetermined condition by:
when the condition that the network is disconnected or the server cannot be connected is detected, continuously sending a first instruction with set times, wherein the first instruction is used for detecting network state information;
receiving reply information corresponding to the first instruction;
and if the reply information corresponding to each first instruction is abnormal, determining that the network state meets a first preset condition.
3. The method of claim 1, further comprising, after initiating the offline operating mode, detecting whether the network status satisfies a second predetermined condition by:
periodically sending a second instruction, wherein the second instruction is used for detecting network state information;
receiving reply information corresponding to the second instruction;
recording the reply information within a set time period from the moment when the reply information indicating that the network is normal is received under the condition that the network is normal;
and if the reply messages in the set time period are all normal, determining that the network state meets a second preset condition.
4. The method of claim 1, wherein the generating offline data in response to the operation information on the locally cached data, and respectively saving the offline data according to the category and the generation time of the offline data comprises:
acquiring operation information of a user on a prescription list, and responding to the operation information to enter a prescription page;
acquiring prescription related data input by a user on the prescription page, and generating a charging bill according to the prescription related data;
storing patient information and corresponding said prescription related data, billing statements and billing status information in association with a generation time according to a category.
5. The method of claim 1, wherein the synchronizing the offline data to the server according to the category and the generation time of the offline data respectively comprises:
and synchronizing the patient information and the corresponding prescription related data, the charging list and the charging state information to a server through a preset interface according to the category and the generation time so as to instruct the server to determine the charged prescription according to the charging list and the charging state information, and performing inventory deduction operation based on the charged prescription.
6. The method of claim 5, wherein the pre-set interface comprises: the system comprises an off-line unloading interface, an interface for uploading the related data of the western medicine prescription and an interface for uploading the related data of the traditional Chinese medicine prescription.
7. The method of claim 1, wherein said exiting said offline operating mode comprises:
and when the handshake message sent by the server is detected, exiting the off-line working mode and starting the on-line working mode.
8. An off-line work apparatus for an auxiliary diagnostic system, comprising:
the system comprises an offline mode starting module, a local cache data acquisition module and a local cache data acquisition module, wherein the offline mode starting module is used for starting an offline working mode to acquire local cache data when a network state meets a first preset condition, the offline working mode is a working mode which is not in communication connection with a server, and the first preset condition is a condition which represents that the network state is abnormal;
the offline data storage module is used for responding to the operation information of the local cache data to generate offline data and respectively storing the offline data according to the category and the generation time of the offline data;
and the offline data synchronization module is used for respectively synchronizing the offline data to the server according to the category and the generation time of the offline data and exiting the offline working mode when the network state meets a second preset condition, wherein the second preset condition is a condition indicating that the network state is normal.
9. A terminal device, characterized in that the terminal device comprises:
one or more processors;
a memory for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of off-line operation of an auxiliary diagnostic system as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out a method of off-line operation of an auxiliary diagnostic system as claimed in any one of claims 1 to 7.
CN202110164433.0A 2021-02-05 2021-02-05 Offline working method and device of auxiliary diagnosis system, terminal equipment and medium Pending CN112786188A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110164433.0A CN112786188A (en) 2021-02-05 2021-02-05 Offline working method and device of auxiliary diagnosis system, terminal equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110164433.0A CN112786188A (en) 2021-02-05 2021-02-05 Offline working method and device of auxiliary diagnosis system, terminal equipment and medium

Publications (1)

Publication Number Publication Date
CN112786188A true CN112786188A (en) 2021-05-11

Family

ID=75761081

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110164433.0A Pending CN112786188A (en) 2021-02-05 2021-02-05 Offline working method and device of auxiliary diagnosis system, terminal equipment and medium

Country Status (1)

Country Link
CN (1) CN112786188A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113223705A (en) * 2021-05-22 2021-08-06 杭州医康慧联科技股份有限公司 Offline prediction method suitable for privacy computing platform
CN114257637A (en) * 2021-12-14 2022-03-29 优默网络科技(深圳)有限公司 Task execution method and device, terminal equipment and readable storage medium
CN114416885A (en) * 2022-04-01 2022-04-29 广东睿江云计算股份有限公司 Data synchronization method and device based on DRBD, computer equipment and storage medium
CN115050117A (en) * 2022-08-15 2022-09-13 深圳市星卡软件技术开发有限公司 Vehicle diagnosis report generation method and device and diagnosis equipment
CN116506434A (en) * 2023-04-27 2023-07-28 湖北清江水电开发有限责任公司 Multi-terminal offline-operation intelligent warehouse management method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050054958A1 (en) * 2003-09-04 2005-03-10 Hoffmann Andrew Kenneth Low frequency vibration assisted blood perfusion emergency system
CN102468989A (en) * 2010-11-11 2012-05-23 腾讯科技(深圳)有限公司 Method and system for processing network data
WO2012151402A1 (en) * 2011-05-03 2012-11-08 Patientscribe Inc. Tracking and managing patient care in medical clinics
CN109547510A (en) * 2017-09-22 2019-03-29 镇江雅迅软件有限责任公司 A kind of off-line system method of data synchronization
CN109686443A (en) * 2018-12-26 2019-04-26 孙炜 A kind of clinical diagnosis aid decision-making system and medical knowledge map accumulative means
CN110349656A (en) * 2018-04-03 2019-10-18 复旦大学附属妇产科医院 Outpatient emergency doctor workstation
CN110992338A (en) * 2019-11-28 2020-04-10 华中科技大学 Primary stove transfer auxiliary diagnosis system
CN111582219A (en) * 2020-05-18 2020-08-25 湖南纳九物联科技有限公司 Intelligent pet management system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050054958A1 (en) * 2003-09-04 2005-03-10 Hoffmann Andrew Kenneth Low frequency vibration assisted blood perfusion emergency system
CN102468989A (en) * 2010-11-11 2012-05-23 腾讯科技(深圳)有限公司 Method and system for processing network data
WO2012151402A1 (en) * 2011-05-03 2012-11-08 Patientscribe Inc. Tracking and managing patient care in medical clinics
CN109547510A (en) * 2017-09-22 2019-03-29 镇江雅迅软件有限责任公司 A kind of off-line system method of data synchronization
CN110349656A (en) * 2018-04-03 2019-10-18 复旦大学附属妇产科医院 Outpatient emergency doctor workstation
CN109686443A (en) * 2018-12-26 2019-04-26 孙炜 A kind of clinical diagnosis aid decision-making system and medical knowledge map accumulative means
CN110992338A (en) * 2019-11-28 2020-04-10 华中科技大学 Primary stove transfer auxiliary diagnosis system
CN111582219A (en) * 2020-05-18 2020-08-25 湖南纳九物联科技有限公司 Intelligent pet management system

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
力竟成: "门诊应急系统的架构设计与实现", 电脑知识与技术, vol. 01, no. 24, pages 1 - 7 *
田鑫,等: "基于PHP的校园医院门诊系统的设计与实现", 明日风尚, vol. 22, no. 07, pages 105 - 108 *
程晓东,等: "医院应急门诊收费系统的实施要素", 中外医疗, vol. 01, no. 09, pages 16 - 22 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113223705A (en) * 2021-05-22 2021-08-06 杭州医康慧联科技股份有限公司 Offline prediction method suitable for privacy computing platform
CN113223705B (en) * 2021-05-22 2023-08-29 杭州医康慧联科技股份有限公司 Offline prediction method suitable for privacy computing platform
CN114257637A (en) * 2021-12-14 2022-03-29 优默网络科技(深圳)有限公司 Task execution method and device, terminal equipment and readable storage medium
CN114257637B (en) * 2021-12-14 2023-12-08 优默网络科技(深圳)有限公司 Task execution method, device, terminal equipment and readable storage medium
CN114416885A (en) * 2022-04-01 2022-04-29 广东睿江云计算股份有限公司 Data synchronization method and device based on DRBD, computer equipment and storage medium
CN115050117A (en) * 2022-08-15 2022-09-13 深圳市星卡软件技术开发有限公司 Vehicle diagnosis report generation method and device and diagnosis equipment
CN116506434A (en) * 2023-04-27 2023-07-28 湖北清江水电开发有限责任公司 Multi-terminal offline-operation intelligent warehouse management method
CN116506434B (en) * 2023-04-27 2024-01-30 湖北清江水电开发有限责任公司 Multi-terminal offline-operation intelligent warehouse management method

Similar Documents

Publication Publication Date Title
CN112786188A (en) Offline working method and device of auxiliary diagnosis system, terminal equipment and medium
WO2020215894A1 (en) Alarm method, device and system
CN108845816A (en) Application program update method, system, computer equipment and storage medium
US20030236777A1 (en) System and method for managing internet transactions
CN102779382B (en) Self-service issuing device for social security financial IC (integrated circuit) card and data processing method thereof
CN102449628A (en) Architectural pattern for persistent web application design
CN110619555A (en) Unified management method and device for order information, terminal equipment and medium
CN101615177A (en) At structural self-defined report implementation method of server/browser and device
CN108475268A (en) intellectual property document management system
CN110377331B (en) Monitoring method, device, equipment and storage medium for issuing application program
CN111626602A (en) Service processing method, service processing device, storage medium and electronic equipment
CN109688050B (en) Instant messaging control method and system
CN115118777A (en) Message conversion method, device, equipment and storage medium based on service type
CN111127224B (en) Information processing method, information processing device, electronic equipment and storage medium
CN111881392A (en) Page display method and device
CN106533718A (en) Data processing method and device
CN115687826A (en) Page refreshing method and device, computer equipment and storage medium
CN115274085A (en) Network diagnosis and treatment expense settlement method, device, platform, equipment and medium
CN111459460B (en) Service data processing method and system
CN113257398A (en) Information processing system, method and device
CN112102099A (en) Policy data processing method and device, electronic equipment and storage medium
CN113138814A (en) Remote assistance method, device, equipment and storage medium
CN113448960A (en) Method and device for importing form file
AU2015218170A1 (en) A method for using user session data to provide middle- ware
US20240136038A1 (en) Patient-led prescription refill grouping system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination