Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: PSSDSBPA

PSSDSBPA.m

Go to the documentation of this file.
PSSDSBPA ;BIR/RTR-Determine numeric dose multiplier for numeric dose ;02/12/09
 ;;1.0;PHARMACY DATA MANAGEMENT;**117,160**;9/30/97;Build 76
 ;
 ;
NUM() ;Determine numeric dose multiplier from Local Possible Dosage
 ;
 N PSSQVJ1,PSSQVJ2,PSSQVJ9
 K PSSQVJ1,PSSQVJ2,PSSQVJ9
 I $L($G(PSSQVLCD))'>0 Q 0
 ;
 ;
 S PSSQVJ1=$E(PSSQVLCD,1,10) I PSSQVJ1="4 AND 1/2 " Q:'$$7 0 S PSSQVJ2=$E(PSSQVLCD,11,$L(PSSQVLCD)) Q $S($$6:4.5,1:0)
 S PSSQVJ1=$E(PSSQVLCD,1,18) I PSSQVJ1="FOUR AND ONE HALF " Q:'$$7 0 S PSSQVJ2=$E(PSSQVLCD,19,$L(PSSQVLCD)) Q $S($$6:4.5,1:0)
 S PSSQVJ1=$E(PSSQVLCD,1,18) I PSSQVJ1="FOUR AND ONE-HALF " Q:'$$7 0 S PSSQVJ2=$E(PSSQVLCD,19,$L(PSSQVLCD)) Q $S($$6:4.5,1:0)
 S PSSQVJ1=$E(PSSQVLCD,1,15) I PSSQVJ1="4 AND ONE HALF " Q:'$$7 0 S PSSQVJ2=$E(PSSQVLCD,16,$L(PSSQVLCD)) Q $S($$6:4.5,1:0)
 S PSSQVJ1=$E(PSSQVLCD,1,15) I PSSQVJ1="4 AND ONE-HALF " Q:'$$7 0 S PSSQVJ2=$E(PSSQVLCD,16,$L(PSSQVLCD)) Q $S($$6:4.5,1:0)
 S PSSQVJ1=$E(PSSQVLCD,1,13) I PSSQVJ1="FOUR AND 1/2 " Q:'$$7 0 S PSSQVJ2=$E(PSSQVLCD,14,$L(PSSQVLCD)) Q $S($$6:4.5,1:0)
 ;
 S PSSQVJ1=$E(PSSQ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$L(PSSQVLCD)) Q $S($$6:4,1:0)
 S PSSQVJ1=$E(PSSQVLCD,1,14) I PSSQVJ1="THREE OR FOUR " Q:'$$7 0 S PSSQVJ2=$E(PSSQVLCD,15,$L(PSSQVLCD)) Q $S($$6:4,1:0)
 S PSSQVJ1=$E(PSSQVLCD,1,11) I PSSQVJ1="THREE-FOUR " Q:'$$7 0 S PSSQVJ2=$E(PSSQVLCD,12,$L(PSSQVLCD)) Q $S($$6:4,1:0)
 S PSSQVJ1=$E(PSSQVLCD,1,13) I PSSQVJ1="THREE - FOUR " Q:'$$7 0 S PSSQVJ2=$E(PSSQVLCD,14,$L(PSSQVLCD)) Q $S($$6:4,1:0)
 ;
 S PSSQVJ1=$E(PSSQVLCD,1,4) I PSSQVJ1="0.5 " Q:'$$7 0 S PSSQVJ2=$E(PSSQVLCD,5,$L(PSSQVLCD)) Q $S($$6:.5,1:0)
 S PSSQVJ1=$E(PSSQVLCD,1,4) I PSSQVJ1="1/2 " Q:'$$7 0 S PSSQVJ2=$E(PSSQVLCD,5,$L(PSSQVLCD)) Q $S($$6:.5,1:0)
 S PSSQVJ1=$E(PSSQVLCD,1,9) I PSSQVJ1="ONE HALF " Q:'$$7 0 S PSSQVJ2=$E(PSSQVLCD,10,$L(PSSQVLCD)) Q $S($$6:.5,1:0)
 S PSSQVJ1=$E(PSSQVLCD,1,9) I PSSQVJ1="ONE-HALF " Q:'$$7 0 S PSSQVJ2=$E(PSSQVLCD,10,$L(PSSQVLCD)) Q $S($$6:.5,1:0)
 ;
 S PSSQVJ9=$$NUMX^PSSDSBPB
 Q PSSQVJ9
 ;
6() ;
 ;Some special characters in a Nouns will pass, (), etc. others like "/" will not
 I PSSQVJ2[" " Q 0
 I PSSQVJ2["-" Q 0
 I PSSQVJ2["&" Q 0
 I PSSQVJ2["\" Q 0
 I PSSQVJ2["/" Q 0
 Q 1
 ;
7() ;
 I $L(PSSQVLCD)'>$L(PSSQVJ1) Q 0
 Q 1