CN113782228B - Remote traditional Chinese medicine diagnosis and treatment system - Google Patents

Remote traditional Chinese medicine diagnosis and treatment system Download PDF

Info

Publication number
CN113782228B
CN113782228B CN202111142005.4A CN202111142005A CN113782228B CN 113782228 B CN113782228 B CN 113782228B CN 202111142005 A CN202111142005 A CN 202111142005A CN 113782228 B CN113782228 B CN 113782228B
Authority
CN
China
Prior art keywords
pulse
data
patient
analog
doctor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111142005.4A
Other languages
Chinese (zh)
Other versions
CN113782228A (en
Inventor
景月娟
彭寒
李小松
陈广升
秦征
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Aeronautical University
Original Assignee
Xian Aeronautical University
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 Xian Aeronautical University filed Critical Xian Aeronautical University
Priority to CN202111142005.4A priority Critical patent/CN113782228B/en
Publication of CN113782228A publication Critical patent/CN113782228A/en
Application granted granted Critical
Publication of CN113782228B publication Critical patent/CN113782228B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • G16H80/00ICT specially adapted for facilitating communication between medical practitioners or patients, e.g. for collaborative diagnosis, therapy or health monitoring
    • 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/90ICT specially adapted for therapies or health-improving plans, e.g. for handling prescriptions, for steering therapy or for monitoring patient compliance relating to alternative medicines, e.g. homeopathy or oriental medicines

Landscapes

  • Health & Medical Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Medical Informatics (AREA)
  • Epidemiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Public Health (AREA)
  • Biomedical Technology (AREA)
  • Pathology (AREA)
  • Alternative & Traditional Medicine (AREA)
  • Pharmacology & Pharmacy (AREA)
  • Measuring And Recording Apparatus For Diagnosis (AREA)

Abstract

The invention discloses a remote traditional Chinese medicine diagnosis and treatment system in the technical field of diagnosis and treatment systems, which is characterized in that: comprising the following steps: the patient end comprises pulse acquisition equipment and driving equipment, wherein the driving equipment is connected to the pulse acquisition equipment and is used for providing an interface for an application layer and driving the pulse acquisition equipment to work; the server is connected to the patient end and used for performing remote transmission on the acquired pulse data; the doctor end is connected to the server, is developed by combining a Qt integrated development environment with a network and a database and is used for receiving pulse data issued by the server and realizing the visualization of the pulse data.

Description

Remote traditional Chinese medicine diagnosis and treatment system
Technical Field
The invention relates to the technical field of diagnosis and treatment systems, in particular to a remote traditional Chinese medicine diagnosis and treatment system.
Background
Diagnosis and treatment systems are generally computer descriptions of patient complaints and diagnoses by clinicians. As computer technology has evolved, the original paper has been replaced by computers. The current diagnosis and treatment system is very intelligent, and a silver-intelligent diagnosis and treatment system of the silver-intelligent software limited company is representative. Due to the diagnosis and treatment, the diagnosis of the patient is permanently kept, which brings important basis data for medical research and mutual communication of doctors, and important reference data for accurate diagnosis and prescription of doctors.
With the rapid development of embedded technology, embedded applications have gradually entered various industries, which also show importance in the medical field. Telemedicine is one such application. Telemedicine has been developed in modern society, and telemedicine mainly relies on modern communication and electronic technology, and relies on an information platform or an information network among a plurality of medical institutions to realize medical activities such as remote consultation, diagnosis and treatment, operation and the like. The problem of difficulty in seeing a doctor and seeking a doctor in China can be relieved through remote medical treatment, and a patient seeking a doctor can avoid the trouble of running on a way, and meanwhile, the burden of hospitals and patients is relieved.
Although telemedicine has developed rapidly, it is mainly directed to the basic flow of western medical consultation. The Western medicine telemedicine system is developed relatively healthily, but other domestic designs have been studied to some extent for the traditional Chinese medicine telemedicine. The top-level framework of remote traditional Chinese medicine is designed in the university of Guangxi traditional Chinese medicine in 2019, but in the currently realized remote traditional Chinese medicine system, corresponding functions are finished according to various requirements in remote medicine, and other researches self-make a special pulse sensor so as to solve the problem of pulse detection. However, there are also systems that are too complex, cost prohibitive to implement, and fail to implement the function of remote pulse diagnosis. Therefore, there is an urgent need for a remote diagnosis and treat system of traditional Chinese medicine that can truly realize remote functions and use easily available high-precision pulse sensors.
Disclosure of Invention
The invention aims to provide a remote traditional Chinese medicine diagnosis and treatment system, which solves the problems of the remote traditional Chinese medicine diagnosis and treatment system which can really realize a remote function and uses a high-precision pulse sensor which is easy to obtain.
In order to achieve the above purpose, the present invention provides the following technical solutions: a remote traditional Chinese medicine diagnosis and treatment system, which is characterized in that: comprising the following steps:
the system comprises a patient end, a pulse acquisition device and a driving device, wherein the patient end comprises the pulse acquisition device and the driving device, the driving device is connected to the pulse acquisition device and is used for executing acquisition of pulse data of a patient, and the driving device is used for executing provision of an interface for an application layer and driving the pulse acquisition device to work;
the server is connected to the patient end and used for performing remote transmission on the acquired pulse data;
the doctor end is connected to the server, developed through Qt integrated development environment and combining with a network and a database, and used for receiving pulse data issued by the server and realizing visualization of the pulse data.
Preferably, the patient end and the doctor end army are provided with UI visual interfaces for executing information interaction between the doctor and the patient.
Preferably, the pulse acquisition device comprises an analog-to-digital conversion module and pulse sensors, wherein the pulse sensors are connected to the analog-to-digital conversion module, the analog-to-digital conversion module is used for performing analog-to-digital conversion on acquired data, and the number of the pulse sensors is three and used for performing acquisition on pulse data of a patient.
Preferably, the server is built on a Tiny4412 embedded development board, developed by means of a Linux operating system and designed by adopting a C/S architecture model.
Preferably, the doctor end is also provided with an inversion pulse device.
Preferably, the inversion pulse device comprises a controller and three vibration motors, wherein the three vibration motors are connected to the controller, the controller is an STM32 controller, and the controller is used for simulating the adjusting vibration of the pulse due to the fact that pulse signals are received and the three vibration motors are started according to the pulse signals.
Compared with the prior art, the invention has the beneficial effects that: the invention can carry out remote traditional Chinese medicine diagnosis and treatment on patients, realizes modernization and intellectualization of traditional Chinese medicine diagnosis and treatment, can greatly improve the clinic quantity of traditional Chinese medicine, exerts the function of traditional Chinese medicine to the greatest extent, ensures that patients do not need to see traditional Chinese medicine, is convenient for patients, and depends on a Tiny4412 hardware development platform and a Linux operating system to complete the function design of a pulse acquisition module and the development of a server, combines Qt integrated development environment and STM32F103 hardware platform to design and realize doctor-side software and pulse inversion equipment, and jointly forms the system, can carry out remote traditional Chinese medicine diagnosis and treatment on patients, realizes modernization and intellectualization of traditional Chinese medicine diagnosis and treatment, can greatly improve the clinic quantity of traditional Chinese medicine, exerts the function of traditional Chinese medicine to the greatest extent, ensures that patients do not need to see traditional Chinese medicine and is convenient for patients.
Drawings
FIG. 1 is a schematic diagram of the structure of the present invention;
FIG. 2 is a schematic diagram showing the connection of the analog-to-digital conversion chip and three pulse sensors according to the present invention;
FIG. 3 is a schematic diagram of the connection of Tiny4412 and ADS1115 chip pins according to the present invention;
FIG. 4 is a schematic diagram of data transfer over an I2C bus according to the present invention;
FIG. 5 is a diagram illustrating the format of an I2C bus data interface according to the present invention;
FIG. 6 is a schematic flow chart diagram of the operation of the master/receive mode of the present invention;
FIG. 7 is a schematic diagram of a flow chart of a driving operation process of ads1115 device according to the present invention;
FIG. 8 is a diagram illustrating a packet format according to the present invention;
FIG. 9 is a schematic diagram of a server setup and data forwarding process according to the present invention;
FIG. 10 is a schematic diagram of a client building process according to the present invention;
FIG. 11 is a schematic diagram of a diagnostic service flow diagram of the present invention;
FIG. 12 is a schematic representation of the general E-R of the remote TCM diagnosis and treatment system according to the present invention;
FIG. 13 is a logical block diagram of a database of the remote TCM diagnosis and treatment system according to the present invention;
FIG. 14 is a diagram of registration information class relationships according to the present invention;
FIG. 15 is a flowchart for doctor information registration according to the present invention;
FIG. 16 is a flow chart of the login procedure of the present invention;
FIG. 17 is a custom chart class diagram of the present invention;
FIG. 18 is a flow chart of an initialization line diagram of the present invention;
FIG. 19 is a diagram showing the overall structure of pulse data according to the present invention;
FIG. 20 is a schematic diagram of a vibration motor and STM32 pin connection according to the present invention;
FIG. 21 is a diagram showing the structure of a connection circuit between a host computer and an STM32 development board according to the present invention;
FIG. 22 is a flow chart of the serial communication between the doctor's end and the pulse inversion device according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention provides a remote traditional Chinese medicine diagnosis and treatment system, which can carry out remote traditional Chinese medicine diagnosis and treatment on patients, realize modernization and intellectualization of traditional Chinese medicine diagnosis and treatment, greatly improve the clinic quantity of traditional Chinese medicine, exert the function of traditional Chinese medicine to the greatest extent, enable the patients to be free from seeing the traditional Chinese medicine and bring convenience to the patients, and comprises:
the patient end comprises pulse acquisition equipment and driving equipment, the driving equipment is connected to the pulse acquisition equipment, the pulse acquisition equipment is used for executing acquisition of pulse data of the patient, the driving equipment is used for executing provision of an interface for an application layer and driving the pulse acquisition equipment to work, the pulse acquisition equipment comprises an analog-to-digital conversion module and pulse sensors, the pulse sensors are connected to the analog-to-digital conversion module, the analog-to-digital conversion module is used for executing analog-to-digital conversion of the acquired data, the number of the pulse sensors is three and used for executing acquisition of pulse data of the patient, the pulse sensors are common pulse sensors in the market, when the pulse sensors are used, the pulse sensors are placed at three points of the size, the close point and the scale of a human body, sense the pulses of the three points of the size, the close point and the scale of the human body, the pulse sensors are different from the pulse sensors of other classes, the pulse sensors adopt a photoelectric volume method to measure pulse and heart rate, the sensor can rapidly and accurately acquire pulse data, analyze the circuit structure schematic diagram of the pulse sensor module, the sensor provides three pins for a user, the functions of the pins are shown in table 1, the pin 2 of the module is an analog signal output pin, the sensor is correctly placed at the finger, the wrist and other places of a human body, the sensor internally filters and amplifies an input photoelectric signal, and the AOUT pin continuously outputs an acquired analog voltage value, so that the analog output is subjected to AD conversion to obtain the digital quantity of the pulse signal, the analog-to-digital conversion module is an ADS1115 analog-to-digital conversion chip, the ADS1115 analog-to-digital conversion chip can receive four analog input signals, the circuit diagram of the chip and the three pulse sensors is shown in fig. 2, the analog signal output by PulseSensor is converted to the analog input end of ADS1115, the three pulse sensor power supply ends must use the same reference voltage, otherwise, the generated analog signals can deviate data during conversion due to different reference voltages, and the pulse acquisition equipment is used for acquiring the pulse;
TABLE 1 pulseSensor Pin specification Table
Name of the name Type(s) Description of the invention
VCC Analog quantity Power supply (3.3V)
AOUT Analog output Analog signal output
GND Analog quantity Grounded (earth)
TABLE 2 ADS1115 analog to digital conversion chip Pin Specification
The ADS1115 analog-digital conversion chip pin diagram of the table 2 and the pin function description of the table 2 are adopted by the driving device to transmit data, by looking at the circuit diagram of the Tiny4412 development board and the circuit diagram and the user manual of the Exynos4412Soc, the 0 th channel bus interface of the I2C controller for the user is left on the Tiny4412 development board, the analysis is available on the core board circuit diagram, the Xi2cSDA0 pin and the Xi2cSCL0 pin are respectively obtained by the EXYNOS4_GPD1_0 and the EXYNOS4_GPD1_1 pin with multiplexing functions through the designated functions, and simultaneously, the driving device has pull-up resistance, in the circuit diagram of the bottom board, after 1.8V voltage of the Xi2cSCL0 pin and the Xi2 c0 pin on the core board is converted into 3.3V voltage through the TXS0108 level conversion chip, the interface is provided for the user to be connected with the S1115 pin and the ADSDA pin, and the hardware SDA is completed as shown in the diagram 3;
when the host computer and the slave computer carry out data transmission, the protocol standard of the I2C must be strictly complied with, FIG. 4 describes a complete I2C communication process, when the I2C bus interface is not operated, the I2C bus interface is usually in a slave mode, when the clock signal SCL is at a high level, a start signal is generated through the transition from the high level to the low level of the data transmission line SDA, when the clock line SCL is at the high level, the data transmission line SDA jumps from the low level to the high level, when the host computer or the slave computer generates a starting condition, the I2C bus interface is changed into the host mode, meanwhile, the SCL starts to generate the clock signal, the I2C bus is in a busy state, and the I2C bus is in an idle state under the stopping condition;
when the host generates a start signal, the host should send a slave address to inform the slave, the host sends a field of a byte, the byte includes a 7-bit slave address and a 1-bit transmission direction indicator bit, when the 8 th bit is 0, a write operation (send operation) is indicated, when the 8 th bit is 1, a request to receive data (receive operation) is indicated, each byte length transmitted on the SDA line should be 8 bits, there is no limit on the number of bytes in each transmission process, but after the start condition is generated, the first byte sent must have information such as the slave address, when the I2C bus is operated in the host mode, the host sends an address field, each byte is followed by an ACK bit, and the I2C controller sends the most significant bits of the data and address bytes to the SDA data line, see fig. 5 for details;
before any read and write operations are performed on the I2C bus, the I2C controller must be: writing a slave address into an I2CADD register, setting an I2CCON register to enable receiving interrupt, defining the clock frequency of SCL, setting an I2CSTAT register to enable serial output, when an I2C controller receives data in a receiving mode, an I2C bus interface continuously waits until the I2CDS register reads new data, after reading the data, the I2C controller releases the SCL clock line, exynos4412 keeps the interrupt to identify receiving the new data, a CPU reads the data from the I2CDS register after receiving the interrupt request, completes the reading flow, and is described in detail in FIG. 6, the slave address of the device can be known to be 0x48 according to the previous introduction of an ADS1115 chip, so that in the I2C communication process of bottom hardware, a host computer forms 0x48 and low-level 0 (write flag bit) into one byte of data and places the data on an ADS1115 register one bit after the other, after the ADbit is written into an ADbit configuration data line, and after the ADbit is written 8 is written into the ADS1115 register one bit, and a serial signal is required to be read after the serial read and the serial signal is written from the SDA 48, and the serial signal is required to be generated after the reading is switched from the low-level 1;
the kernel driver of the ADS1115 chip is developed based on an I2C subsystem of the Linux3.5 version kernel, firstly, in the Linux platform, there are two ways to describe all hardware resources of the hardware platform, one is defined by a device tree, the other is defined by a board level, the design adopts the latter to define the ADS1115 hardware device, a file map tiny4412.C defining the board level resources is modified in a source code system catalog of the Linux kernel to add elements into a structure body array of an i2c_board_info type, each element in the structure body array represents all slave devices under an I2C bus interface 0 channel, the name of the added ADS device is defined as 'ADS', and by consulting a chip manual of the ADS1115, if an ADDR pin of the ADS1115 chip is connected to a GND line, the slave address of the device is 0x48, then the driver of the device is further designed, each channel of the chip is further described in detail, and thus an ADS 1115_for the detailed structure body type is designed, as shown in a detailed structure body information table of a I2 c_info type is shown in a table 2 c_info;
table 3 ads1115_platform_data Member List
Member name Parameter type Description of the invention
enabled bool Channel enabling
pag unsignedint PGA amplification grade
Data_rate unsignedint Slew rate rating
Table 4 i2c_board_info structure array member list
Member name Type(s) Value of
name Char* “ads1115”
addr unsignedshort 0x48
platform_data unsignedshort Ads1115_platform_pdata
After the designed device structure body and the device data structure body variables are instantiated, the designed device structure body and the device data structure body variables are added into a device structure body array of a kernel, so that when a Linux system is started, the kernel initializes all device members in the device structure body array, puts ads1115 device members on an I2C bus of the Linux kernel, writes device driving according to an I2C bus device model, introduces an I2C bus device driving model of the Linux kernel in a second chapter, and firstly needs to define a structure body with the name ads1115_driver type of i2c_driver and initializes a probe member method, a remove member method and other members of the structure body;
in the I2C bus device driving model, when a device driving module is loaded to a kernel, the device driving module obeys a matching rule and automatically searches for devices mounted on an I2C bus to match, the device driving module can rely on the names of all devices in an id_table to match in the process of searching for the devices, in an ads1115_driver structure body variable, the id_table variable is assigned to be 'ads 1115' and 'ads 1015', and by virtue of the design, the driving module is enabled to adapt to two types of analog-to-digital conversion chips of the ads1115 and the ads1015, so that the driving module has universality;
once the device driver is successfully matched with the device, the kernel will call the probe function pointer of the i2c_driver structure to further operate, in this design, the ads1115_probe function is assigned to the probe function pointer, in the ads1115_probe function, a character driving device named as "ads1115" is registered by using a set of registered character driving interfaces provided by the Linux kernel, the chip is further configured by the previously defined ads 1115_plane_data variable, finally, the device re-implements the file_operations structure to redirect the read-write operation, the structure members are shown in table 5,
table 5 File_operations structural Member of ads1115
Member name Type(s) Value of
open Function pointer ads1115_open
read Function pointer ads1115_read
owner Module structure THIS_MODULE
In the driver, ADS1115_read () is a main data collection function, after three paths of analog input signals are converted into digital signals inside an ADS1115 chip, the digital signals are read through the function, and the chip handbook of the ADS1115 shows that the conversion precision of the chip is 16 bits, so that the design uses an array of unsignedshort type with the length of 3 to store the converted results from three channels, and finally kernel data is provided to a user space through copy_to_user function so that the user space can obtain the converted results and perform other operations, and the function is shown in table 6;
table 6 ads1115_read function table
Radix Ginseng Rubra Type(s) Function of Return value
filep structfile* Structure pointer for target file
buf char* Information buffer for return to user Number of bytes successfully read
cnt size_t Byte count of read information
lip loff_t* Read file offset pointer
In view of the above design, the design flow and working process of the integrated ADS1115 analog-to-digital conversion chip driver are shown in FIG. 7, firstly, the driver is compiled into a kernel module, the module is loaded into the kernel by using a module loading command, and the driver drives the device to start working to provide service for an application layer;
the server is connected to the patient end and used for performing remote transmission on the acquired pulse data, is built on a Tiny4412 embedded development board, is developed by means of a Linux operating system, is designed by adopting a C/S architecture model, and provides various services for the client end;
in the Linux operating system, a Linux kernel encapsulates operation related to network communication and provides an interface related to network programming for a user to use, the Linux operating system abstracts a communication endpoint into a socket, the socket conceals most communication details of network communication, and the user can communicate with different hosts like an operation file;
the local server of the design adopts TCP/IP protocol to communicate, and the following process is generally required for establishing a server model under a Linux operating system: firstly, a Socket for communication is established, the Socket is assigned with a communication domain, then the Socket is bound with an address and a port, then the Socket is monitored to a local port, a client is waited for connection, if the client tries to establish connection, a new communication Socket is obtained by a server, and at the moment, the server and the client can communicate;
according to the drive design of the ADS1115 chip and the interface provided by the device driver, the pulse data after the analog-to-digital conversion of the device is read, after the device driver is loaded, a character device named as an ADS1115 is generated under the/dev catalog of the root file system, the operation of the device is as the operation of a file at an application layer, the device is firstly required to be opened, then the reading operation is carried out, because the kernel driver has defined a data format, the application layer needs to read according to the data format defined by the kernel layer, and the data can be forwarded by combining the two with the design of a server by combining the last section;
according to the simple introduction of the data format, the server program sorts and forwards the pulse data provided by the driver program, and as the ADS1115 analog-to-digital conversion chip selected before is 16 bits of converted data width, the unsignedshort data type is selected, in the design, an array of unsignedshort type with the length of 3 is used for receiving the data, the detailed information of the data packet is shown in fig. 8, the server is designed and built by combining the data packet format, and the server building flow is shown in fig. 9;
the server program is developed under Ubuntnn 18.04 operating system on virtual machine software of PC, and the server should run on Tiny4412 embedded development board, the two platforms are different, one is x86 platform and the other is ARM platform, so the server program can not run on ARM platform,
typically, a source program needs to be compiled to generate an executable file, a suite used for compiling is generally called a tool chain, the tool chain used on a PC host is a tool chain based on an x86 platform, if an executable file capable of running on an ARM platform is to be compiled, a cross-compiling tool is used to perform re-compiling, a target program different from the host architecture can be compiled on the host by using the cross-compiling tool chain, in the present design, since the target platform is the ARM platform, a 5.4.1 version ARM-linux gnueabi cross-compiling tool provided by the Linaro project group is selected,
recompilation of the server program via the ARM-linux-gcc tool chain, which can run on an ARM platform;
the doctor end is connected to the server, developed by combining a Qt integrated development environment with a network and a database, and used for receiving pulse data issued by the server and realizing the visualization of the pulse data;
the doctor end is used as a client end of a local server and receives data of the server in a network transmission mode, and the server adopts a TCP/IP protocol to transmit the data, so that the client end also complies with the TCP/IP protocol, the client end is developed under the Qt integrated development environment of a Windows operating system, in a Qt program, a QTcpsocket object is firstly instantiated to establish connection with the server, and a building flow is shown in figure 10;
after the qtcpsocet object is bound to the server address and port, a connectitopest () method is used to send a connection request to the server, after the connection is successful, the server sends data to the client or receives data through the Socket object, thanks to the signal and slot mechanism of the Qt program, when the Socket obtains the data sent by the server, a readyRead () signal is triggered, at this time, the slot function bound to the readyRead () signal is called, in the corresponding slot function, the read () method in the qtcpsocet class is called to read the data received by the Socket,
through demand analysis of a remote diagnosis and treatment process, the diagnosis and treatment process of the client refers to a complete traditional Chinese medicine diagnosis and treatment process, as shown in a flow chart 11, firstly, a doctor inputs own account number code to log in, after logging in successfully, a patient to be diagnosed is selected, information of the patient is stored in a database to start diagnosis and treatment, then the client draws pulse data sent by a server into a graph for reference of the doctor, the doctor senses the pulse of the patient through pulse inversion equipment, finally, diagnosis is ended, and a diagnosis and treatment result of the patient is given;
for a complete remote diagnosis and treatment system, a set of databases for storing doctor and patient information is indispensable, and the databases should also show the relationship between doctors and patients, for example, indicate the attending doctor of a patient and the patient that a doctor has diagnosed, in the design, the SQLite database is adopted to develop the database of the project, the SQLite database belongs to a relational database, and the database has the characteristics of light weight and the like and is easy to build and develop;
according to the analysis of various information required to be stored in the remote traditional Chinese medicine diagnosis and treatment system, an overall E-R diagram of a remote traditional Chinese medicine diagnosis and treatment system database is designed, as shown in figure 12,
E-R diagram of the system overall is obtained through conceptual structure design, analysis is carried out from the E-R diagram, the database model meets the requirement of a third range, the E-R diagram only describes the real world relationship, and the logic structure is further designed through the E-R diagram, as shown in fig. 13;
the physical structure design of the database is the final purpose of the whole database design, the physical structure of the database is converted from a logic structure analyzed previously, the data storage type and the storage method are further specified, the SQLite database is used by the system, the name of a database file is a hotplate.db, the database is analyzed according to the requirement of the system, and the database is designed as follows:
table 7 depicts various information about the patient, the various fields of the table including the patient's number, name, gender, contact, etc., wherein the patient number field is the primary key;
table 7 patient information table
Remarks Field name Data type Main key constraint Non-empty constraint
Patient numbering pno text(20) Main key Whether or not
Patient name pname text(20) Whether or not Whether or not
Sex of patient psex text(4) Whether or not Whether or not
Patient telephone number ptel text(11) Whether or not Whether or not
Mainly used for doctor work number treaton text(20) Whether or not Is that
Table 8 doctor information table
Table 8 describes various information about a doctor, which is a doctor's job number, password, name, sex, telephone number, affiliated department, etc., wherein the doctor's job number field is a primary key,
in a Qt integrated development environment, qt applications will encapsulate the various operations of the database in detail, hide details upward, and provide a variety of database drivers, including SQLite databases, qt provides both the qsqdatabase class and the QSqlQuery class, both of which provide interfaces for users to operate the database, the qsqdatabase class provides interfaces to connect and close the database, the QSqlQuery provides methods to execute SQL statements,
by means of a mechanism provided by Qt for the database, the part of design only needs to write SQL sentences required by corresponding application scenes, and the operations of adding, checking, modifying, deleting and the like for the database data can be completed by executing the exec () method of QSQL query class, so that the application requirements are completed;
in the doctor end, there is also a need to have a doctor information adding function and a patient information adding function, and a diagnosis and treatment relationship and a history diagnosis and treatment information record between patients and doctors, in the design, three classes are designed for registering doctor information and patient information and displaying history diagnosis and treatment information, class names are RegisterDoctorsInfo, registerPatientInfo and HistoryRecord, registerDoctorsInfo, respectively, member variables with fields of a doctor table are provided, and a member method for inserting information into the doctor table is provided, the design of the register Patents Info class is basically the same as the design of the register doctorInfo class, the display history diagnosis and treatment function of the HistorRecord class relies on the ShowInfo () member method in the class, the method searches in the patient table and returns the result, and the relationship diagram of the three classes is shown in FIG. 14
The three classes inherit from a window class provided by Qt in a base class QDialog, QDialog, a UI interface provided by a Qdialogwindow is used for designing a required interface, in a register vector info class, the UI interface of the class is provided with four Lable input boxes and a button, corresponding data information is input in the input boxes, the data initialize each member variable of the register vector info class to construct a complete doctor record information, the submitInfo () method in the class uses an INSERT INTO command in an SQL statement to insert the record into a doctor table, and the register Patitiinfo class uses the same method to insert patient information in a patient table;
fig. 15 details the procedure of doctor information registration, first inputting doctor's work number in the registration view provided by the register doctorinfo class, then judging whether the input work number is legal, if so, the basis of the judgment is to find whether the input work number already exists in the database, if so, it is indicated that the user already exists, it is unnecessary to continue to register the user information, if not, it is necessary to continue to enter information, input name and password, since the password is an important login credential, it is necessary to verify again, after verification is successful, the subsmitinfo () method can be executed to complete registration,
the HistoryRecord class is to display the patient information that doctors have been diagnosing and treating, the member variable m_iFindNumber in the class receives the job number of doctors, execute SQL statement through the ShowInfo () method, the result that this statement is executed carries on the format conversion and then returns, in the QLable object of the view of this class, the m_table object will receive the value returned by the ShowInfo () method, then call the setText () method of the QLable object, reveal the historical diagnosing and treating information to doctors in the form of tabulation;
the design establishes a user system and a function of collecting user information, the login function can be realized by means of the collected user information, the realization of the login function improves the safety of the remote traditional Chinese medicine diagnosis and treatment system, the verification of the user identity is extremely important, the system can only be opened to doctors and administrators according to the analysis of the requirement of the login function, other members have no right to use the diagnosis and treatment system,
the part designs a class named logic through a Qt application program, the class is provided with UI interface members, a login detection method is realized in the method provided by the class, firstly, a database file is opened in a construction function of the class, then two text boxes designed in the UI interface of the class are used for inputting a work number and a password and a button is used for logging in respectively, a corresponding SQL sentence is written depending on the work number and the password fields input in the text boxes, the member is searched in a doctor information table, for example, "SELECT x FROMDOCTHEREDno= '%1' anddpasswd= '%2'", wherein '%1' and '%2' are account numbers and passwords input by a user in the UI interface, the SQL sentence is executed in the database, if no record is queried in the database, the login fails, if the login succeeds, the system is searched for indicating that the user identity is successful, and the system can be operated continuously, as shown in a flow 15;
the pulse graph is drawn to be a part of functions of a doctor end, the doctor can refer to diagnosis of a patient at this time through the drawn pulse waveform graph, the common pulse graph representation method is referred to, the pulse graph representation method is similar to the common pulse graph in the design, because the design needs to design three pulse data display graphs with the same attribute and function, the design is carried out by using a corresponding graph class provided by a QtCreater, a class named Widget is designed in the design, the class represents one path of pulse data waveform graph, and the class graph of the class is shown in FIG. 17
Finally, the setAxisX () and setAxisY () and addSeries () methods in the QChart class are called to combine the abscissa axisX, axisY and polyline m_Series objects with the m_Chart object, thus completely constructing a chart, and the flow chart for initializing the chart class is shown in FIG. 18
After all the required objects are initialized, the objects are displayed on the UI view, and the UI view does not provide an interface class for QChart class for display, only QGraphics View is provided for displaying general images, the QGrapics View object is promoted to QChartView object on the UI design interface, which is equivalent to deriving the QGrapics View object, finally, the setChart () method of the QChartView object is called to fill the line graph which is completed by the previous construction into the view,
depending on the drawing requirements for pulse data, the design uses a data structure of a ring queue in the class to store data and send data, qt provides a general queue container class named QQueue, then a ring queue is declared in the Widget class, the element type of the ring queue is qint16, because the data packet format sent by the server is introduced, the pulse data of each acupoint is 16 bits, the tail of the ring queue receives the pulse data of a certain place, the head of the queue sends the data to a line graph for drawing, depending on the characteristic of first-in first-out of the queue, the drawing pulse can be the same as the pulse data sequence monitored by the patient section, and meanwhile, the element which is already dequeued does not occupy the space of the queue any more,
in order to realize the function of simultaneously displaying three pulse graphs in the design, three objects are instantiated by the Widget class, three pulse graphs of a inch, a close and a ruler are represented respectively, the overall structure of pulse data is drawn as shown in fig. 19, firstly, a data packet sent by a server is read from a TCP byte stream according to a previously specified data format, then the data packet is unpacked, the data packet is decomposed into three pulse data of the inch, the close and the ruler, corresponding data is sent to ring queue members of the three objects which are realized previously, and the data is enqueued;
when drawing pulse graphs, because the data volume is large, a single task draws three pulse graphs at the same time, which can lead to the reduced response of the software system, in the design of the part, a QThread thread class is used for instantiating three thread objects, each of the three thread objects is responsible for drawing a data graph, each thread dequeues the queue head element of the ring queue which is respectively responsible, finally, a broken line object of the previous self-defined graph class is called, coordinate points are provided for the object, and data are drawn into a graph.
The doctor end is also provided with an inversion pulse device, the inversion pulse device comprises a controller and three vibration motors, the three vibration motors are connected to the controller, the controller is an STM32 controller, the controller is used for simulating the adjustment vibration of pulse due to the fact that pulse signals are received and the three vibration motors are started according to the pulse signals, doctor end software and the STM32 are communicated through USART peripheral equipment, and on an STM32 hardware platform, the three vibration motors are connected with pins GPIO_Pin_10, GPIO_Pin_11 and GPIO_Pin_12, as shown in FIG. 20;
the USART peripheral is provided by an STM32 hardware development board, the STM32 and the Qt upper computer are connected through an RS232 hardware interface, the gpiob_pin_10 and gpiob_pin_11 pins are respectively used as TX and RX pins of the USART and a circuit structure diagram of an RS232 mother port device are shown in fig. 21, the USART is basically a serial port transmission protocol in a transmission mode, and the serial port transmission is further packaged in the peripheral, for example, a serial port data shifter, a latch and the like are added;
the Qt upper computer provides serial port basic functions for users, the Qt serial port class provides serial port basic functions including serial port configuration and I/O operation, the functions of acquiring and setting control signals of RS-232 pin arrangement and the like, an RS232 serial port line is connected with a PC machine and an STM32 development board, COMx equipment can appear in an equipment manager of the PC machine, the equipment is opened by using an open () method in a QS_Export class provided by the Qt, the baud rate, data bits and the like of the serial port communication equipment are configured, when data is required to be sent to a serial port, the frequency data is formed into a data packet, then the write () method in the QS_Export class is called to send the data packet to the serial port equipment, a flow chart is shown in figure 22,
when the frequency control is carried out on the vibration motor, when the Qt upper computer sends frequency data to the serial port, the STM32 can generate a serial port receiving interrupt signal, and the interrupt service program reads the frequency data from the receiving register of the USART, so that the STM32 is controlled to generate PWM waves with corresponding frequency, and the vibration motor is controlled to vibrate.
In conclusion, the invention completes the function design of the pulse acquisition module and the development of the server by means of the Tiny4412 hardware development platform and the Linux operation system, combines the Qt integrated development environment and the STM32F103 hardware platform to design and realize doctor-side software and pulse inversion equipment, and jointly forms the system, so that remote traditional Chinese medicine diagnosis and treatment can be carried out on patients, modernization and intellectualization of traditional Chinese medicine diagnosis and treatment can be realized, the clinic quantity of the traditional Chinese medicine can be greatly improved, the function of the traditional Chinese medicine can be furthest exerted, the patients do not need to see the traditional Chinese medicine, and the convenience is brought to the patients.
Although the invention has been described hereinabove with reference to embodiments, various modifications thereof may be made and equivalents may be substituted for elements thereof without departing from the scope of the invention. In particular, the features of the disclosed embodiments may be combined with each other in any manner so long as there is no structural conflict, and the exhaustive description of these combinations is not given in this specification merely for the sake of brevity and resource saving. Therefore, it is intended that the invention not be limited to the particular embodiment disclosed, but that the invention will include all embodiments falling within the scope of the appended claims.

Claims (4)

1. A remote traditional Chinese medicine diagnosis and treatment system, which is characterized in that: comprising the following steps:
a patient end comprising a pulse acquisition device and a driving device connected to
The pulse acquisition equipment is used for executing acquisition of pulse data of a patient, and the driving equipment is used for executing the steps of providing an interface for an application layer and driving the pulse acquisition equipment to work, and the pulse acquisition equipment bag
The pulse sensor is connected to the analog-to-digital conversion module, and the analog-to-digital conversion module is used for converting the pulse into the pulse
The block is used for performing analog-to-digital conversion on the acquired data, and the number of pulse sensors is three for performing
The pulse sensor is a pulse sensor PulseSensor which is common in the market and measures pulse and heart rate by adopting a photoelectric volume method, the sensor can rapidly and accurately acquire the pulse data, the sensor provides three pins for a user, the pin 2 of the module is an analog signal output pin, and the pulse sensor is provided with the pulse sensor
The sensor is correctly placed on the finger and wrist of human body, and the photoelectric signal is input into the sensor
After the signals are filtered and amplified, the AOUT pins continuously output the acquired analog voltage values, the analog output is subjected to AD conversion, the digital quantity of pulse signals can be obtained, the analog-to-digital conversion module is an ADS1115 analog-to-digital conversion chip, and the ADS1115 analog-to-digital conversion chip can receive four analog input signals;
the server is connected to the patient end and is used for executing the process of collecting the pulse data
Remote transmission;
the doctor end is connected to the server, developed by combining a Qt integrated development environment with a network and a database, and used for receiving pulse data issued by the server and realizing pulse
Visualization of data;
the patient end and the doctor end are both provided with UI visual interfaces for executing information interaction between the doctor and the patient;
the server is built on a Tiny4412 embedded development board, is developed by means of a Linux operating system, and is designed by adopting a C/S architecture model;
the remote diagnosis and treatment process comprises the following steps:
firstly, a doctor inputs an account number and a password of the doctor to log in, after the login is successful, a patient to be diagnosed is selected, information of the patient is stored in a database to start diagnosis and treatment, then a client draws pulse data sent by a server into a graph for the doctor to refer, the doctor senses the pulse of the patient through pulse inversion equipment, finally, diagnosis is finished, and a diagnosis and treatment result of the patient is given;
the doctor terminal also comprises a doctor information function, a patient information function, a diagnosis and treatment relation between the patient and the doctor and a history diagnosis and treatment information record, wherein the SQL sentences required by corresponding application scenes are written and completed by means of a mechanism provided by Qt for a database, and an exec () method of QSQL query class is executed to complete the operations of adding, checking, modifying and deleting database data to complete application requirements;
the doctor end also comprises a pulse graph drawing function, the doctor can refer to the diagnosis of the patient through the drawn pulse waveform graph,
drawing pulse data uses a data structure of a ring queue to store data and send the data, qt provides a general queue container class named QQueue, then a ring queue is declared in the Widget class, the element type of the ring queue is qint16, the pulse data of each acupoint is 16 bits, the tail of the ring queue receives the pulse data of a certain place, the head of the queue sends the data to a line graph for drawing, the drawing pulse is the same as the pulse data sequence monitored by a patient section by virtue of the characteristic of first-in first-out of the queue, meanwhile, the element which has been dequeued does not occupy the space of the queue any more,
simultaneously displaying three pulse diagrams, instantiating three objects of the Widget class, representing three pulse diagrams of a inch, a close and a ruler respectively, firstly, reading a data packet sent by a server from a TCP byte stream according to a data format specified previously, then unpacking the data packet, decomposing the data packet into three pulse data of the inch, the close and the ruler, sending corresponding data to ring queue members of the three objects realized previously, and enqueuing the data;
when drawing a pulse graph, a QThread thread class is used for instantiating three thread objects, each of the three thread objects is responsible for drawing a data graph, each thread dequeues the head element of a ring queue which is respectively responsible, finally, a polyline object of a previous custom graph class is called, coordinate points are provided for the object, and data are drawn into the graph.
2. A remote TCM diagnosis and treatment system according to claim 1, wherein: the pulse acquisition equipment comprises an analog-to-digital conversion module and a pulse sensor, wherein the pulse sensor is connected to the analog-to-digital conversion module, the analog-to-digital conversion module is used for performing analog-to-digital conversion on acquired data, and the pulse sensor is used for performing analog-to-digital conversion on the acquired data
Is three in number for performing the acquisition of patient pulse data.
3. A remote TCM diagnosis and treatment system according to claim 1, wherein: and the doctor end is also provided with a pulse inversion device.
4. A remote TCM diagnosis and treatment system according to claim 3, wherein: the pulse inversion device comprises a controller and three vibration motors, wherein the three vibration motors are connected to the controller, the controller is an STM32 controller, and the controller receives pulse signals and is used for controlling the pulse inversion device according to the pulse signals
And starting three vibration motors, wherein the vibration motors are used for simulating the adjusting vibration of the pulse.
CN202111142005.4A 2021-09-28 2021-09-28 Remote traditional Chinese medicine diagnosis and treatment system Active CN113782228B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111142005.4A CN113782228B (en) 2021-09-28 2021-09-28 Remote traditional Chinese medicine diagnosis and treatment system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111142005.4A CN113782228B (en) 2021-09-28 2021-09-28 Remote traditional Chinese medicine diagnosis and treatment system

Publications (2)

Publication Number Publication Date
CN113782228A CN113782228A (en) 2021-12-10
CN113782228B true CN113782228B (en) 2024-02-27

Family

ID=78854120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111142005.4A Active CN113782228B (en) 2021-09-28 2021-09-28 Remote traditional Chinese medicine diagnosis and treatment system

Country Status (1)

Country Link
CN (1) CN113782228B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201774541U (en) * 2010-02-06 2011-03-23 大连大学 Portable network fault diagnostic device
CN109830307A (en) * 2019-04-04 2019-05-31 齐鲁工业大学 A kind of remote Chinese medical diagnostic system and diagnostic message processing method
CN111324348A (en) * 2018-12-17 2020-06-23 北京华航无线电测量研究所 Man-machine interaction interface implementation method of ground control platform of guide equipment
CN111696687A (en) * 2020-07-24 2020-09-22 上海理工大学 Method for realizing microcirculation and pulse synchronous monitoring by adopting mobile phone camera

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140107499A1 (en) * 2012-10-12 2014-04-17 True Process, Inc. Medical Information Management System

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201774541U (en) * 2010-02-06 2011-03-23 大连大学 Portable network fault diagnostic device
CN111324348A (en) * 2018-12-17 2020-06-23 北京华航无线电测量研究所 Man-machine interaction interface implementation method of ground control platform of guide equipment
CN109830307A (en) * 2019-04-04 2019-05-31 齐鲁工业大学 A kind of remote Chinese medical diagnostic system and diagnostic message processing method
CN111696687A (en) * 2020-07-24 2020-09-22 上海理工大学 Method for realizing microcirculation and pulse synchronous monitoring by adopting mobile phone camera

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
廖义奎.物联网应用开发 基于STM32.北京航空航天大学出版社,2019,288-289. *

Also Published As

Publication number Publication date
CN113782228A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
US9641589B2 (en) Extensibility for manipulation of medical data
CN106407666A (en) Method, apparatus and system for generating electronic medical record information
CN104050080B (en) User space debugs the method and system of linux kernel
US9965405B2 (en) Initial enumeration of empty endpoint slots using endpoint emulation
WO2020019490A1 (en) Interface testing method, electronic device and storage medium
CN110972096A (en) Internet of things data acquisition software with configurable communication protocol and design method
CN114510432B (en) Register debugging platform and debugging method
CN106161132A (en) For the apparatus and method that storage network is tested
CN116306396A (en) Chip verification method and device, equipment and medium
CN114270313A (en) Computer-implemented method, computer program and physical computing environment
CN107678984A (en) USB port mapping method and computer-readable recording medium
CN113782228B (en) Remote traditional Chinese medicine diagnosis and treatment system
US10637930B2 (en) System for integrating a detectable medical module
CN107403573A (en) A kind of USB experimental systems and method based on STM32F7
Milenković et al. Using of Raspberry Pi for data acquisition from biochemical analyzers
CN108334313A (en) Continuous integrating method, apparatus and code management system for large-scale SOC research and development
US20020054536A1 (en) Method and system for automated processor register instantiation
Fernandes Raspberry Pi 3 cookbook for Python programmers: unleash the potential of Raspberry Pi 3 with over 100 recipes
CN113705821B (en) PCIE-based method, equipment and medium for realizing waveform drawing by ADC board card
US9779012B1 (en) Dynamic and global in-system debugger
Mata Development and evaluation of an open platform for recording, storage, visualization and analysis of biosignals on the cloud
CN110060763A (en) A kind of exchanging based on medical image and threedimensional model and the method and device of archive
CN108153276A (en) DCS performance testing devices and method based on SOPC
Jadlovský et al. A Novel General Purpose Data Acquisition Board with a DIM Interface
CN114582519B (en) Hospital follow-up method and device based on multi-source data and terminal equipment

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
GR01 Patent grant
GR01 Patent grant