- IBINI03X ; ; 21-MAR-1994
- ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
- Q:'DIFQ(354.2) F I=1:2 S X=$T(Q+I) Q:X="" S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,99) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
- Q Q
- ;;^DD(354.2,.03,21,2,0)
- ;;=exemption of Pharmacy Copay based on Income, only the type
- ;;^DD(354.2,.03,21,3,0)
- ;;=COPAY INCOME EXEMPTION reason can be selected.
- ;;^DD(354.2,.03,21,4,0)
- ;;=
- ;;^DD(354.2,.03,21,5,0)
- ;;=In a future release additional types of exemptions may be created.
- ;;^DD(354.2,.03,21,6,0)
- ;;=Do not modify this field.
- ;;^DD(354.2,.03,"DT")
- ;;=2921208
- ;;^DD(354.2,.04,0)
- ;;=STATUS^S^0:NON-EXEMPT;1:EXEMPT;^0;4^Q
- ;;^DD(354.2,.04,.1)
- ;;=
- ;;^DD(354.2,.04,1,0)
- ;;=^.1
- ;;^DD(354.2,.04,1,1,0)
- ;;=354.2^AS
- ;;^DD(354.2,.04,1,1,1)
- ;;=S ^IBE(354.2,"AS",$E(X,1,30),DA)=""
- ;;^DD(354.2,.04,1,1,2)
- ;;=K ^IBE(354.2,"AS",$E(X,1,30),DA)
- ;;^DD(354.2,.04,1,1,"%D",0)
- ;;=^^1^1^2921110^
- ;;^DD(354.2,.04,1,1,"%D",1,0)
- ;;=Cross-reference of Status.
- ;;^DD(354.2,.04,1,1,"DT")
- ;;=2921110
- ;;^DD(354.2,.04,3)
- ;;=
- ;;^DD(354.2,.04,21,0)
- ;;=^^3^3^2930430^^^^
- ;;^DD(354.2,.04,21,1,0)
- ;;=This is the status of this type of record. Whether it is an exempt
- ;;^DD(354.2,.04,21,2,0)
- ;;=or non-exempt reason. This status will be automatically stored
- ;;^DD(354.2,.04,21,3,0)
- ;;=in the Billing Exemptions file.
- ;;^DD(354.2,.04,"DT")
- ;;=2921208
- ;;^DD(354.2,.05,0)
- ;;=CODE^NJ4,0I^^0;5^K:+X'=X!(X>9999)!(X<1)!(X?.E1"."1N.N) X
- ;;^DD(354.2,.05,1,0)
- ;;=^.1
- ;;^DD(354.2,.05,1,1,0)
- ;;=354.2^ACODE
- ;;^DD(354.2,.05,1,1,1)
- ;;=S ^IBE(354.2,"ACODE",$E(X,1,30),DA)=""
- ;;^DD(354.2,.05,1,1,2)
- ;;=K ^IBE(354.2,"ACODE",$E(X,1,30),DA)
- ;;^DD(354.2,.05,1,1,3)
- ;;=DO NOT DELETE
- ;;^DD(354.2,.05,1,1,"%D",0)
- ;;=^^3^3^2921110^
- ;;^DD(354.2,.05,1,1,"%D",1,0)
- ;;=Cross-reference of code field. To be used in routines to look up correct
- ;;^DD(354.2,.05,1,1,"%D",2,0)
- ;;=entry. The internal codes will be used in routines to locate the correct
- ;;^DD(354.2,.05,1,1,"%D",3,0)
- ;;=entry.
- ;;^DD(354.2,.05,1,1,"DT")
- ;;=2921110
- ;;^DD(354.2,.05,1,2,0)
- ;;=354.2^C
- ;;^DD(354.2,.05,1,2,1)
- ;;=S ^IBE(354.2,"C",$E(X,1,30),DA)=""
- ;;^DD(354.2,.05,1,2,2)
- ;;=K ^IBE(354.2,"C",$E(X,1,30),DA)
- ;;^DD(354.2,.05,1,2,"DT")
- ;;=2930105
- ;;^DD(354.2,.05,3)
- ;;=Type a Number between 1 and 9999, 0 Decimal Digits
- ;;^DD(354.2,.05,9)
- ;;=^
- ;;^DD(354.2,.05,21,0)
- ;;=^^2^2^2930430^^^^
- ;;^DD(354.2,.05,21,1,0)
- ;;=This is the internal code used to look up entries by the billing
- ;;^DD(354.2,.05,21,2,0)
- ;;=system. This should not be altered except by the developing ISC.
- ;;^DD(354.2,.05,23,0)
- ;;=^^9^9^2930430^^^^
- ;;^DD(354.2,.05,23,1,0)
- ;;=The data in this field is returned as the third piece from the call to
- ;;^DD(354.2,.05,23,2,0)
- ;;=RXST^IBARXEU and RXEXMT^IBARXEU0. Programmers can determine certain
- ;;^DD(354.2,.05,23,3,0)
- ;;=attributes from the code. Codes of 2 digits are reserved for exemption
- ;;^DD(354.2,.05,23,4,0)
- ;;=reasons that can automatically be determined by the system but not
- ;;^DD(354.2,.05,23,5,0)
- ;;=based on income. Codes of 3 digits are reserved for exemptions based
- ;;^DD(354.2,.05,23,6,0)
- ;;=on income. Codes of 4 digits are reserved for exemptions that only
- ;;^DD(354.2,.05,23,7,0)
- ;;=can be manually entered that would generally over-ride all other
- ;;^DD(354.2,.05,23,8,0)
- ;;=determinations.
- ;;^DD(354.2,.05,23,9,0)
- ;;=
- ;;^DD(354.2,.05,"DT")
- ;;=2930115
- ;;^DD(354.2,.1,0)
- ;;=ACTIVE^S^1:ACTIVE;0:INACTIVE;^10;1^Q
- ;;^DD(354.2,.1,1,0)
- ;;=^.1
- ;;^DD(354.2,.1,1,1,0)
- ;;=354.2^AA
- ;;^DD(354.2,.1,1,1,1)
- ;;=S ^IBE(354.2,"AA",$E(X,1,30),DA)=""
- ;;^DD(354.2,.1,1,1,2)
- ;;=K ^IBE(354.2,"AA",$E(X,1,30),DA)
- ;;^DD(354.2,.1,1,1,"%D",0)
- ;;=^^1^1^2921110^
- ;;^DD(354.2,.1,1,1,"%D",1,0)
- ;;=Cross-reference of Active records.
- IBINI03X ; ; 21-MAR-1994
- +1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
- +2 IF 'DIFQ(354.2)
- QUIT
- FOR I=1:2
- SET X=$TEXT(Q+I)
- IF X=""
- QUIT
- SET Y=$EXTRACT($TEXT(Q+I+1),4,999)
- SET X=$EXTRACT(X,4,999)
- IF $ASCII(Y)=126
- SET I=I+1
- SET Y=$EXTRACT(Y,2,999)_$EXTRACT($TEXT(Q+I+1),5,99)
- IF $ASCII(Y)=61
- SET Y=$EXTRACT(Y,2,999)
- XECUTE NO
- IF '$TEST
- SET @X=Y
- Q QUIT
- +1 ;;^DD(354.2,.03,21,2,0)
- +2 ;;=exemption of Pharmacy Copay based on Income, only the type
- +3 ;;^DD(354.2,.03,21,3,0)
- +4 ;;=COPAY INCOME EXEMPTION reason can be selected.
- +5 ;;^DD(354.2,.03,21,4,0)
- +6 ;;=
- +7 ;;^DD(354.2,.03,21,5,0)
- +8 ;;=In a future release additional types of exemptions may be created.
- +9 ;;^DD(354.2,.03,21,6,0)
- +10 ;;=Do not modify this field.
- +11 ;;^DD(354.2,.03,"DT")
- +12 ;;=2921208
- +13 ;;^DD(354.2,.04,0)
- +14 ;;=STATUS^S^0:NON-EXEMPT;1:EXEMPT;^0;4^Q
- +15 ;;^DD(354.2,.04,.1)
- +16 ;;=
- +17 ;;^DD(354.2,.04,1,0)
- +18 ;;=^.1
- +19 ;;^DD(354.2,.04,1,1,0)
- +20 ;;=354.2^AS
- +21 ;;^DD(354.2,.04,1,1,1)
- +22 ;;=S ^IBE(354.2,"AS",$E(X,1,30),DA)=""
- +23 ;;^DD(354.2,.04,1,1,2)
- +24 ;;=K ^IBE(354.2,"AS",$E(X,1,30),DA)
- +25 ;;^DD(354.2,.04,1,1,"%D",0)
- +26 ;;=^^1^1^2921110^
- +27 ;;^DD(354.2,.04,1,1,"%D",1,0)
- +28 ;;=Cross-reference of Status.
- +29 ;;^DD(354.2,.04,1,1,"DT")
- +30 ;;=2921110
- +31 ;;^DD(354.2,.04,3)
- +32 ;;=
- +33 ;;^DD(354.2,.04,21,0)
- +34 ;;=^^3^3^2930430^^^^
- +35 ;;^DD(354.2,.04,21,1,0)
- +36 ;;=This is the status of this type of record. Whether it is an exempt
- +37 ;;^DD(354.2,.04,21,2,0)
- +38 ;;=or non-exempt reason. This status will be automatically stored
- +39 ;;^DD(354.2,.04,21,3,0)
- +40 ;;=in the Billing Exemptions file.
- +41 ;;^DD(354.2,.04,"DT")
- +42 ;;=2921208
- +43 ;;^DD(354.2,.05,0)
- +44 ;;=CODE^NJ4,0I^^0;5^K:+X'=X!(X>9999)!(X<1)!(X?.E1"."1N.N) X
- +45 ;;^DD(354.2,.05,1,0)
- +46 ;;=^.1
- +47 ;;^DD(354.2,.05,1,1,0)
- +48 ;;=354.2^ACODE
- +49 ;;^DD(354.2,.05,1,1,1)
- +50 ;;=S ^IBE(354.2,"ACODE",$E(X,1,30),DA)=""
- +51 ;;^DD(354.2,.05,1,1,2)
- +52 ;;=K ^IBE(354.2,"ACODE",$E(X,1,30),DA)
- +53 ;;^DD(354.2,.05,1,1,3)
- +54 ;;=DO NOT DELETE
- +55 ;;^DD(354.2,.05,1,1,"%D",0)
- +56 ;;=^^3^3^2921110^
- +57 ;;^DD(354.2,.05,1,1,"%D",1,0)
- +58 ;;=Cross-reference of code field. To be used in routines to look up correct
- +59 ;;^DD(354.2,.05,1,1,"%D",2,0)
- +60 ;;=entry. The internal codes will be used in routines to locate the correct
- +61 ;;^DD(354.2,.05,1,1,"%D",3,0)
- +62 ;;=entry.
- +63 ;;^DD(354.2,.05,1,1,"DT")
- +64 ;;=2921110
- +65 ;;^DD(354.2,.05,1,2,0)
- +66 ;;=354.2^C
- +67 ;;^DD(354.2,.05,1,2,1)
- +68 ;;=S ^IBE(354.2,"C",$E(X,1,30),DA)=""
- +69 ;;^DD(354.2,.05,1,2,2)
- +70 ;;=K ^IBE(354.2,"C",$E(X,1,30),DA)
- +71 ;;^DD(354.2,.05,1,2,"DT")
- +72 ;;=2930105
- +73 ;;^DD(354.2,.05,3)
- +74 ;;=Type a Number between 1 and 9999, 0 Decimal Digits
- +75 ;;^DD(354.2,.05,9)
- +76 ;;=^
- +77 ;;^DD(354.2,.05,21,0)
- +78 ;;=^^2^2^2930430^^^^
- +79 ;;^DD(354.2,.05,21,1,0)
- +80 ;;=This is the internal code used to look up entries by the billing
- +81 ;;^DD(354.2,.05,21,2,0)
- +82 ;;=system. This should not be altered except by the developing ISC.
- +83 ;;^DD(354.2,.05,23,0)
- +84 ;;=^^9^9^2930430^^^^
- +85 ;;^DD(354.2,.05,23,1,0)
- +86 ;;=The data in this field is returned as the third piece from the call to
- +87 ;;^DD(354.2,.05,23,2,0)
- +88 ;;=RXST^IBARXEU and RXEXMT^IBARXEU0. Programmers can determine certain
- +89 ;;^DD(354.2,.05,23,3,0)
- +90 ;;=attributes from the code. Codes of 2 digits are reserved for exemption
- +91 ;;^DD(354.2,.05,23,4,0)
- +92 ;;=reasons that can automatically be determined by the system but not
- +93 ;;^DD(354.2,.05,23,5,0)
- +94 ;;=based on income. Codes of 3 digits are reserved for exemptions based
- +95 ;;^DD(354.2,.05,23,6,0)
- +96 ;;=on income. Codes of 4 digits are reserved for exemptions that only
- +97 ;;^DD(354.2,.05,23,7,0)
- +98 ;;=can be manually entered that would generally over-ride all other
- +99 ;;^DD(354.2,.05,23,8,0)
- +100 ;;=determinations.
- +101 ;;^DD(354.2,.05,23,9,0)
- +102 ;;=
- +103 ;;^DD(354.2,.05,"DT")
- +104 ;;=2930115
- +105 ;;^DD(354.2,.1,0)
- +106 ;;=ACTIVE^S^1:ACTIVE;0:INACTIVE;^10;1^Q
- +107 ;;^DD(354.2,.1,1,0)
- +108 ;;=^.1
- +109 ;;^DD(354.2,.1,1,1,0)
- +110 ;;=354.2^AA
- +111 ;;^DD(354.2,.1,1,1,1)
- +112 ;;=S ^IBE(354.2,"AA",$E(X,1,30),DA)=""
- +113 ;;^DD(354.2,.1,1,1,2)
- +114 ;;=K ^IBE(354.2,"AA",$E(X,1,30),DA)
- +115 ;;^DD(354.2,.1,1,1,"%D",0)
- +116 ;;=^^1^1^2921110^
- +117 ;;^DD(354.2,.1,1,1,"%D",1,0)
- +118 ;;=Cross-reference of Active records.