The following warnings occurred:
Warning [2] Undefined array key 95363 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 95373 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 95398 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 95404 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 95405 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 95416 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 95429 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 95457 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 95534 - Line: 275 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 275 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $thread - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $fid - Line: 295 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 295 errorHandler->error_callback
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 95404 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 95457 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined array key 95534 - Line: 331 - File: inc/plugins/threaded_mode.php PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php 331 errorHandler->error_callback
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 332 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 304 ThreadedMode::buildtree
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $theme - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Trying to access array offset on value of type null - Line: 3 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 3 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Undefined variable $lang - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks
Warning [2] Attempt to read property "messages_in_thread" on null - Line: 5 - File: inc/plugins/threaded_mode.php(305) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/plugins/threaded_mode.php(305) : eval()'d code 5 errorHandler->error_callback
/inc/plugins/threaded_mode.php 305 eval
/inc/plugins/threaded_mode.php 23 ThreadedMode::showthread_threaded
/inc/class_plugins.php 142 threaded_mode_showthread_threaded
/showthread.php 918 pluginSystem->run_hooks





Need help using solver on HP 19BII



#10

I hate to admit this, but I'm really getting rusty in my math skills. If anyone could help me out it would be greatly appreciated.

I would like to program my HP's solve function so my better half could use it on her work at the local hospital.

Here's a sample scenario:

A patients procedure comes to $1,200 and there's a 50% discount on that procedure to the insurance company which then comes to $600.
The patient have a deductible of $250 which leaves 350.00.
The insurance co. portion is 80% which leaves $70 plus the deductible of $250 for a total patient payment of $320.00

Sometimes the deductible has been meet which leaves it out of the equation.

I have tried and tried, but can't seem to come up with a formula that works. Any help would be appreciated.

Kim


#11

Kim --

I have the HP-17B, -17BII, and -27S, which utilize the same solve function, to my understanding.

Why not incorporate into the equation a binary variable (which takes a value 0 or 1) as a multiplier of the deductible?

-- KS


#12

Karl,
I'm a total novice and wouldn't know how to do that.
I appreciate you trying to help me though.

Kim

#13

Hello Kim,

I'm no expert on the 19BII specifically, but it seems to me that the equation you need would be the simple sum of a list of variables, with some of those variables modified by a percentage, etc. You could have variables such as: PT TOTAL (patient total due),INS TOTAL (insurance total) PROCEDURE COST, INS DISCOUNT, DEDUCTABLE, DED AMNT COVERED (amount of deductable already covered), and INS PERCENT (amount of procedure covered by insurance).
The equation would arrive at the patient cost by subtracting the amount covered by the insurance from the discounted cost of the procedure, and also subtracting the deductable already covered (if any).The equation would look something like this...

PT TOTAL=(PROCEDURE COST x INS DISCOUNT /100)-(((PRODEDURE COST x INS DISCOUNT / 100)-DEDUCTABLE) x (INS PERCENT /100))-DED AMT COVERED


Plug amounts in for everything except PT TOTAL and solve for PT TOTAL, and it should work. (I put the RPN version of the equation into my HP97 and ran it (I used registers for the variables) and the numbers came out right).


Hope this helps.
Best regards, Hal


#14

Hi Hal,
I greatly appreciate you help in this matter. I plugged your numbers in on my HP, but have a couple of problems. If the INS DISCOUNT is 20% (making it a more expensive procedure) it comes up with a lower total than when using 50%
Also, shouldn't I add the DED AMT COVERED back in rather than subtracting it? Would I have to input the deductible amoung twice?

Thanks,

Kim


#15

Good catch Kim,

You're right, my formula had a bug...I needed to subtract the insurance discount from 100 before applying it to the cost of the procedure (ie, a 20% discount means 80% of the cost is billed).
So the corrected formula is:


PT TOTAL=(PROCEDURE COST x (100-INS DISCOUNT) /100)-(((PRODEDURE COST x (100-INS DISCOUNT) / 100)-DEDUCTABLE) x (INS PERCENT /100))-DED AMT COVERED


As for the deductable amount already covered, that needs to be subtracted from what the patient owes to make the numbers work in this equation. Using your scenario, when I plugged 250 in for DED AMT COVERED, I got the patient owing $70, which works out right.

