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

IBINI07J.m

Go to the documentation of this file.
  1. IBINI07J ; ; 21-MAR-1994
  1. ;;Version 2.0 ; INTEGRATED BILLING ;; 21-MAR-94
  1. Q:'DIFQ(357.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
  1. Q Q
  1. ;;^DIC(357.1,0,"GL")
  1. ;;=^IBE(357.1,
  1. ;;^DIC("B","ENCOUNTER FORM BLOCK",357.1)
  1. ;;=
  1. ;;^DIC(357.1,"%D",0)
  1. ;;=^^3^3^2931214^^^
  1. ;;^DIC(357.1,"%D",1,0)
  1. ;;=
  1. ;;^DIC(357.1,"%D",2,0)
  1. ;;=Contains descriptions of blocks, which are rectangular areas on an
  1. ;;^DIC(357.1,"%D",3,0)
  1. ;;=encounter form.
  1. ;;^DD(357.1,0)
  1. ;;=FIELD^^2^13
  1. ;;^DD(357.1,0,"DDA")
  1. ;;=N
  1. ;;^DD(357.1,0,"DIK")
  1. ;;=IBXF1
  1. ;;^DD(357.1,0,"DT")
  1. ;;=2931117
  1. ;;^DD(357.1,0,"ID",.02)
  1. ;;=W ""
  1. ;;^DD(357.1,0,"IX","B",357.1,.01)
  1. ;;=
  1. ;;^DD(357.1,0,"IX","C",357.1,.02)
  1. ;;=
  1. ;;^DD(357.1,0,"IX","D",357.1,.14)
  1. ;;=
  1. ;;^DD(357.1,0,"NM","ENCOUNTER FORM BLOCK")
  1. ;;=
  1. ;;^DD(357.1,0,"PT",357.2,.02)
  1. ;;=
  1. ;;^DD(357.1,0,"PT",357.5,.02)
  1. ;;=
  1. ;;^DD(357.1,0,"PT",357.7,.06)
  1. ;;=
  1. ;;^DD(357.1,0,"PT",357.8,.02)
  1. ;;=
  1. ;;^DD(357.1,.01,0)
  1. ;;=NAME^RFX^^0;1^S X=$$UP^XLFSTR(X) K:$L(X)>30!($L(X)<3) X
  1. ;;^DD(357.1,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(357.1,.01,1,1,0)
  1. ;;=357.1^B
  1. ;;^DD(357.1,.01,1,1,1)
  1. ;;=S ^IBE(357.1,"B",$E(X,1,30),DA)=""
  1. ;;^DD(357.1,.01,1,1,2)
  1. ;;=K ^IBE(357.1,"B",$E(X,1,30),DA)
  1. ;;^DD(357.1,.01,3)
  1. ;;=The block name must be 3-30 uppercase characters.
  1. ;;^DD(357.1,.01,21,0)
  1. ;;=^^3^3^2940216^
  1. ;;^DD(357.1,.01,21,1,0)
  1. ;;=
  1. ;;^DD(357.1,.01,21,2,0)
  1. ;;=
  1. ;;^DD(357.1,.01,21,3,0)
  1. ;;=The name of the block.
  1. ;;^DD(357.1,.01,"DEL",1,0)
  1. ;;=I '$G(IBLISTPR) W "...Encounter Form Blocks can only be deleted through the Encounter Form Utilities!"
  1. ;;^DD(357.1,.01,"DT")
  1. ;;=2931117
  1. ;;^DD(357.1,.02,0)
  1. ;;=FORM^RP357'^IBE(357,^0;2^Q
  1. ;;^DD(357.1,.02,1,0)
  1. ;;=^.1
  1. ;;^DD(357.1,.02,1,1,0)
  1. ;;=357.1^C
  1. ;;^DD(357.1,.02,1,1,1)
  1. ;;=S ^IBE(357.1,"C",$E(X,1,30),DA)=""
  1. ;;^DD(357.1,.02,1,1,2)
  1. ;;=K ^IBE(357.1,"C",$E(X,1,30),DA)
  1. ;;^DD(357.1,.02,1,1,"%D",0)
  1. ;;=^^1^1^2921116^
  1. ;;^DD(357.1,.02,1,1,"%D",1,0)
  1. ;;=Used to find all the blocks belonging to a particular form.
  1. ;;^DD(357.1,.02,1,1,"DT")
  1. ;;=2921116
  1. ;;^DD(357.1,.02,3)
  1. ;;=What form should this block appear on?
  1. ;;^DD(357.1,.02,21,0)
  1. ;;=^^2^2^2930527^
  1. ;;^DD(357.1,.02,21,1,0)
  1. ;;=
  1. ;;^DD(357.1,.02,21,2,0)
  1. ;;=The form the block appears on.
  1. ;;^DD(357.1,.02,"DT")
  1. ;;=2921116
  1. ;;^DD(357.1,.04,0)
  1. ;;=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
  1. ;;^DD(357.1,.04,.1)
  1. ;;=WHAT ROW SHOULD THE BLOCK START IN?
  1. ;;^DD(357.1,.04,2)
  1. ;;=S Y(0)=Y S Y=(+Y)+1
  1. ;;^DD(357.1,.04,2.1)
  1. ;;=S Y=(+Y)+1
  1. ;;^DD(357.1,.04,3)
  1. ;;=What line should this block begin on?
  1. ;;^DD(357.1,.04,21,0)
  1. ;;=^^1^1^2940216^
  1. ;;^DD(357.1,.04,21,1,0)
  1. ;;=The row on the encounter form that the block starts on.
  1. ;;^DD(357.1,.04,23,0)
  1. ;;=^^4^4^2940216^
  1. ;;^DD(357.1,.04,23,1,0)
  1. ;;=The internal representation starts at 0, the external representation
  1. ;;^DD(357.1,.04,23,2,0)
  1. ;;=starts at 1. The difference is because for computing the form image
  1. ;;^DD(357.1,.04,23,3,0)
  1. ;;=it is convenient to work with displacements from the top left-hand
  1. ;;^DD(357.1,.04,23,4,0)
  1. ;;=corner. However, users do not want to work with row=0 or column=0.
  1. ;;^DD(357.1,.04,"DT")
  1. ;;=2930715
  1. ;;^DD(357.1,.05,0)
  1. ;;=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
  1. ;;^DD(357.1,.05,.1)
  1. ;;=WHAT COLUMN SHOULD THE BLOCK START IN?
  1. ;;^DD(357.1,.05,2)
  1. ;;=S Y(0)=Y S Y=(+Y)+1
  1. ;;^DD(357.1,.05,2.1)
  1. ;;=S Y=(+Y)+1
  1. ;;^DD(357.1,.05,3)
  1. ;;=What column should this block begin on?
  1. ;;^DD(357.1,.05,21,0)
  1. ;;=^^1^1^2930715^^
  1. ;;^DD(357.1,.05,21,1,0)
  1. ;;=The column on the encounter form that the block starts on.
  1. ;;^DD(357.1,.05,23,0)
  1. ;;=^^4^4^2930715^
  1. ;;^DD(357.1,.05,23,1,0)
  1. ;;=The internal representation starts at 0, the external representation