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

DINIT2B2.m

Go to the documentation of this file.
  1. DINIT2B2 ;SFISC/MKO-SQLI FILES ;10:51 AM 30 Mar 1999
  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 ^DINIT2B3
  1. Q Q
  1. ;;^DIC(1.5211,0,"GL")
  1. ;;=^DMSQ("DT",
  1. ;;^DIC("B","SQLI_DATA_TYPE",1.5211)
  1. ;;=
  1. ;;^DIC(1.5211,"%D",0)
  1. ;;=^^10^10^2970806^^^
  1. ;;^DIC(1.5211,"%D",1,0)
  1. ;;=A set of values from which all domains of that type may be drawn.
  1. ;;^DIC(1.5211,"%D",2,0)
  1. ;;=PRIMARY_KEY - the set of all primary keys (in SQLI_TABLE_ELEMENT, type P)
  1. ;;^DIC(1.5211,"%D",3,0)
  1. ;;=CHARACTER - the set of all character strings of length less than 256
  1. ;;^DIC(1.5211,"%D",4,0)
  1. ;;=INTEGER - the set of all cardinal numbers
  1. ;;^DIC(1.5211,"%D",5,0)
  1. ;;=NUMERIC - the set of all real numbers
  1. ;;^DIC(1.5211,"%D",6,0)
  1. ;;=DATE - the set of all date valued tokens
  1. ;;^DIC(1.5211,"%D",7,0)
  1. ;;=TIME - the set of all time valued tokens
  1. ;;^DIC(1.5211,"%D",8,0)
  1. ;;=MOMENT - the set of all tokens which have both a date and a time value
  1. ;;^DIC(1.5211,"%D",9,0)
  1. ;;=BOOLEAN - the set of all tokens which evaluate to true or false only
  1. ;;^DIC(1.5211,"%D",10,0)
  1. ;;=MEMO - the set of all character strings of length > 255
  1. ;;^DD(1.5211,0)
  1. ;;=FIELD^^3^4
  1. ;;^DD(1.5211,0,"DDA")
  1. ;;=N
  1. ;;^DD(1.5211,0,"DT")
  1. ;;=2960917
  1. ;;^DD(1.5211,0,"IX","B",1.5211,.01)
  1. ;;=
  1. ;;^DD(1.5211,0,"NM","SQLI_DATA_TYPE")
  1. ;;=
  1. ;;^DD(1.5211,0,"PT",1.5212,1)
  1. ;;=
  1. ;;^DD(1.5211,0,"PT",1.5213,1)
  1. ;;=
  1. ;;^DD(1.5211,0,"PT",1.5214,1)
  1. ;;=
  1. ;;^DD(1.5211,0,"VRPK")
  1. ;;=DI
  1. ;;^DD(1.5211,.01,0)
  1. ;;=D_NAME^RF^^0;1^K:$L(X)>30!($L(X)<3)!'($TR(X,"_")?1U.UN) X
  1. ;;^DD(1.5211,.01,.1)
  1. ;;=Data Type
  1. ;;^DD(1.5211,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(1.5211,.01,1,1,0)
  1. ;;=1.5211^B
  1. ;;^DD(1.5211,.01,1,1,1)
  1. ;;=S ^DMSQ("DT","B",$E(X,1,30),DA)=""
  1. ;;^DD(1.5211,.01,1,1,2)
  1. ;;=K ^DMSQ("DT","B",$E(X,1,30),DA)
  1. ;;^DD(1.5211,.01,3)
  1. ;;=Answer must be an SQL identifier 3-30 characters in length.
  1. ;;^DD(1.5211,.01,4)
  1. ;;=W ?5,"Must be a valid SQL identifier"
  1. ;;^DD(1.5211,.01,9)
  1. ;;=^
  1. ;;^DD(1.5211,.01,21,0)
  1. ;;=^^1^1^2970311^^^^
  1. ;;^DD(1.5211,.01,21,1,0)
  1. ;;=ODBC Standard data type corresponding to FileMan domains
  1. ;;^DD(1.5211,.01,"DT")
  1. ;;=2960820
  1. ;;^DD(1.5211,1,0)
  1. ;;=D_COMMENT^F^^0;2^K:$L(X)>60!($L(X)<3) X
  1. ;;^DD(1.5211,1,.1)
  1. ;;=Comment
  1. ;;^DD(1.5211,1,3)
  1. ;;=Answer must be 3-60 characters in length.
  1. ;;^DD(1.5211,1,9)
  1. ;;=^
  1. ;;^DD(1.5211,1,21,0)
  1. ;;=^^1^1^2960926^
  1. ;;^DD(1.5211,1,21,1,0)
  1. ;;=Short description of the data type
  1. ;;^DD(1.5211,1,"DT")
  1. ;;=2960926
  1. ;;^DD(1.5211,2,0)
  1. ;;=D_OUTPUT_STRATEGY^K^^1;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
  1. ;;^DD(1.5211,2,.1)
  1. ;;=Output Strategy
  1. ;;^DD(1.5211,2,3)
  1. ;;=This is Standard MUMPS code to format output.
  1. ;;^DD(1.5211,2,9)
  1. ;;=^
  1. ;;^DD(1.5211,2,21,0)
  1. ;;=^^1^1^2960926^^^^
  1. ;;^DD(1.5211,2,21,1,0)
  1. ;;=M code which returns external value, {E} of base value, {B}.
  1. ;;^DD(1.5211,2,"DT")
  1. ;;=2960926
  1. ;;^DD(1.5211,3,0)
  1. ;;=D_OUTPUT_FORMAT^P1.5214'^DMSQ("OF",^0;3^Q
  1. ;;^DD(1.5211,3,.1)
  1. ;;=Output Format
  1. ;;^DD(1.5211,3,9)
  1. ;;=^
  1. ;;^DD(1.5211,3,21,0)
  1. ;;=^^1^1^2960926^^^^
  1. ;;^DD(1.5211,3,21,1,0)
  1. ;;=IEN of default output format in SQLI_OUTPUT_FORMAT
  1. ;;^DD(1.5211,3,"DT")
  1. ;;=2960926