CN107292084B - Automatic medical prescription transferring method - Google Patents

Automatic medical prescription transferring method Download PDF

Info

Publication number
CN107292084B
CN107292084B CN201710322308.1A CN201710322308A CN107292084B CN 107292084 B CN107292084 B CN 107292084B CN 201710322308 A CN201710322308 A CN 201710322308A CN 107292084 B CN107292084 B CN 107292084B
Authority
CN
China
Prior art keywords
writing
prescription
unit
writing device
automation
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.)
Expired - Fee Related
Application number
CN201710322308.1A
Other languages
Chinese (zh)
Other versions
CN107292084A (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.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN201710322308.1A priority Critical patent/CN107292084B/en
Publication of CN107292084A publication Critical patent/CN107292084A/en
Application granted granted Critical
Publication of CN107292084B publication Critical patent/CN107292084B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses an automatic medical prescription transferring method, which is used for sending prescription information to a writing device driving program so as to realize automation of the process, wherein the automation process realizes background automatic operation by compiling scripts through Q language and packaging the scripts into programs so as to realize background automation of the operation process. The writing device mainly adopts the writing robot principle and comprises a writing unit, a supporting unit, a damping unit, an aluminum alloy metal shell and a medical record pressing framework. The invention takes the writing machine principle of directly writing on the surface of the medical record book as the hardware basis, so that the writing machine is suitable for the size of the medical record book, saves the space and simultaneously realizes the automatic operation of the background on the flow.

Description

Automatic medical prescription transferring method
Technical Field
The invention relates to the combination of medical treatment and electronic information field, which is a method capable of directly transferring the prescription in a doctor prescription system to a medical record book.
Background
At present, the printing of the traditional printer is realized by the transverse movement of a printing head and the longitudinal movement of paper driven by the rolling of a stepping motor, but the traditional printer cannot be used for printing due to the thickness limitation of medical records, and doctors still need to hand one copy in the medical records after the doctor visits, so that the treatment efficiency is greatly reduced, and the medical records are not easy to be recognized; if the prescription is printed, the printing paper is inconvenient to carry and easy to lose.
Disclosure of Invention
In order to overcome the defect that the conventional printer cannot print a medical record, the invention provides an automatic medical prescription transferring method.
A medical prescription automatic transfer method, send prescription information to the driver program of the writing device, thus realize the automation of the course, the said automation course realizes the automatic operation of the backstage through Q language and compiles the script and encapsulates into the hotkey, realize the automation of the backstage of operation course;
the method comprises the following steps:
1) acquiring and storing prescription information from prescription software;
2) processing the prescription information by converting characters into SVG vector curves;
3) importing an SVG vector graph format file, and identifying SVG vector curve contents by a writing device;
4) carrying out a prescription writing process;
5) and (5) finishing the writing action, clearing the trace of the processing flow at this time and releasing the memory.
The step 2) converts the prescription information into a recognizable SVG vector diagram dot matrix format document by using a character-to-curve functional module of Coreldraw software;
and 3) using the function module of the Inkscape for identifying the SVG vector diagram format file as a driving program of the writing device.
The writing device mainly adopts the writing robot principle and comprises a writing unit, a supporting unit, a damping unit, an aluminum alloy metal shell and a medical record pressing framework,
the pen control device of the writing unit is driven by two stepping motors to rotate and control the movement of the belt, and the circuit board and a computer carry out serial port interaction to acquire information to control the direction and the distance of the movement;
the support unit supports the writing device, aluminum materials are matched with acrylic materials, the distance between the support unit and the desktop is kept, and the shock absorption unit is additionally arranged on the support unit; the writing device is provided with an aluminum alloy metal shell to protect the internal structure;
the disease record book presses the frame and plays a role in fixing the pages of the disease record book.
The invention has the beneficial effects that: the writing device capable of directly writing on the surface of the medical record book is used as a hardware basis, and the size of the whole cutting machine is assembled and optimized, so that the writing device is suitable for the size of the corresponding medical record book and saves space; the background is written with Q language script to realize automatic operation of the flow and package into hot keys, thus realizing background automation of the operation process.
Drawings
The invention is further illustrated with reference to the following figures and examples.
FIG. 1 is a flow chart of the method of the present invention;
FIG. 2 is a flow chart of an embodiment of the present invention output from the prescription system to the Coreldraw software;
fig. 3 is a flow chart of an embodiment of the present invention in the writer driver Inkscape.
Detailed Description
The invention takes a writing device (such as Axidarw) capable of directly writing on the surface of a medical record book as hardware equipment, obtains a prescription from a medical prescription system, carries out vectorization format conversion, generates an SVG vector diagram format file, and carries out a printing process after the SVG vector diagram format file is identified by the writing device, and the whole process is carried out by a program background without manual operation. As shown in fig. 1, the steps are as follows:
1) acquiring and storing prescription information from prescription software;
2) processing the prescription information by converting characters into SVG vector curves;
3) importing an SVG vector graph format file, and identifying SVG vector curve contents by a writing device;
4) carrying out a prescription writing process;
5) and (5) finishing the writing action, clearing the trace of the processing flow at this time and releasing the memory.
The writing device is selected and used in one embodiment of the invention, the principle of a writing robot is mainly adopted, and the writing device comprises a writing unit, a supporting unit, a damping unit, an aluminum alloy metal shell and a medical record pressing framework.
The pen control device of the writing unit is driven by two stepping motors to rotate and control the movement of the belt, and the circuit board and a computer carry out serial port interaction to acquire information to control the direction and the distance of the movement; the supporting unit is made of aluminum materials and acrylic materials, and keeps a certain distance from the table top, so that the medical record is prevented from being blocked when the medical record vertically or transversely moves downwards; when the table is in work, the supporting unit can slightly collide with the table top due to vibration to generate noise, so that the damping unit is added on the supporting unit to reduce the noise, and meanwhile, the vibration strength can be weakened, and the writing precision is improved; in order to prevent the circuit board and the motor wire from being exposed in the air to be deposited with dust or damaged, the aluminum alloy metal shell is customized according to the size after cutting, so that the internal structure of the aluminum alloy metal shell is protected and the attractive effect is achieved; the medical record book sometimes has the condition such as slight aversion or perk because of disturbance or paper self tension, for improving this problem, has customized suitable aluminum alloy pressing frame according to medical record book page size, can play the fixed effect of page, improves and writes the precision, prevents simultaneously that the pen-lifting removal from keeping a scratch on the medical record book when the paper perk. The pen point does not adopt an ink jet device of a common typewriter, but directly adopts a gel pen to drive the gel pen by a mechanical arm to write, the assembly and debugging are successful, and a matched script is provided for the gel pen, and the script can realize background automation of all processes of reading prescription information from a prescription system, carrying out format conversion, exporting and importing files, interacting with a writing device and the like. The function of the system is more perfect, the system is suitable for Windows 10 and Windows xp systems at present, and the system can be applied to other processes suitable for batch writing and high-precision person-replacing writing except for the medical industry.
In another embodiment of the present invention, in order to achieve the intended purpose, multiple software principles are referred to, and finally two software functions with relatively stable performance and relatively simple operation are selected, and part of module functions of the two software are called in the software programming process: converting the Chinese characters of the prescription information into a recognizable SVG vector diagram dot matrix format document by using a character-to-curve function of Coreldraw software; the function of identifying the SVG vector diagram format file by using the Inkscape is used as a driving program of the writing machine; the whole software program uses Q language to compile background script, to complete information interception, format conversion, export and import, printing process detection and printing end feedback, and the module calling of the two software, and packaging, to realize the whole process background automation.
Referring to fig. 2, after prescription information is acquired from the medical prescription system in a manner of acquiring all text contents in handles, whether the Coreldraw software is opened or not is checked, and if the Coreldraw software is not opened, a pop-up window reminds a doctor to open the software; if the Coreldraw operation page is opened, the Coreldraw operation page is found to be positioned and the prescription information is pasted (the positioning is directly positioned at the initial position of the pen-down position of the writing machine). Sending out a file export command, judging whether to pop up a file export window, and if not, resending the command; if the export file window exists, the background searches and clicks an export button (note that the number of times is counted after a fast key is pressed each time, if the number of times exceeds 20, the software is abnormal, a popup window is displayed to prompt a doctor to restart Coreldraw, and the file name defaults to be 'graph 1. svg'). If the prescription information is exported for the second time or the last time of prescription information is not cleared due to the fact that the flow is illegally interrupted in the last operation, a popup inquires whether the original file with the same name is covered, whether a window which is confirmed to be saved additionally exists is checked, if the window exists, the window is covered, and then an SVG export window is entered; if not (first export or last normal progress, prescription information deleted) then go directly to the "SVG export window". Checking whether an SVG export window exists, if the SVG export window does not exist, judging whether an additional storage window exists, and if the SVG export window does not exist, checking the default backtracking check to confirm that the additional storage window exists, and if the SVG export window exists, clicking a 'yes' button before the SVG export window exists, so that clicking is performed again; if the window is confirmed to be saved as another time, the file exporting step is returned again and the control variables are counted accumulatively, if the error description software is abnormal after being accumulated for more than 20 times, the window is popped to prompt restarting; if a check exists for "SVG export Window" all settings are defaulted and the "OK" button is clicked on to generate the "graphic 1. SVG" file.
In fig. 3, it is first checked whether an Inkscape of a driver of a writing machine is opened, if not, a pop-up window reminds a doctor to open software, if so, a command to open an existing file is sent, whether a "file opening window" pops up is judged, and if not, a command is sent again (note here, the number of times is counted after the command is sent each time, if the number of times exceeds 50, the software is abnormal, the pop-up window reminds the doctor to restart the Inkscape); if the open file window exists, the file position and the editable input box handle are found, and the corresponding file name is sent to the input box by the background. Then judging whether the characters in the input box are complete and correct, if not, deleting all the characters and retransmitting the characters; if the answer is correct, the 'open' button is clicked in the background. Rechecking whether the 'open file window' exists, if the description file does not open, re-clicking the 'open' button, and if the description file is clicked for more than two times, re-searching the correct file position; if the 'open file window' does not indicate that the prescription file with the converted format is opened, the background sends a command to open a drive plug-in 'iDraw calligrapher', all the procedures are ready at this time, the popup window reminds a doctor to place a medical record, if the doctor does not want to print at this time suddenly, the 'No' is clicked, the whole process is ended, if the 'Yes' is clicked, whether the 'iDraw calligrapher' window exists is judged, if the 'iDraw calligrapher' window does not exist, the shortcut key is pressed again to open, if the 'confirm' is clicked, writing is started, the writing state is judged according to the number of windows with the same name, whether the printing process is normally carried out is continuously and circularly detected, and abnormal warning is sent; and after the printing process is finished, performing subsequent initialization operation, closing the original project, newly building a blank project for the next use, and simultaneously removing the prescription trace of the time.

