- IBDEI004 ; ; 18-MAR-1994
- ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
- Q:'DIFQ(358.1) 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
- ;;^DIC(358.1,0,"GL")
- ;;=^IBE(358.1,
- ;;^DIC("B","IMP/EXP ENCOUNTER FORM BLOCK",358.1)
- ;;=
- ;;^DIC(358.1,"%D",0)
- ;;=^^4^4^2940217^
- ;;^DIC(358.1,"%D",1,0)
- ;;=
- ;;^DIC(358.1,"%D",2,0)
- ;;=This file is nearly identical to file #357.1. It is used by the
- ;;^DIC(358.1,"%D",3,0)
- ;;=Import/Export Utility as a temporary staging area for data from that file
- ;;^DIC(358.1,"%D",4,0)
- ;;=that is being imported or exported.
- ;;^DD(358.1,0)
- ;;=FIELD^^1^12
- ;;^DD(358.1,0,"DT")
- ;;=2930806
- ;;^DD(358.1,0,"ID",.02)
- ;;=W ""
- ;;^DD(358.1,0,"IX","B",358.1,.01)
- ;;=
- ;;^DD(358.1,0,"IX","C",358.1,.02)
- ;;=
- ;;^DD(358.1,0,"IX","D",358.1,.14)
- ;;=
- ;;^DD(358.1,0,"NM","IMP/EXP ENCOUNTER FORM BLOCK")
- ;;=
- ;;^DD(358.1,0,"PT",358.2,.02)
- ;;=
- ;;^DD(358.1,0,"PT",358.5,.02)
- ;;=
- ;;^DD(358.1,0,"PT",358.7,.06)
- ;;=
- ;;^DD(358.1,0,"PT",358.8,.02)
- ;;=
- ;;^DD(358.1,.01,0)
- ;;=NAME^RF^^0;1^K:$L(X)>30!(X?.N)!($L(X)<3)!'(X'?1P.E) X
- ;;^DD(358.1,.01,1,0)
- ;;=^.1
- ;;^DD(358.1,.01,1,1,0)
- ;;=358.1^B
- ;;^DD(358.1,.01,1,1,1)
- ;;=S ^IBE(358.1,"B",$E(X,1,30),DA)=""
- ;;^DD(358.1,.01,1,1,2)
- ;;=K ^IBE(358.1,"B",$E(X,1,30),DA)
- ;;^DD(358.1,.01,3)
- ;;=NAME MUST BE 3-30 CHARACTERS, NOT NUMERIC OR STARTING WITH PUNCTUATION
- ;;^DD(358.1,.01,21,0)
- ;;=^^2^2^2930527^
- ;;^DD(358.1,.01,21,1,0)
- ;;=
- ;;^DD(358.1,.01,21,2,0)
- ;;=The name of the block.
- ;;^DD(358.1,.01,"DEL",1,0)
- ;;=I '$G(IBLISTPR) W "...Encounter Form Blocks can only be deleted through the Encounter Form Utilities!"
- ;;^DD(358.1,.02,0)
- ;;=FORM^RP358'^IBE(358,^0;2^Q
- ;;^DD(358.1,.02,1,0)
- ;;=^.1
- ;;^DD(358.1,.02,1,1,0)
- ;;=358.1^C
- ;;^DD(358.1,.02,1,1,1)
- ;;=S ^IBE(358.1,"C",$E(X,1,30),DA)=""
- ;;^DD(358.1,.02,1,1,2)
- ;;=K ^IBE(358.1,"C",$E(X,1,30),DA)
- ;;^DD(358.1,.02,1,1,"%D",0)
- ;;=^^1^1^2921116^
- ;;^DD(358.1,.02,1,1,"%D",1,0)
- ;;=Used to find all the blocks belonging to a particular form.
- ;;^DD(358.1,.02,1,1,"DT")
- ;;=2921116
- ;;^DD(358.1,.02,3)
- ;;=What form should this block appear on?
- ;;^DD(358.1,.02,21,0)
- ;;=^^2^2^2930802^^
- ;;^DD(358.1,.02,21,1,0)
- ;;=
- ;;^DD(358.1,.02,21,2,0)
- ;;=The form the block appears on.
- ;;^DD(358.1,.02,"DT")
- ;;=2930802
- ;;^DD(358.1,.04,0)
- ;;=BLOCK'S STARTING ROW^RNJ3,0XO^^0;4^S:+X=X X=X-1 K:+X'=X!(X>999)!(X<0)!(X?.E1"."1N.N) X
- ;;^DD(358.1,.04,.1)
- ;;=WHAT ROW SHOULD THE BLOCK START IN?
- ;;^DD(358.1,.04,2)
- ;;=S Y(0)=Y S Y=(+Y)+1
- ;;^DD(358.1,.04,2.1)
- ;;=S Y=(+Y)+1
- ;;^DD(358.1,.04,3)
- ;;=What line should this block begin on?
- ;;^DD(358.1,.04,21,0)
- ;;=^^1^1^2930715^^^
- ;;^DD(358.1,.04,21,1,0)
- ;;=The row on the encounter form that the block starts on.
- ;;^DD(358.1,.04,23,0)
- ;;=^^4^4^2930715^
- ;;^DD(358.1,.04,23,1,0)
- ;;=The internal representation starts at 0, the external representation
- ;;^DD(358.1,.04,23,2,0)
- ;;=starts at 1. The difference is because for computing the form image
- ;;^DD(358.1,.04,23,3,0)
- ;;=it is convenient to work with displacements fromt the top left-hand
- ;;^DD(358.1,.04,23,4,0)
- ;;=corner. However, users do not want to work with row=0 or column=0.
- ;;^DD(358.1,.04,"DT")
- ;;=2930715
- ;;^DD(358.1,.05,0)
- ;;=BLOCK'S STARTING COLUMN^RNJ3,0XO^^0;5^S:+X=X X=X-1 K:+X'=X!(X>200)!(X<0)!(X?.E1"."1N.N) X
- ;;^DD(358.1,.05,.1)
- ;;=WHAT COLUMN SHOULD THE BLOCK START IN?
- ;;^DD(358.1,.05,2)
- ;;=S Y(0)=Y S Y=(+Y)+1
- ;;^DD(358.1,.05,2.1)
- ;;=S Y=(+Y)+1
- ;;^DD(358.1,.05,3)
- ;;=What column should this block begin on?
- ;;^DD(358.1,.05,21,0)
- ;;=^^1^1^2930715^^
- ;;^DD(358.1,.05,21,1,0)
- ;;=The column on the encounter form that the block starts on.
- ;;^DD(358.1,.05,23,0)
- ;;=^^4^4^2930715^
- ;;^DD(358.1,.05,23,1,0)
- ;;=The internal representation starts at 0, the external representation
- IBDEI004 ; ; 18-MAR-1994
- +1 ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
- +2 IF 'DIFQ(358.1)
- 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 ;;^DIC(358.1,0,"GL")
- +2 ;;=^IBE(358.1,
- +3 ;;^DIC("B","IMP/EXP ENCOUNTER FORM BLOCK",358.1)
- +4 ;;=
- +5 ;;^DIC(358.1,"%D",0)
- +6 ;;=^^4^4^2940217^
- +7 ;;^DIC(358.1,"%D",1,0)
- +8 ;;=
- +9 ;;^DIC(358.1,"%D",2,0)
- +10 ;;=This file is nearly identical to file #357.1. It is used by the
- +11 ;;^DIC(358.1,"%D",3,0)
- +12 ;;=Import/Export Utility as a temporary staging area for data from that file
- +13 ;;^DIC(358.1,"%D",4,0)
- +14 ;;=that is being imported or exported.
- +15 ;;^DD(358.1,0)
- +16 ;;=FIELD^^1^12
- +17 ;;^DD(358.1,0,"DT")
- +18 ;;=2930806
- +19 ;;^DD(358.1,0,"ID",.02)
- +20 ;;=W ""
- +21 ;;^DD(358.1,0,"IX","B",358.1,.01)
- +22 ;;=
- +23 ;;^DD(358.1,0,"IX","C",358.1,.02)
- +24 ;;=
- +25 ;;^DD(358.1,0,"IX","D",358.1,.14)
- +26 ;;=
- +27 ;;^DD(358.1,0,"NM","IMP/EXP ENCOUNTER FORM BLOCK")
- +28 ;;=
- +29 ;;^DD(358.1,0,"PT",358.2,.02)
- +30 ;;=
- +31 ;;^DD(358.1,0,"PT",358.5,.02)
- +32 ;;=
- +33 ;;^DD(358.1,0,"PT",358.7,.06)
- +34 ;;=
- +35 ;;^DD(358.1,0,"PT",358.8,.02)
- +36 ;;=
- +37 ;;^DD(358.1,.01,0)
- +38 ;;=NAME^RF^^0;1^K:$L(X)>30!(X?.N)!($L(X)<3)!'(X'?1P.E) X
- +39 ;;^DD(358.1,.01,1,0)
- +40 ;;=^.1
- +41 ;;^DD(358.1,.01,1,1,0)
- +42 ;;=358.1^B
- +43 ;;^DD(358.1,.01,1,1,1)
- +44 ;;=S ^IBE(358.1,"B",$E(X,1,30),DA)=""
- +45 ;;^DD(358.1,.01,1,1,2)
- +46 ;;=K ^IBE(358.1,"B",$E(X,1,30),DA)
- +47 ;;^DD(358.1,.01,3)
- +48 ;;=NAME MUST BE 3-30 CHARACTERS, NOT NUMERIC OR STARTING WITH PUNCTUATION
- +49 ;;^DD(358.1,.01,21,0)
- +50 ;;=^^2^2^2930527^
- +51 ;;^DD(358.1,.01,21,1,0)
- +52 ;;=
- +53 ;;^DD(358.1,.01,21,2,0)
- +54 ;;=The name of the block.
- +55 ;;^DD(358.1,.01,"DEL",1,0)
- +56 ;;=I '$G(IBLISTPR) W "...Encounter Form Blocks can only be deleted through the Encounter Form Utilities!"
- +57 ;;^DD(358.1,.02,0)
- +58 ;;=FORM^RP358'^IBE(358,^0;2^Q
- +59 ;;^DD(358.1,.02,1,0)
- +60 ;;=^.1
- +61 ;;^DD(358.1,.02,1,1,0)
- +62 ;;=358.1^C
- +63 ;;^DD(358.1,.02,1,1,1)
- +64 ;;=S ^IBE(358.1,"C",$E(X,1,30),DA)=""
- +65 ;;^DD(358.1,.02,1,1,2)
- +66 ;;=K ^IBE(358.1,"C",$E(X,1,30),DA)
- +67 ;;^DD(358.1,.02,1,1,"%D",0)
- +68 ;;=^^1^1^2921116^
- +69 ;;^DD(358.1,.02,1,1,"%D",1,0)
- +70 ;;=Used to find all the blocks belonging to a particular form.
- +71 ;;^DD(358.1,.02,1,1,"DT")
- +72 ;;=2921116
- +73 ;;^DD(358.1,.02,3)
- +74 ;;=What form should this block appear on?
- +75 ;;^DD(358.1,.02,21,0)
- +76 ;;=^^2^2^2930802^^
- +77 ;;^DD(358.1,.02,21,1,0)
- +78 ;;=
- +79 ;;^DD(358.1,.02,21,2,0)
- +80 ;;=The form the block appears on.
- +81 ;;^DD(358.1,.02,"DT")
- +82 ;;=2930802
- +83 ;;^DD(358.1,.04,0)
- +84 ;;=BLOCK'S STARTING ROW^RNJ3,0XO^^0;4^S:+X=X X=X-1 K:+X'=X!(X>999)!(X<0)!(X?.E1"."1N.N) X
- +85 ;;^DD(358.1,.04,.1)
- +86 ;;=WHAT ROW SHOULD THE BLOCK START IN?
- +87 ;;^DD(358.1,.04,2)
- +88 ;;=S Y(0)=Y S Y=(+Y)+1
- +89 ;;^DD(358.1,.04,2.1)
- +90 ;;=S Y=(+Y)+1
- +91 ;;^DD(358.1,.04,3)
- +92 ;;=What line should this block begin on?
- +93 ;;^DD(358.1,.04,21,0)
- +94 ;;=^^1^1^2930715^^^
- +95 ;;^DD(358.1,.04,21,1,0)
- +96 ;;=The row on the encounter form that the block starts on.
- +97 ;;^DD(358.1,.04,23,0)
- +98 ;;=^^4^4^2930715^
- +99 ;;^DD(358.1,.04,23,1,0)
- +100 ;;=The internal representation starts at 0, the external representation
- +101 ;;^DD(358.1,.04,23,2,0)
- +102 ;;=starts at 1. The difference is because for computing the form image
- +103 ;;^DD(358.1,.04,23,3,0)
- +104 ;;=it is convenient to work with displacements fromt the top left-hand
- +105 ;;^DD(358.1,.04,23,4,0)
- +106 ;;=corner. However, users do not want to work with row=0 or column=0.
- +107 ;;^DD(358.1,.04,"DT")
- +108 ;;=2930715
- +109 ;;^DD(358.1,.05,0)
- +110 ;;=BLOCK'S STARTING COLUMN^RNJ3,0XO^^0;5^S:+X=X X=X-1 K:+X'=X!(X>200)!(X<0)!(X?.E1"."1N.N) X
- +111 ;;^DD(358.1,.05,.1)
- +112 ;;=WHAT COLUMN SHOULD THE BLOCK START IN?
- +113 ;;^DD(358.1,.05,2)
- +114 ;;=S Y(0)=Y S Y=(+Y)+1
- +115 ;;^DD(358.1,.05,2.1)
- +116 ;;=S Y=(+Y)+1
- +117 ;;^DD(358.1,.05,3)
- +118 ;;=What column should this block begin on?
- +119 ;;^DD(358.1,.05,21,0)
- +120 ;;=^^1^1^2930715^^
- +121 ;;^DD(358.1,.05,21,1,0)
- +122 ;;=The column on the encounter form that the block starts on.
- +123 ;;^DD(358.1,.05,23,0)
- +124 ;;=^^4^4^2930715^
- +125 ;;^DD(358.1,.05,23,1,0)
- +126 ;;=The internal representation starts at 0, the external representation