This will work on any programmable machine, using registers to store the variables (5 registers). Where you have named variable capability on your 19BII, that's even more elegant.


I see you already have a solution, but I'll post this anyway. If you want the actual RPN keystroke sequence for entering the equation, let me know and I'll post it.
Best regards, Hal

#16

Kim,

The following should work for you:

MEDCOST: PAY=(COST*(1-DISC/100))*(1-IPER/100)+(DUCT*IPER/100)

where DISC is the % discount, IPER is the % covered by insurance, and DUCT is the patient deductible.

As wonderful as the HP Solver and the HP-19BII are, I think that for applications such as this, a BASIC program is less prone to operator mistakes (such as forgetting to enter a variable, or forgetting to clear the data from a previous case). The following program is for the HP-71B, but by omitting the first line, it would run on most handheld calculator/computers that have BASIC.

10 DESTROY ALL @ FIX 2 @ DELAY 8

20 INPUT "PROCEDURE COST =";C

30 INPUT "% INSURER DISCOUNT =";D

40 N=C*(1-D/100)

50 INPUT "PATIENT'S DEDUCTIBLE =";P

60 INPUT "% INSURER COVERS =";I

70 A=(N-P)*I/100

80 B=N-A

90 PRINT "INSURER PAYS =";A

100 PRINT "PATIENT PAYS =";B

110 END

I hope you get something worked out to your satisfaction.

Cheers, Tom


#17

Tom, you did it!!! Thank you so much for your help. When I first set out to try to do this, I figured it would be somewhat simple, but I kept running into problems.
After seeing your formula, there is no way I would have made it without your help.
Thanks again,

Kim


#18

Kim,

It was a pleasure thinking about this problem. On further thought, I realized that a situation could arise which should be noted.

If the patient's deductible is greater than the discounted cost of the procedure, then the patient pays the whole discounted cost and the insurance is not involved at all. The formula will still handle this case, but only if the IPER (insurance percentage) is given a value of zero. If any other IPER value is entered, the formula will give a wrong value when the discounted cost is less than the deductible.

The HP-19BII allows for a conditional statement to be added which would prevent such a possible error. The entire Solver statement would then read:

MEDCOST: PAY=IF (COST*(1-DISC/100)>DUCT: (COST*(1-DISC/100))*(1-IPER/100)+(DUCT*IPER/100): COST*(1-DISC/100))

In this form, if the statement following the IF is true, the Solver equates PAY to the first formula after the colon, and if it is false, it equates it to the second formula. That way, the operator doesn't have to make sure that the IPER value is zero when the deductible is greater than the discounted cost.

You may not want to bother with this, but it adds a flourish to the Solver statement!

Cheers, Tom


Possibly Related Threads…
Thread Author Replies Views Last Post
  hp-prime solver and variable name fabrice48 22 8,120 12-10-2013, 03:25 AM
Last Post: fabrice48
  Solver issue with HP 17BII - different from 19BII Jeff Kearns 13 4,472 11-28-2013, 02:36 AM
Last Post: Don Shepherd
  HP Prime Triangle solver BruceH 29 8,404 11-28-2013, 12:03 AM
Last Post: Dale Reed
  HP prime: linear solver app Alberto Candel 1 1,408 11-21-2013, 01:57 AM
Last Post: Michael Carey
  HP Prime: Linear Solver app bug BruceH 0 1,122 11-15-2013, 06:36 PM
Last Post: BruceH
  HP Prime Solver Variables Issue Anibal Morones Ruelas 8 2,988 10-19-2013, 09:45 AM
Last Post: Harold A Climer
  HP Prime triangle solver oddity BruceH 0 1,026 10-13-2013, 09:08 PM
Last Post: BruceH
  Using units in Numeric Solver Harold A Climer 1 1,246 10-13-2013, 10:44 AM
Last Post: Tim Wessman
  Meltiple Equation Solver PRIME Vs. HP 50G Harold A Climer 5 1,779 10-07-2013, 05:11 PM
Last Post: CR Haeger
  Does Prime Have a Multiple Equation Solver? Norman Dziedzic 2 1,343 09-20-2013, 09:43 AM
Last Post: Norman Dziedzic

Forum Jump: