to illustrate the differences between the invention , especially the embodiments in fig5 and 6 , and prior art fig7 illustrates a known configuration . the configuration in fig7 includes a mechanical and a manual ventilation system that selectively by means of a manual ventilation valve 80 can drive breathing gas in a breathing circuit . the breathing circuit includes a patient 1 connector to a co 2 - absorber 16 , one way valves , and the circle is connected to the manual ventilation valve and also to a vaporizer 21 by means of which fresh gas from gas supply units 20 a - c can be supplied to the circle . during mechanical ventilation , driving gas is supplied from gas sources through selection valves 86 a , b to a bag in bottle unit 85 driving breathing gas inside the bag to and from the breathing circle , via the manual ventilation valve 80 . the pressure of the breathing gas is controlled during expiration in that the driving gas flow through a peep valve 240 . excess gas , in the breathing circuit , is released through a pop - off valve in the bag in the bag - and - bottle unit 85 , and further to an evacuation system . during manual ventilation a manual bag 50 is used to drive breathing gas to and from the patient via the manual ventilation 80 valve and the patient circle . an apl - valve 140 is arranged limiting the pressure from the bag , said apl - valve is a mechanical valve , comprising a manually adjustable turning knob and a spring loaded valve . excess gas is released through the apl - valve to an evacuation system . fig1 shows schematically , a breathing circuit coupled in a circle system with a mechanical ventilation system 53 and a manual ventilation system 54 configured in accordance with embodiments of the present invention the airways of a patient 1 are connected to a patient branch line 2 of a y - piece 4 in a circular tubing system with an inspiration branch line 6 provided with a one - way inspiratory valve 8 and an expiration branch line 10 provided with an one - way expiratory valve 12 . in one embodiment a pressure sensor 74 is provided in the patient branch line of the y - piece 4 . after the one - way expiratory valve 12 , in a clockwise direction along the circle system , there is a common expiration and inspiration line 14 for the delivery of inspiration gas to the patient and evacuation of expiration gas from the patient coupled to the breathing circle at a junction 15 . further along the circle system the tubing passes through a co 2 absorber 16 and after the absorber there is gas supply branch line 18 provided to feed fresh inhalation gas into the circle system from a fresh inhalation gas source 20 a , 20 b and coupled to the breathing circle at a junction 19 . after the junction 19 there is a vaporizer 21 devised for vaporizing gas components in the flow of inspiration gas to the patient . in the exemplifying breathing circuit the vaporizer should be an injection type vaporizer in order to work properly with the mechanical ventilation system as well as with the manual ventilation system . a gas analyzer 23 is provided to analyze gas contents with an input of sample gas just before the one - way inspiratory valve 8 and an output of the sample gas just after the one - way inspiratory valve 8 . a pressure sensor 70 is provided between the one - way inspiratory valve 8 and the output of the sample gas the common expiration and inspiration line 14 is provided with an adsorption filter 26 devised for adsorption and desorption of anesthetic and respiration gases to or from the patient . at the distal side ( from the perspective of the patient ) of the adsorption filter 26 the common expiration and inspiration line 14 is coupled at a junction 24 to a first output branch line 52 from a selection valve 22 , here in the shape of a bypass valve . a second output branch 52 of the selection valve 22 is coupled to the fresh gas supply line 18 . at an input side , the selection valve 22 is coupled to an input line 28 leading from the fresh inhalation gas source 20 a , 20 b . the selection valve 22 is devised to select the flow route for the fresh inhalation gas via the supply branch line 18 or via the common expiration and inspiration line 14 passed the adsorption filter 26 into the breathing circle . in this example there are two different gases in the inhalation gas source , more specifically oxygen o 2 in the inhalation gas source 20 a which is coupled to an o 2 inspiration valve 30 that in its turn is connected to the selection valve input line 28 at a junction 34 . similarly , there is nitrous oxide n 2 o in the inhalation gas source 20 b which is coupled to an n 2 o inspiration valve 32 that also is coupled to the selection valve input line 28 at the junction 34 . the o 2 inspiration valve 30 and the n 2 o inspiration valve 32 are devised for adjusting the inlet flow and the proportions of the respective gases into the input line 28 . only o 2 and n 2 o are shown , but air can also be used as is common in the art . in the embodiment of the invention shown in fig1 the selection valve is a bypass valve 22 which has the function of selecting fresh inhalation gas flow either through the first output branch 51 or through the second output branch 52 of the selection valve 22 . thus , with the selection valve being actuated to a first flow selection mode the fresh inhalation gas is enabled to flow to the patient via the common expiration and inspiration line 14 and through the adsorption filter 26 , or via the supply branch line 18 then bypassing the adsorption filter 26 as well as the co 2 absorber 16 . an evacuation line 36 is connected to the common expiration and inspiration line 14 and to the mentioned first output branch line 52 at the junction 24 . the evacuation line 36 leads via a flow meter 38 and a pressure sensor 76 to an expiration valve 40 that is devised to control output of evacuated gas flow from the breathing system to a scavenging system 42 or to the atmosphere . a manual ventilation line 46 is connected to the evacuation line 36 at a junction 44 . the manual ventilation line 46 is provided with a manual ventilation valve 48 and leads to a manual bag 50 devised for manual ventilation . in one embodiment there is a pressure sensor 72 provided on the manual bag side of the manual ventilation valve 48 . the mechanical ventilation system 53 and the expiration valve 40 as well as other components are preferably parts of a per se known mechanical ventilator with a ventilation control system 56 . the ventilation control system 56 comprises a user input / output interface 58 with command input means and display means of a per se known type . in a further development of the invention , the interface may also be provided with remote control means for remote control of the manual expiration valve functions or characteristics . the remote control function may for example be realized in a per se known manner as shown in ep1426966 , where an anesthetic machine is provided with remote control for controlling alarms and transitions between mechanical ventilation and manual ventilation . also in a per se known manner , the ventilation control system 56 comprises mechanical ventilation control means 60 usually comprising specifically designed computer program code for controlling the operation of the mechanical ventilation system 53 and its components via a symbolically shown control line 62 . the mechanical ventilation control means 60 enables vent of breathing gas from the mechanical ventilation system according to a first set of predetermined control rules for controlling the expiration valve 40 in accordance with mechanical ventilation mode requirements . in effect , the expiration valve is in this connection controlled to open or close at predefined pressure levels that occur in the tubing system . typically the control rules realize pressure control functions such as a peep valve function and the like . usually a peep valve is closed during inspiration and controls the pressure level , and flow , during expiration . the ventilation control system 56 further comprises a manual ventilation control means 64 . the a manual ventilation control means 64 is devised to control the expiration valve 40 via the symbolically shown control line 66 according to a second set of predetermined control rules and enable mechanical ventilation features adapted to manual ventilation mode requirements . in the manual ventilation mode , the manual ventilation valve 48 is actuated to an open position in order to allow gas flow in the manual ventilation line 46 to and from the manual ventilation bag 50 , and the manual ventilation control means 64 is activated to control the expiration valve 40 . the effect of this is that the same expiration valve 40 is used for the manual ventilation system as well as for the mechanical ventilation system , but is controlled according to different sets of control rules . switching over from mechanical to manual ventilation mode , and vice versa , involves actuating the manual ventilation valve 48 to enable the selected ventilation mode as well as selecting the corresponding ventilation control mode on the user input / output interface 58 of the ventilation control system 56 . when the manual ventilation control mode is selected on the ventilation control system 56 , the mechanical ventilation mode functions for the expiration valve 40 are disabled . the manual ventilation control mode is in different embodiments adapted to different manual ventilation mode requirements . for this purpose the manual ventilation control means 64 comprises different subsets of predetermined manual ventilation control rules . in one embodiment , the manual ventilation control rules are adapted to control the expiration valve ( 40 ) to keep a standby pressure level pstb in the tubing system of the breathing circuit , in order to maintain a predetermined degree of gas volume content in the manual bag . the idea is to keep the manual bag filled with breathing gas to such an extent and with such a pressure that there is a palpable contact with the gas pressure in the lungs of the patient from the manual bag as it is operated by a human operator . in this control mode it is enabled that the patient can breathe spontaneously to and from the manual bag , while excessive gas is let out via the expiration valve . fig4 a - 4c illustrates the characteristics of embodiments of the invention in a manner similar to that of the previously described fig2 - 3 , and reference is made below to fig4 . as with the previously explained fig2 c the changes in the flow curves qpat and qout coincide at certain times , and similarly for visibility reasons the flow curves in fig4 c are drawn with a gap in between . fig4 a - fig . 4 c show schematically pressure and flow characteristics in a breathing circuit , with an electronically controlled expiration valve operated in the manual control mode drawn as graphs of pressure and flow parameters over time in an exemplifying case of operation . fig4 a shows the system pressure in the breathing circuit psys over time t , with the indicated pressure levels pman , pman 1 , pman 2 , pstb and pmin that are devised to be preset by means of the manual ventilation control means . these pressure levels are explained below . fig4 b shows the compression rate of the manual bag over time t , which as described above for example would correspond to or can be described as the change rate in the volume of the manual bag , i . e . the time derivative of the bag volume . fig4 c shows the flow of gas qout over time that is let out from the system in this instance via the apl valve . fig4 c also shows the flow qpat over time to and from the patient . in fig4 c , the flow level qf is the selectable and adjustable flow level of the fresh gas flow . thus , in the time interval from 0 the patient inspires a part qpat of the fresh gas flow qf until the psys attains a first pressure level , which may be a standby pressure level pstb or a minimum pressure level pmin , whereupon the expiration valve 40 is opened to let out a flow qpat . the flow to the patient ceases until t 1 where compression of the manual bag starts . thus , when a manually induced breath shall be induced , the operator compresses the manual bag at time t 1 such that the pressure and / or flow characteristics in the breathing circuit changes during the time interval t 1 to t 2 , which is detected by the control system with the aid of a suitable sensor , for example pressure sensor 76 and / or flow meter 38 . if the detected change in pressure and / or flow characteristics matches a predetermined first pattern , the expiration valve ( 40 ) is controlled to enable a predetermined maximum pressure level corresponding to a desired manual ventilation pressure level pman in the breathing circuit . with the triggering event devised to be a quick compression of the manual bag , the predetermined first pattern of the pressure and / or flow characteristics in the breathing circuit would preferably comprise an increase in pressure corresponding to a predetermined pressure increase rate starting from a predetermined minimum pressure level that may correspond to the standby pressure level pstb or some other selected minimum pressure level . from t 1 to t 2 a relatively high flow qpat flows to the patient and from t 2 it ceases when the expiration valve 40 is opened for an outlet flow qout corresponding to the fresh gas flow level qf as the operator holds the manual bag at a constant volume until t 3 . the manual ventilation pressure level is typically higher than the standby pressure pstb , and thus the expiration valve ( 40 ) is controlled to close until the manual ventilation level is attained at t 2 . the pressure in the breathing circuit then rises with the compression action on the manual bag until the manual ventilation pressure is attained at time t 2 and the patient receives an induced breath . the expiration valve 40 is then controlled to keep the pressure at this level throughout the induced breath during the time interval from t 2 to t 3 , and to open if the pressure level is exceeded . at t 3 the operator releases the bag compression and an expiration phase is started , which results in a flow qpat from the patient to the manual bag followed by an increase up to qf level in the outlet flow qout from the breathing circuit . in fig4 c the indicated area between the curves qout and qpat corresponds to the gas volume in the bag . in this mode the manual ventilation control rules are thus further adapted to control the expiration valve ( 40 ) to allow a predetermined minimum pressure level in the breathing circuit pmin . this minimum pressure level pmin may coincide with the standby pressure level pstb or may be a different selected level that in one embodiment is adjustable via a selection input means during manual ventilation . the purpose is , as described above , to enable a suitable pressure in the manual bag . when the induced breath is terminated at time t 3 , i . e . when the compression of the manual bag ends , the expiration valve is controlled such that the pressure in the tubing system returns to the predetermined minimum level at time t 4 . thus , at t 4 the pressure level pstb / pmin is attained and maintained until t 5 . the patient has an expiration phase during the time interval from t 3 to t 5 , and as illustrated in fig4 the operator gives at t 6 a following manually induced breath with less bag compression during the time interval t 5 to t 8 . again the pressure psys increases and there is again a two step first high then lower flow qpat to the patient . the operator can in this mode thus continue to give manually assisted breathing by compressing the manual bag while maintaining a certain pressure in the breathing circuit as well as in the manual bag . when expiration phases start and the manually induced inspiration ends at time t 3 and t 8 respectively , the expiration valve is controlled to open or close such that the pressure in the breathing circle returns to the standby pressure level . this is preferably achieved such that the second set of predetermined control rules are adapted to control the expiration valve ( 40 ) to attain the predetermined standby pressure level pstb in response to a detected predetermined second pattern of the pressure and / or flow characteristics in the breathing circuit . this predetermined second pattern preferably comprises a decrease in pressure corresponding to a predetermined pressure decrease rate that occurs when the operator releases the manual bag at time t 3 and t 8 and the bag is allowed expand . in one embodiment the inventive concept is implemented to realize an apl ( adjustable pressure limit ) valve that operates with two different pressure levels as described above . the second set of predetermined control rules are in this embodiment adapted to control the expiration valve ( 40 ) to enable and attain a predetermined first , high pressure level pman in the breathing circuit in response to a detected predetermined first pattern of the pressure and / or flow characteristics in the breathing circuit that occurs when an operator starts to compress the manual bag . similarly , the second set of predetermined control rules are adapted to control the expiration valve ( 40 ) to enable a second , lower pressure level pmin that is above the atmospheric pressure in response to a detected predetermined second pattern of the pressure and / or flow characteristics in the breathing circuit that occurs when the operator releases the compression of the manual bag . this thus has the effect that the operator of the breathing apparatus can switch between the lower and the higher pressure levels by compressing and releasing the manual bag , respectively . in a further developed variety the second set of predetermined control rules are adapted to control the expiration valve ( 40 ) to enable pressure variations in the breathing circuit around the first and / or second pressure levels within predetermined pressure variation intervals , for example between pman 1 and pman 2 as illustrated in fig4 a . with a suitable selection of pressure variation intervals above and below the respective first and / or second pressure level ( s ), this variety has the effect that the patient is enabled to breathe spontaneously at the higher pressure as well as at the lower pressure . the second set of predetermined control rules are preferably further adapted to control the expiration valve ( 40 ) to allow a predetermined maximum pressure level in the breathing circuit in response to a command signal received from a command signal input means . in this control mode there is no minimum pressure level higher than the atmosphere and the pressure and / or flow characteristics are thus similar to that of a breathing circuit provided with a traditional apl valve as described in above with reference to fig3 . the invention enables a flexible selection of valve control modes . a general embodiment is devised such that the second set of predetermined control rules are adapted to control the expiration valve ( 40 ) to enable predetermined pressure characteristics that depend on detected pressure and / or flow characteristics in response to a command signal received from a command signal input means . for example , the control rules can be adapted such that the predetermined pressure characteristics correspond to those of a berner valve as described in above with reference to fig3 . in a further embodiment , the control means are devised to trigger a change from a mechanical ventilation mode to a manual ventilation mode in response to a detected change in pressure and / or flow characteristics that matches a predetermined pattern , for example a certain pressure change rate . the effect of this is that an operator can trigger the change from a mechanical ventilation mode to a manual ventilation mode for example by means of a quick compression of the manual bag that results in a first pattern of the pressure and / or flow characteristics in the breathing circuit detected by the control means , enter into a manual ventilation mode and proceed with manual ventilation . the return from the manual ventilation mode to the mechanical ventilation mode may be triggered for example in response to a detected predetermined time interval without any detected significant pressure changes in the manual bag that similarly results in a second pattern of the pressure and / or flow characteristics in the breathing circuit detected by the control means . pressure changes in the manual bag that occur during the time interval and that are not to be taken for manual ventilation action can for example come from the operator touching or tactilely test compressing the manual bag for diagnostic purposes . another origin of non - triggering pressure changes may be the spontaneous breathing of the patient . it is also enabled that the patient can breath spontaneously into the manual bag , and it is not necessary to ventilate mechanically during parts of the process of anaesthetizing or awakening the patient . for these purposes a pressure sensor 72 is provided close to or in the manual bag , since when the breathing apparatus is set in the mechanical ventilation mode the manual ventilation valve 48 is closed and other pressure sensors in the system are not possible to use for detecting pressure conditions of the manual bag . the invention can for example be realized by providing a per se known ventilator 52 with an existing expiration valve 40 with computer program code for realizing the manual ventilation control means 64 , and with the tubing connected to a circle system and a manual bag via a manual ventilation valve 48 as described above . two different configurations of a breathing apparatus , in the form of anesthetic machines , where the invention is implemented , are shown in fig5 and 6 , respectively . the pressure in the breathing circuits in fig5 and 6 is controlled in accordance with the first and second set of rules as described above and in the claims below . the patient breathing circle is the same in the different configurations shown in fig5 and 6 , comprising an inspiration and an expiration branch , respectively . as in the apparatus in fig1 there is a patient y - piece 4 for a patient connected to an inspiration branch line 6 and an expiration branch line 10 . in the expiratory flow direction , from the y - piece , the expiration branch line includes a one - way valve 12 and is further connected to a junction 15 connecting the expiration branch line to a common inspiration and expiration line 14 , and also to the inspiration branch line 6 . the inspiration branch line is provided with , in the inspiratory flow direction starting from the junction 15 , a carbon dioxide absorber 16 , a junction 19 , a one - way inspiration valve 8 and further connected to the y - piece for the patient . junction 19 connects the inspiration branch line ( and the breathing circle ) to a vaporizer 21 via a fresh gas branch line 18 a . the vaporizer is further connected via branch line 18 b to gas sources 20 a , 20 b and 20 c , supplying air , o 2 and n 2 o , so that in the flow direction the fresh gas supply sources is connected via the vaporizer to the breathing circle at junction 19 , between the carbon dioxide absorber 16 and the inspiratory one - way valve 8 . the gas sources 20 a - c is connected , or disconnected , by means of supply valves 81 , 82 , 83 , for n 2 o , o 2 and air , to the fresh gas supply line 18 a via a junction 84 . to supply anesthetics to the breathing circle and further to the patient one , or at least one , of the gas sources supply gas via its respective supply valve 81 - 83 to the vaporizer and further to the breathing circle and to the patient as is common in anesthesia machines . these configurations can also include a gas analyzer , for example in the inspiration branch , and include pressure sensors at y - piece and in the evacuation line as described in connection to fig1 . the common inspiration and expiration line 14 is , in the embodiments , provided with a flow meter 17 . the configurations in fig5 and 6 differ in the driving of the breathing gas in the patient breathing circle , but both configurations include a common expiration valve 40 for manual and mechanical ventilation in an evacuating line 36 . this expiration valve 40 is used to control the pressure level in expiration and inspiration branch of the patient breathing circle . the same expiration valve 40 is used by the manual ventilation as well as by the mechanical ventilation system , but is controlled according to different first and second sets of control rules . both implementations have a “ bag in bottle ” 85 to drive the breathing gas in the patient circle . this bag in bottle 85 is , as is usual , provided with a , so called , pop - off valve 89 , releasing excess gas from the breathing circuit to an evacuation system . in fig5 the driving gas in the mechanical ventilation system is provided to the outside side of the bag in bottle . the expiration valve 40 controls the pressure of the driving gas by regulating the flow of the driving gas through the expiration valve to evacuation , and the pressure in the breathing circle is controlled by the pressure of the drive gas by means of the bag in bottle . gas sources ( o 2 and air ) are connected via respective supply valves 86 a , 86 b and further to a junction 87 connecting the gas sources to the bag in bottle 85 and the expiration valve 40 via a one - way valve 88 and a junction 89 . in this way the gas sources provide driving gas , during mechanical ventilation , to the bag driving the breathing gas inside the bag and which driving gas pressure is adjusted by , means of controlling , the expiration valve 40 . the manual ventilation bag 50 is connected to the evacuation line 36 including the expiration valve 40 via the junction 90 . between the bag and the junction 90 is provided a manual ventilation valve 48 for selecting manual ventilation . the junction 90 connects the manual ventilation bag 50 to the expiration branch 36 with the expiration valve 40 and to the breathing circle via a selection valve 80 and the common inspiration and expiration line 14 . thus the expiration valve 40 controls the pressure provided by the manual bag 50 to the breathing gas flow in the breathing circuit . the selection valve 80 arranged in the common inspiration and expiration line 14 selectively connects the bag in the bag in bottle 85 and the manual ventilation bag 50 to the breathing gas circle . thus , the manual ventilation system , driven by the manual bag , is connected to the breathing circle providing gas flow to and from the circle and excess gas through expiration valve 40 controlling the pressure by controlling the flow of breathing gas , or supplied fresh gas to the breathing circuit . in fig6 both the manual ventilation system and mechanical ventilation system drive the breathing gas by providing driving gas on the outside of the bag in the bag in bottle , and thus driving the breathing gas inside the bag to and from the breathing circle . in fig6 the gas sources , that provide driving gas , are also connected via respective supply valves 86 a , 86 b to the outside of the bag in the bag in bottle , via a junction 87 that also connects the driving gas to the expiration valve 40 via a one - way valve 88 , similar to the apparatus in fig5 . the manual system is arranged different since the manual bag is arranged to provide driving gas , supplied from the gas sources , to the outside of the bag in the bag in bottle . as shown in fig6 the manual bag is connected to the bag via junction 92 to driving gas line between junction 87 and one - way valve 88 . the control rules are different in the mechanical mode and in the manual mode , the expiration valve is the same . the breathing apparatuses in fig1 , 5 and 6 adjust the pressure level in the breathing circuit according to these rules , by controlling the electronic expiration valve 40 . fig1 illustrates control means 60 , 64 in the control system 56 that controls the expiration valve . the apparatuses in fig5 and 6 suitably also includes control means , for example including a control unit such as a computer , to adjust the expiration valve , but this control unit is not shown in the figs . thus , the ventilator in fig5 and 6 also include a ventilation control system comprising means for controlling mechanical and manual ventilation and a user input / output interface with command input means and display means of a per se known type . the ventilation control system comprises computer program code for controlling the operation of the mechanical ventilation and manual ventilation , enables the electronic expiration valve to open or close at pre - defined pressure levels and thereby limit the pressure in the breathing circuit , according to a first set of predetermined control rules during mechanical ventilation mode , controlling pressure such as a peep valve function , and according to a second set of predetermined control rules during manual ventilation enabling and adapting mechanical ventilation features for manual ventilation mode requirements . the configurations include the manual ventilation valve 48 , the opening of which allow gas to flow to the manual ventilation bag 50 ( via line 46 ) and activates the manual ventilation mode and , thus , activating the control of the electronic expiration valve 40 in accordance with the second set of rules adapted for manual ventilation requirements . as in fig1 the same expiration valve 40 is used for the manual ventilation system as well as for the mechanical ventilation system , but is controlled according to different sets of control rules . switching over from mechanical to manual ventilation mode , and vice versa , involves actuating the manual ventilation valve 48 to enable the selected ventilation mode as well as selecting the corresponding ventilation control mode on the user input / output interface of the ventilation control system . when the manual ventilation control mode is selected on the ventilation control system , the mechanical ventilation mode functions for the expiration valve 40 are disabled . the mechanical ventilation system , comprising driving means , i . e . gas supply selection valves 30 , 32 , 86 a , 86 b , and the expiration valve 40 controls the mechanical ventilation . the manual system , comprising the manual bag 50 , as driving means , and the expiration valve 40 is used to control the manual ventilation . in accordance with fig1 the pressure level in the breathing circuit where controlled by controlling the flow of breathing gas through expiration valve 40 during both mechanical and manual ventilation . in accordance with fig5 the pressure level in the breathing circuit is controlled by controlling the flow of breathing gas through expiration valve 40 during manual ventilation , and by controlling the flow of driving gas through expiration valve 40 during mechanical ventilation . in accordance with fig6 the pressure level in the breathing circuit is controlled by controlling the flow of driving gas through expiration valve 40 during both mechanical and manual ventilation . although modifications and changes may be suggested by those skilled in the art , it is the intention of the inventors to embody within the patent warranted heron all changes and modifications as reasonably and properly come within the scope of their contribution to the art .
a breathing apparatus for ventilating the lungs of a patient with breathing gas , has : a breathing circuit configuration ; a mechanical ventilation system ; a manual ventilation system provided with a manual ventilation bag ; a manual ventilation valve for enabling manual ventilation of breathing gas from the breathing circuit ; a pressure sensor devised to detect the pressure level in the breathing circuit ; an electronically controlled expiration valve that in a mechanical ventilation mode is controlled to control the pressure level in the breathing circuit according to a first set of predetermined control rules adapted to mechanical ventilation mode requirements ; said electronically controlled expiration valve in a manual ventilation mode being coupled to enable ventilation of breathing gas from the breathing circuit by means of the manual ventilation system according to a second set of predetermined control rules adapted to manual ventilation mode requirements . in a method for controlling a breathing apparatus , an electronic expiration valve is controlled during the mechanical ventilation mode as well as during the manual ventilation mode of the apparatus . the control of the expiration valve can be implemented by means of a software product for the breathing apparatus embodying programming instructions as control rules , which , when executed in the apparatus , enable control of the expiration valve during manual ventilation .