- DINIT2B6 ;SFISC/MKO-SQLI FILES ;10:51 AM 30 Mar 1999
- ;;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
- G ^DINIT2B7
- Q Q
- ;;^DIC(1.5214,0,"GL")
- ;;=^DMSQ("OF",
- ;;^DIC("B","SQLI_OUTPUT_FORMAT",1.5214)
- ;;=
- ;;^DIC(1.5214,"%D",0)
- ;;=^^9^9^2970806^^^
- ;;^DIC(1.5214,"%D",1,0)
- ;;=Strategies for converting base values to external values.
- ;;^DIC(1.5214,"%D",2,0)
- ;;=In FileMan they are used to convert references to pointers to
- ;;^DIC(1.5214,"%D",3,0)
- ;;=their text values. They are also used for the SET OF CODES type.
- ;;^DIC(1.5214,"%D",4,0)
- ;;=
- ;;^DIC(1.5214,"%D",5,0)
- ;;=SQLI projects pointer and set of codes as calls to $$GET1^DIQ,
- ;;^DIC(1.5214,"%D",6,0)
- ;;=variable pointer into calls to $$EXTERNAL^DILFD.
- ;;^DIC(1.5214,"%D",7,0)
- ;;=
- ;;^DIC(1.5214,"%D",8,0)
- ;;=Vendors and other users of SQLI may choose to implement their own
- ;;^DIC(1.5214,"%D",9,0)
- ;;=conversions to improve performance.
- ;;^DD(1.5214,0)
- ;;=FIELD^^4^5
- ;;^DD(1.5214,0,"DDA")
- ;;=N
- ;;^DD(1.5214,0,"DT")
- ;;=2960820
- ;;^DD(1.5214,0,"IX","B",1.5214,.01)
- ;;=
- ;;^DD(1.5214,0,"NM","SQLI_OUTPUT_FORMAT")
- ;;=
- ;;^DD(1.5214,0,"PT",1.5211,3)
- ;;=
- ;;^DD(1.5214,0,"PT",1.5212,6)
- ;;=
- ;;^DD(1.5214,0,"PT",1.5217,16)
- ;;=
- ;;^DD(1.5214,0,"VRPK")
- ;;=DI
- ;;^DD(1.5214,.01,0)
- ;;=OF_NAME^RF^^0;1^K:$L(X)>30!($L(X)<3)!'($TR(X,"_")?1U.UN) X
- ;;^DD(1.5214,.01,.1)
- ;;=Output Format
- ;;^DD(1.5214,.01,1,0)
- ;;=^.1
- ;;^DD(1.5214,.01,1,1,0)
- ;;=1.5214^B
- ;;^DD(1.5214,.01,1,1,1)
- ;;=S ^DMSQ("OF","B",$E(X,1,30),DA)=""
- ;;^DD(1.5214,.01,1,1,2)
- ;;=K ^DMSQ("OF","B",$E(X,1,30),DA)
- ;;^DD(1.5214,.01,3)
- ;;=Answer must be 3-30 characters in length.
- ;;^DD(1.5214,.01,9)
- ;;=^
- ;;^DD(1.5214,.01,"DT")
- ;;=2960820
- ;;^DD(1.5214,1,0)
- ;;=OF_DATA_TYPE^RP1.5211'^DMSQ("DT",^0;2^Q
- ;;^DD(1.5214,1,3)
- ;;=Enter the ODBC data type
- ;;^DD(1.5214,1,9)
- ;;=^
- ;;^DD(1.5214,1,"DT")
- ;;=2960820
- ;;^DD(1.5214,2,0)
- ;;=OF_COMMENT^F^^0;3^K:$L(X)>60!($L(X)<3) X
- ;;^DD(1.5214,2,3)
- ;;=Answer must be 3-60 characters in length.
- ;;^DD(1.5214,2,9)
- ;;=^
- ;;^DD(1.5214,2,"DT")
- ;;=2960820
- ;;^DD(1.5214,3,0)
- ;;=OF_EXT_EXPR^K^^1;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
- ;;^DD(1.5214,3,3)
- ;;=This is Standard MUMPS code.
- ;;^DD(1.5214,3,9)
- ;;=^
- ;;^DD(1.5214,3,21,0)
- ;;=^^1^1^2960820^
- ;;^DD(1.5214,3,21,1,0)
- ;;=An M expression which converts the base value of X to its external value
- ;;^DD(1.5214,3,"DT")
- ;;=2960820
- ;;^DD(1.5214,4,0)
- ;;=OF_EXT_EXEC^K^^2;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
- ;;^DD(1.5214,4,3)
- ;;=This is Standard MUMPS code.
- ;;^DD(1.5214,4,9)
- ;;=^
- ;;^DD(1.5214,4,21,0)
- ;;=^^1^1^2960820^
- ;;^DD(1.5214,4,21,1,0)
- ;;=A line of M code which converts the base value of X to external
- ;;^DD(1.5214,4,"DT")
- ;;=2960820
- --- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HDINIT2B6 3206 printed Feb 19, 2025@00:17:53 Page 2
- DINIT2B6 ;SFISC/MKO-SQLI FILES ;10:51 AM 30 Mar 1999
- +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
- +8 GOTO ^DINIT2B7
- Q QUIT
- +1 ;;^DIC(1.5214,0,"GL")
- +2 ;;=^DMSQ("OF",
- +3 ;;^DIC("B","SQLI_OUTPUT_FORMAT",1.5214)
- +4 ;;=
- +5 ;;^DIC(1.5214,"%D",0)
- +6 ;;=^^9^9^2970806^^^
- +7 ;;^DIC(1.5214,"%D",1,0)
- +8 ;;=Strategies for converting base values to external values.
- +9 ;;^DIC(1.5214,"%D",2,0)
- +10 ;;=In FileMan they are used to convert references to pointers to
- +11 ;;^DIC(1.5214,"%D",3,0)
- +12 ;;=their text values. They are also used for the SET OF CODES type.
- +13 ;;^DIC(1.5214,"%D",4,0)
- +14 ;;=
- +15 ;;^DIC(1.5214,"%D",5,0)
- +16 ;;=SQLI projects pointer and set of codes as calls to $$GET1^DIQ,
- +17 ;;^DIC(1.5214,"%D",6,0)
- +18 ;;=variable pointer into calls to $$EXTERNAL^DILFD.
- +19 ;;^DIC(1.5214,"%D",7,0)
- +20 ;;=
- +21 ;;^DIC(1.5214,"%D",8,0)
- +22 ;;=Vendors and other users of SQLI may choose to implement their own
- +23 ;;^DIC(1.5214,"%D",9,0)
- +24 ;;=conversions to improve performance.
- +25 ;;^DD(1.5214,0)
- +26 ;;=FIELD^^4^5
- +27 ;;^DD(1.5214,0,"DDA")
- +28 ;;=N
- +29 ;;^DD(1.5214,0,"DT")
- +30 ;;=2960820
- +31 ;;^DD(1.5214,0,"IX","B",1.5214,.01)
- +32 ;;=
- +33 ;;^DD(1.5214,0,"NM","SQLI_OUTPUT_FORMAT")
- +34 ;;=
- +35 ;;^DD(1.5214,0,"PT",1.5211,3)
- +36 ;;=
- +37 ;;^DD(1.5214,0,"PT",1.5212,6)
- +38 ;;=
- +39 ;;^DD(1.5214,0,"PT",1.5217,16)
- +40 ;;=
- +41 ;;^DD(1.5214,0,"VRPK")
- +42 ;;=DI
- +43 ;;^DD(1.5214,.01,0)
- +44 ;;=OF_NAME^RF^^0;1^K:$L(X)>30!($L(X)<3)!'($TR(X,"_")?1U.UN) X
- +45 ;;^DD(1.5214,.01,.1)
- +46 ;;=Output Format
- +47 ;;^DD(1.5214,.01,1,0)
- +48 ;;=^.1
- +49 ;;^DD(1.5214,.01,1,1,0)
- +50 ;;=1.5214^B
- +51 ;;^DD(1.5214,.01,1,1,1)
- +52 ;;=S ^DMSQ("OF","B",$E(X,1,30),DA)=""
- +53 ;;^DD(1.5214,.01,1,1,2)
- +54 ;;=K ^DMSQ("OF","B",$E(X,1,30),DA)
- +55 ;;^DD(1.5214,.01,3)
- +56 ;;=Answer must be 3-30 characters in length.
- +57 ;;^DD(1.5214,.01,9)
- +58 ;;=^
- +59 ;;^DD(1.5214,.01,"DT")
- +60 ;;=2960820
- +61 ;;^DD(1.5214,1,0)
- +62 ;;=OF_DATA_TYPE^RP1.5211'^DMSQ("DT",^0;2^Q
- +63 ;;^DD(1.5214,1,3)
- +64 ;;=Enter the ODBC data type
- +65 ;;^DD(1.5214,1,9)
- +66 ;;=^
- +67 ;;^DD(1.5214,1,"DT")
- +68 ;;=2960820
- +69 ;;^DD(1.5214,2,0)
- +70 ;;=OF_COMMENT^F^^0;3^K:$L(X)>60!($L(X)<3) X
- +71 ;;^DD(1.5214,2,3)
- +72 ;;=Answer must be 3-60 characters in length.
- +73 ;;^DD(1.5214,2,9)
- +74 ;;=^
- +75 ;;^DD(1.5214,2,"DT")
- +76 ;;=2960820
- +77 ;;^DD(1.5214,3,0)
- +78 ;;=OF_EXT_EXPR^K^^1;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
- +79 ;;^DD(1.5214,3,3)
- +80 ;;=This is Standard MUMPS code.
- +81 ;;^DD(1.5214,3,9)
- +82 ;;=^
- +83 ;;^DD(1.5214,3,21,0)
- +84 ;;=^^1^1^2960820^
- +85 ;;^DD(1.5214,3,21,1,0)
- +86 ;;=An M expression which converts the base value of X to its external value
- +87 ;;^DD(1.5214,3,"DT")
- +88 ;;=2960820
- +89 ;;^DD(1.5214,4,0)
- +90 ;;=OF_EXT_EXEC^K^^2;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
- +91 ;;^DD(1.5214,4,3)
- +92 ;;=This is Standard MUMPS code.
- +93 ;;^DD(1.5214,4,9)
- +94 ;;=^
- +95 ;;^DD(1.5214,4,21,0)
- +96 ;;=^^1^1^2960820^
- +97 ;;^DD(1.5214,4,21,1,0)
- +98 ;;=A line of M code which converts the base value of X to external
- +99 ;;^DD(1.5214,4,"DT")
- +100 ;;=2960820