Claims (1)

1. The automatic medical prescription transferring method is characterized in that prescription information is sent to a writing device driving program, so that automation of the process is realized, background automatic operation is realized in the automation process through writing scripts in Q language, and the scripts are packaged into programs, so that background automation of the operation process is realized;
the method comprises the following steps:
1) acquiring and storing prescription information from prescription software;
2) processing the prescription information by converting characters into SVG vector curves;
3) importing an SVG vector graph format file, and identifying SVG vector curve contents by a writing device;
4) carrying out a prescription writing process;
5) after the writing action is finished, clearing the trace of the processing flow at this time and releasing the memory;
the step 2) converts the prescription information into a recognizable SVG vector diagram dot matrix format document by using a character-to-curve functional module of Coreldraw software;
step 3) using an Inkscape to identify a functional module of the SVG vector diagram format file as a driving program of the writing device;
the writing device is based on the writing robot principle and comprises a writing unit, a supporting unit, a damping unit, an aluminum alloy metal shell and a medical record pressing framework,
the pen control device of the writing unit is driven by two stepping motors to rotate and control the movement of the belt, and the circuit board and a computer carry out serial port interaction to acquire information to control the direction and the distance of the movement;
the support unit supports the writing device, aluminum materials are matched with acrylic materials, the distance between the support unit and the desktop is kept, and the shock absorption unit is additionally arranged on the support unit; the writing device is provided with an aluminum alloy metal shell to protect the internal structure;
the disease record book presses the frame and plays a role in fixing the pages of the disease record book.
CN201710322308.1A 2017-05-09 2017-05-09 Automatic medical prescription transferring method Expired - Fee Related CN107292084B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710322308.1A CN107292084B (en) 2017-05-09 2017-05-09 Automatic medical prescription transferring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710322308.1A CN107292084B (en) 2017-05-09 2017-05-09 Automatic medical prescription transferring method

