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

DINIT0FB.m

Go to the documentation of this file.
  1. DINIT0FB ;SFISC/MKO-DATA FOR FORM AND BLOCK FILES ;8:34 AM 18 Jan 2000
  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(ENTRY+I) G:X="" ^DINIT0FC S Y=$E($T(ENTRY+I+1),5,999),X=$E(X,4,999),@X=Y
  1. Q
  1. ENTRY ;
  1. ;;^DIST(.404,.110107,40,4,14)
  1. ;;=I $G(DUZ(0))'="@" S DDSERROR=1 D HLP^DDSUTL($C(7)_"Only programmers are allowed to edit the Transform for Storage.")
  1. ;;^DIST(.404,.110107,40,5,0)
  1. ;;=7^Maximum Length^3
  1. ;;^DIST(.404,.110107,40,5,1)
  1. ;;=6
  1. ;;^DIST(.404,.110107,40,5,2)
  1. ;;=7,18^3^7,2
  1. ;;^DIST(.404,.110107,40,5,13)
  1. ;;=S:$$GET^DDSVAL(.114,.DA,.5) DIKCCRV=1
  1. ;;^DIST(.404,.110107,40,6,0)
  1. ;;=8^Collation^3
  1. ;;^DIST(.404,.110107,40,6,1)
  1. ;;=7
  1. ;;^DIST(.404,.110107,40,6,2)
  1. ;;=7,58^9^7,47
  1. ;;^DIST(.404,.110107,40,6,3)
  1. ;;=forwards
  1. ;;^DIST(.404,.110107,40,7,0)
  1. ;;=9^Lookup Prompt^3
  1. ;;^DIST(.404,.110107,40,7,1)
  1. ;;=8
  1. ;;^DIST(.404,.110107,40,7,2)
  1. ;;=8,18^30^8,3
  1. ;;^DIST(.404,.110107,40,8,0)
  1. ;;=5^File^3
  1. ;;^DIST(.404,.110107,40,8,1)
  1. ;;=2
  1. ;;^DIST(.404,.110107,40,8,2)
  1. ;;=4,58^20^4,52
  1. ;;^DIST(.404,.110107,40,8,3)
  1. ;;=!M
  1. ;;^DIST(.404,.110107,40,8,3.1)
  1. ;;=S Y=$$GET^DDSVAL(.11,DA(1),.51)
  1. ;;^DIST(.404,.110107,40,8,4)
  1. ;;=1^^^1
  1. ;;^DIST(.404,.110107,40,8,14)
  1. ;;=N RF S RF=$$GET^DDSVAL(.11,DA(1),.51) I X'=RF S DDSERROR=1 D HLP^DDSUTL("This File number must equal the Root File number: "_RF_".")
  1. ;;^DIST(.404,.110107,40,9,0)
  1. ;;=4^Field^3^^FIELD
  1. ;;^DIST(.404,.110107,40,9,1)
  1. ;;=3
  1. ;;^DIST(.404,.110107,40,9,2)
  1. ;;=4,18^20^4,11
  1. ;;^DIST(.404,.110107,40,9,4)
  1. ;;=1
  1. ;;^DIST(.404,.110107,40,9,13)
  1. ;;=S:X=""!(DDSOLD="") DIKCCRV=1 I $$GET^DDSVAL(.114,.DA,.5) N DIKCTYPE S DIKCTYPE=$P($G(^DD($$GET^DDSVAL(.114,.DA,2),+X,0)),U,2) D PUT^DDSVAL(.114,.DA,6,$S(DIKCTYPE["F"!(DIKCTYPE["K"):30,1:""),"","I")
  1. ;;^DIST(.404,.110107,40,10,0)
  1. ;;=6^Field Name^4
  1. ;;^DIST(.404,.110107,40,10,2)
  1. ;;=5,18^60^5,6
  1. ;;^DIST(.404,.110107,40,10,30)
  1. ;;=N DIKCFIL,DIKCFLD S Y="",DIKCFIL=+{FILE},DIKCFLD=+{FIELD} I DIKCFIL,DIKCFLD S Y=$P($G(^DD(DIKCFIL,DIKCFLD,0)),U) S:$L(Y)>60 Y=$E(Y,1,57)_"..."
  1. ;;^DIST(.404,.110107,40,11,0)
  1. ;;=12^Transform for Display^3^^TRANSFORM FOR DISPLAY
  1. ;;^DIST(.404,.110107,40,11,1)
  1. ;;=5.5
  1. ;;^DIST(.404,.110107,40,11,2)
  1. ;;=11,25^53^11,2
  1. ;;^DIST(.404,.110107,40,11,14)
  1. ;;=I $G(DUZ(0))'="@" S DDSERROR=1 D HLP^DDSUTL($C(7)_"Only programmers are allowed to edit the Transform for Display.")
  1. ;;^DIST(.404,.110107,40,12,0)
  1. ;;=11^Transform for Lookup^3
  1. ;;^DIST(.404,.110107,40,12,1)
  1. ;;=5.3
  1. ;;^DIST(.404,.110107,40,12,2)
  1. ;;=10,25^53^10,3
  1. ;;^DIST(.404,.110107,40,12,14)
  1. ;;=I $G(DUZ(0))'="@" S DDSERROR=1 D HLP^DDSUTL($C(7)_"Only programmers are allowed to edit the Transform for Lookup.")
  1. ;;^DIST(.404,.110108,0)
  1. ;;=DIKC EDIT COMPUTED CRV^.114
  1. ;;^DIST(.404,.110108,40,0)
  1. ;;=^.4044I^8^7
  1. ;;^DIST(.404,.110108,40,1,0)
  1. ;;=1^ Computed-Type Cross Reference Value ^1
  1. ;;^DIST(.404,.110108,40,1,2)
  1. ;;=^^1,21
  1. ;;^DIST(.404,.110108,40,2,0)
  1. ;;=2^Order Number^3
  1. ;;^DIST(.404,.110108,40,2,1)
  1. ;;=.01
  1. ;;^DIST(.404,.110108,40,2,2)
  1. ;;=3,21^3^3,7
  1. ;;^DIST(.404,.110108,40,2,13)
  1. ;;=S:$$GET^DDSVAL(.114,.DA,.5) DIKCCRV=1
  1. ;;^DIST(.404,.110108,40,3,0)
  1. ;;=3^Subscript Number^3
  1. ;;^DIST(.404,.110108,40,3,1)
  1. ;;=.5
  1. ;;^DIST(.404,.110108,40,3,2)
  1. ;;=4,21^3^4,3
  1. ;;^DIST(.404,.110108,40,3,13)
  1. ;;=S:X=""!(DDSOLD="") DIKCCRV=1
  1. ;;^DIST(.404,.110108,40,4,0)
  1. ;;=5^Maximum Length^3
  1. ;;^DIST(.404,.110108,40,4,1)
  1. ;;=6
  1. ;;^DIST(.404,.110108,40,4,2)
  1. ;;=5,21^3^5,5
  1. ;;^DIST(.404,.110108,40,4,13)
  1. ;;=S:$$GET^DDSVAL(.114,.DA,.5) DIKCCRV=1
  1. ;;^DIST(.404,.110108,40,5,0)
  1. ;;=4^Lookup Prompt^3
  1. ;;^DIST(.404,.110108,40,5,1)
  1. ;;=8
  1. ;;^DIST(.404,.110108,40,5,2)
  1. ;;=4,48^30^4,33
  1. ;;^DIST(.404,.110108,40,6,0)
  1. ;;=6^Collation^3
  1. ;;^DIST(.404,.110108,40,6,1)
  1. ;;=7
  1. ;;^DIST(.404,.110108,40,6,2)
  1. ;;=5,48^9^5,37
  1. ;;^DIST(.404,.110108,40,8,0)
  1. ;;=7^Computed Code^3
  1. ;;^DIST(.404,.110108,40,8,1)
  1. ;;=4.5
  1. ;;^DIST(.404,.110108,40,8,2)
  1. ;;=7,18^60^7,3
  1. ;;^DIST(.404,.110108,40,8,4)
  1. ;;=1
  1. ;;^DIST(.404,.110108,40,8,14)
  1. ;;=I $G(DUZ(0))'="@" S DDSERROR=1 D HLP^DDSUTL($C(7)_"Only programmers are allowed to edit the Computed Code.")
  1. ;;^DIST(.404,.11021,0)
  1. ;;=DIKC EDIT UI MAIN^.11
  1. ;;^DIST(.404,.11021,40,0)
  1. ;;=^.4044I^9^9
  1. ;;^DIST(.404,.11021,40,1,0)
  1. ;;=1^File^3
  1. ;;^DIST(.404,.11021,40,1,1)
  1. ;;=.01
  1. ;;^DIST(.404,.11021,40,1,2)
  1. ;;=1,15^20^1,9
  1. ;;^DIST(.404,.11021,40,1,13)
  1. ;;=D BLDLOG^DIKCFORM(DA)
  1. ;;^DIST(.404,.11021,40,1,14)
  1. ;;=D VALFILE^DIKCFORM
  1. ;;^DIST(.404,.11021,40,2,0)
  1. ;;=2^Root File^3
  1. ;;^DIST(.404,.11021,40,2,1)
  1. ;;=.51
  1. ;;^DIST(.404,.11021,40,2,2)
  1. ;;=1,60^20^1,49
  1. ;;^DIST(.404,.11021,40,2,4)
  1. ;;=^^^1
  1. ;;^DIST(.404,.11021,40,3,0)
  1. ;;=3^Index Name^3
  1. ;;^DIST(.404,.11021,40,3,1)
  1. ;;=.02
  1. ;;^DIST(.404,.11021,40,3,2)
  1. ;;=2,15^30^2,3
  1. ;;^DIST(.404,.11021,40,3,13)
  1. ;;=D NAMECHG^DIKCFORM
  1. ;;^DIST(.404,.11021,40,3,14)
  1. ;;=D NAMEVAL^DIKCFORM
  1. ;;^DIST(.404,.11021,40,4,0)
  1. ;;=4^Root Type^3
  1. ;;^DIST(.404,.11021,40,4,1)
  1. ;;=.5
  1. ;;^DIST(.404,.11021,40,4,2)
  1. ;;=2,60^16^2,49
  1. ;;^DIST(.404,.11021,40,4,4)
  1. ;;=^^^1
  1. ;;^DIST(.404,.11021,40,5,0)
  1. ;;=5^Short Description^3
  1. ;;^DIST(.404,.11021,40,5,1)
  1. ;;=.11
  1. ;;^DIST(.404,.11021,40,5,2)
  1. ;;=4,20^60^4,1
  1. ;;^DIST(.404,.11021,40,5,11)
  1. ;;=D HLP^DDSUTL(X)
  1. ;;^DIST(.404,.11021,40,6,0)
  1. ;;=6^Description (wp)^3
  1. ;;^DIST(.404,.11021,40,6,1)
  1. ;;=.1
  1. ;;^DIST(.404,.11021,40,6,2)
  1. ;;=5,20^1^5,2
  1. ;;^DIST(.404,.11021,40,7,0)
  1. ;;=7^!M^1
  1. ;;^DIST(.404,.11021,40,7,.1)
  1. ;;=N WPROOT S WPROOT=$$GET^DDSVAL(.11,.DA,.1),Y=$S(WPROOT]"":$G(@WPROOT@(1,0)),1:""),Y=$S(Y]"":"["_$E(Y,1,56)_"]",1:"(empty)")
  1. ;;^DIST(.404,.11021,40,7,2)
  1. ;;=^^5,23
  1. ;;^DIST(.404,.11021,40,8,0)
  1. ;;=8^Set Logic^3
  1. ;;^DIST(.404,.11021,40,8,1)
  1. ;;=1.1
  1. ;;^DIST(.404,.11021,40,8,2)
  1. ;;=14,13^67^14,2
  1. ;;^DIST(.404,.11021,40,8,4)
  1. ;;=^^^2
  1. ;;^DIST(.404,.11021,40,8,11)
  1. ;;=D HLP^DDSUTL(X)
  1. ;;^DIST(.404,.11021,40,9,0)
  1. ;;=9^Kill Logic^3
  1. ;;^DIST(.404,.11021,40,9,1)
  1. ;;=2.1
  1. ;;^DIST(.404,.11021,40,9,2)
  1. ;;=15,13^67^15,1
  1. ;;^DIST(.404,.11021,40,9,4)
  1. ;;=^^^2
  1. ;;^DIST(.404,.11021,40,9,11)
  1. ;;=D HLP^DDSUTL(X)
  1. ;;^DIST(.404,.11022,0)
  1. ;;=DIKC EDIT UI HDR^.11
  1. ;;^DIST(.404,.11022,40,0)
  1. ;;=^.4044I^4^4
  1. ;;^DIST(.404,.11022,40,1,0)
  1. ;;=1^Number^4
  1. ;;^DIST(.404,.11022,40,1,2)
  1. ;;=1,9^15^1,1
  1. ;;^DIST(.404,.11022,40,1,30)
  1. ;;=S Y=DA
  1. ;;^DIST(.404,.11022,40,2,0)
  1. ;;=2^EDIT A UNIQUENESS INDEX^1
  1. ;;^DIST(.404,.11022,40,2,2)
  1. ;;=^^1,30
  1. ;;^DIST(.404,.11022,40,3,0)
  1. ;;=3^Page 1 of 1^1
  1. ;;^DIST(.404,.11022,40,3,2)
  1. ;;=^^1,69
  1. ;;^DIST(.404,.11022,40,4,0)
  1. ;;=4^-------------------------------------------------------------------------------^1
  1. ;;^DIST(.404,.11022,40,4,2)
  1. ;;=^^2,1
  1. ;;^DIST(.404,.11023,0)
  1. ;;=DIKC EDIT UI CRV^.114
  1. ;;^DIST(.404,.11023,40,0)
  1. ;;=^.4044I^4^4
  1. ;;^DIST(.404,.11023,40,1,0)
  1. ;;=1^^3^^ORDER
  1. ;;^DIST(.404,.11023,40,1,1)
  1. ;;=.01
  1. ;;^DIST(.404,.11023,40,1,2)
  1. ;;=1,3^3
  1. ;;^DIST(.404,.11023,40,1,4)
  1. ;;=^^^2
  1. ;;^DIST(.404,.11023,40,1,14)
  1. ;;=I X="" D HLP^DDSUTL($C(7)_"Deletion not allowed.") S DDSERROR=1
  1. ;;^DIST(.404,.11023,40,2,0)
  1. ;;=2^^3^^SUBSCRIPT
  1. ;;^DIST(.404,.11023,40,2,1)
  1. ;;=.5
  1. ;;^DIST(.404,.11023,40,2,2)
  1. ;;=1,12^3
  1. ;;^DIST(.404,.11023,40,2,4)
  1. ;;=^^^1
  1. ;;^DIST(.404,.11023,40,3,0)
  1. ;;=3^^3^^LENGTH