EMR (Electronic Medical Record, EMR) system is a digital technology, computer technology, communications technology, software engineering, technical, and other graphic images integrated multidisciplinary, high-tech projects.
The complete data, data processing, network transport, medical support, statistical analysis, etc. are all paper records.Temperature is the electronic medical record system an important data, such as a patient's body temperature rises could allow clinicians to know the symptoms of patients with fever.
In the electronic medical record system, temperature single against user is hospital nurse. Nurses daily records of the patient's temperature, and other information, entry to the database, the system automatically generates single-electron temperature and draw a graph. Temperature graphs visually displays the patient's temperature, and other related data, and related diseases and to treat the combination of knowledge, as further diagnosis and determine treatment options.I participate in the development of electronic medical record system under a large hospital's actual demand, on the .NET platform using C # language throughout development.
This article focuses on electronic medical record system temperature curve of the design and implementation.1 the main function of electronic medical records system
This system according to the actual needs of the hospital, the main purpose is to capture patient data, so that it can provide clinicians with the diagnosis and decision-making information, further to the information to be used in clinical research.
System main features as shown in Figure 1.2 temperature curve design and implementation of
2.1 thermometer generation
In the electronic medical record system, each hospital treatment of the patient in the hospital during a medical record number, this is a sign of patients determine code, usually in the database system as only the corresponding codes and keywords.
The patient's home nurses to patients for temperature, pulse, respiration, and various aspects of testing, will these data entry to electronic medical records system, the system automatically generates a single body temperature.In the patient's temperature single, you need to record and analyze the patient's temperature transformation.
Temperature single information "temperature" and "pulse" and "breathe" the information to every 4 hours recording time, at 4 pm, 8 pm, 12, 16, 20, 24, when the time period. The "stool frequency," "the number or volume of urine" and "comprebensive" and "emissions" and "blood", "weight" and other information is recorded once a day. According to body temperature single information to 1 day to 1 unit, draw 1 days patients in various time periods of "temperature" and "pulse" and "breathing" of the curve changes, as well as record number of the "stool", "the number or volume of urine" and "consumption" and "emissions" and "blood", "weight" and other information. Whole body temperature chart 1 shows only 7 days. In your diagram with coordinates and curve describes the patient's temperature of continuous changes visually satisfying nurse to patient's temperature, respiration, pulse, and other information published and query needs. Figure 2 is a temperature single display interface.2.2 temperature mapping
Temperature chart is based on the temperature of the auto-generated data.
Since the temperature chart show the patient at a time 7 days temperature changes, so the design of the page, on the length of time the patient through the page each time you skip 7 days to ensure the patient's temperature display of information integrity.2.2.1 C # GDI + drawing
Temperature mapping from .NET base class set up GDI + implementation, the base class can be used to complete the custom drawing on the screen, the appropriate directive is sent to the graphic device driver, make sure that the display screen shows the correct output.
In GDI, identify the output device is to use object device context (DC).
The object stores information about a specific device, and can convert GDI API function calls to send to the device for instructions. Implementation of the function you want to use Paint to a GDI + drawing technique. By overriding the OnPaint Form class (PaintEventArgs e) to perform drawing operations.In OnPaint (), the first reference from the PaintEventArgs in the paint graphics Graphics object.
Finally, call the base class's OnPaint () method.When the application first starts, the first time a window appears, call the OnPaint (), there is no need in the constructor copies the drawing code.
Because the entire body figure comparison, but display window classified as 800 × 600, in order to be able to complete display temperature graph document, the document is out of the window, the notification window scroll bars appear in the right hand side.
To this end, the entire document as a range (1 800, 886) pixels, and in the form designer in the properties of the AutoScroll property is set to True. In this way, when the temperature chart more than window scroll bars automatically appear.2.2.2 absolute coordinates to the relative coordinates transformation
In general the drawing code, because the rendering of the graphics area is less than the size of the window, there is no need for special attention.
Graphics instance by default is the coordinates are interpreted as relative to the window, it does not know the scroll bar. When you slide the scroll bars, Windows does not require the application to redraw the already displayed on the screen. Windows only pointed out the screen currently displayed content can smooth move to match the position of the scroll bar. For extra document parts in applications is first displayed, there is no draw that portion of the window, because in the scroll window, this part of the window area outside. This means that Windows requires ScrollShapeS application draws the region. It raises the paint event, put this region as cut a rectangle, in window and original graphic is displayed, it will appear a window with multiple graphics overlap, resulting in a graphic confusion.The solution is to put the Graphics instance with the default coordinates to the coordinates relative to the coordinates that are relative to the upper-left corner of the window, not the upper-left corner of the start of the document, the absolute coordinates converted to relative coordinates.
Here in Figure 3 shows this conversion.Solid rectangle marked with a screen area of borders and the border of the entire document.
The dotted rectangle marked attempt to draw a rectangle and ellipse. P tags to draw a random point. When you call drawing methods, providing the Graphics instance and from A point into a vector P point, the whole vector is represented as a Ponit instance. But actually need is from point B to point P of the vector. The problem is that here only know from A point into a vector point P, P relative to the coordinates of the upper-left corner of the document, and to document the P points drawing. Also know from point a to point b, of the vector is scrolled, it is stored in a property of the Form class AutoScrollPosition. Want to know from point b to point vector P only require vector subtraction. Graphics class of the TranslateTransform method can make these vector calculation. Here it transmit horizontal and vertical coordinates representing Windows drive gone, and the upper-left corner of the relative to the upper-left corner of the document of the vector (AutoScrollPosition property, it is a figure from a to B vector), and Graphics device considered window area relative to the document area, dealing with these coordinates. As long as the drawing code by adding the following statement: g.TranslateTransform (this.autoscrollpositiort.x this.autoscrollposition.y); you can solve the problem of transformation.2.2.3 temperature diagram rendering technology
Temperature mapping according to body temperature in patient related information, using only C # GDI + to draw out the appropriate temperature graphs.
In the program first absolute coordinate and relative coordinate transformation, and then use the Pen class defines the brush, Brush class defines the brush color, for the need to fill in with a brush to fill, and then call the DrawLine method of the Graphics class to draw the line. In the DrawLine method, you offer the brush type, the segment start and end points coordinates and other parameters.Temperature graph after initialization, according to pass from the thermometer of the patient number as your global variables in the diagram, the database query and the query results are converted to a coordinate, passed to the draw method of the DrawLine and FillEllipse, draw graphics.
Figure 4 is a temperature graph display interface.2.2.4 temperature diagram page implementation
Because every time the body temperature chart only shows patients 1 week temperature conversion information, to display the 1 week prior to your information, you can use page functions.
The page features implemented using mainly used when reading data to Read () method. By Read () method to read data while the current pointer down one bit. Initially it is located in the data set before the first row, the first call to Read () will put the pointer on the first line, making it the current row. With each call to Read () causes the pointer to move down from the top down in order to obtain the dataset row. Code is as follows:Where the variable n is the global variable from the scrolling buttons to be assigned.
To the current variable n minus 1 x 7 is required to skip the number of intervals, to date, the date for the data set filter, elects this week for the date stored in the array array.3 conclusion
Electronic medical record is the hospital information development trend.
According to the requirements of the standardized HL7, the current domestic electronic medical research is far from perfect, it is necessary to work out perfect adaptation to the domestic use of hospital electronic medical record system also needs further study. This article on using C # drawing electronic medical record system temperature graph technology, tried to improve the electronic medical record system do useful attempt. Electronic medical record system-related research will be evolving and in-depth, and electronic medical record technology architecture and software process will become more and more mature.
No comments:
Post a Comment