Publications (2)

Publication Number Publication Date
CN107292084A CN107292084A (en) 2017-10-24
CN107292084B true CN107292084B (en) 2020-12-08

Family

ID=60093909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710322308.1A Expired - Fee Related CN107292084B (en) 2017-05-09 2017-05-09 Automatic medical prescription transferring method

Country Status (1)

Country Link
CN (1) CN107292084B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722240A (en) * 2011-05-18 2012-10-10 北京大学深圳研究生院 Text information input system, handwriting input device and text information input method
CN102810135A (en) * 2012-09-17 2012-12-05 顾泰来 Auxiliary processing system for drug prescription
CN104966311A (en) * 2015-06-10 2015-10-07 江苏中威科技软件系统有限公司 Vector graph storage method used for handwriting signing system
CN106033406A (en) * 2015-03-12 2016-10-19 上海运申制版模具有限公司 Printing method and apparatus for literatures written with multinational characters

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101901151B (en) * 2009-05-27 2013-05-15 同方股份有限公司 Method for realizing dynamic play of enterprise trademark under extensible firmware interface
CN103268166B (en) * 2013-05-17 2015-12-09 山东明海软件技术有限公司 The former handwriting information collection of handwriting input device and display packing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722240A (en) * 2011-05-18 2012-10-10 北京大学深圳研究生院 Text information input system, handwriting input device and text information input method
CN102810135A (en) * 2012-09-17 2012-12-05 顾泰来 Auxiliary processing system for drug prescription
CN106033406A (en) * 2015-03-12 2016-10-19 上海运申制版模具有限公司 Printing method and apparatus for literatures written with multinational characters
CN104966311A (en) * 2015-06-10 2015-10-07 江苏中威科技软件系统有限公司 Vector graph storage method used for handwriting signing system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
智能写字机器人设计;陈玉敏等;《计算机测量与控制》;20160303;第24卷(第1期);第266-268页 *

