Embodiment
In order to make the object of the invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with accompanying drawing and embodiment.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
Embodiment one
The alarm management method of the embodiment of the invention comprises the steps:
At first, set up the warning pond; This warning pond comprises some nodes, and this node comprises storage part that is used for store alarms information and the pointer portion that is used for memory address.
General this warning message (for example comprises senior warning message; Chamber warning, the chamber speed of quivering is reported to the police, is suffocated to report to the police and stop fighting and report to the police etc.), intermediate warning message (for example; Tachycardias is reported to the police with the cardiac arrhythmia warning etc.) and rudimentary warning message (for example, lead come off warning, respiratory rate warning and running fire chamber early report to the police etc.).This pointer portion address stored can be the physical memory address, also can be pointer.
Then, set up the warning chain; Said warning chain is used for the node that carry stores warning message; Said warning chain comprises first pointer, and said first pointer is used to store first address of node that is mounted to said warning chain.
First pointer of this warning chain is under the situation that does not have the carry first node, and this first pointer is deposited null pointer.
Present embodiment is for the not restriction of quantity of warning chain.This warning chain can be a chain, also can be a plurality of chains, at present, and three other warnings of level of clinical general needs.Therefore, the warning chain number of present embodiment is preferably 3, is respectively: senior warning chain, intermediate warning chain and rudimentary warning chain.This senior warning chain is used for the node that carry stores senior warning message.This middle rank warning chain is used for the node that carry stores intermediate warning message.This rudimentary warning chain is used for the node that carry stores rudimentary warning message.
At last, when receiving warning message, processor takes out a node from the warning pond, stores warning message the storage part of said node into, and is affiliated to said node in said warning chain.
The present embodiment carry, to be affiliated to be a popular vivid term; Be meant the address of node that stores warning message by first pointer in this warning chain or should the warning chain in the pointer portion storage of the node of being affiliated to, the spitting image of container be affiliated on tractor or tractor carry container such.
The alarm management method of present embodiment adopts the warning pond of having gathered some nodes that warning message is managed, and (what nodes the warning message that is subdivided into different stage respectively has) is not further segmented in the warning pond.Therefore, the alarm management method of present embodiment, the restriction that does not exist segmentation to bring, all nodes in this warning pond can distribute arbitrarily the warning chain as required.So, greatly reducing, warning message is concentrated and is failed to report risk when taking place.Under the situation with a plurality of warning chains, this alarm management method helps reducing this risk more, promptly because certain grade of warning message increases unusually under the normal situation of other rank warning message, and the risk that causes this grade warning message to be lost.
Fig. 1 is the alarm management method process flow diagram of the embodiment of the invention one.Fig. 2 is the embodiment of the invention one an improved alarm management method process flow diagram.Below in conjunction with Fig. 1 and Fig. 2, the alarm management method of present embodiment is done further detailed description.
The alarm management method of present embodiment comprises the steps:
S10, set up the warning pond.This warning pond comprises some nodes, and this node comprises storage part that is used for store alarms information and the pointer portion that is used for memory address.
Itself all has the address each node, and the storage part of these nodes and pointer portion all are empty in this step, do not have data.
This node is generally the storage unit in the internal memory.Can be discrete (promptly not connecting each other between node in twos) between this node, also can be for there being certain contact (for example the position in internal memory is continuous) or the like.The set of these nodes just of this warning pond is used to ensure that warning message has enough storage spaces and is able to preserve.
This node is the minimum unit of the warning message storage of the embodiment of the invention, and a node is used to store a warning message.Certainly, this node also can be used to store several similar or identical warning messages in other embodiments.
Node in the warning pond of present embodiment is not according to different stage further segmentation again; How many nodes such as being used to store senior warning message has; How many nodes that is used to store intermediate warning message has; How many nodes that is used for the stores low level warning message has again, and all nodes in the pond of promptly reporting to the police can distribute arbitrarily according to demand in the preservation process of senior, intermediate and rudimentary warning message.That is to say; As long as certain rank is reported to the police demand is arranged; The scheme of present embodiment can limit warning pond in all nodes be used for preserving other warning message of this level, therefore, greatly reduce this risk; Promptly because certain grade of warning message increases unusually under the normal situation of other rank warning message, the risk that causes this grade warning message to be lost.Reduced present embodiment alarm management method fail to report risk.
Set up the step in warning pond, just be equivalent in internal memory, divide the step in certain zone.The warning message saturation (size in the pond of promptly reporting to the police) of monitoring series products all is that producer is fixing at present, can not regulate.Size that generally should the warning pond is confirmed according to doctors experience in advance, satisfies the normal use of monitoring series products.That is, make this warning pond enough big, enough deal with general monitoring demand.Because the size and the internal memory service efficiency in warning pond have very big the contact, therefore, this behavior that maximizes the division internal memory in advance can cause the low shortcoming of internal memory service efficiency.
S20, initialization warning pond.
This step belongs to the continuity of step S10, can step S10 and S20 be merged into a step at some embodiment.The step in this initialization warning pond is: processor back and forth goes down to form a chain with one address of node, pointer portion storage back of last node.This chain is a chained list, and this chain can be circular linked list, doubly linked list or single linked list.
Present embodiment preferably this chain is a single linked list, and initialization step is: at first, processor provides warning pond head pointer; Secondly, processor leaves certain address of node in this warning pond head pointer in; Once more, with one address of node, pointer portion storage back of last node, back and forth going down to the last successively, an address of node is stored; At last, processor is with the pointer portion storage null pointer of last node.The warning pond has just formed a single linked list like this, is called warning pond chained list.
Adopt the mode of chained list to set up warning pond (initialization), can manage the warning pond easily.If the inner discrete node in warning pond can compare consumes resources in management.
S30, set up the warning chain.Said warning chain is used for the node that carry stores warning message; Said warning chain comprises first pointer, and said first pointer is used to store first address of node that is mounted to said warning chain.
The embodiment of the invention is for the not special restriction of the quantity of warning chain.The warning chain number of present embodiment is preferably 3, is respectively: senior warning chain, intermediate warning chain and rudimentary warning chain.The warning chain of the embodiment of the invention preferably adopts single linked list to manage.Be that senior warning chain, intermediate warning chain and rudimentary warning chain generally all adopt the single linked list management.
When setting up the warning chain, this warning chain has only the chain head pointer, and this chain head pointer is first pointer.This mode has the less advantage of fairly simple when setting up the warning chain, quick committed memory.
Perhaps, when setting up the warning chain, this warning chain comprises chain head pointer and the chain structure of depositing the chain structure address, and this chain structure comprises first pointer.This chain structure can be stored some useful informations, and for example the information of chain attribute or description is beneficial to management.
Present embodiment is preferred, and when setting up the warning chain, this warning chain has only the chain head pointer.Promptly when setting up the warning chain, senior warning chain only has senior chain head pointer, and intermediate warning chain only has intermediate chain head pointer, and rudimentary warning chain only has the lower alkanols head pointer.
Adopt this chained list mode that warning pond and warning chain are managed, be the embodiment of the invention be a core inventive point, can the node in the warning pond be distributed to each warning chain easily, simultaneously can regain utilization easily.Having reduced reports to the police fails to report risk and has improved system effectiveness.
S40, warning chain management----increase node.
When receiving warning message, processor takes out a node from the warning pond, stores this warning message the storage part of said node into, and is affiliated to said node in said warning chain.
The alarm management method of present embodiment has been provided with three grades of warning messages and three grades of warning chains.The rank of general alarm information and attribute are that predefined is good.When producing a warning message, processor will be known its alert levels and attribute.When processor receives warning message, will take out node and store alarms information, then this node is affiliated on the warning chain of appropriate level, the node that for example will store senior warning message is affiliated on the senior warning chain.
In the present embodiment, processor can take out this node from head, middle part and the afterbody of warning pond chained list.The taking-up and the mode of being affiliated to are following:
The chained list head takes out node in the warning pond, and processor reads storage addresses in the head pointer of warning pond, is stored in the chain head pointer of warning chain, simultaneously null pointer is deposited in the pointer portion of this node, accomplishes the step of taking out and being affiliated to.But for the integrality of the pond chained list that guarantees to report to the police, also comprise this moment usually, deposit second address of node in the chained list of warning pond in warning pond head pointer.
Node is taken out at the chained list middle part in the warning pond, and processor reads a certain address of node, puts into the chain head pointer of warning chain, simultaneously null pointer is deposited in the pointer portion of this node, accomplishes the step of taking out and being affiliated to.But for the integrality of the pond chained list that guarantees to report to the police, also comprise this moment usually, address of node behind this node in the chained list of warning pond is deposited in the pointer portion of the previous node of this node.
The chained list afterbody takes out node in the warning pond, and processor reads afterbody address of node, warning pond, puts into the chain head pointer of warning chain, accomplishes the step of taking out and being affiliated to.But for the integrality of the pond chained list that guarantees to report to the police, also comprise this moment usually, null pointer is deposited by the pointer portion of the penult node in the chained list of warning pond.
Preferably the chained list head takes out node to present embodiment from the warning pond, convenient management.
S50, warning chain management----deletion chain node.
When warning message was cancelled, processor was removed the node of the said warning message of storage from the warning chain, empties said warning message and the node of the said warning message of said storage is discharged into the warning pond.
From the warning chain, remove the node that stores warning message, exactly the integrality that guarantees the warning chain is simultaneously eliminated in this address of node that stores warning message from the warning chain.Therefore this and the similar process that from the chained list of warning pond, takes out node, no longer detail the process of removing the node that stores warning message.
Be discharged into the warning pond, can be placed in warning pond chained list Anywhere, head, middle part and the afterbody of warning pond chained list.Detailed process is following:
When the node that stores warning message is released to head, at first address in the head pointer of warning pond is read and is stored in the pointer portion of this node, then this address of node is stored in this warning pond head pointer.
When the node that stores warning message is released to the middle part; For example be placed between X node and X+1 the node, at first, the address of X node pointer portion read and is deposited in the pointer portion of this node; Then, this address of node is deposited into the pointer portion of X node.
When the node that stores warning message is released to afterbody, deposit this address of node the pointer portion of this afterbody node in, then null pointer is deposited by the pointer portion of this node.
Present embodiment selects the head of the chained list from the warning pond to take out node, management for ease, and present embodiment is this node preferably: the head that is released to warning pond chained list.
Deletion of node is discharged into the warning pond then from the warning chain, has guaranteed the recycle of this node, can reduce in the process of alarming and managing the application again to internal memory, guarantees certain stability and reduces the processor burden.This recycle is not the recycle of certain rank warning message storage, but the recycle of other warning message storage of all grades, this is to adopt warning pond and warning chain to carry out another advantage of alarming and managing.
S60, dynamically report to the police pond management.Through processor dynamic management warning pond size, fail to report phenomenon thereby solve as much as possible to report to the police; Under the situation about further optimizing again, can also improve the utilization factor of internal memory.
When number of nodes in the warning pond during less than N, processor distributes M node to give the warning pond once more.
When number of nodes in the warning pond during greater than H, processor is regained K node from the warning pond.
The value of N, M, H and K sets according to inhomogeneous monitoring needs in advance, generally requires N+M less than H, immediately is in the state that reduces the node number behind the node number to prevent that processor is in to have increased.Generally also require H-K greater than N, reason is same.Satisfying under the above-mentioned condition, preferred general this N of present embodiment is 5-25, and M is 10-30; H is 20-50, and K is 13-43, and expending internal memory like this will be fewer; Just just fewer by idle amount of memory simultaneously with respect to prior art, therefore, improved the service efficiency of internal memory.
Certainly, the warning pond also can be managed with the address under the management of adopting chained list.For example, taking-up and release under the situation of head, when warning pond head pointer is stored in certain address, represent that this warning pond need increase the node of some simultaneously; When warning pond head pointer is stored in certain another address, represent that this warning pond need reduce the node of some.Certainly, for adopting address administration, can judge that also the afterbody address of node changes (taking-up and release are simultaneously under the situation of afterbody), these all are can be general, can reach the purpose of dynamic management warning pond size.
Through adopting the management of dynamic warning pond; Just need be in prior predetermined memory space in a big way; Only need get final product preserving minimum satisfied amount (for example 5 nodes) in advance,, distribute at any time and regain the node in the warning pond then through dynamic management; Can improve the service efficiency of internal memory, this also be other way to manages can not and.
Under the situation that does not have dynamic management or memory source to be assigned with again (latter belongs to extreme case), the warning tank node has run out, and produces warning message again, will lose certainly.Senior warning message, intermediate warning message and rudimentary warning message are to decide according to the extent of injury, and senior warning message produces expression breakneck incident takes place this moment.Do not lose in order to protect the high-order warning message; Reduce because the high-order warning message is failed to report the heavier consequence that loss brings, our slip-stick artist has also figured out the method for serving as " the warning pond " of high-order warning chain with the node that stores the low order warning message in the low order warning chain.This also be other types alarming and managing can not, neither those skilled in the art obtainable without creative work institute under the instruction of prior art.
Under the situation that the node existence that stores rudimentary warning message is arranged on the rudimentary warning chain, the high-order warning message is senior and intermediate warning message.High-order warning chain is senior and intermediate warning chain, and low order warning chain is rudimentary warning chain.
Under the situation that the node that does not store rudimentary warning message on the rudimentary warning chain exists, the high-order warning message is senior warning message.High-order warning chain is senior warning chain, and low order warning chain is intermediate warning chain.
As shown in Figure 2, step S60 ': the warning tank node uses up, and the high-order warning information is kept.This step is specific as follows:
When the high-order warning message takes place under the situation that the warning tank node uses up, processor with low order report to the police the node that stores the low order warning message in the chain take out storage high-order warning message and with said node be affiliated to the corresponding high-order warning of high-order warning message chain on.
Adopt this to use management method, the possibility that the high-order warning message is failed to report will improve security performance widely less than prior art.
Embodiment two
Fig. 3 is the alarming management device structural representation of the embodiment of the invention.Fig. 4 is the processor structure synoptic diagram of the embodiment of the invention two.Fig. 5 is the warning chain unit structural representation of the embodiment of the invention.Fig. 6 is the embodiment of the invention two improved processor structure synoptic diagram.Fig. 7 is the warning pond and the warning chain unit structural representation of the embodiment of the invention two.To Fig. 7, the alarming management device of the embodiment of the invention is described with reference to Fig. 3.
The alarming management device of the embodiment of the invention comprises processor 100, warning pond 200 and warning chain unit 300.
This warning pond 200 comprises some nodes 220, and this node 220 comprises storage part 221 that is used for store alarms information and the pointer portion 222 that is used for memory address.The minimum unit of the warning message storage that this node 220 is the embodiment of the invention, a node 220 is used to store a warning message.Certainly this node also can be used to store several similar or identical warning messages in other embodiments.This node 220 is generally the storage unit in the internal memory.These some nodes can be discrete (promptly not connecting each other between node in twos), also can have certain contact (for example the position in internal memory is continuous) or the like.The set of these nodes 220 just of this warning pond 200 is used to ensure that warning message has enough storage spaces and is able to preserve.
This warning chain unit 300 is used for the node that carry stores warning message; This warning chain unit 300 comprises the first pointer portion (311,321,331), and this first pointer portion (311,321,331) is used to store first address of node that is mounted to this warning chain unit 300; This first pointer portion (311,321,331) is a chain head pointer portion, perhaps should comprise chain head pointer portion and the chain structure of depositing the chain structure address by warning chain unit 300, and this chain structure comprises the first pointer portion (311,321,331).This chain structure can be stored some useful informations, and for example the information of chain attribute or description is beneficial to management.This chain structure is identical with the node that is mounted to warning chain unit 300 on composition or formation.In order to meet clinical needs; Generally; This warning chain unit 300 comprises senior warning chain unit 310 (being used for the node that carry stores senior warning message), intermediate warning chain unit 320 (being used for the node that carry stores intermediate warning message) and rudimentary warning chain unit 330 (being used for the node that carry stores rudimentary warning message).
Said processor 100 comprises processing module 140; This processing module 140 is used for when receiving warning message; From warning pond 200, take out a node 220, store warning message the storage part 221 of this node 220 into, and be affiliated to this node in this warning chain unit 300.Has senior warning chain unit 310; Under the situation of middle rank warning chain unit 320 and rudimentary warning chain unit 330; When this processing module 140 receives warning message, will take out node and store alarms information, then this node is affiliated on the warning chain unit of appropriate level.
Further; This processor 100 also comprises and is used for the pre-processing module 130 that initialization should warning pond 200; This pre-processing module 130 comprises associated units 131; This associated units 131 is used for one address of node, pointer portion storage back with last node, and back and forth going down forms a chain with all nodes 220; This chain is a chained list, and this chained list can be circular linked list, doubly linked list and single linked list.Present embodiment preferably should warning pond 200 be set up with the form of single linked list, and this pre-processing module 130 also comprises the end unit 132 that is used at the pointer portion storage null pointer of last node of this chain.This associated units 131 also provides a warning pond pointer portion 210; This associated units 131 leaves certain address of node in this warning pond head pointer portion 210 li earlier; With one address of node, pointer portion storage back of last node, back and forth going down forms a chain with all nodes 220 again.This end unit 132 is at the pointer portion storage null pointer of last node of this chain.These pre-processing module 130 initialization should warning pond 200, makes should warning pond 200 more manageablely, and stability is improved.At this moment, this processing module 140 is described taking-up and is affiliated to this node 220 according to the front, repeats no more at this.
Further; This processor 100 also comprises recycling module 110; This recycling module 110 is used for when warning message is cancelled; From warning chain unit 300, remove the said node of being removed warning message of storage, empty and saidly removed warning message and the said node of being removed warning message of said storage is discharged into the warning pond.
This recycling module 110 has guaranteed the recycle of node 220, can reduce the again application of this alarming management device to internal memory, guarantees certain stability and reduces the processor burden.This recycle is not the recycle of certain rank warning message storage, but the recycle of other warning message storage of all grades, this is another advantage that adopts warning pond and warning chain unit to manage.
Further, processor 100 also comprises node administration module 120, and this node administration module 120 is used for dynamic management warning pond number of nodes.
When number of nodes was less than N in the warning pond, these node 120 administration modules distributed M node to give the warning pond once more.And/or when number of nodes in the warning pond during greater than H, this node administration module 120 is regained K node from the warning pond.
The value of N, M, H and K sets according to inhomogeneous monitoring needs in advance, generally requires N+M less than H, to prevent immediately will to cut node state after processor is in the increase node.Generally also require H-K greater than N, reason is same.Satisfying under the above-mentioned condition, preferred general this N of present embodiment is 5-25, and M is 10-30; H is 20-50, and K is 13-43, and expending internal memory like this will be fewer; Just just fewer by idle amount of memory simultaneously with respect to prior art, therefore, improved the service efficiency of internal memory.
Certainly, the warning pond also can be managed with the address under the management of adopting chained list.For example, under the situation of head taking-up and release node, when warning pond head pointer is stored in certain address, represent that this warning pond need increase the node of some; When warning pond head pointer is stored in certain another address, represent that this warning pond need reduce the node of some.
Certainly, for adopting address administration, can judge that also the afterbody address of node changes.
Through 120 pairs of warning pond dynamic management of node administration module; Therefore, need only need not get final product in prior predetermined memory space in a big way in the satisfied amount of preservation minimum (for example 5 nodes) in advance; Then through dynamic management; At any time distribute and regain the node in the warning pond, can improve the service efficiency of internal memory, this also be other way to manages can not and.
This processor 100 also comprises recycling module 150, is used for using up at the warning tank node, and the high-order warning information is kept.
Do not having dynamic management or the memory source can not be under situation about being assigned with, the warning tank node have run out, and produces warning message again, will lose certainly.Senior warning message, intermediate warning message and rudimentary warning message are to decide according to the extent of injury, and senior warning message produces expression breakneck incident takes place this moment.In order to protect the high-order warning message not lose, reduce and fail to report loss, our slip-stick artist has also figured out the method for serving as " the warning pond " of high-order warning chain unit with the node that stores the low order warning message in the low order warning chain unit.This also be other types alarming and managing can not, neither those skilled in the art obtainable without creative work institute under the instruction of prior art.
Under the situation that the node existence that stores rudimentary warning message is arranged on the rudimentary warning chain unit 330, the high-order warning message is senior and intermediate warning message.High-order warning chain unit is senior and intermediate warning chain unit (310,320), and low order warning chain unit is rudimentary warning chain unit 330.
Under the situation that the node that does not store rudimentary warning message on the rudimentary warning chain unit 330 exists, the high-order warning message is senior warning message.High-order warning chain unit is senior warning chain unit 310, and low order warning chain unit is intermediate warning chain unit 320.
The existence of this recycling module 150 greatly reduces the possibility that the high-order warning message is failed to report, and has improved security performance.
The alarming management device of present embodiment adopts 200 pairs of warning messages in warning pond of having gathered some nodes to manage; And (what nodes the warning message that is subdivided into different stage respectively has) further not segmenting in the warning pond, all nodes can be affiliated to as required and be carried on the warning chain unit 300 (any level other) in this warning pond 200.So, greatly reducing, warning message is concentrated and is failed to report risk when taking place.Under the situation with a plurality of warning chain units, this alarm management method helps reducing this risk more, promptly because certain grade of warning message increases unusually under the normal situation of other rank warning message, and the risk that causes this grade warning message to be lost.
Embodiment three
Fig. 8 is the monitor device structural representation of the embodiment of the invention.
With reference to Fig. 8, the monitor device 10 of the embodiment of the invention is proposed.This monitor device 10 comprises parameter module 11, display 12, central processing unit 13, alarm module 14 and alarming management device 15.This parameter module 11 is gathered by the physiological parameter of guardianship and is converted into electric signal.13 pairs of parameter module 11 signals converted of this central processing unit are carried out processing operations and are obtained corresponding waveform and conclusion, for example obtain ecg wave form and obtain conclusions such as heart rate is normal.Generally, when this central processing unit 13 produced warning message, this central processing unit 13 can send to alarming management device 15 with warning message.This alarming management device 15 is embodiment two described alarming management devices, when central processing unit 13 produces warning message, warning message is managed.This alarming management device 15 has the warning chain unit, generally should comprise senior warning chain unit, intermediate warning chain unit and rudimentary warning chain unit by the warning chain unit.This display 12 is connected waveform, conclusion and the warning message that is used to show these central processing unit 13 acquisitions with central processing unit 13.This alarm module 14 is connected with central processing unit 13, is used under central processing unit 13 controls, carrying out actuation of an alarm, for example carries out audible alarm, light warning and acousto-optic and reports to the police simultaneously.This central processing unit 13 produces senior warning chain unit, intermediate warning chain unit and a rudimentary warning chain unit in the task traversal alarming management device 15; If there is warning message to exist in these chain units, this central processing unit 13 is just controlled the actuation of an alarm of these alarm module 14 generation appropriate levels and is controlled warning message and on display 12, shows so.
The monitor device 10 of present embodiment has alarming management device 15, and therefore, the possibility of omitting of reporting to the police reduces greatly, has improved the warning security performance of monitor device 10 significantly.
The monitor device of present embodiment can be multi-parameter monitor, fetal monitor or other life entity monitoring devices.
More than alarming and managing provided by the invention and monitor device carried out detailed introduction, used concrete example among this paper the principle and the embodiment of invention set forth, the explanation of above embodiment just is used for helping to understand core concept of the present invention; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.