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

DINIT22.m

Go to the documentation of this file.
  1. DINIT22 ;SFISC/DPC - DATA TYPE FILE DD ;23NOV2016
  1. ;;22.2;VA FileMan;**2**;Jan 05, 2016;Build 139
  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. K ^DD(.81101,"GL")
  1. F I=1:2 S X=$T(Q+I) G ^DINIT221:X="" S Y=$E($T(Q+I+1),5,999),X=$E(X,4,999),@X=Y
  1. Q Q
  1. ;;^DIC(.81,0,"GL")
  1. ;;=^DI(.81,
  1. ;;^DIC("B","DATA TYPE",.81)
  1. ;;=
  1. ;;^DIC(.81,"%D",0)
  1. ;;=^^2^2^2940908^
  1. ;;^DIC(.81,"%D",1,0)
  1. ;;=This file stores all of the data types that VA FileMan allows in the
  1. ;;^DIC(.81,"%D",2,0)
  1. ;;=MODIFY FILE ATTRIBUTES option.
  1. ;;^DD(.81,0)
  1. ;;=FIELD^^201^9
  1. ;;^DD(.81,0,"DDA")
  1. ;;=N
  1. ;;^DD(.81,0,"IX","B",.81,.01)
  1. ;;=
  1. ;;^DD(.81,0,"IX","C",.81,1)
  1. ;;=
  1. ;;^DD(.81,0,"NM","DATA TYPE")
  1. ;;=
  1. ;;^DD(.81,0,"PT",.4014,15)
  1. ;;=
  1. ;;^DD(.81,0,"PT",.42,1)
  1. ;;=
  1. ;;^DD(.81,0,"PT",.86,41)
  1. ;;=
  1. ;;^DD(.81,.001,0)
  1. ;;=NUMBER^NJ16,2^^ ^K:+X'=X!(X>9999999999999.99)!(X<1)!(X?.E1"."3N.N) X
  1. ;;^DD(.81,.001,3)
  1. ;;=Type a Number between 1 and 9999999999999.99, 2 Decimal Digits
  1. ;;^DD(.81,.01,0)
  1. ;;=NAME^RF^^0;1^K:$L(X)>30!(X?.N)!($L(X)<3)!'(X'?1P.E) X
  1. ;;^DD(.81,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(.81,.01,1,1,0)
  1. ;;=.81^B
  1. ;;^DD(.81,.01,1,1,1)
  1. ;;=S ^DI(.81,"B",$E(X,1,30),DA)=""
  1. ;;^DD(.81,.01,1,1,2)
  1. ;;=K ^DI(.81,"B",$E(X,1,30),DA)
  1. ;;^DD(.81,.01,3)
  1. ;;=NAME MUST BE 3-30 CHARACTERS
  1. ;;^DD(.81,.01,"DEL",1,0)
  1. ;;=D DELETEQ^DIETLIB
  1. ;;^DD(.81,1,0)
  1. ;;=INTERNAL REPRESENTATION^F^^0;2^I ",N,F,D,S,P,K,"'[X!($L(X)>1) K X
  1. ;;^DD(.81,1,1,0)
  1. ;;=^.1
  1. ;;^DD(.81,1,1,1,0)
  1. ;;=.81^C
  1. ;;^DD(.81,1,1,1,1)
  1. ;;=S ^DI(.81,"C",$E(X,1,30),DA)=""
  1. ;;^DD(.81,1,1,1,2)
  1. ;;=K ^DI(.81,"C",$E(X,1,30),DA)
  1. ;;^DD(.81,1,3)
  1. ;;=MUST BE ONE OF THE BASIC CODES (N,F,D,S,P,K) DENOTING FILEMAN FIELD TYPES
  1. ;;^DD(.81,2,0)
  1. ;;=STANDARD PROMPT^F^^0;3^K:$L(X)>70!($L(X)<1) X
  1. ;;^DD(.81,2,3)
  1. ;;=Answer must be 1-70 characters in length.
  1. ;;^DD(.81,2,21,0)
  1. ;;=^^2^2^2960124^
  1. ;;^DD(.81,2,21,1,0)
  1. ;;=This is the default prompt used during a Reader (^DIR) call of this
  1. ;;^DD(.81,2,21,2,0)
  1. ;;=data type, when no prompt is supplied in DIR("A").
  1. ;;^DD(.81,3,0)
  1. ;;=SORT BY EXTERNAL?^S^0:NO;1:YES;^0;4^Q
  1. ;;^DD(.81,3,21,0)
  1. ;;=^^2^2^2960806^
  1. ;;^DD(.81,3,21,1,0)
  1. ;;=Enter 'YES' if, by default, data of this data type should sort by its
  1. ;;^DD(.81,3,21,2,0)
  1. ;;=external rather than internal form.
  1. ;;^DD(.81,11,0)
  1. ;;=SHORT DESCRIPTION^F^^11;E1,245^K:$L(X)>245!($L(X)<1) X
  1. ;;^DD(.81,11,3)
  1. ;;=Answer must be 1-245 characters in length.
  1. ;;^DD(.81,21,0)
  1. ;;=DESCRIPTION^.8121^^21;0
  1. ;;^DD(.81,41,0)
  1. ;;=FIELDS DEFINED BY THIS TYPE^.81215^^41;0
  1. ;;^DD(.81,41,9)
  1. ;;=^
  1. ;;^DD(.81,41,21,0)
  1. ;;=^^2^2^
  1. ;;^DD(.81,41,21,1,0)
  1. ;;=This multiple field list all fields in this database that point to this DATA TYPE. These are not editable here.
  1. ;;^DD(.81,41,21,2,0)
  1. ;;=The values are stuffed automatically when a field using this DATA TYPE is created under 'MODIFY FILE ATTRIBUTES'.
  1. ;;^DD(.81,101,0)
  1. ;;=PROPERTY^.81101P^^101;0
  1. ;;^DD(.81,101,21,0)
  1. ;;=^^1^1
  1. ;;^DD(.81,101,21,1,0)
  1. ;;=This multiple lists all the PROPERTIES that specify what this DATA TYPE does.
  1. ;;^DD(.81,201,0)
  1. ;;=METHOD^.81201P^^201;0
  1. ;;^DD(.81,201,21,0)
  1. ;;=^^1^1
  1. ;;^DD(.81,201,21,1,0)
  1. ;;=This multiple lists all the METHODS that specify what this DATA TYPE does.
  1. ;;^DD(.81101,0)
  1. ;;=PROPERTY SUB-FIELD^^61^8
  1. ;;^DD(.81101,0,"IX","AC",.81101,1)
  1. ;;=
  1. ;;^DD(.81101,0,"IX","B",.81101,.01)
  1. ;;=
  1. ;;^DD(.81101,0,"NM","PROPERTY")
  1. ;;=
  1. ;;^DD(.81101,0,"UP")
  1. ;;=.81
  1. ;;^DD(.81101,.01,0)
  1. ;;=PROPERTY^MP.86X^DI(.86,^0;1^S DINUM=X
  1. ;;^DD(.81101,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(.81101,.01,1,1,0)
  1. ;;=.81101^B
  1. ;;^DD(.81101,.01,1,1,1)
  1. ;;=S ^DI(.81,DA(1),101,"B",$E(X,1,30),DA)=""
  1. ;;^DD(.81101,.01,1,1,2)
  1. ;;=K ^DI(.81,DA(1),101,"B",$E(X,1,30),DA)
  1. ;;^DD(.81101,.01,3)
  1. ;;=Select a PROPERTY that needs to have a VALUE for this DATA TYPE.
  1. ;;^DD(.81101,.01,21,0)
  1. ;;=^^2^2
  1. ;;^DD(.81101,.01,21,1,0)
  1. ;;=Existing PROPERTY names should only be edited with great care.
  1. ;;^DD(.81101,.01,21,2,0)
  1. ;;=A PROPERTY is a string or number that defines something about the Data Type.
  1. ;;^DD(.81101,1,0)
  1. ;;=ORDER^NJ4,1^^0;2^K:+X'=X!(X>99.9)!(X<1)!(X?.E1"."2N.N) X
  1. ;;^DD(.81101,1,1,0)
  1. ;;=^.1
  1. ;;^DD(.81101,1,1,1,0)
  1. ;;=.81101^AC
  1. ;;^DD(.81101,1,1,1,1)
  1. ;;=S ^DI(.81,DA(1),101,"AC",$E(X,1,30),DA)=""
  1. ;;^DD(.81101,1,1,1,2)
  1. ;;=K ^DI(.81,DA(1),101,"AC",$E(X,1,30),DA)
  1. ;;^DD(.81101,1,1,1,"%D",0)
  1. ;;=^^1^1^
  1. ;;^DD(.81101,1,1,1,"%D",1,0)
  1. ;;=This cross reference allows sorting PROPERTIES by the ORDER in which they should be presented.
  1. ;;^DD(.81101,1,3)
  1. ;;=Type a Number between 1 and 99.9, 1 Decimal Digit
  1. ;;^DD(.81101,1,21,0)
  1. ;;=^^2^2^2951205^
  1. ;;^DD(.81101,1,21,1,0)
  1. ;;=Enter the relative order in which FileMan should prompt for this property
  1. ;;^DD(.81101,1,21,2,0)
  1. ;;=at field creation.
  1. ;;^DD(.81101,10,0)
  1. ;;=PROMPT?^K^^10;E1,245^K:$L(X)>245 X D:$D(X) ^DIM
  1. ;;^DD(.81101,10,3)
  1. ;;=This is Standard MUMPS code.
  1. ;;^DD(.81101,10,9)
  1. ;;=@
  1. ;;^DD(.81101,10,21,0)
  1. ;;=^^3^3^2951205^
  1. ;;^DD(.81101,10,21,1,0)
  1. ;;=Enter MUMPS code that sets $T. If $T evaluates to TRUE, then FileMan
  1. ;;^DD(.81101,10,21,2,0)
  1. ;;=will prompt for this property when a field of this Data Type is created.
  1. ;;^DD(.81101,10,21,3,0)
  1. ;;=A null value is equivalent to "I 1".
  1. ;;^DD(.81101,31,0)
  1. ;;=VALUE^F^^31;E1,245^K:$L(X)>245!($L(X)<1) X
  1. ;;^DD(.81101,31,3)
  1. ;;=Enter the string that will become the default value for this PROPERTY, 1 to 245 characters.
  1. ;;^DD(.81101,31,21,0)
  1. ;;=^^3^3
  1. ;;^DD(.81101,31,21,1,0)
  1. ;;=This value will be inserted into the definition of fields defined by this Data Type Property.
  1. ;;^DD(.81101,31,21,2,0)
  1. ;;=For a PROPERTY like FIELD LENGTH, the VALUE will be a number.
  1. ;;^DD(.81101,31,21,3,0)
  1. ;;=For a PROPERTY like SET OF CODES, the VALUE will be a string (like "1:TRUE;0:FALSE")
  1. ;;^DD(.81101,33,0)
  1. ;;=DEFAULT VALUE PROMPTED^F^^33;E1,245^K:$L(X)>245!($L(X)<1) X
  1. ;;^DD(.81101,33,3)
  1. ;;=Enter the string that will show as the expected value (internal form) for this PROPERTY, 1 to 245 characters.
  1. ;;^DD(.81101,33,21,0)
  1. ;;=^^3^3
  1. ;;^DD(.81101,33,21,1,0)
  1. ;;=This field should have a value only if, when a new FileMan field is being created (MODIFY FILE ATTRIBUTES),
  1. ;;^DD(.81101,33,21,2,0)
  1. ;;=the PROPERTY should be prompted with a default. For example, if a true/false PROPERTY normally takes a 'NO' value,
  1. ;;^DD(.81101,33,21,3,0)
  1. ;;=then this field has the value '0', which is usually the internal form of 'NO'.
  1. ;;^DD(.81201,0)
  1. ;;=METHOD SUB-FIELD^^31.1^4
  1. ;;^DD(.81201,0,"IX","B",.81201,.01)
  1. ;;=
  1. ;;^DD(.81201,0,"NM","METHOD")
  1. ;;=
  1. ;;^DD(.81201,0,"UP")
  1. ;;=.81
  1. ;;^DD(.81201,.01,0)
  1. ;;=METHOD^MP.87X^DI(.87,^0;1^S DINUM=X
  1. ;;^DD(.81201,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(.81201,.01,1,1,0)
  1. ;;=.81201^B
  1. ;;^DD(.81201,.01,1,1,1)
  1. ;;=S ^DI(.81,DA(1),201,"B",$E(X,1,30),DA)=""
  1. ;;^DD(.81201,.01,1,1,2)
  1. ;;=K ^DI(.81,DA(1),201,"B",$E(X,1,30),DA)
  1. ;;^DD(.81201,.01,3)
  1. ;;=Select a METHOD that needs to have MUMPS code for this DATA TYPE.
  1. ;;^DD(.81201,.01,21,0)
  1. ;;=^^1^1
  1. ;;^DD(.81201,.01,21,1,0)
  1. ;;=This step allows a programmer to change the name of or specify the METHOD.
  1. ;;^DD(.81201,31,0)
  1. ;;=M CODE^F^^31;E1,245^D ^DIM
  1. ;;^DD(.81201,31,3)
  1. ;;=Enter MUMPS code that will perform the METHOD
  1. ;;^DD(.81201,31,9)
  1. ;;=@
  1. ;;^DD(.81201,31,21,0)
  1. ;;=^^1^1
  1. ;;^DD(.81201,31,21,1,0)
  1. ;;=Code that will do what the METHOD requires.
  1. ;;^DD(.8121,0)
  1. ;;=DESCRIPTION SUB-FIELD^^.01^1
  1. ;;^DD(.8121,0,"NM","DESCRIPTION")
  1. ;;=
  1. ;;^DD(.8121,0,"UP")
  1. ;;=.81
  1. ;;^DD(.8121,.01,0)
  1. ;;=DESCRIPTION^W^^0;1^Q
  1. ;;^DD(.81215,0)
  1. ;;=FIELD DEFINED BY THIS TYPE SUB-FIELD^^.01^1
  1. ;;^DD(.81215,0,"NM","FIELD DEFINED BY THIS TYPE")
  1. ;;=
  1. ;;^DD(.81215,0,"UP")
  1. ;;=.81
  1. ;;^DD(.81215,.01,0)
  1. ;;=FIELD DEFINED BY THIS TYPE^F^^0;1^I X'?1.NP1","1.NP K X
  1. ;;^DD(.81215,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(.81215,.01,1,1,0)
  1. ;;=.81^AFDEF
  1. ;;^DD(.81215,.01,1,1,1)
  1. ;;=S ^DI(.81,"AFDEF",DA(1),$E(X,1,30),DA)=""
  1. ;;^DD(.81215,.01,1,1,2)
  1. ;;=K ^DI(.81,"AFDEF",DA(1),$E(X,1,30),DA)
  1. ;;^DD(.81215,.01,3)
  1. ;;=Enter a file number, then comma, then field number, of a field defined by this DATA TYPE