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

DINIT126.m

Go to the documentation of this file.
  1. DINIT126 ;SFISC/MKO-SORT TEMPLATE FILE ;1:13 PM 13 Nov 1998
  1. ;;22.2;VA FileMan;;Jan 05, 2016;Build 42
  1. ;;Per VA Directive 6402, this routine should not be modified.
  1. ;;Submitted to OSEHRA 5 January 2015 by the VISTA Expertise Network.
  1. ;;Based on Medsphere Systems Corporation's MSC FileMan 1051.
  1. ;;Licensed under the terms of the Apache License, Version 2.0.
  1. ;
  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) S @X=Y
  1. G ^DINIT127
  1. Q Q
  1. ;;^DD(.40141,.01,21,4,0)
  1. ;;=during the sort/print processing.
  1. ;;^DD(.40141,.01,"DT")
  1. ;;=2930201
  1. ;;^DD(.40141,1,0)
  1. ;;=NODE^F^^0;2^K:$L(X)>50!($L(X)<1) X
  1. ;;^DD(.40141,1,3)
  1. ;;=Answer must be 1-50 characters in length. This is the node from which the data is descendant.
  1. ;;^DD(.40141,1,21,0)
  1. ;;=^^1^1^2930201^
  1. ;;^DD(.40141,1,21,1,0)
  1. ;;=This field contains the node from which the multiple data is descendant.
  1. ;;^DD(.40141,1,"DT")
  1. ;;=2930201
  1. ;;^DD(.401418,0)
  1. ;;=RELATIONAL JUMP FIELD DATA SUB-FIELD^^5^6
  1. ;;^DD(.401418,0,"DT")
  1. ;;=2930201
  1. ;;^DD(.401418,0,"IX","B",.401418,.01)
  1. ;;=
  1. ;;^DD(.401418,0,"NM","RELATIONAL JUMP FIELD DATA")
  1. ;;=
  1. ;;^DD(.401418,0,"UP")
  1. ;;=.4014
  1. ;;^DD(.401418,.01,0)
  1. ;;=RELATIONAL START FILE NO.^MNJ13,5^^0;1^K:+X'=X!(X>9999999.99999)!(X<0)!(X?.E1"."6N.N) X
  1. ;;^DD(.401418,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(.401418,.01,1,1,0)
  1. ;;=.401418^B
  1. ;;^DD(.401418,.01,1,1,1)
  1. ;;=S ^DIBT(DA(2),2,DA(1),2,"B",$E(X,1,30),DA)=""
  1. ;;^DD(.401418,.01,1,1,2)
  1. ;;=K ^DIBT(DA(2),2,DA(1),2,"B",$E(X,1,30),DA)
  1. ;;^DD(.401418,.01,3)
  1. ;;=Type a Number between 0 and 9999999.99999, 5 Decimal Digits
  1. ;;^DD(.401418,.01,21,0)
  1. ;;=^^3^3^2930201^^^^
  1. ;;^DD(.401418,.01,21,1,0)
  1. ;;=Data will appear here if sorting by a field that must be gotten to using
  1. ;;^DD(.401418,.01,21,2,0)
  1. ;;=a relational jump. This will be the file or subfile number from which
  1. ;;^DD(.401418,.01,21,3,0)
  1. ;;=the user is jumping (i.e., the starting point).
  1. ;;^DD(.401418,.01,23,0)
  1. ;;=^^1^1^2930201^
  1. ;;^DD(.401418,.01,23,1,0)
  1. ;;=Built in COLON^DIP0 during the sort/print.
  1. ;;^DD(.401418,.01,"DT")
  1. ;;=2930201
  1. ;;^DD(.401418,1,0)
  1. ;;=NEXT SUBSCRIPT^RNJ7,0^^0;2^K:+X'=X!(X>9999999)!(X<0)!(X?.E1"."1N.N) X
  1. ;;^DD(.401418,1,3)
  1. ;;=Type a Number between 0 and 9999999, 0 Decimal Digits. Subscript used in the DPP array during the sort/print option.
  1. ;;^DD(.401418,1,21,0)
  1. ;;=^^4^4^2930201^
  1. ;;^DD(.401418,1,21,1,0)
  1. ;;=This field contains a subscript used n the DPP array during the
  1. ;;^DD(.401418,1,21,2,0)
  1. ;;=sort/print. The subscript is generated by DICOMP (using the level
  1. ;;^DD(.401418,1,21,3,0)
  1. ;;=number multiplied by 100 I think). It results in building a node
  1. ;;^DD(.401418,1,21,4,0)
  1. ;;=like DPP(DJ,file/subfile no.,subscript)=data.
  1. ;;^DD(.401418,1,23,0)
  1. ;;=^^1^1^2930201^
  1. ;;^DD(.401418,1,23,1,0)
  1. ;;=Built by COLON^DIP0 routine.
  1. ;;^DD(.401418,1,"DT")
  1. ;;=2930201
  1. ;;^DD(.401418,2,0)
  1. ;;=TO FILE OR SUBFILE^NJ13,5^^0;3^K:+X'=X!(X>9999999.99999)!(X<0)!(X?.E1"."6N.N) X
  1. ;;^DD(.401418,2,3)
  1. ;;=Type a Number between 0 and 9999999.99999, 5 Decimal Digits. The file or subfile number to which we are jumping using a relational jump.
  1. ;;^DD(.401418,2,21,0)
  1. ;;=^^2^2^2930201^
  1. ;;^DD(.401418,2,21,1,0)
  1. ;;=This field contains the file or subfile number to which we are making
  1. ;;^DD(.401418,2,21,2,0)
  1. ;;=the relational jump (i.e., the destination file).
  1. ;;^DD(.401418,2,23,0)
  1. ;;=^^1^1^2930201^^
  1. ;;^DD(.401418,2,23,1,0)
  1. ;;=Built in COLON^DIP0 during the sort/print.
  1. ;;^DD(.401418,2,"DT")
  1. ;;=2930201
  1. ;;^DD(.401418,3,0)
  1. ;;=GLOBAL REFERENCE^F^^0;4^K:$L(X)>50!($L(X)<1) X
  1. ;;^DD(.401418,3,3)
  1. ;;=Answer must be 1-50 characters in length. Contains the global reference of the file to which we are jumping relationally.
  1. ;;^DD(.401418,3,21,0)
  1. ;;=^^2^2^2930201^
  1. ;;^DD(.401418,3,21,1,0)
  1. ;;=This field contains the global reference of the file to which we are
  1. ;;^DD(.401418,3,21,2,0)
  1. ;;=jumping relationally (i.e., the destination file).
  1. ;;^DD(.401418,3,23,0)
  1. ;;=^^1^1^2930201^
  1. ;;^DD(.401418,3,23,1,0)
  1. ;;=Built by COLON^DIP0 during the sort/print option.
  1. ;;^DD(.401418,3,"DT")
  1. ;;=2930201
  1. ;;^DD(.401418,4,0)
  1. ;;=MULTIVALUED FLAG^S^0:NOT MULTI-VALUED;1:YES, MULTI-VALUED;^0;5^Q
  1. ;;^DD(.401418,4,21,0)
  1. ;;=^^6^6^2930201^
  1. ;;^DD(.401418,4,21,1,0)
  1. ;;=This flag indicates whether the relational jump will result in going to
  1. ;;^DD(.401418,4,21,2,0)
  1. ;;=a file that has a many-to-one relationship to the starting (home) file
  1. ;;^DD(.401418,4,21,3,0)
  1. ;;=(i.e., a jump to a backwards pointer) or a one-to-one relationship (i.e.,
  1. ;;^DD(.401418,4,21,4,0)
  1. ;;=a forwards pointer jump). The flag will be set to 1 to indicate that
  1. ;;^DD(.401418,4,21,5,0)
  1. ;;=that there is a many-to-one or multi-valued relationship to the home
  1. ;;^DD(.401418,4,21,6,0)
  1. ;;=file, or to 0 if not.
  1. ;;^DD(.401418,4,23,0)
  1. ;;=^^1^1^2930201^
  1. ;;^DD(.401418,4,23,1,0)
  1. ;;=Set in COLON^DIP0 during the sort/print option.
  1. ;;^DD(.401418,4,"DT")
  1. ;;=2930201
  1. ;;^DD(.401418,5,0)
  1. ;;=RELATIONAL CODE^K^^RCOD;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
  1. ;;^DD(.401418,5,3)
  1. ;;=This is Standard MUMPS code, used to make a relational jump.
  1. ;;^DD(.401418,5,9)
  1. ;;=@
  1. ;;^DD(.401418,5,21,0)
  1. ;;=^^2^2^2930201^
  1. ;;^DD(.401418,5,21,1,0)
  1. ;;=This is the MUMPS code needed to perform the relational jump during the
  1. ;;^DD(.401418,5,21,2,0)
  1. ;;=sort part of the sort/print option.
  1. ;;^DD(.401418,5,23,0)
  1. ;;=^^1^1^2930201^
  1. ;;^DD(.401418,5,23,1,0)
  1. ;;=Generated from COLON^DIP0 during the sort/print option.
  1. ;;^DD(.401418,5,"DT")
  1. ;;=2930201
  1. ;;^DD(.401419,0)
  1. ;;=OVERFLOW DATA SUB-FIELD^^2^3
  1. ;;^DD(.401419,0,"DT")
  1. ;;=2930201
  1. ;;^DD(.401419,0,"IX","B",.401419,.01)
  1. ;;=
  1. ;;^DD(.401419,0,"NM","OVERFLOW DATA")
  1. ;;=
  1. ;;^DD(.401419,0,"UP")
  1. ;;=.4014
  1. ;;^DD(.401419,.01,0)
  1. ;;=FIRST SUBSCRIPT FOR OVERFLOW^MF^^0;1^K:$L(X)>20!($L(X)<1) X
  1. ;;^DD(.401419,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(.401419,.01,1,1,0)
  1. ;;=.401419^B
  1. ;;^DD(.401419,.01,1,1,1)
  1. ;;=S ^DIBT(DA(2),2,DA(1),3,"B",$E(X,1,30),DA)=""
  1. ;;^DD(.401419,.01,1,1,2)
  1. ;;=K ^DIBT(DA(2),2,DA(1),3,"B",$E(X,1,30),DA)
  1. ;;^DD(.401419,.01,3)
  1. ;;=Answer must be 1-20 characters in length. This multiple contains overflow code needed for sorting by relational or computed fields.
  1. ;;^DD(.401419,.01,"DT")
  1. ;;=2930201
  1. ;;^DD(.401419,1,0)
  1. ;;=SECOND SUBSCRIPT FOR OVERFLOW^NJ10,4^^0;2^K:+X'=X!(X>99999.9999)!(X<0)!(X?.E1"."5N.N) X
  1. ;;^DD(.401419,1,3)
  1. ;;=Type a Number between 0 and 99999.9999, 4 Decimal Digits
  1. ;;^DD(.401419,1,21,0)
  1. ;;=^^4^4^2930201^
  1. ;;^DD(.401419,1,21,1,0)
  1. ;;=This field contains the second subscript from the part of the DPP array
  1. ;;^DD(.401419,1,21,2,0)
  1. ;;=that contains overflow code executed when sorting by a field that is
  1. ;;^DD(.401419,1,21,3,0)
  1. ;;=gotten to relationally or a computed field. Overflow code is generated
  1. ;;^DD(.401419,1,21,4,0)
  1. ;;=when needed by DICOMP. This field will typically look something like 9.2.
  1. ;;^DD(.401419,1,23,0)
  1. ;;=^^1^1^2930201^
  1. ;;^DD(.401419,1,23,1,0)
  1. ;;=Generated by DICOMP from ^DIP0 during the sort/print option.