Also Published As

Publication number Publication date
CN107292084A (en) 2017-10-24

Similar Documents

Publication Publication Date Title
US20210012057A1 (en) Integrated document editor
CN1624643A (en) Scaled text replacement of digital ink
CN101164054A (en) Auto-suggest lists and handwritten input
JP2004240968A5 (en)
KR20110088521A (en) Label printer api using program scripting language
US20070086042A1 (en) Apparatus, system, and method for selecting ordered files for printing
JPH11249852A (en) Document printing system
CN107292084B (en) Automatic medical prescription transferring method
US20220143825A1 (en) Automated process robotic system, method, non transitory computer readable recording medium and computer program product with integrated process and automated data analysis
US7716631B1 (en) Architecture blueprint tool and method
US20090208103A1 (en) Control of optical character recognition (OCR) processes to generate user controllable final output documents
CN111026604B (en) Log file analysis method and device
CN116484038A (en) SVG logging data interaction management software method and system
US20040264022A1 (en) Apparatus and method for reducing errors in writing to a storage medium
JP2007531085A5 (en)
US8311801B2 (en) Technology for supporting modification of messages displayed by program
CN1577240A (en) Printing method and apparatus for rectifying error and computer readable recording medium
CN104182561B (en) It is a kind of that metal slabs and the method and system of the influence of guiding pin contacts are added within the gravitational load stage of the deep draw operating simulation of sheet metal part
CN101593090B (en) Printing apparatus and method for processing real-time command using the printing apparatus
US20090138846A1 (en) Extended macro recording
CN108897529A (en) A kind of development approach of PCI motion control card driving
JP4572172B2 (en) Image forming apparatus and printing system for high-speed printing
CN100468309C (en) Information processor and its method, and image drawing device
JP4136357B2 (en) Form definition processing device, form definition processing program, and form definition processing program recording medium
CN113760588A (en) Method and device for acquiring abnormal information of software system

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20201208