DINIT127 ;SFISC/MKO-SORT TEMPLATE FILE ;1:13 PM  13 Nov 1998
 ;;22.2;VA FileMan;;Jan 05, 2016;Build 42
 ;;Per VA Directive 6402, this routine should not be modified.
 ;;Submitted to OSEHRA 5 January 2015 by the VISTA Expertise Network.
 ;;Based on Medsphere Systems Corporation's MSC FileMan 1051.
 ;;Licensed under the terms of the Apache License, Version 2.0.
 ;
 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
Q Q
 ;;^DD(.401419,1,"DT")
 ;;=2930201
 ;;^DD(.401419,2,0)
 ;;=OVERFLOW CODE^K^^OVF0;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
 ;;^DD(.401419,2,3)
 ;;=This is Standard MUMPS code.
 ;;^DD(.401419,2,9)
 ;;=@
 ;;^DD(.401419,2,21,0)
 ;;=^^3^3^2930201^
 ;;^DD(.401419,2,21,1,0)
 ;;=This is MUMPS code generated when needed by DICOMP, when sorting by a
 ;;^DD(.401419,2,21,2,0)
 ;;=field that must be gotten to relationally, or a computed field.  This
 ;;^DD(.401419,2,21,3,0)
 ;;=will only be used if DICOMP generates overflow code in the X array.
 ;;^DD(.401419,2,23,0)
 ;;=^^1^1^2930201^
 ;;^DD(.401419,2,23,1,0)
 ;;=Generated by DICOMP from ^DIP0 during the sort/print option.
 ;;^DD(.401419,2,"DT")
 ;;=2930201
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HDINIT127   1248     printed  Sep 23, 2025@20:26:49                                                                                                                                                                                                    Page 2
DINIT127  ;SFISC/MKO-SORT TEMPLATE FILE ;1:13 PM  13 Nov 1998
 +1       ;;22.2;VA FileMan;;Jan 05, 2016;Build 42
 +2       ;;Per VA Directive 6402, this routine should not be modified.
 +3       ;;Submitted to OSEHRA 5 January 2015 by the VISTA Expertise Network.
 +4       ;;Based on Medsphere Systems Corporation's MSC FileMan 1051.
 +5       ;;Licensed under the terms of the Apache License, Version 2.0.
 +6       ;
 +7        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)
               SET @X=Y
Q          QUIT 
 +1       ;;^DD(.401419,1,"DT")
 +2       ;;=2930201
 +3       ;;^DD(.401419,2,0)
 +4       ;;=OVERFLOW CODE^K^^OVF0;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
 +5       ;;^DD(.401419,2,3)
 +6       ;;=This is Standard MUMPS code.
 +7       ;;^DD(.401419,2,9)
 +8       ;;=@
 +9       ;;^DD(.401419,2,21,0)
 +10      ;;=^^3^3^2930201^
 +11      ;;^DD(.401419,2,21,1,0)
 +12      ;;=This is MUMPS code generated when needed by DICOMP, when sorting by a
 +13      ;;^DD(.401419,2,21,2,0)
 +14      ;;=field that must be gotten to relationally, or a computed field.  This
 +15      ;;^DD(.401419,2,21,3,0)
 +16      ;;=will only be used if DICOMP generates overflow code in the X array.
 +17      ;;^DD(.401419,2,23,0)
 +18      ;;=^^1^1^2930201^
 +19      ;;^DD(.401419,2,23,1,0)
 +20      ;;=Generated by DICOMP from ^DIP0 during the sort/print option.
 +21      ;;^DD(.401419,2,"DT")
 +22      ;;=2930201