A method and device for collecting medical instrument data
By pre-storing instrument information in serial port equipment and automatically identifying communication information using mapping relationships, the problem of low data collection efficiency of medical instruments in the prior art is solved, and automated and generalized medical instrument data collection is realized.
Patent Information
- Application Number
- CN202011614148.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-30
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2040-12-30
AI Technical Summary
The existing medical instrument data acquisition methods cannot automatically identify the communication parameters of different medical instruments, resulting in the need of manual settings by professional and technical personnel, which is inefficient and incompatible with multiple models of medical monitoring equipment.
By pre-storing instrument information in the serial port device, automatically identifying the communication information of medical instruments using pre-established mapping relationships, and connecting through USB to serial port devices to realize automatic data acquisition.
The data of a variety of medical instruments can be automatically collected without professional and technical personnel, which improves data collection efficiency and is versatile, and is suitable for different types of medical instruments.
Smart Images

Figure CN112669956B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet of Things data collection, and in particular to a method and device for collecting medical instrument data. Background Art
[0002] With the development of Internet of Things technology, medical equipment is rapidly realizing informatization. Medical equipment usually includes ventilators, infusion pumps, monitors, etc. It is used to assist patients' physiological functions and monitor patients' physiological characteristics. The interconnection of medical equipment data has brought great convenience to patient management. With the growth of market demand, the number of medical monitoring equipment manufacturers has gradually increased. Various models of medical monitoring equipment are not compatible with each other. The communication protocols and communication parameters used by each medical monitoring equipment are different. The current methods for collecting data from different types of medical instruments are:
[0003] Ordinary serial port data or network port data collectors cannot automatically identify the communication parameters of medical instrument ports. Usually, after the hardware line is connected, professional technicians set the communication parameters and collect the data of the medical instrument port through the communication parameters and communication protocols corresponding to the set medical instruments. Since the communication parameters of each medical instrument port are different, technicians with certain professional knowledge are required to manually set the corresponding communication parameters. The data of each medical instrument cannot be automatically collected, and the efficiency of data collection is low. Summary of the invention
[0004] The present invention provides a method and device for collecting medical instrument data, which are used to automatically complete the identification of different medical instrument ports and the collection of data. The data of different medical instruments can be collected without the need for professional technicians to operate, and the method is more universal.
[0005] In a first aspect, an embodiment of the present invention provides a method for collecting medical instrument data, the method comprising:
[0006] After the medical instrument is connected via the serial port device, the instrument information pre-stored in the serial port device is obtained, wherein the instrument information is used to represent the communication information required for collecting data of the medical instrument connected to the serial port device;
[0007] Determine, according to a pre-established mapping relationship of instrument information, communication information required for collecting data corresponding to the instrument information, wherein the mapping relationship includes instrument information and communication information corresponding to different medical instruments;
[0008] The medical instrument is identified according to the communication information, and data of the medical instrument is collected.
[0009] The embodiment of the present invention stores the instrument information in advance in the serial port device connected to the medical instrument, and determines the communication information corresponding to the instrument information according to the acquired instrument information, thereby establishing a connection with the port of the medical instrument and collecting the data of the medical instrument. The collection method provided by the embodiment of the present invention can automatically establish a connection with the medical instrument and collect data, and is applicable to a variety of medical instruments that use different communication information.
[0010] As an optional implementation, the serial port device is a USB to serial port device, and whether the medical instrument is connected via the serial port device is determined in the following manner:
[0011] After detecting that a USB device is connected, reading the vendor identification VID information and product identification code PID information stored in the USB device;
[0012] If it is determined according to the VID information and the PID information that the USB device is a USB-to-serial device, it is determined that the medical instrument is connected via the USB-to-serial device.
[0013] As an optional implementation, it also includes:
[0014] If the instrument information pre-stored in multiple USB-to-serial devices is obtained at the same time, the same instrument information is classified to determine each type of instrument information;
[0015] Determining the communication information required for collecting data corresponding to the instrument information according to the mapping relationship of the pre-established instrument information includes:
[0016] According to the mapping relationship of the pre-established instrument information, the communication information required for the collected data corresponding to the various types of instrument information is determined.
[0017] As an optional implementation, the communication information includes communication parameters and communication protocols; identifying the medical instrument according to the communication information and collecting data of the medical instrument includes:
[0018] Identify the medical instrument according to the communication parameters, and establish a connection with the serial port currently occupied by the USB-to-serial device;
[0019] The data of the medical instrument is collected according to the communication protocol.
[0020] In a second aspect, an embodiment of the present invention provides a device for collecting medical instrument data, comprising:
[0021] An acquisition unit, used to acquire instrument information pre-stored in the serial port device after the medical instrument is connected via the serial port device, wherein the instrument information is used to represent communication information required for acquiring data of the medical instrument connected to the serial port device;
[0022] A determination unit, configured to determine, according to a pre-established mapping relationship of instrument information, communication information required for collecting data corresponding to the instrument information, wherein the mapping relationship includes instrument information and communication information corresponding to different medical instruments;
[0023] A collection unit is used to identify the medical instrument according to the communication information and collect data of the medical instrument.
[0024] As an optional implementation, the serial port device is a USB to serial port device, and the acquisition unit is further used to determine whether the medical instrument is connected through the serial port device in the following manner:
[0025] After detecting that a USB device is connected, reading the vendor identification VID information and product identification code PID information stored in the USB device;
[0026] If it is determined according to the VID information and the PID information that the USB device is a USB-to-serial device, it is determined that the medical instrument is connected via the USB-to-serial device.
[0027] As an optional implementation, the method further includes a classification unit for:
[0028] If the instrument information pre-stored in multiple USB-to-serial devices is obtained at the same time, the same instrument information is classified to determine each type of instrument information;
[0029] The determining unit is specifically used for:
[0030] According to the mapping relationship of the pre-established instrument information, the communication information required for the collected data corresponding to the various types of instrument information is determined.
[0031] As an optional implementation manner, the communication information includes communication parameters and communication protocols; and the collection unit is specifically used for:
[0032] Identify the medical instrument according to the communication parameters, and establish a connection with the serial port currently occupied by the USB-to-serial device;
[0033] The data of the medical instrument is collected according to the communication protocol.
[0034] In a third aspect, an embodiment of the present invention further provides a device for collecting medical instrument data, the device comprising a processor and a memory, the memory being used to store a program executable by the processor, the processor being used to read the program in the memory and perform the following steps:
[0035] After the medical instrument is connected via the serial port device, the instrument information pre-stored in the serial port device is obtained, wherein the instrument information is used to represent the communication information required for collecting data of the medical instrument connected to the serial port device;
[0036] Determine, according to a pre-established mapping relationship of instrument information, communication information required for collecting data corresponding to the instrument information, wherein the mapping relationship includes instrument information and communication information corresponding to different medical instruments;
[0037] The medical instrument is identified according to the communication information, and data of the medical instrument is collected.
[0038] As an optional implementation manner, the serial port device is a USB to serial port device, and the processor is specifically configured to execute:
[0039] After detecting that a USB device is connected, reading the vendor identification VID information and product identification code PID information stored in the USB device;
[0040] If it is determined according to the VID information and the PID information that the USB device is a USB-to-serial device, it is determined that the medical instrument is connected via the USB-to-serial device.
[0041] As an optional implementation, the processor is further configured to execute:
[0042] If the instrument information pre-stored in multiple USB-to-serial devices is obtained at the same time, the same instrument information is classified to determine each type of instrument information;
[0043] Determining the communication information required for collecting data corresponding to the instrument information according to the mapping relationship of the pre-established instrument information includes:
[0044] According to the mapping relationship of the pre-established instrument information, the communication information required for the collected data corresponding to the various types of instrument information is determined.
[0045] As an optional implementation manner, the communication information includes communication parameters and communication protocols; and the processor is specifically configured to execute:
[0046] Identify the medical instrument according to the communication parameters, and establish a connection with the serial port currently occupied by the USB-to-serial device;
[0047] The data of the medical instrument is collected according to the communication protocol.
[0048] In a fourth aspect, an embodiment of the present invention further provides a computer storage medium on which a computer program is stored, and when the program is executed by a processor, it is used to implement the steps of the method described in the first aspect above.
[0049] These and other aspects of the present application will be more clearly understood in the description of the following embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0051] Figure 1 A flow chart of a method for collecting medical instrument data provided by an embodiment of the present invention;
[0052] Figure 2 A schematic diagram of serial port device chip configuration information provided by an embodiment of the present invention;
[0053] Figure 3 A schematic diagram of a mapping relationship of medical instruments provided in an embodiment of the present invention;
[0054] Figure 4 A specific implementation flow chart of collecting medical instrument data provided by an embodiment of the present invention;
[0055] Figure 5 A schematic diagram of medical instrument data acquisition connection provided by an embodiment of the present invention;
[0056] Figure 6 A schematic diagram of a device for collecting medical instrument data provided by an embodiment of the present invention;
[0057] Figure 7 A schematic diagram of a device for collecting medical instrument data provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0059] In the embodiments of the present invention, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0060] The application scenarios described in the embodiments of the present invention are intended to more clearly illustrate the technical solutions of the embodiments of the present invention, and do not constitute a limitation on the technical solutions provided by the embodiments of the present invention. It is known to those skilled in the art that with the emergence of new application scenarios, the technical solutions provided by the embodiments of the present invention are also applicable to similar technical problems. In the description of the present invention, unless otherwise specified, "multiple" means two or more.
[0061] Example 1
[0062] Ordinary serial port data or network port data collectors cannot automatically identify the communication parameters of the medical instrument port. Usually, after the hardware line is connected, the communication parameters are set by professional technicians, and the data of the medical instrument port is collected through the communication parameters and communication protocols corresponding to the medical instrument after the setting. Due to the different communication parameters of each medical instrument port, technicians with certain professional knowledge are required to manually set the corresponding communication parameters. The data of each medical instrument cannot be automatically collected, and the efficiency of data collection is low. At present, most medical instruments, especially the output interfaces of portable monitors, ventilators, infusion pumps and other equipment, use standard RS232 serial interfaces for data communication and transmission. The host side generally uses more USB interfaces. In this case, the host side can interface with the medical instrument through the USB to 232 communication line. The USB to 232 communication line can realize the protocol conversion and level conversion of the two signals. However, after the host and the medical instrument are connected through the USB to 232 communication line, the port information of the medical instrument cannot be directly obtained, and the connection with the medical instrument cannot be directly established for data collection. The embodiment of the present invention proposes a new medical instrument data collection method, which is different from the traditional data collection method. It can automatically collect data from different medical instruments, has universality and is not limited by the number of medical instruments. It can still be applicable even when the number of medical instruments is large, and the USB to 232 communication line can be plugged and unplugged. After the USB to 232 communication line is re-determined to be connected to the medical instrument, data collection is performed again.
[0063] like Figure 1 As shown, an embodiment of the present invention provides a method for collecting medical instrument data. The method can be applied to a host device, and the host device has a communication function and a data processing capability. For example, the host device can be a communication device configured with a Windows system. The implementation process of the method is as follows:
[0064] Step 100: After the medical instrument is connected via a serial port device, obtain instrument information pre-stored in the serial port device, where the instrument information is used to represent communication information required to collect data of the medical instrument connected to the serial port device;
[0065] Optionally, the serial port devices in the embodiments of the present invention include but are not limited to: USB to serial port devices (also known as USB serial port adapters), USB HUBs, USB to 232 communication cables and other devices that can connect medical instruments and host computers. It should be noted that if the host computer is provided with a serial port interface, the host computer and the medical instrument can be directly connected via a serial port communication cable. The embodiments of the present invention do not impose too many restrictions on which serial port device is used to connect the medical instrument.
[0066] It should be noted that the instrument information in the embodiment of the present invention is used to represent the communication information required for collecting data of the medical instrument, for example, it may be communication parameters (communication serial port parameters), communication protocol, etc.
[0067] Step 101: Determine communication information required for collecting data corresponding to the instrument information according to a pre-established mapping relationship of instrument information, wherein the mapping relationship includes instrument information and communication information corresponding to different medical instruments;
[0068] Optionally, the mapping relationship of the instrument information can be stored in the host, and a separate storage space can be set to store the mapping relationship. The mapping relationship in this embodiment is the mapping relationship between the instrument information and the communication information of the medical instrument.
[0069] Step 102: Identify the medical device according to the communication information and collect data of the medical device.
[0070] The embodiment of the present invention determines the communication information corresponding to the instrument information by pre-stored in the serial port device, thereby automatically realizing the recognition of different medical instruments and the collection of data of different medical instruments.
[0071] As an optional implementation manner, the instrument information in the embodiment of the present invention includes: instrument type and / or instrument model.
[0072] It is easy to understand that the communication information corresponding to different instrument types is different, and the communication information corresponding to different instrument models may also be different, which can be determined based on actual conditions. This embodiment can determine the corresponding communication information based on the instrument information in the serial port device to perform data collection. Specifically, it includes the following three situations:
[0073] Case 1: If different types of medical instruments correspond to different communication information, and different models of medical instruments of the same type correspond to the same communication information, that is, the communication information to be used can be determined only by the instrument type, then the instrument information is the instrument type, and the communication information required for collecting data corresponding to the instrument type is determined based on the pre-established mapping relationship of the instrument information.
[0074] Case 2: If the communication information corresponding to medical instruments of different models is different, that is, the communication information to be used can be determined only by the instrument model, then the instrument information is the instrument model, and the communication information required for collecting data corresponding to the instrument model is determined based on the pre-established mapping relationship of the instrument information.
[0075] Case 3: If different types of medical instruments correspond to different communication information, and different models of medical instruments of the same type correspond to different communication information, that is, the communication information to be used can only be determined by the instrument type and instrument model, then the instrument information is the instrument type and instrument model. According to the pre-established mapping relationship of the instrument information, the communication information required for the collected data corresponding to the instrument type and instrument model is determined.
[0076] It should be noted that the instrument information in the embodiment of the present invention is pre-stored in the chip of the serial port device. During implementation, the instrument information can be stored in the chip of the serial port device during factory settings, and the label corresponding to the serial port device can be determined based on the stored instrument information, so that medical personnel can determine the instrument type and / or instrument model of the medical instrument connected to the serial port device based on the label.
[0077] Optionally, in this embodiment, the instrument model of the corresponding medical instrument may be represented by an instrument identification ID.
[0078] As an optional implementation, the serial port device is a USB to serial port device, and whether the medical instrument is connected via the serial port device is determined in the following manner:
[0079] After detecting that a USB device is connected, reading the vendor identification VID information and product identification code PID information stored in the USB device;
[0080] If it is determined according to the VID information and the PID information that the USB device is a USB-to-serial device, it is determined that the medical instrument is connected via the USB-to-serial device.
[0081] It can also be understood that when a USB device is detected to be connected, it is not known whether the medical instrument is connected through the USB device, so the VID information and PID information stored in the USB device are read, and further, the USB device is determined to be a USB to serial port device according to the VID information and PID information, thereby determining that the medical instrument is connected through the USB to serial port device. It should be noted that medical instruments are usually equipped with serial ports, so after the embodiment of the present invention determines that the connected USB device is a USB to serial port device, it can be determined that the medical instrument is connected through the USB to serial port device. In addition, in general, if the USB device is only connected to the host and no device is connected to the serial port side, the host will not detect the USB device being connected. That is to say, if the host detects that a USB device is connected, it means that other devices are connected to the side of the USB device that is not connected to the host, and the VID information and PID information can be used to determine whether the other device is a USB to serial port device, thereby determining that the medical instrument is connected through the USB to serial port device.
[0082] The VID information of each USB-to-serial device is unique, and the PID information is used by vendors to distinguish different USB device products.
[0083] As an optional implementation, Figure 2 As shown, the instrument information (information configuration) pre-stored in the serial port device chip in the embodiment of the present invention includes but is not limited to: VID information, PID information, instrument type and instrument model.
[0084] As an optional implementation, if the host is connected to multiple medical instruments through a serial port device at the same time, and there are medical instruments with the same instrument information among the multiple medical instruments, they can be classified first in the following way, and then the communication information of the corresponding type of instrument information can be obtained, so as to collect data according to the communication information, as shown below:
[0085] 1) If the instrument information pre-stored in multiple USB-to-serial devices is obtained at the same time, the same instrument information is classified to determine each type of instrument information;
[0086] Among them, the same instrument information is classified in the following way:
[0087] According to the instrument types and instrument models stored in the multiple USB-to-serial devices, the instrument information corresponding to the same instrument type and instrument signal is determined; it is easy to understand that if multiple medical instruments have the same instrument type and instrument model, the communication parameters and communication protocols used to collect the multiple medical instruments are the same;
[0088] The instrument information corresponding to the same instrument type and instrument signal is classified into one category. The instrument information pre-stored in multiple USB-to-serial port devices is classified in the same way for each instrument model and each instrument information to determine each instrument information.
[0089] 2) According to the mapping relationship of the pre-established instrument information, the communication information required for the collected data corresponding to the various types of instrument information is determined.
[0090] As an optional implementation, the communication information includes communication parameters and communication protocols. The communication parameters are used to establish a communication connection, including serial communication parameters, which are used to establish a serial communication connection, such as the serial port number, baud rate and other information of the medical instrument; and the communication protocol is used to collect and analyze data.
[0091] In implementation, the medical device can be identified according to the communication information and the data of the medical device can be collected in the following manner:
[0092] 1) Identifying the medical instrument according to the communication parameters, and establishing a connection with the serial port currently occupied by the USB-to-serial device;
[0093] 2) Collecting data of the medical instrument according to the communication protocol.
[0094] Optionally, the embodiment of the present invention pre-stores the mapping relationship of the instrument information of all medical instruments to be collected. If the instrument information includes the instrument type and instrument model, and the communication information includes the communication parameters and communication protocol, the schematic diagram of the mapping relationship of the medical instruments is as follows: Figure 3 As shown, the instrument model of the medical instrument is represented by an ID, that is, each model of medical instrument in each type of medical instrument corresponds to a set of communication parameters and a communication protocol, that is, the instrument type, instrument model, communication parameters and communication protocol are in a one-to-one correspondence.
[0095] As an optional implementation, if the serial port device is disconnected from the medical instrument during the acquisition process, the instrument information is re-acquired after the medical instrument is connected through the serial port device to establish a communication connection with the medical instrument. Therefore, the serial port device connected to the medical instrument in this embodiment of the present invention can achieve plug-and-play.
[0096] like Figure 4 As shown, the embodiment of the present invention also provides a specific implementation process for collecting medical instrument data, wherein, taking the serial port device as a USB to 232 cable as an example, the medical instrument data collection connection diagram is as follows Figure 5 As shown below:
[0097] Step 400: Detecting that a USB device is connected;
[0098] Step 401, reading the vendor identification VID information and product identification code PID information stored in the USB device;
[0099] Step 402: If it is determined that the USB device is a USB-to-serial device according to the VID information and the PID information, it is determined that the medical instrument is connected via the USB-to-serial device;
[0100] Specifically, Figure 5 As shown, the monitor is connected to the host side through the corresponding USB to 232 cable, and the USB to 232 cable stores PID information, VID information, instrument type and instrument model. Among them, the instrument type is used to characterize that the USB device is a dedicated cable for the monitor, and the instrument model is used to characterize the specific model of the monitor. After the medical instrument is connected to the host through the USB to 232 cable, the host detects that a device is connected to the USB interface, reads the PID information and VID information in the connected USB device chip, and determines whether it is a dedicated cable for medical instrument data acquisition. In this embodiment, it can determine whether the chip of the USB device is an FT232 chip based on the VID information and PID information to determine whether the USB device is a dedicated cable for medical instruments, that is, a USB to 232 cable. If the host detects that the currently connected USB device is a USB to 232 dedicated cable, it is determined that a medical instrument is currently connected, and the following steps are performed.
[0101] Step 403: Obtain the instrument type and instrument model pre-stored in the USB-to-serial device;
[0102] Step 404: Determine the communication parameters and communication protocol corresponding to the instrument type and instrument model according to the mapping relationship of the pre-established instrument information;
[0103] Step 405: Identify the medical instrument according to the communication parameters, and establish a connection with the serial port currently occupied by the USB-to-serial device;
[0104] Specifically, the host first reads the serial port number currently occupied by the USB-to-serial port device according to the Windows system function, and then establishes a connection with the serial port according to the serial port number and communication parameters;
[0105] Step 406: Collect data from the medical instrument according to the communication protocol.
[0106] If the communication connection is disconnected during the acquisition process and then reconnected, steps 400 to 406 are repeated to automatically complete the identification of the medical instrument port and the acquisition of data, thereby achieving plug-and-play.
[0107] Example 2
[0108] Based on the same inventive concept, an embodiment of the present invention also provides a device for collecting medical instrument data. Since the device is the device in the method in the embodiment of the present invention, and the principle of solving the problem by the device is similar to that of the method, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0109] like Figure 6 As shown, the device comprises:
[0110] The acquisition unit 600 is used to acquire the instrument information pre-stored in the serial port device after the medical instrument is connected via the serial port device, wherein the instrument information is used to represent the communication information required for collecting the data of the medical instrument connected to the serial port device;
[0111] A determination unit 601 is used to determine the communication information required for the collected data corresponding to the instrument information according to a pre-established mapping relationship of the instrument information, wherein the mapping relationship includes the instrument information and the communication information corresponding to different medical instruments;
[0112] The collection unit 602 is used to identify the medical instrument according to the communication information and collect data of the medical instrument.
[0113] As an optional implementation, the serial port device is a USB to serial port device, and the acquisition unit is further used to determine whether the medical instrument is connected through the serial port device in the following manner:
[0114] After detecting that a USB device is connected, reading the vendor identification VID information and product identification code PID information stored in the USB device;
[0115] If it is determined according to the VID information and the PID information that the USB device is a USB-to-serial device, it is determined that the medical instrument is connected via the USB-to-serial device.
[0116] As an optional implementation, the method further includes a classification unit for:
[0117] If the instrument information pre-stored in multiple USB-to-serial port devices is obtained at the same time, the medical instrument information obtained by each serial port is classified and judged respectively to determine the type and model information corresponding to the medical instrument connected to each serial port;
[0118] The determining unit is specifically used for:
[0119] According to the mapping relationship of the pre-established instrument information, the communication information required for the collected data corresponding to the various types of instrument information is determined.
[0120] As an optional implementation manner, the communication information includes communication parameters and communication protocols; and the collection unit is specifically used for:
[0121] Identify the medical instrument according to the communication parameters, and establish a connection with the serial port currently occupied by the USB-to-serial device;
[0122] The data of the medical instrument is collected according to the communication protocol.
[0123] Example 3
[0124] Based on the same inventive concept, an embodiment of the present invention further provides a device for collecting medical instrument data. Since the device is the device in the method in the embodiment of the present invention, and the principle of solving the problem by the device is similar to that of the method, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0125] like Figure 7 As shown, the device includes a processor 700 and a memory 701, wherein the memory is used to store a program executable by the processor, and the processor is used to read the program in the memory and perform the following steps:
[0126] After the medical instrument is connected via the serial port device, the instrument information pre-stored in the serial port device is obtained, wherein the instrument information is used to represent the communication information required for collecting data of the medical instrument connected to the serial port device;
[0127] Determine, according to a pre-established mapping relationship of instrument information, communication information required for collecting data corresponding to the instrument information, wherein the mapping relationship includes instrument information and communication information corresponding to different medical instruments;
[0128] The medical instrument is identified according to the communication information, and data of the medical instrument is collected.
[0129] As an optional implementation manner, the serial port device is a USB to serial port device, and the processor is specifically configured to execute:
[0130] After detecting that a USB device is connected, reading the vendor identification VID information and product identification code PID information stored in the USB device;
[0131] If it is determined according to the VID information and the PID information that the USB device is a USB-to-serial device, it is determined that the medical instrument is connected via the USB-to-serial device.
[0132] As an optional implementation, the processor is further configured to execute:
[0133] If the instrument information pre-stored in multiple USB-to-serial port devices is obtained at the same time, the medical instrument information obtained by each serial port is classified and judged respectively to determine the type and model information corresponding to the medical instrument connected to each serial port;
[0134] Determining the communication information required for collecting data corresponding to the instrument information according to the mapping relationship of the pre-established instrument information includes:
[0135] According to the mapping relationship of the pre-established instrument information, the communication information required for the collected data corresponding to the various types of instrument information is determined.
[0136] As an optional implementation manner, the communication information includes communication parameters and communication protocols; and the processor is specifically configured to execute:
[0137] Identify the medical instrument according to the communication parameters, and establish a connection with the serial port currently occupied by the USB-to-serial device;
[0138] The data of the medical instrument is collected according to the communication protocol.
[0139] A computer storage medium stores a computer program, which, when executed by a processor, implements the following steps:
[0140] After the medical instrument is connected via the serial port device, the instrument information pre-stored in the serial port device is obtained, wherein the instrument information is used to represent the communication information required for collecting data of the medical instrument connected to the serial port device;
[0141] Determine, according to a pre-established mapping relationship of instrument information, communication information required for collecting data corresponding to the instrument information, wherein the mapping relationship includes instrument information and communication information corresponding to different medical instruments;
[0142] The medical instrument is identified according to the communication information, and data of the medical instrument is collected.
[0143] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0144] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that has the functions specified in one or more boxes.
[0145] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0146] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0147] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for collecting medical instrument data, characterized in that: The method includes: After connecting the medical instrument through the serial port device, obtain the instrument information pre-stored in the serial port device, the instrument information is used to characterize the communication information required for collecting data of the medical instrument connected to the serial port device; the serial port device is a USB-to-serial port device, and whether the medical instrument is connected through the serial port device is determined in the following manner: after detecting that a USB device is connected, read the vendor identification VID information and product identification code PID information stored in the USB device; if it is determined that the USB device is a USB-to-serial port device according to the VID information and PID information, it is determined that the medical instrument is connected through the USB-to-serial port device; if the serial port device is disconnected from the medical instrument during the collection process, re-acquire the instrument information after connecting the medical instrument through the serial port device to establish a communication connection with the medical instrument; the USB-to-serial port device is used to realize the plug-and-play function; Determine the communication information required for the collected data corresponding to the instrument information according to the pre-established mapping relationship of the instrument information, wherein the mapping relationship includes the instrument information and communication information corresponding to different medical instruments; the mapping relationship of the instrument information is stored in the host; the communication information includes communication parameters and communication protocols; Identifying the medical instrument according to the communication information and collecting data of the medical instrument includes: identifying the medical instrument according to the communication parameters and establishing a connection with the serial port currently occupied by the USB-to-serial port device; and collecting data of the medical instrument according to the communication protocol.
2. The method according to claim 1, characterized in that Also includes: If the instrument information pre-stored in multiple USB-to-serial devices is obtained at the same time, the same instrument information is classified to determine each type of instrument information; Determining the communication information required for collecting data corresponding to the instrument information according to the mapping relationship of the pre-established instrument information includes: According to the mapping relationship of the pre-established instrument information, the communication information required for the collected data corresponding to the various types of instrument information is determined.
3. A device for collecting medical instrument data, characterized in that: include: An acquisition unit is used to acquire instrument information pre-stored in the serial port device after the medical instrument is connected via the serial port device, wherein the instrument information is used to characterize the communication information required for collecting data of the medical instrument connected to the serial port device; the serial port device is a USB-to-serial port device, and the acquisition unit is further used to determine whether the medical instrument is connected via the serial port device by the following method: after detecting that a USB device is connected, reading the vendor identification VID information and product identification code PID information stored in the USB device; if it is determined that the USB device is a USB-to-serial port device according to the VID information and the PID information, then it is determined that the medical instrument is connected via the USB-to-serial port device; If the serial port device is disconnected from the medical instrument during the acquisition process, the instrument information is reacquired after the medical instrument is connected through the serial port device to establish a communication connection with the medical instrument; the USB to serial port device is used to realize the plug-and-play function; A determination unit, configured to determine, according to a pre-established mapping relationship of instrument information, communication information required for collecting data corresponding to the instrument information, wherein the mapping relationship includes instrument information and communication information corresponding to different medical instruments; the mapping relationship of the instrument information is stored in a host; the communication information includes communication parameters and communication protocols; The collection unit is used to identify the medical instrument according to the communication information and collect data of the medical instrument, including: identifying the medical instrument according to the communication parameters and establishing a connection with the serial port currently occupied by the USB-to-serial port device; collecting the data of the medical instrument according to the communication protocol.
4. The device according to claim 3, characterized in that Also included are classification units for: If the instrument information pre-stored in multiple USB-to-serial devices is obtained at the same time, the same instrument information is classified to determine each type of instrument information; The determining unit is specifically used for: According to the mapping relationship of the pre-established instrument information, the communication information required for the collected data corresponding to the various types of instrument information is determined.
5. A device for collecting medical instrument data, characterized in that: The device comprises a processor and a memory, wherein the memory is used to store a program executable by the processor, and the processor is used to read the program in the memory and execute the steps of the method according to claim 1 or 2.
6. A computer storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to claim 1 or 2 are implemented.
Citation Information
Patent Citations
System and method for acquiring medical data
CN103164630A