Abstract:
There is provided an electronic endoscope system, which is provided with an electronic endoscope, and an endoscope processor to which the electronic endoscope is detachably connected. The electronic endoscope system is further provided with a usage status monitoring system which monitors a usage status of the electronic endoscope system and outputs status data, and a usage condition obtaining system which obtains a usage condition of the electronic endoscope system based on the status data. The usage condition obtaining system updates the usage condition based on the status data successively output by the usage status monitoring system.

Description:
BACKGROUND OF THE INVENTION  
         [0001]    The present invention relates to an electronic endoscope system for automatically collecting information regarding usage of an electronic endoscope system.  
           [0002]    The conventional electronic endoscope system typically includes an electronic endoscope that is provided with an image capturing element such as a CCD (Charge Coupled Device) and an endoscope processor that processes an image signal outputted by the image capturing element and transmits the processed image signal to an outputting device such as a display, video printer or the like.  
           [0003]    There are various kinds of electronic endoscopes. The various kinds of electronic endoscopes are selectively and detachably attached to the endoscope processor for endoscopic observation/operation.  
           [0004]    Generally, an endoscope system including one endoscope processor and at least one electronic endoscope is very expensive. Therefore, in many cases, the electronic endoscope system is used on rental basis.  
           [0005]    A rental fee is typically determined based on a usage condition of the endoscope system within a certain time period (for example, a month). However, the conventional endoscope system does not automatically collect information regarding usage of the electronic endoscope system.  
           [0006]    Conventionally, a service person periodically visits a facility or a clinic where the electronic endoscope system is implemented to check the usage condition. Typically, a user at the facility etc. informs the service person of the number of patient charts which correspond to the number of usages of the electronic endoscope system. Then, the service person determines the renting fee based on the number of usages, for example, by multiplying the number of usages by a predetermined coefficient.  
           [0007]    In the above-described case, the user is required to preliminarily select the patient charts corresponding to, the usage of the electronic endoscope system, which is very troublesome for the user.  
           [0008]    In addition, in some cases, the number of the patient charts does not reflect the usage condition accurately since the number of times the electronic endoscope system is used for one observation/operation may not be constant.  
           [0009]    Accordingly, an electronic endoscope system or a method which provides accurate information indicative of the usage condition of the electronic endoscope system has been desired.  
         SUMMARY OF THE INVENTION  
         [0010]    The present invention is advantageous in that it provides an improved electronic endoscope system and/or a method which enables collection of accurate information indicative of the usage condition of the electronic endoscope system.  
           [0011]    According to an aspect of the invention, there is provided an electronic endoscope system, which is provided with an electronic endoscope, and an endoscope processor to which the electronic endoscope is detachably connected. The electronic endoscope system is further provided with a usage status monitoring system which monitors a usage status of the electronic endoscope system and outputs status data, and a usage condition obtaining system which obtains a usage condition of the electronic endoscope system based on the status data. The usage condition obtaining system updates the usage condition based on the status data successively output by the usage status monitoring system.  
           [0012]    With this configuration, the accurate information indicative of the usage condition of the electronic endoscope system can be automatically collected.  
           [0013]    Optionally, the usage condition obtaining system may include a first memory in which the usage condition is stored.  
           [0014]    Still optionally, the usage status monitoring system may include a detecting system which determines whether the electronic endoscope is connected to the endoscope processor. In this case, the status data includes detection results of the detecting system.  
           [0015]    In a particular case, the usage condition obtaining system may include a counting system which counts the number of times by which the electronic endoscope is connected to the endoscope processor based on the detection result output by the detecting system. In this case, the usage condition includes the number of times by which the electronic endoscope is connected to the endoscope processor.  
           [0016]    Alternatively or optionally, the usage condition obtaining system may include a timer, and a time measuring system which measures a total time period for which the electronic endoscope is connected to the endoscope processor using the timer based on the detection result output by the detecting system. In this case, the usage condition includes the total time period.  
           [0017]    In a particular case, the usage status monitoring system may be configured to detect the type of the electronic endoscope connected to the endoscope processor. In this case, the usage condition obtaining system may categorize the usage condition by the type of the electronic endoscope.  
           [0018]    In some embodiments, the electronic endoscope may include a second memory in which a manufacturing number thereof is stored. In this case, the detecting system may detect the type of the electronic endoscope by reading the manufacturing number from the second memory.  
           [0019]    Optionally, the usage condition obtaining system may include a reset system which resets the usage condition stored in the first memory.  
           [0020]    In a particular case, the usage condition obtaining system may be incorporated into the endoscope processor.  
           [0021]    Still optionally, the electronic endoscope system may include an external device which is connected to the endoscope processor. In this case, the usage condition obtaining system may be incorporated into the external device.  
           [0022]    In a particular case, the usage condition obtaining system may be incorporated into the electronic endoscope.  
           [0023]    In some embodiments, the endoscope processor may include a light source which emits light for illuminating an object to be observed to a light guide provided in the electronic endoscope, the usage status monitoring system may include a detecting system which determines whether the light source is energized, and the usage condition obtaining system may include a timer, and a time measuring system which measures a total time period for which the light source is energized using the timer based on detection results output by the detecting system. In this case, the status data may include the detection result of the detecting system, and the usage condition may include the total time period.  
           [0024]    Alternatively or optionally, the usage status monitoring system may include a detecting system which determines whether the endoscope processor is supplied with power, and the usage condition obtaining system may include a timer, and a time measuring system which measures a total time period for which the endoscope processor is supplied with power using the timer based on detection result output by the detecting system. In this case, the status data may include the detection result of the detecting system, and the usage condition may include the total time period.  
           [0025]    Still optionally, the electronic endoscope system may include an image recording system which records an image captured by a solid-state imaging element provided in the electronic endoscope onto a medium, the usage status monitoring system may include a detecting system which determines whether the image recording system records the image onto the medium, and the usage condition obtaining system may include a counting system which counts the number of times by which the image recording system records the image onto the medium based on detection result output by the detecting system. In this case, the status data includes the detection result of the detecting system, and the usage condition includes the number of times by which the image recording system records the image onto the medium.  
           [0026]    In some embodiments, the electronic endoscope may include an instrument-inserting channel into which an instrument is inserted, the usage status monitoring system may include a detecting system which determines whether the instrument is inserted into the instrument-inserting channel, and the usage condition obtaining system may include a counting system which counts the number of times by which the instrument is inserted into the instrument-inserting channel based on detection result output by the detecting system. In this case, the status data includes the detection result of the second detecting system; and the usage condition includes the number of times by which the instrument is inserted into the instrument-inserting channel.  
           [0027]    In a particular case, the detecting system may include a mechanical switch provided in the electronic endoscope, and the detecting system may determine whether the instrument is inserted into the instrument-inserting channel based on a signal output by the mechanical switch. A member of the mechanical switch is pressed when the instrument is inserted into the instrument-inserting channel.  
           [0028]    Alternatively, the detecting system may include a light-emitting device and a photodetector which are provided in the electronic endoscope, and the detecting system may determine whether the instrument is inserted into the instrument-inserting channel based on a signal output by the photodetector. The light-emitting device and the photodetector are placed so that a light beam emitted by the light-emitting device is blocked by the instrument when the instrument is inserted into the instrument-inserting channel.  
           [0029]    Optionally, the detecting system may be configured to detect the type of the instrument inserted into the instrument-inserting channel, and the counting system may categorize the number of times by which the instrument is inserted into the instrument-inserting channel by the type of the instrument.  
           [0030]    In a particular case, the detecting system may include a bar code reader provided in the electronic endoscope, and the bar code reader may read a bar code on the instrument when the instrument is inserted into the instrument-inserting channel. In this case, the bar code on the instrument represents the type of the instrument.  
           [0031]    According to another aspect, there is provided a method for obtaining a usage condition of an electronic endoscope system, which includes monitoring a usage status of an electronic endoscope system and outputting status data, obtaining a usage condition of the electronic endoscope system based on the status data, and updating the usage condition based on the status data successively output. 
       
    
    
     BRIEF DESCRIPTION OF THE ACCOMPANYING DRAWINGS  
       [0032]    [0032]FIG. 1 schematically shows an entire configuration of an electronic endoscope system according to an embodiment of the invention;  
         [0033]    [0033]FIG. 2 is a flowchart illustrating a procedure for counting the number of times that an electronic endoscope is used, in which categorization in terms of the type of the electronic endoscope is not performed;  
         [0034]    [0034]FIG. 3 is a flowchart illustrating a procedure for counting the number of times by which the electronic endoscope is used, in which categorization by the type of the electronic endoscope is performed;  
         [0035]    [0035]FIG. 4 is a flowchart illustrating a procedure for measuring a time period for which the electronic endoscope is used, in which categorization by the type of the electronic endoscope is performed;  
         [0036]    [0036]FIG. 5 is a flowchart illustrating a procedure for calculating the total number of times by which a still image is captured, in which categorization by the type of the electronic endoscope is performed;  
         [0037]    [0037]FIGS. 6A and 6B schematically show a instrument detecting unit having a microswitch.  
         [0038]    [0038]FIGS. 7A and 7B schematically show a instrument detecting unit having a light source and a photodetector;  
         [0039]    [0039]FIG. 8 is a flowchart illustrating a procedure for calculating the number of times by which an-instrument is inserted into an instrument-inserting channel, in which categorization by the type of the electronic endoscope is performed;  
         [0040]    [0040]FIGS. 9A and 9B schematically show an instrument detecting unit having a bar code reader;  
         [0041]    [0041]FIG. 10 is a flowchart illustrating a procedure for counting the total number of times that the instrument is inserted into the instrument-inserting channel, in which categorization in terms of the type of the electronic endoscope and the type of the instrument is performed;  
         [0042]    [0042]FIG. 11 shows a subroutine called at S 606 A, S 606 B or S 606 C in FIG. 10; and  
         [0043]    [0043]FIG. 12 is a flowchart illustrating a procedure for calculating a rental fee based on both of the time period of use of the electronic endoscope and the number of times that the still image is captured. 
     
    
     DETAILED DESCRIPTION OF THE EMBODIMENTS  
       [0044]    Hereinafter, endoscope systems according to embodiments of the invention will be described with reference to the accompanying drawings.  
         [0045]    First Embodiment  
         [0046]    [0046]FIG. 1 schematically shows an entire configuration of an endoscope system  1  according to a first embodiment of the invention. The endoscope system  1  is provided with an electronic endoscope  100  and an endoscope processor  200  to which the electronic endoscope  100  is detachably attached.  
         [0047]    The endoscope processor  200  is provided with a light source  203 , a timing controller  204 , a system controller  205 , front panel switches  207 , and a memory  208  that is a nonvolatile RAM, which are connected to each other via a bus  202 . The endoscope processor  200  is further provided with an image signal processing circuit  201  and a power unit  206 .  
         [0048]    The timing controller  204  generates CCD drive signals for driving a CCD  104  provided at a tip portion of the electronic endoscope  100 . The generated CCD drive signals are transmitted from the timing controller  204  to the CCD  104  through control signal cables  105  which are routed from a connecting portion  114  of the electronic endoscope  100  to the CCD  104 .  
         [0049]    The light source  203  emits light for illuminating an object to be observed to a light guide  103  provided in the electronic endoscope  100 . The light emitted by the light source  203  reaches the tip portion of-the electronic endoscope  100  propagating through the light guide  103  to illuminate an object.  
         [0050]    The CCD  104  captures an optical image of the object and outputs an image signal which is transmitted to the image signal processing circuit  201  through an image signal cable  106  that is routed from the CCD  104  to the connecting portion  114  of the electronic endoscope  100 . The image signal processing circuit  201  converts the image signal transmitted from the CCD  104  into a video signal such as an NTSC format video signal. The video signal is sent to a monitor  300 , thereby images captured by the CCD  104  are displayed on the monitor  300 . Additionally, the video signal may be sent to a computer  400  which functions as a medical image filing apparatus, a video printer  500 , a VCR (not shown) or the like.  
         [0051]    The system controller  205  controls all the circuits inside the endoscope processor  200 . Further, the system controller  205  is connected with a keyboard  600 , and controls the respective circuits based on input commands through the keyboard  600 . Various functions including mode change, a superimposing of letters on the image, and image processing such as color balance adjustment, edge enhancement, or the like are performed under control of the system controller  205 .  
         [0052]    The electronic endoscope  100  and the endoscope processor  200  are configured such that the voltage level of an input signal to the system controller  205  varies depending on whether the electronic endoscope  100  is connected to the endoscope processor  200  or not, the system controller  205  can determine whether the electronic endoscope  100  is connected to the endoscope processor  200 .  
         [0053]    The system controller  205  is further connected with the front panel switches  207 . The system controller  205  controls respective circuits based on input commands through the front panel switches  207 . For example, by operating a switch of the front panel switches  207 , a still image captured by the CCD  104  can be stored in an image memory (not shown) as a still image data. Further, by operating the front panel switches  207 , the still image data stored in the image memory can be transmitted to the computer  400  and the video printer  500  which prints out the still image.  
         [0054]    An instrument-insetting channel  102  is provided in the insertion tube  101  of the electronic endoscope  100 . An instrument is inserted into the instrument-inserting, channel  102  via an instrument-opening  107  until it is exposed at the distal end of the insertion tube  101 .  
         [0055]    An operation unit  108  of the electronic endoscope  100  is provided with control switches  109 . As in the case where the front panel switches  207  are used, the endoscope system  1  can be operated by operating the control switches  109 . For example, by operating a certain switch of the control switches  109 , a still image captured by the CCD  104  can be stored in the image memory (not shown) as a still image data. Further, by operating the other switch of the control switches  109 , the still image data stored in the image memory can be transmitted to the computer  400  and the video printer  500  which prints out the still image.  
         [0056]    Further, the system controller  205  is configured to monitor operation of the endoscope system  1  and obtains the following information:  
         [0057]    (a) a type of the electronic endoscope  100  connected to the endoscope processor  200 ;  
         [0058]    (b) a type of the instrument inserted into the instrument-inserting channel  102 ;  
         [0059]    (c) a total number of times by which the electronic endoscope  100  is used (i.e., inserted into a body cavity);  
         [0060]    (d) a total time period for which the electronic endoscope  100  is used (i.e., inserted into a body cavity);  
         [0061]    (e) a total time period for which the endoscope processor  200  is supplied with power;  
         [0062]    (f) a total time period for which a lamp in the light source  203  is energized;  
         [0063]    (g) a total number of times by which the still image is captured (e.g., the total number of times by which the still image is printed out using the video printer  500 );  
         [0064]    (h) a total number of times by which the instrument is inserted into the instrument-inserting channel  102 ; and,  
         [0065]    (i) a total time period for which the instrument is inserted into the instrument-inserting channel  102 . The above information (a)-(i) is stored in the memory  208  under the control of the system controller  205 .  
         [0066]    Preferably, the total number of times for which the electronic endoscope  100  is used and the total time period for which the electronic endoscope  100  is used are categorized by the type of the electronic endoscope (i.e., the kind of the electronic endoscope). The type of the electronic endoscope can be determined based on a manufacturing number of the electronic endoscope. The manufacturing number may be stored in a memory incorporated in the electronic endoscope  100  (not shown). When the electronic endoscope  100  is connected to the endoscope processor  200 , the system controller  205  reads out the manufacturing number from the memory of the electronic endoscope  100 , and determines the type of the connected electronic endoscope  100 .  
         [0067]    Alternatively, the total number of times for which the electronic endoscope  100  is used and the total time period for which the electronic endoscope  100  is used may be categorized by the manufacturing number of the electronic endoscope.  
         [0068]    Preferably, the number of times by which the instrument is inserted into the instrument-inserting channel  102  and the total time period of insertion of the instrument are categorized by the type of the instrument (i.e., the kind of the instrument) or a manufacturing number of the instrument.  
         [0069]    [0069]FIG. 2 is a flowchart illustrating a procedure for obtaining the number of times by which the electronic endoscope is used (i.e., inserted into a body cavity), according to the first embodiment of the invention. This procedure is performed under control of the system controller  205 . It should be noted that FIG. 2 shows a case where categorization according to the type of the electronic endoscope connected to the endoscope processor is not performed. The number of times by which the electronic endoscope is used is represented by a variable “n” in FIG. 2.  
         [0070]    The procedure shown in FIG. 2 starts when power of the endoscope processor  200  is turned on, and stays in a memory incorporated in the system controller  205  (not shown) while the endoscope processor  200  is supplied with power. Accordingly, the procedure shown in FIG. 2 is executed while the endoscope processor  200  is operated.  
         [0071]    In S 101 , it is determined whether the electronic endoscope  100  is connected to the endoscope processor  200  or not. Step S 101  is repeated until the electronic endoscope  100  is connected to the endoscope processor  200 . If the electronic endoscope  100  is connected to the endoscope processor  200  (S 101 :YES), control proceeds to S 102 . In S 102 , the variable “n” is incremented by 1.  
         [0072]    Next, it is determined whether the time period of a rental use contract of the endoscope system  1  is to be renewed or not based on directions input to the endoscope processor  200  by the service person via, for example, the keyboard  600  (S 103 ). Alternatively, the directions may be transmitted from an external computer which is connected to the endoscope processor  200  via interface connector of the endoscope processor  200  (not shown).  
         [0073]    If the time period of the rental use contract is not to be renewed (S 103 :NO), control returns to S 101 . If the time period of the rental use contract is renewed (S 103 :YES), ‘n’ is reset to 0 (S 104 ). Then, control returns to S 101 .,  
         [0074]    Thus, “n” represents the total number of times by which the electronic endoscope is used during the time period of the rental use contract. The service person obtains the value of “n” in S 103  through, for example, the monitor  300 . It should be noted that the variable “n” is stored in the memory  208  which is a nonvolatile RAM, and thus, is maintained even though the endoscope processor  200  is turned OFF.  
         [0075]    Alternatively, the procedure shown in FIG. 2 may be executed by, for example, a microprocessor provided in the electronic endoscope  100  (not shown).  
         [0076]    If the time period of the rental use contract is to be renewed (S 103 :YES), the rental fee (P1) is calculated according to the following equation:  
           P 1 =n×m 1  (1)  
         [0077]    where m1 represents a charge for each use of the electronic endoscope. The service person charges the user the rental fee P1.  
         [0078]    Second Embodiment  
         [0079]    [0079]FIG. 3 is a flowchart illustrating a procedure for obtaining the number of times by which the electronic endoscope is used, according to a second embodiment of the invention. This procedure includes categorizing the number of times by the type of the electronic endoscope connected to the endoscope processor  200 . It should be noted that an entire configuration of an endoscope system according to the second embodiment is substantially the same as the endoscope system  1  (FIG. 1).  
         [0080]    This procedure is performed under control of the system controller  205 . Variables “nA”, “nB” and “nC” in FIG. 3 represent the number of times of use of the electronic endoscopes of type-A, type-B and the other types, respectively.  
         [0081]    The procedure shown in FIG. 3 starts when power of the endoscope processor  200  is turned on, and stays in the memory while the endoscope processor  200  is supplied with power. Accordingly, the procedure shown in FIG. 3 is executed while the endoscope processor  200  is operated. Variables “nA”, “nB” and “nC” are stored in the memory  208 , and therefore, variables “nA”, “nB” and “nC” are maintained even though the endoscope processor  200  is turned OFF.  
         [0082]    In S 201 , it is determined whether the electronic endoscope  100  is connected to the endoscope processor  200 . Step S 201  is repeated until the electronic endoscope  100  is connected to the endoscope processor  200 . If the electronic endoscope  100  is connected to the endoscope processor  200 , control proceeds to S 202 .  
         [0083]    In S 202 , it is determined whether the electronic endoscope  100  connected to the endoscope processor  200  is type-A or not. If the electronic endoscope  100  connected to the endoscope processor  200  is type-A (S 202 :YES), control proceeds to S 203 . In S 203 , the variable “nA” is incremented by 1. Then, control proceeds to S 207 .  
         [0084]    If the electronic endoscope  100  connected to the endoscope processor  200  is not type-A (S 202 :NO), control proceeds to S 204  where it is determined whether the electronic endoscope  100  connected to the endoscope processor  200  is type-B or not. If the electronic endoscope  100  connected to the endoscope processor  200  is type-B (S 204 :YES), control proceeds to S 205 . In S 205 , the variable “nB” is incremented by 1. Then, control proceeds to S 207 .  
         [0085]    If the electronic endoscope  100  connected to the endoscope processor  200  is not type-B (S 204 :NO), control proceeds to S 206  where the variable “nC” is incremented by 1. Then, control proceeds to S 207 .  
         [0086]    Next, it is determined whether the time period of a rental use contract is to be renewed or not based on directions input to endoscope processor  200  by the service person via, for example, the keyboard  600  (S 207 ).  
         [0087]    If the time period of the rental use contract is not to be renewed (S 207 :NO), control returns to S 201 . If the time period of the rental use contract is to be renewed (S 207 :YES), variables “nA”, “nB” and “nC” are reset to 0 (S 208 ). Then, control returns to S 201 .  
         [0088]    Thus, variables “nA”, “nB” and “nC” represent the total number of times of use of the electronic endoscope of type-A, type-B and the other types, respectively, during the time period of the rental use contract. The service person obtains values of “nA”, “nB” and “nC” in S 207  through, for example, the monitor  300 .  
         [0089]    If the time period of the rental use contract is to be renewed (S 207 :YES), the rental fee (P2) is calculated according to the following equation:  
           P 2 =nA×m 1 A+nB×m 1 B+nC×m 1 C   (2)  
         [0090]    where a coefficient m1A represents a charge for each use of the electronic endoscope of type-A, a coefficient m1B represents a charge for each use of the electronic endoscope of type-B and a coefficient m1C represents a charge for each use of the other types of the electronic endoscopes. The service person charges the user the rental fee P2.  
         [0091]    As described above, the procedure shown in FIG. 3 enables collection of a rental fee that is related to the price of the electronic endoscope connected to the endoscope processor. It should be noted that the kinds of endoscopes connectable to the endoscope processor  200  is not limited to three, but the endoscope system may be configured such that two or more than three types of electronic endoscopes and/or two or more electronic endoscopes of the same type could be connected to the endoscope processor  200 , and the fee is calculated in a similar manner. For example, the number of times by which the electronic endoscopes is used may be categorized into, four groups using four variables “nA”, “nB”, “nC” and “nD” in a similar manner.  
         [0092]    Third Embodiment  
         [0093]    [0093]FIG. 4 is a flowchart illustrating a procedure for obtaining the time period for which the electronic endoscope  100  is used (i.e., inserted into a body cavity), according to a third embodiment of the invention. This procedure includes categorizing the time period by the type of the electronic endoscope connected to the endoscope processor  200 . It should be noted that an entire configuration of an endoscope system according to the third embodiment is substantially the same as the endoscope system  1  (FIG. 1).  
         [0094]    This procedure (FIG. 4) is performed under control of the system controller  205 . Variables “tA”, “tB” and “tC” in FIG. 4 represent the time period of use of the electronic endoscopes of type-A, type-B and the other types, respectively.  
         [0095]    The procedure shown in FIG. 4 starts when power of the endoscope processor  200  is turned on, and stays in the memory while the endoscope processor  200  is supplied with power. Accordingly, the procedure shown in FIG. 4 is executed while the endoscope processor 200 is operated. Variables “tA”, “tB” and “tC” are stored in the memory  208 , and therefore, variables “tA”, “tB” and “tC” are maintained even though the endoscope processor  200  is turned OFF.  
         [0096]    In S 301 , it is determined whether the electronic endoscope  100  is connected to the endoscope processor  200  or not. Step S 301  is repeated until the electronic endoscope  100  is connected to the endoscope processor  200 . If the electronic endoscope  100  is connected to the endoscope processor  200 , control proceeds to S 302 .  
         [0097]    In S 302 , it is determined whether the electronic endoscope  100  connected to the endoscope processor  200  is type-A or not. If the electronic endoscope  100  connected to the endoscope processor  200  is type-A (S 302 :YES), control proceeds to S 304 A.  
         [0098]    In S 304 A, the time information when the electronic endoscope is connected to the endoscope processor  200  is assigned to a variable “t1A”. Next., the system controller  205  waits until the electronic endoscope  100  is detached from the endoscope processor  200  (S 305 A).  
         [0099]    If the electronic endoscope  100  is detached from the endoscope processor  200 , control proceeds to S 306 A and the time information when the electronic endoscope  100  is detached from the endoscope processor  200  is assigned to a variable “t2A”. In step S 307 A, the time period of use of the electronic endoscope of type-A (tA) is updated according to tA=tA+(t2A−t1A). Thus, the variable “tA” represents the total time period of use of the electronic endoscope of type-A. Next, control proceeds to S 308 .  
         [0100]    If the electronic endoscope  100  connected to the endoscope processor  200  is not type-A (S 302 :NO), control proceeds to S 303  where it is determined whether the electronic endoscope  100  connected to the endoscope processor  200  is type-B or not. If the electronic endoscope  100  connected to the endoscope processor  200  is type-B (S 303 :YES), control proceeds to S 304 B.  
         [0101]    As in the case of the electronic endoscope of type-A (the steps of S 304 A-S 307 A), the time period of use of the electronic endoscopes of type-B (tB) is updated according to tB=tB+(t2B−t1B), through the steps of S 304 B-S 307 B, where the variable “t1B” represents the time information when the electronic endoscope of type-B is connected to the endoscope processor  200 , and the variable “t2B” represents the time information when the electronic endoscope of type-B is detached from the endoscope processor  200 . Thus, the variable “tB” represents the total time period of use of the electronic endoscope  100  of type-B. Next, control proceeds to S 308 .  
         [0102]    If the electronic endoscope  100  connected to the endoscope processor  200  is not type-B (S 303 :NO), control proceeds to S 304 C. As in the case of the electronic endoscope of type-A (the steps of S 304 A-S 307 A), the time period of use of the other types of electronic endoscopes is updated according to tC=tC+(t2C−t1C), through the steps of S 304 C-S 307 C, where the variable “t1C” represents the time information when the other types of the electronic endoscope is connected to the endoscope processor  200 , and the variable “t2C” represents the time information when the other types of the electronic endoscope is detached from the endoscope processor  200 . Thus, the variable “tC” represents the total time period of use of the other types of the electronic endoscope. Next, control proceeds to S 308 .  
         [0103]    In S 308 , it is determined whether the time period of a rental use contract is to be renewed or not based on directions input to endoscope processor  200  by the service person via, for example, the keyboard  600 .  
         [0104]    If the time period of the rental use contract is not to be renewed (S 308 :NO), control returns to S 301 . If the time period of the rental use contract is to be renewed (S 308 :YES), variables “tA”, “tB” and “tC” are reset to 0 (S 309 ). Then, control returns to S 301 .  
         [0105]    Thus, variables “tA”, “tB” and “tC” represent the total time period of use of the electronic endoscope of type-A, type-B; and the other types, respectively, during the time period of the rental use contract. The service person obtains values of “tA”, “tB” and “tC” in S 308  through, for example, the monitor  300 .  
         [0106]    If the time period of the rental use contract is to be renewed (S 308 :YES), the rental fee (P3) is calculated according to the following equation:  
           P 3 =tA×m 2 A+tB×m 2 B+tC×m 2 C   (3)  
         [0107]    where a coefficient m2A represents a charge per unit time regarding use of the electronic endoscope of type-A, a coefficient m2B represents a charge per unit time regarding use of the electronic endoscope of type-B, and a coefficient m2C represents a charge per unit time regarding use of the other types of the electronic endoscope. The service person charges the user the rental fee P3.  
         [0108]    As described above, the procedure shown in FIG. 4 enables collection of rental fees which correspond to time of use of the respective electronic endoscopes.  
         [0109]    It is also possible to calculate a rental fee (P3′) without categorization of the time period of use of the electronic endoscope by the type of the electronic endoscope. The rental fee (P3′) can be calculated according to the following equation:  
           P 3′=( tA+tB+tC )× m 2  (4)  
         [0110]    where a coefficient m2 represents a charge per unit time regarding use of the electronic endoscope, and m2 is common to every kind of the electronic endoscope.  
         [0111]    Similarly, calculation of a rental fee according to the total time period for which the processor  200  is supplied with power with(or without) categorization by the type of the electronic endoscope can also be carried out. Also, calculation of a rental fee according to the total time period for which the lamp in the light source  203  is energized can be carried out.  
         [0112]    Fourth Embodiment  
         [0113]    [0113]FIG. 5 is a flowchart illustrating a procedure for obtaining the total number of times by which a still image is captured and printed out using the video printer  500 , according to a fourth embodiment of the present invention. This procedure includes categorizing the total number of times by the type of the electronic endoscope connected to the endoscope processor  200 . It should be noted that an entire configuration of an endoscope system according to the forth embodiment is substantially the same as the endoscope system  1  (FIG. 1).  
         [0114]    As described above, the user operates a certain switch (a capturing switch) of the control switches  109  to capture (or to print out) the still image. When the capturing switch is operated, a signal which indicates operation of the capturing switche is transmitted to the system controller  205 . The system controller  205  counts the number of times by which the signal indicating operation of the capturing switch is input to it. Accordingly, the system controller  205  can obtain the number of times by which the still image is captured (printed).  
         [0115]    This procedure is performed under control of the system controller  205 . A variable “pA” in FIG. 5 represents the number of times by which the still image is captured when the electronic endoscopes of type-A is used. A variable “pB” in FIG. 5 represents the number of times by which the still image is captured when the electronic endoscopes of type-B is used. A variable “pC” in FIG. 5 represents the number of times by which the still image is captured when the other types of the electronic endoscope is used.  
         [0116]    The procedure shown in FIG. 5 starts when power of the endoscope processor  200  is turned on, and stays in the memory while the endoscope processor  200  is supplied with power. Accordingly, the procedure shown in FIG. 5 is executed while the endoscope processor  200  is operated. Variables “pA”, “pB” and “pC” in FIG. 5 are stored in the memory  208 , and therefore, variables “pA”, “pB” and “tC” are maintained even though the endoscope processor  200  is turned OFF.  
         [0117]    In S 401 , it is determined whether the electronic endoscope  100  is connected to the endoscope processor  200  or not. Step S 401  is repeated until the electronic endoscope  100  is connected to the endoscope processor  200 . If the electronic endoscope  100  is connected to the endoscope processor  200 , control proceeds to S 402 .  
         [0118]    In S 402 , it is determined whether the electronic endoscope  100  connected to the endoscope processor  200  is type-A or not. If the electronic endoscope  100  connected to the endoscope processor  200  is type-A (S 402 :YES), control proceeds to S 404 A.  
         [0119]    In S 404 A, the system controller  205  waits until the signal indicating capture operation of the control switches  109  is input to it. If the signal indicating capture operation of the control switches  109  is input (S 404 A:YES), i.e., the still image is captured, the variable “pA” is incremented by 1 (S 405 A).  
         [0120]    Next, it is determined whether the electronic endoscope  100  is detached from the endoscope processor  200  (S 406 A). If the electronic endoscope  100  is not detached (S 406 A:NO), control returns to S 404 A. If the electronic endoscope  100  is detached (S 406 A:YES), control proceeds to S 407 .  
         [0121]    If the electronic endoscope  100  connected to the endoscope processor  200  is not type-A (S 402 :NO), control proceeds to S 403  where it is determined whether the electronic endoscope  100  connected to the endoscope processor  200  is type-B or not. If the electronic endoscope  100  connected to the endoscope processor  200  is type-B (S 403 :YES), control proceeds to S 404 B.  
         [0122]    As in the case of the electronic endoscope of type-A (the steps of S 404 A-S 406 A,), the number of times by which the still image is captured using the electronic endoscope of type-B (pB) is updated according to pB=pB+1 (the steps of S 404 B-S 406 B). Next, control proceeds to S 407 .  
         [0123]    If the electronic endoscope  100  connected to the endoscope processor  200  is not type-B (S 403 :NO), control proceeds to S 404 C. As in the case of the electronic endoscope of type-A (the steps of S 404 A-S 406 A), the number of times by which the still image is captured using the other types of the electronic endoscope is updated according to pC=pC+1 (the steps of S 404 C-S 406 C). Next, control proceeds to S 407 .  
         [0124]    In S 407 , it is determined whether the time period of a rental use contract is to be renewed or not based on directions input to the endoscope processor  200  by the service person via, for example, the keyboard  600 . If the time period of the rental use contract is not to be renewed (S 407 :NO), control returns to S 401 . If the time period of the rental use contract is to be renewed (S 407 :YES), variables “pA”, “pB” and “pC” are reset to 0 (S 408 ). Next, control returns to S 401 .  
         [0125]    Thus, variables “pA”, “pB” and “pC” represent the total number of times by which the still image is captured using the electronic endoscope of type-A, type-B and the other types, respectively, during the time period of the rental use contract. The service person obtains values of “pA”, “pB” and “pC” in S 407  through, for example, the monitor  300 .  
         [0126]    If the time period of the rental use contract is to be renewed (S 407 :YES), the rental fee (P4) is calculated according to the following equation:  
           P 4 =pA×m 3 A+pB×m 3 B+pC×m 3 C   (5)  
         [0127]    where the coefficient m3A represents a charge for each capture of a still image regarding use of the electronic endoscope of type-A, the coefficient m3B represents a charge for each capture of a still image regarding use of the electronic endoscope of type-B, and the coefficient m3C represents a charge for each capture of a still image regarding the use of the other types of electronic endoscope. The service person charges the user the rental fee P4.  
         [0128]    It is also possible to calculate a rental fee (P4′) without categorization of the number of times by which the still image is captured based on the type of the electronic endoscope. The rental fee (P4′) can be calculated according to the following equation:  
           P 4′=( pA+pB+pC )× m 3  (6)  
         [0129]    where the coefficient m3 represents a charge for each capture of a still image, and m3 is common to every kind of the electronic endoscope.  
         [0130]    Fifth Embodiment  
         [0131]    A fifth embodiment of the invention will be described below with reference to FIGS.  6 A- 6 B, FIGS.  7 A- 7 B and FIG. 8. It should be noted that an entire configuration of an endoscope system according to the fifth embodiment is substantially the same as the endoscope system  1  (FIG. 1).  
         [0132]    An instrument detecting unit  110  which detects the instrument when the instrument is inserted into the instrument-inserting channel  102  is provided in the electronic endoscope  100  (FIG. 1). Further, the instrument detecting unit  110  is connected to the system controller  205  through the control signal cables  105 . The system controller  205  counts the number of-times by which the instrument is inserted into the instrument-inserting channel  102  based on the signal output by the instrument detecting unit  110 .  
         [0133]    [0133]FIG. 6A schematically shows the instrument detecting unit  110 . The instrument detecting unit  110  has a microswitch  111  which is provided with a lever  111   a  and a switch case  111   b . FIG. 6A shows a case where the instrument  700  is not inserted into the instrument-inserting channel  102 . The lever  111   a  is pressed by a spring (not shown) such that a-tip portion  111   c  thereof is located at a center line C 1  of the instrument-inserting channel  102 .  
         [0134]    [0134]FIG. 6B shows a case where the instrument  700  is inserted into the instrument-inserting channel  102 . As shown in FIG. 6B, the lever  111   a  is pressed down by the instrument  700 , and therefore, the lever  111   a  is in the “down” position.  
         [0135]    When the lever  111   a  is pressed by the instrument  700  and it is in the “down” position, another tip portion  111   d  of the lever  111   a  presses the switch case  111   b . When the switch case  111   b  is pressed by the lever  111   a , a signal indicating insertion of the instrument  700  is transmitted from the microswitch  111  to the system controller  205  through the control signal cables  105 . Therefore, the system controller  205  can determine whether the instrument  700  is inserted into the instrument-inserting channel  102  or not.  
         [0136]    With this configuration, the system controller  205  can count the number of times by which the instrument is inserted into the instrument-inserting channel  102 .  
         [0137]    As an alternative to the instrument detecting unit  110  shown in FIG. 6A, FIG. 7A schematically shows a instrument detecting unit  1110  which has a light source  1111  such as a LED (Light-Emitting Diode) and a photodetector  1112 . FIG. 7A shows a case where the instrument  700  is not inserted into the instrument-inserting channel  102 . In this case, light emitted by the light source  1111  impinges on the photodetector  1112 , and therefore, a signal which indicates the instrument  700  is not inserted into the instrument-inserting channel  102  is transmitted from the photodetector  1112  to the system controller  205  through the control signal cables  105 .  
         [0138]    [0138]FIG. 7B shows a case where the instrument  700  is inserted into the instrument-inserting channel  102 . As shown in FIG. 7B, light emitted by the light source  1111  does not impinge on the photodetector  1112 . In this case, a signal indicating insertion of the instrument  700  is transmitted to the system controller  205  through the control signal cables  105 .  
         [0139]    Therefore, the-system controller  205  can determine whether the instrument  700  is inserted into the instrument-inserting channel  102  or not. With this configuration, the system controller  205  can count the number of times by which the instrument is inserted into the instrument-inserting channel  102 .  
         [0140]    [0140]FIG. 8 is a flowchart illustrating a procedure for obtaining the number of times by which the instrument is inserted into the instrument-inserting channel  102 , according to the fifth embodiment of the invention. This procedure includes categorization by the type of the electronic endoscope. This procedure is performed under control of the system controller  205 .  
         [0141]    A variable “fA” in FIG. 8 represents the number of times by which the instrument is inserted into the instrument-inserting channel  102  when the electronic endoscopes of type-A is used. A variable “fB” in FIG. 8 represents the number of times by which the instrument is inserted into the instrument-inserting channel  102  when the electronic endoscopes of type-B is used. A variable “fC” represents the number of times by which the instrument is inserted into the instrument-inserting channel  102  when the other types of electronic endoscope is used.  
         [0142]    The procedure shown in FIG. 8 starts when power of the endoscope processor  200  is turned on, and stays in the memory while the endoscope processor  200  is supplied with power. Accordingly, the procedure shown in FIG. 8 is executed while the endoscope processor  200  is operated. Variables “fA”, “fB”, and “fC” are stored in the memory  208 , and therefore, variables “fA”, “fB” and “fC” are maintained even though the endoscope processor  200  is turned OFF.  
         [0143]    In S 501 , it is determined whether the electronic endoscope  100  is connected to the endoscope processor  200  or not. Step S 501  is repeated until the electronic endoscope  100  is connected to the endoscope processor  200 . If the electronic endoscope  100  is connected to the endoscope processor  200 , control proceeds to S 502 .  
         [0144]    In S 502 , it is determined whether the electronic endoscope  100  connected to the endoscope processor  200  is type-A or not. If the electronic endoscope  100  connected to the endoscope processor  200  is type-A (S 502 :YES), control proceeds to S 504 A.  
         [0145]    In S 504 A, it is determined whether the signal indicating insertion of the instrument is input to the system controller  205  or not. If the signal indicating insertion of the instrument is input (S 504 A:YES), i.e., the instrument is inserted into the instrument-inserting channel  102 , the variable “fA” is incremented by 1 (S 505 A). If the signal indicating insertion of the instrument is not input (S 504 A:NO), control proceeds to S 507 A.  
         [0146]    In S 506 A, it is determined whether the signal indicating insertion of the instrument is input to the system controller  205  or not. If the instrument is inserted into the instrument-inserting channel  102  (S 506 A:YES), i.e., the instrument is staying in the instrument-inserting channel  102 , S 506 A is repeated. If the signal indicating insertion of the instrument is not input (S 506 A:NO), i.e., the instrument is pulled out of the instrument-inserting channel  102  (S 506 A:NO), control proceeds to S 507 A.  
         [0147]    In S 507 A, it is determined whether the electronic endoscope  100  is detached from the endoscope processor  200  or not. If the electronic endoscope  100  is not detached (S 507 A:NO), control returns to S 504 A. If the electronic endoscope  100  is detached (S 507 A:YES), control proceeds to S 508 .  
         [0148]    If the electronic endoscope  100  connected to the endoscope processor  200  is not type-A (S 502 :NO), control proceeds to S 503  where it is determined whether the electronic endoscope  100  connected to the endoscope processor  200  is type-B or not. If the electronic endoscope  100  connected to the endoscope processor  200  is type-B (S 503 :YES), control proceeds to S 504 B.  
         [0149]    As in the case of the electronic endoscope of type-A (the steps of S 504 A-S 507 A), the number of times by which the instrument is inserted into the instrument-inserting channel  102  of electronic endoscopes of type-B (fB) is updated according to fB=fB+1 (the steps of S 504 B-S 507 B). Next, control proceeds to S 508 .  
         [0150]    If the electronic endoscope  100  connected to the endoscope processor  200  is not type-B (S 503 :NO), control proceeds to S 504 C. As in the case of the electronic endoscope of type-A (the steps of S 504 A-S 507 A), the number of times by which the instrument is inserted into the instrument-inserting channel  102  of the other types of the electronic endoscopes (fC) is updated according to fC=fC+1 (the steps of S 504 C-S 507 C). Next, control proceeds to S 508 .  
         [0151]    In S 508 , it is determined whether the time period of a rental use contract is to be renewed or not based on directions input to the endoscope processor  200  by the service person via, for example, the keyboard  600 . If the time period of the rental use contract is not to be renewed (S 508 :NO), control returns to S 501 . If the time period of the rental use contract is renewed (S 508 :YES), variables “fA”, “fB” and “fC” are reset to 0 (S 509 ). Next, control returns to S 501 .  
         [0152]    Thus, variables “fA”, “fB” and “fC” represent the total number of times by which the instrument is inserted into the instrument-inserting channel  102  of the electronic endoscope of type-A, type-B and the other types, respectively, during the time period of the rental use contract. The service person obtains values of “fA”, “fB” and “fC” in S 508  through, for example, the monitor  300 .  
         [0153]    If the time period of the rental use contract is to be renewed (S 508 :YES), the rental fee (P5) is calculated according to the following equation:  
           P 5 =fA×m 4 A+fB×m 4 B+fC×m 4 C   (7)  
         [0154]    where the coefficient m4A represents a charge of use for each insertion of the instrument into the instrument-inserting channel  102  of the electronic endoscope of type-A, the coefficient m4B represents a charge of use for each insertion of the instrument into the instrument-inserting channel  102  of the electronic endoscope of, type-B, and the coefficient m4C represents a charge of use for each insertion of the instrument into the instrument-inserting channel  102  of the other types of the electronic endoscope. The service person charges the user the rental fee P5.  
         [0155]    It is also possible to calculate a rental fee (P5′) without categorization by the type of the electronic endoscope. In this case, the rental fee (P5′) can be calculated according to the following equation:  
           P 5′=( fA+fB+fC )× m 4  (8)  
         [0156]    where a coefficient m4 represents a charge of use for each insertion of the instrument into the instrument-inserting channel  102 , and m4 is common to every kind of the electronic endoscope.  
         [0157]    Sixth Embodiment  
         [0158]    A sixth embodiment of the invention will be described below with reference to FIGS.  9 A- 9 B and FIG. 10. It should be noted that an entire configuration of an endoscope system according to the sixth embodiment is substantially the same as the endoscope system  1  (FIG. 1).  
         [0159]    As an alternative to the instrument detecting unit  110  (FIG. 6A) or  1110  (FIG. 7A), FIG. 9A schematically illustrates a instrument detecting unit  2110  which has a bar code reader  2111  for determining the type of the instrument inserted into the instrument-inserting channel  102 . As shown in FIG. 9A, the bar code reader  2111  is mounted on the outer surface of the instrument-inserting channel  102 . A barcode  2501  is printed on the instrument  2500 .  
         [0160]    When the instrument  2500  is not inserted into the instrument-inserting channel  102  (FIG. 9A), the bar code reader  2111  does not transmits a signal to the system controller  205 . When the instrument  2500  is inserted into the instrument-inserting channel  102  (FIG. 9B), the barcode  2501  on the instrument  2500  passes close by the bar code reader  2111 . Therefore, when the instrument  2500  is inserted into the instrument-inserting channel  102 , the bar code reader  2111  reads the barcode  2501  on the instrument  2500 , and transmits a signal carrying code (i.e., a signal indicating the type of the instrument  2500 ) to the system controller  205 . If the barcode  2501  on the instrument  2500  is not located in front of the bar code reader  2111  when the instrument is inserted into the instrument-Inserting channel, the bar code reader  2111  can output a signal which indicates that the instrument is inserted into the instrument-inserting channel  102 .  
         [0161]    With this configuration, the system controller  205  can obtain not only the number of times by which the instrument  2500  is inserted but also the type of the instrument  2500 .  
         [0162]    [0162]FIG. 10 is a flowchart illustrating a procedure for counting the total number of times by which the instrument is inserted into the instrument-inserting channel  102 , according to the sixth embodiment of the invention. This procedure includes categorization by the type of the electronic endoscope and the type of the instrument.  
         [0163]    A three-element array fA[f1A, f2A, f3A] in FIG. 10 represents the number of times by which the instrument is inserted into the instrument-inserting channel  102  when the electronic endoscopes of type-A is used. A three-element array fB[f1B, f2B, f3B] in FIG. 10 represents the number of times by which the instrument is inserted into the instrument-inserting channel 102 when the electronic endoscopes of type-B is used. A three-element array fC[f1C, f2C, f3C] in FIG. 10 represents the number of times by which the instrument is inserted into the instrument-inserting channel  102  when the other type of the electronic endoscope is used.  
         [0164]    Elements “f1A”, “f2A” and “f3A” correspond to the number of times of insertions regarding an instrument of type-A, type-B and the other types, respectively. Similarly, elements “f1B”, “f2B” and “f3B” correspond to the number of times of insertions regarding an instrument of type-A, type-B and the other types, respectively. Elements “f1C”, “f2C”and “f3C” correspond to the number of times of insertions regarding an instrument of type-A, type-B and the other types, respectively.  
         [0165]    The procedure shown in FIG. 10 starts when power of the endoscope processor  200  is turned on, and stays in the memory while the endoscope processor  200  is supplied with power. Accordingly, the procedure shown in FIG. 10 is executed while the endoscope processor  200  is operated. Arrays “fA”, “fB” and “fC” are stored in the memory  208 , and therefore, the arrays are maintained even though the endoscope processor  200  is turned OFF.  
         [0166]    In S 601 , it is determined whether the electronic endoscope  100  is connected to the endoscope processor  200  or not. Step S 601  is repeated until the electronic endoscope  100  is connected to the endoscope processor  200 . If the electronic endoscope  100  is connected to the endoscope processor  200 , control proceeds to S 602 .  
         [0167]    In S 602 , it is determined whether the electronic endoscope  100  connected to the endoscope processor  200  is type-A or not. If the electronic endoscope  100  connected to the endoscope processor  200  is type-A (S 602 :YES), control proceeds to S 604 A.  
         [0168]    In S 604 A, values of elements “f1A”, “f2A” and “f3A” are copied to variables “f1”, “f2” and “f3”, respectively. Next, it is determined whether the instrument is inserted into the instrument-inserting channel  102  based on the signal output by the bar code reader  2111  (S 605 A).  
         [0169]    If the instrument is inserted into the instrument-inserting channel  102  (S 605 A:YES), control proceeds to S 606 A. If the instrument is not inserted into the instrument-inserting channel  102  (S 605 A:NO), control proceeds to S 608 A.  
         [0170]    A subroutine which is called at S 606 A will be described with referenced to FIG. 11. It should be noted that the system controller  205  can understand the type of the instrument inserted into the instrument-inserting channel  102  based on the signal (code) output by the bar code reader  2111 .  
         [0171]    In S 621 , it is determined whether the instrument inserted into the instrument-inserting channel  102  is the instrument of type-A or not. If the instrument inserted into the instrument-inserting channel  102  is the instrument of type-A, control proceeds to S 623 A. If the instrument inserted into the instrument-inserting channel  102  is not the instrument of type-A, control proceeds to S 622 .  
         [0172]    In S 623 A, the variable “f1” is incremented by 1. That is, the number of times by which the instrument of type-A is inserted into the instrument-inserting channel  102  when the electronic endoscope of type-A is connected to the endoscope processor  200  is incremented by 1. Next, control returns to the main routine (FIG. 10).  
         [0173]    In S 622 , it is determined whether the instrument inserted into the instrument-inserting channel  102  is the instrument of type-B or not. If the instrument inserted into the instrument-inserting channel  102  is the instrument of type-B, control proceeds to S 623 B. If the instrument inserted into the instrument-inserting channel  102  is not the instrument of type-B, control proceeds to S 623 C.  
         [0174]    In S 623 B, the variable “f2” is incremented by 1. That is, the number of times by which the instrument of type-B is inserted into the instrument-inserting channel  102  when the electronic endoscope of type-A is connected to the endoscope processor  200  is incremented by 1. Next, control returns to the main routine (FIG. 10).  
         [0175]    In S 623 C, the variable “f3” is incremented by 1. That is, the number of times by which the other type of the instrument is inserted into the instrument-inserting channel  102  when the electronic endoscope of type-A is connected to the endoscope processor  200  is incremented by 1. Next, control returns to the main routine (FIG. 10).  
         [0176]    As shown in FIG. 10, after “f1”, “f2” or “f3” is updated in S 606 A, control proceeds to S 607 A. In S 607 A, it is determined whether the instrument is inserted or not. Since the bar code reader  2111  can output the signal which indicates that the instrument is inserted into the instrument-inserting channel, the system controller  205  can determine whether the instrument is inserted into the instrument-inserting channel or not based on the signal output by the bar code reader  2111 . If the instrument remains inserted into the instrument-inserting channel  102  (S 607 A:YES), S 607 A is repeated. If the instrument is not inserted into the instrument-inserting channel  102  (S 607 A:NO), i.e., the instrument is pulled out of the instrument-inserting channel  102 , control proceeds to S 608 A.  
         [0177]    In S 608 A, it is determined whether the electronic endoscope  100  is detached from the endoscope processor  200  or not. If the electronic endoscope  100  is not detached (S 608 A:NO), control returns to S 605 A. If the electronic endoscope  100  is detached (S 608 A:YES), control proceeds to S 609 A. In S 609 A, values of “f1”, “f2” and “f3” are copied to elements “f1A”, “f2A” and “f3A”, respectively. Next, control proceeds to S 610 .  
         [0178]    If the electronic endoscope  100  connected to the endoscope processor  200  is not type-A (S 602 :NO), control proceeds to S 603  where it is determined whether the electronic endoscope  100  connected to the endoscope processor  200  is type-B or not. If the electronic endoscope  100  connected to the endoscope processor  200  is type-B (S 603 :YES), control proceeds to S 604 B.  
         [0179]    As in the case of the electronic endoscope of type-A (the steps of S 604 A-S 609 A), array fB[f1B, f2B, f3B] which indicates the number of times by which the instrument is inserted into the instrument-inserting channel  102  when the electronic endoscopes of type-B is inserted into the endoscope processor is updated in the steps of S 604 B-S 609 B. Next, control proceeds to S 610 .  
         [0180]    If the electronic endoscope  100  connected to the endoscope processor  200  is not type-B (S 603 :NO), control proceeds to S 604 C. As in the case of the electronic endoscope of type A (the steps of S 604 A-S 609 A), array fC[f1C, f2C, f3C] which indicates the number of times by which the instrument is inserted into the instrument-inserting channel  102  when the other type of the electronic endoscopes is connected to the endoscope processor  200  is updated in the steps of S 604 C-S 609 C. Next, control proceeds to S 610 .  
         [0181]    In S 610 , it is determined whether the time period of a rental use contract is-to be renewed or not based on directions input to the endoscope processor  200  by the service person via, for example, the keyboard  600 . If the time period of the rental use contract is not to be renewed (S 610 :NO), control returns to S 601 . If the time period of the rental use contract is renewed (S 610 :YES), arrays fA[f1A, f2A, f3A], fB[f1B, f2B, f3B] and fC[f1C, f2C, f3C] are reset to 0 (S 611 ). Next, control returns to S 601 .  
         [0182]    The service person can obtain values of elements of arrays fA, fB and fC in S 610  through, for example, the monitor  300 .  
         [0183]    If the time period of the rental use contract is to be renewed (S 610 :YES), the rental fee (P6) is calculated according to the following equation:  
           P 6 =f 1 A×m 5 A 1 +f 1 B×m 5B1 +f 1 C×m 5 C 1+ f 2 A×m 5 A 2 +f 2 B×m 5 B 2 +f 2 C×m 5 C 2 +f 3 A×m 5 A 3 +f 3 B×m 5 B 3 +f 3 C×m 5 C 3  (9)  
         [0184]    where coefficients m5A1-3, m5B1-3 and m5C1-3 are charges for each insertion of instruments. For example, the coefficient m5AI represents a charge for each use of the instrument of type-A regarding use of the electronic endoscope of type-A. These coefficients are categorized by the type of the instrument and the type of the electronic endoscope. Table. 1 below shows correspondence among the type of the electronic endoscope, the type of the instrument, and coefficients. The service person charges the user the rental fee P6.  
                       TABLE 1                       THE TYPE OF THE               ELECTRONIC   THE TYPE OF THE           ENDOSCOPE   INSTRUMENT   COEFFICIENT                   A   A   m5A1           B   m5A2           OTHER TYPES   m5A3       B   A   m5B1           B   m5B2           OTHER TYPES   m5B3       OTHER TYPES   A   m5C1           B   m5C2           OTHER TYPES   m5C3                  
 
         [0185]    It is also possible to calculate a rental fee (P6′) according to the number of times by which the instrument is inserted without categorization by the type of the electronic endoscope. In this case, the rental fee (P6′) can be calculated according to the following equation:  
           P 6′=( f 1 A+f 1 B+f 1 C )× m 51+( f 2 A+f 2 B+f 2 C )× m 52+( f 3 A+f 3 B+f 3 C )× m 53  (10)  
         [0186]    where the coefficient m51 represents a charge for each insertion of the instrument of type-A into the instrument-inserting channel  102 , and m51 is common to every kind of the electronic endoscope. The coefficient m52 represents a charge for each insertion of the instrument of type-B into the instrument-inserting channel  102 , and m52 is common to every kind of the electronic endoscope. The coefficient m53 represents a charge for each insertion of the other types of the instrument into the instrument-inserting channel  102 , and m53 is common to every kind of the electronic endoscope.  
         [0187]    Is should be appreciated that by omitting the categorization by the type of the electronic endoscope in FIG. 10, it becomes possible to count the number of times by which the instrument is inserted into the instrument-inserting channel  102  for all types of the electronic endoscope.  
         [0188]    Seventh Embodiment  
         [0189]    [0189]FIG. 12 is a flowchart illustrating a procedure for calculating a rental fee based on both of the time period of use of the electronic endoscope and the number of times by which the still image is captured, according to a seventh embodiment of the invention. It should be noted that an entire configuration of an endoscope system according to the seventh embodiment is substantially the same as the endoscope system  1  (FIG. 1).  
         [0190]    This procedure is performed under control of the system controller  205 . As in the case of FIG. 4, variables “tA”, “tB” and “tC” represent time periods of use regarding the electronic endoscope of type-A, type-B and the other types, respectively. As in the case of FIG. 5, variables “pA”, “pB” and “pC” represent the number of times by which the still image is captured using the electronic endoscope of type-A, type-B and the other types, respectively.  
         [0191]    The procedure shown in FIG. 12 starts when power of the endoscope processor  200  is turned on, and stays in the memory while the endoscope processor  200  is supplied with power. Accordingly, the procedure shown in FIG. 12 is executed while the endoscope processor  200  is operated. Variables tA, tB, tC, pA, pB and pC are stored in the memory  208 , and therefore, these variables are maintained even though the endoscope processor  200  is turned OFF.  
         [0192]    In S 701 , it is determined whether the electronic endoscope  100  is connected to the endoscope processor  200  or not. Step S 701  is repeated until the electronic endoscope  100  is connected to the endoscope processor  200 . If the electronic endoscope  100  is connected to the endoscope processor  200 , control proceeds to S 702 .  
         [0193]    In S 702 , it is determined whether the electronic endoscope  100  connected to the endoscope processor  200  is type-A or not. If the electronic endoscope  100  connected to the endoscope processor  200  is type-A (S 702 :YES), control proceeds to S 704 A.  
         [0194]    In S 704 A, time-information when the electronic endoscope is connected to the endoscope processor  200  is assigned to a variable “t1A”. Next, the system controller  205  waits until the signal indicating capture operation of the control switches  109  is input thereto (S 705 A). If the signal indicating capture operation of the control switches  109  is input to the system controller  205 (S 705 A:YES), i.e., a still image is captured, the variable “pA” is incremented by 1 (S 706 A).  
         [0195]    Next, it is determined whether the electronic endoscope  100  is detached from the endoscope processor  200  or not (S 707 A). If the electronic endoscope  100  is not detached (S 707 A:NO), control returns to S 705 A. If the electronic endoscope  100  is detached (S 707 A:YES), control proceeds to S 708 A.  
         [0196]    In S 708 A, time information when the electronic endoscope  100  is detached from the endoscope processor  200  is assigned to a variable “t2A”. Next, the time period of use of the electronic endoscope of type-A (tA) is updated according to tA=tA+(t2A−t1A) in S 709 A.  
         [0197]    It should be appreciated that the variable “tA” calculated according to the above equation (tA=tA+(t2A−t1A)) represents a total time period of use of the electronic endoscope of type-A. Next, control proceeds to S 710 .  
         [0198]    If the electronic endoscope  100  connected to the endoscope processor  200  is not type-A (S 702 :NO), control proceeds to S 703  where it is determined whether the electronic endoscope  100  connected to the endoscope processor  200  is type-B or not. If the electronic endoscope  100  connected to the endoscope processor  200  is type-B (S 703 :YES), control proceeds to S 704 B.  
         [0199]    As in the case of the electronic endoscope of type-A (the steps of S 704 A-S 709 A), the number of times by which the still image is captured when the electronic endoscope of type-B is used (pB) is updated according to pB=pB+1, the time period of use of the electronic endoscope of type-B (tB) is updated according to tB=tB+(t2B−t1B) (the steps of S 704 B-S 709 B).  
         [0200]    If the electronic endoscope  100  connected to the endoscope processor  200  is not type-B (S 703 :NO), control proceeds to S 704 C. As in the case of the electronic endoscope of type-A (the steps of S 704 A-S 709 A), the number of times by which the still image is captured when the other types of the electronic endoscopes is used (pC) is updated according to pC=pC+1, the time period of use of the other types of electronic endoscope (tC) is updated according to tC=tC+(t2C−t1C) (the steps of S 704 C-S 709 C).  
         [0201]    In S 710 , it is determined whether the time period of a rental use contract is to be renewed or not based on directions input to the endoscope processor  200  by the service person via,-for example, the keyboard  600 . If the time period of the rental use contract is not to be renewed (S 710 :NO), control returns to S 701 . If the time period of the rental use contract is renewed(S 710 :YES), variables tA, tB, tC, pA, pB and pC are reset to 0 (S 711 ). Next, control returns to S 701 .  
         [0202]    The service person can obtain values of tA, tB, tC, pA, pB and pC in S 710  through, for example, the monitor  300 . If the time period of the rental use contract is to be renewed (S 710 :YES), the rental fee (P7) is calculated according to the following equation:  
           P 7=( tA×m 6 A+tB×m 6 B+tC×m 6 C )+( pA×m 7 A+pB×m 7 B+pC×m 7 C )  (11)  
         [0203]    where the coefficients m6A, m6B and m6C represent charges per unit time regarding use of the electronic endoscope of type-A, type-B and the other types, respectively. Coefficients m7A, m7B and m7C represent charges for each capture of a still image using the electronic endoscope of type-A, type-B and the other types, respectively.  
         [0204]    As described above, the rental fee (P7) calculated according to the above equation (11) reflects both of the time period of use of the electronic endoscope and the number of times by which the still image is captured. Therefore, if time periods of use of the electronic endoscopes in two cases (in first case, the still image is not captured, and in second case, the still image is captured) are the same, the rental fee in the first case can be lowered in comparison with the second case.  
         [0205]    As an alternative to the above equation (11) for calculating P7, it is also possible to calculate a rental fee according to the following equation (12) in which a charge per unit time regarding use of the electronic endoscope increases with increase of the number of times by which the still image is captured.  
           P 7′=(( tA×m 6 A )×(1 +pA×m 7 A ))+(( tB×m 6 B )×(1 +pB×m 7 B ))+(( tC×m 6 C )×(1 +pC×m 7 C ))  (12)  
         [0206]    As can be seen from the above equation (12), if the still image is not captured while the electronic endoscope is connected to the endoscope processor 200, a charge for a time period of use of the electronic endoscope (i.e., tA×m6A , tB×m6B or tC×m6C) is multiplied by 1 (i.e., pA×m7A, pB×m7B and pC×m7C=0). If the still image is captured while the electronic endoscope is connected to the endoscope processor  200 , the rental fee P7′ increases with increase of the number of times by which the still image is captured.  
         [0207]    It should be noted that the various procedures mentioned above with reference to FIG. 2- 5 ,  8 ,  10 - 12  may be stored as computer programs in a ROM (not shown) incorporated in the system controller  205 .  
         [0208]    In the embodiments described above, various kinds, of data including variables, arrays, coefficients, and the like are preferably stored in the memory  208  provided in the endoscope processor  200  and processed by the system controller  205 .  
         [0209]    Variations of the embodiments described will occur to persons of the art. For example, various kinds of data including variables, arrays, coefficients, and the like may be transmitted to an external device (for example, a computer) connected to the endoscope processor through an interface cable and be processed on the external device. In this case, rental fees can be calculated on the external device.  
         [0210]    As described above, according to embodiments of the present invention, an endoscope system which enables to collect accurate information regarding usage of the endoscope system is accomplished.  
         [0211]    The present disclosure relates to the subject matter contained in Japanese Patent Application No. 2001-162090, filed on May 30, 2001, which is expressly incorporated herein by reference in its entirety.