error report/whish request and
monitoring system for Sumex 1+ modules.
Tools
Report system
    Generate bug report
    Generate wish request
 
home
system
integrators
search the
site
 

validator
modules
invoice
modules
credit
modules
miscellaneous
modules
tools

  Design by TMR AG
  © by sumex1.net
 
Bug reporting/Change request System
Bug report

 back to TOC
 

tarmedValidator - id=52: Bug in anaesthesia functions
IN Issue date Publish Status Version OS type Name
08.01.2004 public closed   undefined Dirk Reihs
Reference case id: look to bug description

The results of the anaesthesia functions are dependent of the order of the services which will be send to "anaesthesia".
Test it with the services '00.0010' and '01.0120'.

Send this services with a birthdate in 1965, service-date in 2004 and anaesthesiaRiskClass = -1 to the function anaesthesia.

Test 1:

1) do InitAnaesthesia
2) Send 00.0010 to anaesthesia => return value = False
3) Send 01.0120 to anaesthesia => return value = True
4) get the Anaesthesia Records
you will get the services 28.0030, 28.0080 and 28.0130 for service 01.0120. (Quantity > 0)

Test 2:

1) do InitAnaesthesia
2) Send 01.0120 to anaesthesia => return value = True
3) Send 00.0010 to anaesthesia => return value = True
4) get the Anaesthesia Records
you will get the services 28.0030, 28.0080 and 28.0130 for service 01.0120. (Quantity > 0)
and 28.0130 for service 00.0010 (Quantity > 0)

Which testresult is ok? CanHaveAnaesthesiaServices of '00.0010' is False.

I think this is a bug. The anaesthesia-function must give allways the same result, independent of the order of the input-services.
 

OUT Issue date Result Version Name
08.01.2004 byDesign   Rolf Eggenberger
This behavior is as designed.

The service 00.0010 does normally not need anesthesia. Therefore the function does not return any anesthesia services when the risk class is set to automatic. You can set however a risk class and you will receive the anesthesia records.

In Test 2 you started with a service which normally needs anesthesia. Now when you add the service 00.0010, it is assumed, that this service record was done under anesthesia as well and therefore the anesthesia service records are generated as well. The risk class is automatically taken from the main anesthesia service record.

To get always the same result, you can add only the services with CanHaveAnaesthesiaServices equal True and in a second round you can add the other services.