Summary of the invention
Technical matters to be solved by this invention is: provide a kind of liquid intake and output volume computing system, the accuracy of traceable whole computation process.
In addition, the present invention also provides a kind of liquid intake and output volume computing method, the accuracy of traceable whole computation process.
For solving the problems of the technologies described above, the present invention adopts following technical scheme:
A kind of liquid intake and output volume computing system, described system comprises: gauge of coming in and going out calculates rule-definition module, discrepancy amount data recordin module, discrepancy amount data preprocessing module, discrepancy amount data memory module, discrepancy amount data computation module, discrepancy amount result display module;
Gauge of coming in and going out calculates rule-definition module in order to the needs according to different liquids computation rule, build kind of liquid data tree structure, this data structure comprises the node of any level, then gives the operator that each node definition is different as required, thus forms the static rule of gauge calculation of coming in and going out;
The static rule that gauge of coming in and going out is calculated is mainly to the kind of liquid of coming in and going out involved by gauge calculation, and the operation relation between kind of liquid is expressed, and expresses especially by kind of liquid tree 20; Kind of liquid tree is a kind of multiway tree that can infinitely extend, and each leafed node, all represents once-through operation; Each node has a kind of operator type, represents its algorithm; Father node is the dependent variable of each computing, and child node is the independent variable of each computing, and the operator type of father node and child node has arranged computing rule when each independent variable participates in computing jointly;
Operator type common in clinical fluid discrepancy amount computation rule, and the operation rule formed is defined in a form, provides the common clinical kind of liquid that each operator can serve as simultaneously; Simultaneously, kind of liquid is set, comprise the operator type attribute of kind of liquid, and the set membership between kind of liquid node, store by the mode of XML file, JSON file, relevant database, object-oriented database, be convenient to computing machine process, be also convenient to technology and business personnel and carry out reading and the correctness of verification computation rule and completeness;
The dynamic programming that gauge of coming in and going out is calculated, mainly calculates the embodiment on time dimension to gauge of coming in and going out; Gauge of coming in and going out calculates rule-definition module, stores the minimum of computation cycle of fluid balance; Discrepancy amount data preprocessing module, by natural time point and computation period comparison, finds out the computation period at original data record time place, to set up index; Discrepancy amount data computation module, by specific natural time point or natural time section, is compared with computation period, builds time dimension tree, thus forms the dynamic programming of gauge calculation of coming in and going out; Tree is made up of the node of time span, measurement period and computation period three types time dimension, is operationally generated by above-mentioned comparison and calculating;
The time span of time dimension tree is 1 week, and measurement period is 1 day, and computation period is 8 hours; Based on such dynamic programming carry out discrepancy gauge calculate, the result of acquisition will comprise the liquid combined data in 1 week, every day a data point;
Discrepancy amount data recordin module obtains original liquid intake and output volume data from Executive records of doctor's order, bedside observed and recorded and instrument record, every bar discrepancy amount record comprise Data Source type, writing time, by milliliter or gram in units of the information such as recorded amounts, recorder, remarks;
Discrepancy amount data preprocessing module carries out data cleansing and processing to liquid intake and output volume raw readings; First, necessary merging and deconsolidation process are carried out to the original data record recorded in different ways, forms unified data structure; Secondly, calculate rule-definition module from discrepancy gauge and obtain discrepancy amount computation rule, by original data record time and computation period comparison, find out the computation period at original data record time place, store index to set up; Then, based on look-up table, Data Source Type mapping is become kind of liquid;
The result of discrepancy amount data memory module to discrepancy amount data preprocessing module stores.Every bar stored record comprise kind of liquid, writing time, by milliliter or gram in units of recorded amounts, corresponding computation period, raw data index information;
Discrepancy amount data computation module, according to the parameter imported into, comprises the kind of liquid of needs statistics, time span and measurement period span, calculates; First, to importing parameter analysis into: the kind of liquid added up as required, searching in the kind of liquid tree that gauge calculation rule-definition module of coming in and going out provides, finding corresponding kind of liquid subtree; The time span added up as required and measurement period span, the computation period provided with gauge calculation rule-definition module of coming in and going out is compared, and Time Created, dimension was set; Secondly, according to kind of liquid subtree and time dimension tree, set up querying condition, from discrepancy amount data memory module, obtain required discrepancy amount original recorded data; Then, traversal kind of liquid tree, discrepancy amount original recorded data is gathered, then according to the reverse procedure of kind of liquid tree traversal, assignment is carried out to data structure, according to operator type, the longitudinal direction that kind of liquid tree carries out on depth direction is calculated, for each computation period builds an initial liquid tree; Finally, travel time dimension is set, and adds up to the transverse direction that the initial liquid tree of each computation period carries out on time orientation, for each measurement period builds a statistics liquid tree, thus obtains the liquid data of any one or a few type in random time span;
Kind of liquid tree and time dimension traversal of tree are carried out, to reduce the space complexity of computation process simultaneously;
Discrepancy amount result display module carries out on a user interface graphically the statistics liquid tree that discrepancy amount data computation module exports or tabular represents.
A kind of liquid intake and output volume computing system, described system comprises: gauge of coming in and going out calculates rule-definition module, discrepancy amount data recordin module, discrepancy amount data preprocessing module, discrepancy amount data memory module, discrepancy amount data computation module, discrepancy amount result display module;
Gauge of coming in and going out calculates rule-definition module in order to the needs according to different liquids computation rule, build kind of liquid data tree structure, this data structure comprises the node of any level, then gives the operator that each node definition is different as required, thus forms the static rule of gauge calculation of coming in and going out;
Discrepancy amount data recordin module obtains original liquid intake and output volume data from Executive records of doctor's order, bedside observed and recorded and instrument record, every bar discrepancy amount record comprise Data Source type, writing time, by milliliter or gram in units of the information such as recorded amounts, recorder, remarks;
Discrepancy amount data preprocessing module carries out data cleansing and processing to liquid intake and output volume raw readings;
The result of discrepancy amount data memory module to discrepancy amount data preprocessing module stores; Every bar stored record comprise kind of liquid, writing time, by milliliter or gram in units of recorded amounts, corresponding computation period, raw data index information;
Discrepancy amount data computation module, according to the parameter imported into, comprises the kind of liquid of needs statistics, time span and measurement period span, calculates.
Discrepancy amount result display module carries out on a user interface graphically the statistics liquid tree that discrepancy amount data computation module exports or tabular represents.
As a preferred embodiment of the present invention, the static rule that gauge of coming in and going out is calculated is mainly to the kind of liquid of coming in and going out involved by gauge calculation, and the operation relation between kind of liquid is expressed, and expresses especially by kind of liquid tree 20; Kind of liquid tree is a kind of multiway tree that can infinitely extend, and each leafed node, all represents once-through operation; Each node has a kind of operator type, represents its algorithm; Father node is the dependent variable of each computing, and child node is the independent variable of each computing, and the operator type of father node and child node has arranged computing rule when each independent variable participates in computing jointly;
Operator type common in clinical fluid discrepancy amount computation rule, and the operation rule formed is defined in a form, provides the common clinical kind of liquid that each operator can serve as simultaneously; Simultaneously, kind of liquid is set, comprise the operator type attribute of kind of liquid, and the set membership between kind of liquid node, store by the mode of XML file, JSON file, relevant database, object-oriented database, be convenient to computing machine process, be also convenient to technology and business personnel and carry out reading and the correctness of verification computation rule and completeness;
The dynamic programming that gauge of coming in and going out is calculated mainly calculates the embodiment on time dimension to gauge of coming in and going out; The discrepancy gauge calculation minimum of computation cycle of rule-definition module to fluid balance stores; Discrepancy amount data preprocessing module, by natural time point and computation period comparison, finds out the computation period at original data record time place, to set up index; Discrepancy amount data computation module, by specific natural time point or natural time section, is compared with computation period, builds time dimension tree, thus forms the dynamic programming of gauge calculation of coming in and going out; Tree is made up of the node of time span, measurement period and computation period three types time dimension, is operationally generated by above-mentioned comparison and calculating;
The time span of time dimension tree is 1 week, and measurement period is 1 day, and computation period is 8 hours; Based on such dynamic programming carry out discrepancy gauge calculate, the result of acquisition will comprise the liquid combined data in 1 week, every day a data point.
As a preferred embodiment of the present invention, first discrepancy amount data preprocessing module carries out necessary merging and deconsolidation process to the original data record recorded in different ways, forms unified data structure; Secondly, calculate rule-definition module from discrepancy gauge and obtain discrepancy amount computation rule, by original data record time and computation period comparison, find out the computation period at original data record time place, store index to set up; Then, based on look-up table, Data Source Type mapping is become kind of liquid.
As a preferred embodiment of the present invention, discrepancy amount data memory module store stored record in, every bar stored record comprise kind of liquid, writing time, by milliliter or gram in units of recorded amounts, corresponding computation period, raw data index information.
As a preferred embodiment of the present invention, discrepancy amount data computation module is first to importing parameter analysis into: the kind of liquid added up as required, search in the kind of liquid tree that gauge calculation rule-definition module of coming in and going out provides, find corresponding kind of liquid subtree; The time span added up as required and measurement period span, the computation period provided with gauge calculation rule-definition module of coming in and going out is compared, and Time Created, dimension was set; Secondly, according to kind of liquid subtree and time dimension tree, set up querying condition, from discrepancy amount data memory module, obtain required discrepancy amount original recorded data; Then, traversal kind of liquid tree, discrepancy amount original recorded data is gathered, then according to the reverse procedure of kind of liquid tree traversal, assignment is carried out to data structure, according to operator type, the longitudinal direction that kind of liquid tree carries out on depth direction is calculated, for each computation period builds an initial liquid tree; Finally, travel time dimension is set, and adds up to the transverse direction that the initial liquid tree of each computation period carries out on time orientation, for each measurement period builds a statistics liquid tree, thus obtains the liquid data of any one or a few type in random time span;
Kind of liquid tree and time dimension traversal of tree are carried out, to reduce the space complexity of computation process simultaneously.
A kind of liquid intake and output volume computing method, described method comprises discrepancy amount data prediction step and discrepancy amount data calculation procedure;
Described discrepancy amount data prediction step specifically comprises the steps:
Step 1A, obtains discrepancy amount original data record;
Step 1B, splits raw data, merges and filters;
Step 1C, produces time map to liquid computation period by discrepancy amount;
Data Source Type mapping is the kind of liquid of kind of liquid tree by step 1D;
Step 1E, by pretreated Data import to memory module;
Described discrepancy amount data calculation procedure specifically comprises the steps:
Step 2A, inputs kind of liquid, time span and the measurement period span that will calculate;
Step 2B, according to computation rule, analyzes input parameter, and produce the type tree of required liquid, may be made up of multiple independent subtree, each subtree needs to be deployed into kind of liquid node at different levels;
Step 2C, according to computation rule, analyzes input parameter, produces the time dimension tree in required time span, needs to be deployed into each measurement period and computation period thereof, if need to consider remaining liquid, then needs to add a computation period forward;
Step 2D, according to kind of liquid and computation period, inquiry obtains discrepancy amount data record;
Step 2E, in units of computation period, build liquid group, each liquid group comprises the ml vol of all kinds liquid in this cycle, and the ml vol of liquid more than all kinds in the last cycle;
Step 2F, all computation periods in travel time span, according to kind of liquid tree, gather from bottom to top by liquid group, generate initial liquid tree;
Step 2G, all measurement periods in travel time span, carry out horizontal addition to the initial liquid tree of each computation period, generate statistics liquid tree;
Step 2H, as required, to the liquid that statistics liquid tree is come in and gone out through conduit, inquiry discrepancy amount data record, launches to obtain the ml vol of coming in and going out through each conduit;
Step 2I, obtains on each measurement period in this time period, the ml vol statistics of required kind of liquid, and the milliliter amount of expansion of each straton level kind of liquid.
A kind of liquid intake and output volume computing method, described method comprises discrepancy amount data prediction step and discrepancy amount data calculation procedure;
In described discrepancy amount data prediction step, data cleansing and processing are carried out to liquid intake and output volume raw readings;
In described discrepancy amount data calculation procedure, according to the parameter imported into, comprise the kind of liquid of needs statistics, time span and measurement period span, calculate.
As a preferred embodiment of the present invention, described discrepancy amount data prediction step specifically comprises the steps:
Step 1A, obtains discrepancy amount original data record;
Step 1B, splits raw data, merges and filters;
Step 1C, produces time map to liquid computation period by discrepancy amount;
Data Source Type mapping is the kind of liquid of kind of liquid tree by step 1D;
Step 1E, by pretreated Data import to memory module.
As a preferred embodiment of the present invention, described discrepancy amount data calculation procedure specifically comprises the steps:
Step 2A, inputs kind of liquid, time span and the measurement period span that will calculate;
Step 2B, according to computation rule, analyzes input parameter, and produce the type tree of required liquid, may be made up of multiple independent subtree, each subtree needs to be deployed into kind of liquid node at different levels;
Step 2C, according to computation rule, analyzes input parameter, produces the time dimension tree in required time span, needs to be deployed into each measurement period and computation period thereof, if need to consider remaining liquid, then needs to add a computation period forward;
Step 2D, according to kind of liquid and computation period, inquiry obtains discrepancy amount data record;
Step 2E, in units of computation period, build liquid group, each liquid group comprises the ml vol of all kinds liquid in this cycle, and the ml vol of liquid more than all kinds in the last cycle;
Step 2F, all computation periods in travel time span, according to kind of liquid tree, gather from bottom to top by liquid group, generate initial liquid tree;
Step 2G, all measurement periods in travel time span, carry out horizontal addition to the initial liquid tree of each computation period, generate statistics liquid tree;
Step 2H, as required, to the liquid that statistics liquid tree is come in and gone out through conduit, inquiry discrepancy amount data record, launches to obtain the ml vol of coming in and going out through each conduit;
Step 2I, obtains on each measurement period in this time period, the ml vol statistics of required kind of liquid, and the milliliter amount of expansion of each straton level kind of liquid.
Beneficial effect of the present invention is: the liquid intake and output volume computing system that the present invention proposes and method, the discrepancy amount computation rule of complexity, represent by unified mode.This representation had both been easy to carry out flexible expansion according to different clinical demands, clear in structure again, easy checking, and be easy to realize extendible automatic calculating in a computer, and can direct unfolding calculation process data in result of calculation, thus the accuracy of whole computation process can be followed the trail of.
Based on the representation of this computation rule and the computing system of computing method exploitation, there is following characteristics:
(1) favorable expandability.By simple configuration, meet Different hospital, different lesion, even same lesion different medical team and nursing website, the record of liquid intake and output volume data is required and request for utilization.In the past, doctor, in order to obtain dissimilar liquid statistics, needs nurse to revise discrepancy amount record form, and technician also needs the software code coordinating amendment discrepancy amount computational tool, could realize new calculating and statistical rules.After adopting the present invention, can various discrepancy amount original recorded data, by the mapping between the kind of liquid in Data Source type and computation rule, convert unified data layout to, then the kind of liquid in computation rule, time span and measurement period are selected flexibly, obtain the liquid data statistics of any one or a few type in random time span.Thus nurse only need once record, just can meet different doctor according to different clinical concern, to the various Flexible Query on various liquid data at any time span and statistics, greatly facilitate the clinical decision of doctor.
(2) calculate accuracy easily to verify.First, adopt Multiway Tree Structure to express kind of liquid and time dimension, and compose with corresponding operator, with unified clear in structure represent multiple different computation rule, be convenient to correctness and the completeness of technology and business personnel's verification computation rule.Secondly, result of calculation is that the reverse traversal set by kind of liquid generates with laterally adding up, therefore in result of calculation often kind of kind of liquid can drops down to subtype, until track discrepancy amount original data record, thus the accuracy of whole computation process can be followed the trail of.In the past, if because nurse's carelessness, certain amount of liquid typing mistake, such as certain urine volume has write individual zero more, after doctor sees urine volume statistics, can only be judged the accuracy of data by experience.After adopting the present invention, doctor can track the whole computation process of often kind of liquid statistics, promptly and accurately finds the data of mistake, reduces malpractice, improves medical safety.
Embodiment
The preferred embodiments of the present invention are described in detail below in conjunction with accompanying drawing.
Embodiment one
The invention belongs to clinical information process field, relate to method for expressing and the computing system thereof of the clinical computation rule of a kind of liquid intake and output volume.Method disclosed by the invention comprises Rule Expression and calculates two parts.Rule Expression process is as follows: the needs calculated according to clinical fluid, and build kind of liquid data tree structure, this data structure can comprise the node of any level, then gives each node definition operator as required; Computation process is as follows: traversal type data tree structure, the raw data of liquid intake and output volume is gathered, then according to the reverse procedure of type tree traversal, assignment is carried out to data structure, according to operator, the longitudinal direction calculating on depth direction and the lateral calculations on time orientation are carried out to type tree, obtain the liquid data of any one or a few type in random time span.The discrepancy amount computing system realized in this approach, the feature such as there is adaptability and extensibility is good, and computation process traceability is good.
Refer to Fig. 1, present invention is disclosed a kind of liquid intake and output volume computing system 10, coming in and going out, gauge calculates rule-definition module 11, this system comprises discrepancy amount data recordin module 12, discrepancy amount data preprocessing module 13, discrepancy amount data memory module 14, discrepancy amount data computation module 15, discrepancy amount result display module 16.
Gauge of coming in and going out calculates rule-definition module 11 can according to the needs of different liquids computation rule, build kind of liquid data tree structure, this data structure can comprise the node of any level, then gives the operator that each node definition is different as required, thus forms the static rule of gauge calculation of coming in and going out.
The static rule that gauge of coming in and going out is calculated is mainly to the kind of liquid of coming in and going out involved by gauge calculation, and the operation relation between kind of liquid is expressed, and refers to the kind of liquid tree 20 in Fig. 2.Kind of liquid tree is a kind of multiway tree that can infinitely extend, and each leafed node, all represents once-through operation.Each node has a kind of operator type, represents its algorithm.Father node is the dependent variable of each computing, and child node is the independent variable of each computing, and the operator type of father node and child node has arranged computing rule when each independent variable participates in computing jointly.
As a kind of implementation of the present invention, operator type common in clinical fluid discrepancy amount computation rule, and the operation rule formed is defined as follows shown in table, give also the common clinical kind of liquid that this operator can serve as in table simultaneously.Simultaneously, kind of liquid is set, comprise the operator type attribute of kind of liquid, and the set membership between kind of liquid node, can store with various ways such as XML file, JSON file, relevant database, object-oriented databases, be convenient to computing machine process, be also convenient to technology and business personnel and carry out reading and the correctness of verification computation rule and completeness.
The dynamic programming that gauge of coming in and going out is calculated, mainly calculates the embodiment on time dimension to gauge of coming in and going out.Gauge of coming in and going out calculates rule-definition module 11, stores the minimum of computation cycle of fluid balance.Discrepancy amount data preprocessing module 13, by natural time point and computation period comparison, finds out the computation period at original data record time place, to set up index.Discrepancy amount data computation module 15, by specific natural time point or natural time section, compares with computation period, builds time dimension tree, refers to the time dimension tree 21 in Fig. 2, the dynamic programming that gauge is calculated thus formation is come in and gone out.Tree is made up of the node of time span, measurement period and computation period three types time dimension, is operationally generated by above-mentioned comparison and calculating.
As a kind of implementation of the present invention, the time span of time dimension tree can be 1 week, and measurement period can be 1 day, and computation period can be 8 hours.Based on such dynamic programming carry out discrepancy gauge calculate, the result of acquisition will comprise the liquid combined data in 1 week, every day a data point.
Discrepancy amount data recordin module 12 in order to obtain original liquid intake and output volume data from Executive records of doctor's order, bedside observed and recorded and instrument record, every bar discrepancy amount record comprise Data Source type, writing time, by milliliter or gram in units of the information such as recorded amounts, recorder, remarks.
Discrepancy amount data preprocessing module 13 pairs of liquid intake and output volume raw readings carry out data cleansing and processing.First, necessary merging and deconsolidation process are carried out to the original data record recorded in different ways, forms unified data structure; Secondly, calculate rule-definition module 11 from discrepancy gauge and obtain discrepancy amount computation rule, by original data record time and computation period comparison, find out the computation period at original data record time place, store index to set up.Then, based on look-up table, Data Source Type mapping is become kind of liquid.
The result of discrepancy amount data memory module 14 to discrepancy amount data preprocessing module 13 stores.Every bar stored record comprise kind of liquid, writing time, by milliliter or gram in units of recorded amounts, corresponding computation period, raw data the information such as index.
Discrepancy amount data computation module 15, according to the parameter imported into, comprises the kind of liquid of needs statistics, time span and measurement period span, calculates.First, to importing parameter analysis into: the kind of liquid added up as required, searching in the kind of liquid tree that gauge calculation rule-definition module 11 of coming in and going out provides, finding corresponding kind of liquid subtree; The time span added up as required and measurement period span, the computation period provided with gauge calculation rule-definition module 11 of coming in and going out is compared, and Time Created, dimension was set.Secondly, according to kind of liquid subtree and time dimension tree, set up querying condition, from discrepancy amount data memory module 14, obtain required discrepancy amount original recorded data.Then, traversal kind of liquid tree, discrepancy amount original recorded data is gathered, then according to the reverse procedure of kind of liquid tree traversal, assignment is carried out to data structure, according to operator type, the longitudinal direction that kind of liquid tree carries out on depth direction is calculated, for each computation period builds an initial liquid tree.Finally, travel time dimension is set, and adds up to the transverse direction that the initial liquid tree of each computation period carries out on time orientation, for each measurement period builds a statistics liquid tree, thus obtains the liquid data of any one or a few type in random time span.
As a kind of implementation of the present invention, can carry out, to reduce the space complexity of computation process kind of liquid tree and time dimension traversal of tree simultaneously.
Discrepancy amount result display module 16 carries out on a user interface graphically the statistics liquid tree that discrepancy amount data computation module 15 exports or tabular represents.
Be described above representation and the computing system of liquid intake and output volume computation rule of the present invention, the present invention is while announcement aforesaid liquid discrepancy amount computing system, also disclose a kind of liquid intake and output volume computing method, the method comprises discrepancy amount data prediction flow process and discrepancy amount data calculation process two parts.
Refer to Fig. 3, the step of discrepancy amount data prediction flow process comprises:
Step 1A, obtains discrepancy amount original data record.
Step 1B, splits raw data, merges and filters.
Step 1C, produces time map to liquid computation period by discrepancy amount.
Data Source Type mapping is the kind of liquid of kind of liquid tree by step 1D.
Step 1E, by pretreated Data import to memory module.
Refer to Fig. 4, the step of discrepancy amount data calculation process comprises:
Step 2A, inputs kind of liquid, time span and the measurement period span that will calculate.
Step 2B, according to computation rule, analyzes input parameter, and produce the type tree of required liquid, may be made up of multiple independent subtree, each subtree needs to be deployed into kind of liquid node at different levels.
Step 2C, according to computation rule, analyzes input parameter, produces the time dimension tree in required time span, needs to be deployed into each measurement period and computation period thereof, if need to consider remaining liquid, then needs to add a computation period forward.Step 2C, step 2B can be coordination.
Step 2D, according to kind of liquid and computation period, inquiry obtains discrepancy amount data record.
Step 2E, in units of computation period, build liquid group, each liquid group comprises the ml vol of all kinds liquid in this cycle, and the ml vol of liquid more than all kinds in the last cycle.
Step 2F, all computation periods in travel time span, according to kind of liquid tree, gather from bottom to top by liquid group, generate initial liquid tree.
Step 2G, all measurement periods in travel time span, carry out horizontal addition to the initial liquid tree of each computation period, generate statistics liquid tree.
Step 2H, as required, to the liquid that statistics liquid tree is come in and gone out through conduit, inquiry discrepancy amount data record, launches to obtain the ml vol of coming in and going out through each conduit.
Step 2I, obtains on each measurement period in this time period, the ml vol statistics of required kind of liquid, and the milliliter amount of expansion of each straton level kind of liquid.
In sum, the liquid intake and output volume computing system that the present invention proposes and method, the discrepancy amount computation rule of complexity, represent by unified mode.This representation had both been easy to carry out flexible expansion according to different clinical demands, clear in structure again, easy checking, and be easy to realize extendible automatic calculating in a computer, and can direct unfolding calculation process data in result of calculation, thus the accuracy of whole computation process can be followed the trail of.
Here description of the invention and application is illustrative, not wants by scope restriction of the present invention in the above-described embodiments.Distortion and the change of embodiment disclosed are here possible, are known for the replacement of embodiment those those of ordinary skill in the art and the various parts of equivalence.Those skilled in the art are noted that when not departing from spirit of the present invention or essential characteristic, the present invention can in other forms, structure, layout, ratio, and to realize with other assembly, material and parts.When not departing from the scope of the invention and spirit, can other distortion be carried out here to disclosed embodiment and change.