STANDARD DATA DICTIONARY #4.001 -- MASTER FILE PARAMETERS FILE                                                    6/27/25    PAGE 1
STORED IN ^DIC(4.001,  (40 ENTRIES)   SITE: WWW.BMIRWIN.COM   UCI: VISTA,VISTA                                     (VERSION 8.0)   

DATA          NAME                  GLOBAL        DATA
ELEMENT       TITLE                 LOCATION      TYPE
-----------------------------------------------------------------------------------------------------------------------------------
The file holds parameters related to the Master File Server (MFS).  
 
DO NOT EDIT THIS FILE! 
 
The parameters map HL7 segment data to standard FileMan data files.  Local modifications to this file will seriously disrupt
standard file updating and have negative consequences to existing VistA applications.  


              DD ACCESS: @
              RD ACCESS: @
              WR ACCESS: @
             DEL ACCESS: @
           LAYGO ACCESS: @
           AUDIT ACCESS: @

CROSS
REFERENCED BY: MASTER FILE(B), MFI CODE(MFI), MASTER FILE IDENTIFIER(MFID), SEGMENT NAME(ZZZ)

    LAST MODIFIED: APR 3,2018@17:24:22

4.001,.01     MASTER FILE            0;1 POINTER TO FILE FILE (#1) (Required)

              INPUT TRANSFORM:  S DINUM=X
              LAST EDITED:      DEC 26, 2003 
              HELP-PROMPT:      Select file to be supported by the Master File Server (MFS) mechanism. 
              DESCRIPTION:      This field is the Internal File Number (IFN) of the Master File table supported by the Master File
                                Server (MFS).  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER

              CROSS-REFERENCE:  4.001^B 
                                1)= S ^DIC(4.001,"B",$E(X,1,30),DA)=""
                                2)= K ^DIC(4.001,"B",$E(X,1,30),DA)


4.001,.02     SEGMENT NAME           0;2 FREE TEXT (Required)

              INPUT TRANSFORM:  K:$L(X)>3!($L(X)<3) X K:'$$F^XUMF(+$G(XUMF)) X
              LAST EDITED:      DEC 26, 2003 
              HELP-PROMPT:      Enter the HL7 data segment or Z segment name. 
              DESCRIPTION:
                                This field holds the name of the HL7 data segment that hold the actual table values.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER

              CROSS-REFERENCE:  4.001^ZZZ 
                                1)= S ^DIC(4.001,"ZZZ",$E(X,1,30),DA)=""
                                2)= K ^DIC(4.001,"ZZZ",$E(X,1,30),DA)
                                This x-ref is the segment name.  The MFS handler checks incoming message data segments against this 
                                x-ref to verify the file is supported.  



4.001,.03     MFI CODE               0;3 FREE TEXT (Required)

              INPUT TRANSFORM:  K:$L(X)>60!($L(X)<2) X
              LAST EDITED:      DEC 20, 2004 
              HELP-PROMPT:      Answer must be 2-60 characters in length. 
              DESCRIPTION:
                                This code identifies the master file.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER

              CROSS-REFERENCE:  4.001^MFI 
                                1)= S ^DIC(4.001,"MFI",$E(X,1,60),DA)=""
                                2)= K ^DIC(4.001,"MFI",$E(X,1,60),DA)
                                This x-ref is the Master File Identifier (MFI).  



4.001,.04     PRE-UPDATE ROUTINE     0;4 FREE TEXT (Required)

              INPUT TRANSFORM:  K:$L(X)>20!($L(X)<3) X K:'$$F^XUMF(+$G(XUMF)) X
              LAST EDITED:      DEC 26, 2003 
              HELP-PROMPT:      Enter the label of sub-routine in XUMFR to be executed prior to the MFS update. 
              DESCRIPTION:      This field holds the label of the sub-routine in XUMFR that gets called before an update by the MFS
                                for a data type segment.  
                                                                 
                                Enter the label without '^XUMFR'.  The sub-routine can assume the presence of the variables IFN and
                                IEN.  All local variables within the sub-routine must be NEW'd before using them.  
                                                                 
                                The default value for this field is 'PRE'.  The PRE sub-routine builds the current values of the
                                entry in question (associated with the IEN) into an array (^TMP("XUMF PRE",$J,SEQ) =fieldLabel_":
                                "_value). 
                                 
                                This field is required, so if you have no processing use NULL.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.001,.05     POST-UPDATE ROUTINE    0;5 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>20!($L(X)<3) X K:'$$F^XUMF(+$G(XUMF)) X
              LAST EDITED:      MAY 16, 2005 
              HELP-PROMPT:      Enter the label of sub-routine in XUMFR to be executed after MFS updates. 
              DESCRIPTION:      This field holds the label of the sub-routine in XUMFR that gets called after an update by the MFS
                                for a data type segment.  
                                 
                                Enter the label without '^XUMFR'.  The sub-routine can assume the presence of the variables IFN and
                                IEN.  All local variables within the sub-routine must be NEW'd before using them.  
                                 
                                The default value for this field is 'POST'.  The POST sub-routine builds the new values of the
                                entry in question (associated with the IEN) and compares them against the previous values (prior to
                                update) to determine if any values changed.  If the values have changed a MailMan notification is
                                sent to the XUMF SERVER mail group and the group identified by MAIL GROUP of this MASTER FILE
                                PARAMERS entry.  
                                 
                                Note: if the post-update routine calls POST^XUMFR then pre-update routine must call PRE^XUMFR.  
                                 
                                This field is required, so if you have no processing use NULL.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.001,.06     MAIL GROUP             0;6 POINTER TO MAIL GROUP FILE (#3.8)

              INPUT TRANSFORM:  K:'$$F^XUMF(+$G(XUMF)) X
              LAST EDITED:      DEC 26, 2003 
              HELP-PROMPT:      Enter the mail group that will receive update notifications. 
              DESCRIPTION:      This mail group will be notified when an HL7 unsolicited update message is received from the MFS
                                server.  This group will be notified in addition to the group XUMF SERVER.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.001,.07     MASTER FILE IDENTIFIER 0;7 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>30!($L(X)<2) X
              LAST EDITED:      MAY 16, 2006 
              HELP-PROMPT:      Answer must be 2-30 characters in length. 
              DESCRIPTION:
                                This field identifies the file to be updated.  

              WRITE AUTHORITY:  @
              CROSS-REFERENCE:  4.001^MFID 
                                1)= S ^DIC(4.001,"MFID",$E(X,1,30),DA)=""
                                2)= K ^DIC(4.001,"MFID",$E(X,1,30),DA)
                                This identifier is used in the HL7 segment to identify the file to be updated.  



4.001,.08     SORT BY                0;8 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>20!($L(X)<1) X
              LAST EDITED:      JUN 17, 2008 
              HELP-PROMPT:      Answer must be 1-20 characters in length. 
              DESCRIPTION:      The default sort by field is VUID.  Only supply alternate sort by field in the case of no VUID such
                                as files like mappings.  


4.001,.09     FILTER BY              0;9 FREE TEXT

              INPUT TRANSFORM:  K:$L(X)>40!($L(X)<1) X
              LAST EDITED:      JUN 17, 2008 
              HELP-PROMPT:      Answer must be 1-40 characters in length. 
              DESCRIPTION:
                                You can specify a query filter by field (column description.) 


4.001,1       COLUMN                 1;0 Multiple #4.011

              LAST EDITED:      APR 20, 2004 
              DESCRIPTION:      The COLUMN DESCRIPTION multiple maps the data type segment fields and components to FileMan fields
                                for a standard table.  There are additional fields within the sub-file to handle multiple field
                                types and extended references.  


4.011,.01       COLUMN DESCRIPTION     0;1 FREE TEXT (Multiply asked)

                INPUT TRANSFORM:  K:$L(X)>40!($L(X)<1) X
                LAST EDITED:      APR 20, 2004 
                HELP-PROMPT:      Answer must be 1-40 characters in length. 
                DESCRIPTION:      The column description is the identifier that names the data element that gets mapped to a 
                                  FileMan field.  The RDF segment (table row definition) has a field (the 3rd sequence) that is a
                                  repeating element.  The 1st component of the element is the column description.  It is the column
                                  name in central repository master table.  
                                   
                                  (The 2nd component is the HL7 data type.  The 3rd component is the length of the field.) 
                                                                  
                                  The RDF segment defines the format of subsequent RDT segment (table row data).  The sequence of
                                  column description fields in the RDF segment maps the sequence of the corresponding data values
                                  in the RDT segment.  
                                   
                                  (The 2nd field of the RDF segment is the number of columns or data elements passed in the RDF and
                                  RDT segments.) 

                CROSS-REFERENCE:  4.011^B 
                                  1)= S ^DIC(4.001,DA(1),1,"B",$E(X,1,30),DA)=""
                                  2)= K ^DIC(4.001,DA(1),1,"B",$E(X,1,30),DA)


4.011,.02       FIELD NUMBER           0;2 NUMBER (Required)

                INPUT TRANSFORM:  K:+X'=X!(X>999999999)!(X<.01)!(X?.E1"."8N.N) X ;  K:'$$ECHO^XUMF(DA(1),DA,X,+$G(XUMF)) X
                LAST EDITED:      APR 20, 2004 
                HELP-PROMPT:      Enter the field number for the data element. 
                DESCRIPTION:      This field holds the FileMan field number that corresponds to the segment sequence number in
                                  question.  
                                   
                                  If this sequence component maps to a FileMan sub-file (multiple) then the SUBFILE NUMBER (#.04)
                                  is required before FIELD NUMBER to be able to validate (input transform.) 

                NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.011,.03       HL7 DATA TYPE          0;3 POINTER TO HL7 DATA TYPE FILE (#771.4) (Required)

                INPUT TRANSFORM:  ;K:'$$F^XUMF(+$G(XUMF)) X
                LAST EDITED:      APR 20, 2004 
                HELP-PROMPT:      Enter the HL7 data type. 
                DESCRIPTION:
                                  This field holds the HL7 data type of the sequence.  

                NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.011,.04       SUBFILE NUMBER         0;4 NUMBER

                INPUT TRANSFORM:  K:+X'=X!(X>999999999)!(X<1)!(X?.E1"."10.N) X K:'$$F^XUMF(+$G(XUMF)) X
                LAST EDITED:      OCT 25, 2017 
                HELP-PROMPT:      If multiple field, enter sub-file number. 
                DESCRIPTION:      This field holds the FileMan sub-file number.  ONLY if FIELD NUMBER relates to a field in a
                                  multiple.  

                NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.011,.05       SUBFILE LKUP LITERAL   0;5 FREE TEXT

                INPUT TRANSFORM:  K:$L(X)>30!($L(X)<2) X K:'$$F^XUMF(+$G(XUMF)) X
                LAST EDITED:      DEC 26, 2003 
                HELP-PROMPT:      If subfile and .01 not in HL7 segment, enter literal value of the .01 
                DESCRIPTION:      If this sequence is a field in a subfile and the .01 of the multiple is not included in the HL7
                                  segment but is some literal, then provide the literal string here.  
                                   
                                  If SUBFILE LKUP LITERAL is NULL then SUBFILE LKUP SEQUENCE must not be NULL.  
                                   
                                  If SUBFILE LKUP LITERAL is not NULL then SUBFILE LKUP SEQUENCE must be NULL.  

                NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.011,.06       SUBFILE LKUP COLUMN    0;6 FREE TEXT

                INPUT TRANSFORM:  K:$L(X)>40!($L(X)<1) X
                LAST EDITED:      MAY 25, 2004 
                HELP-PROMPT:      Enter the COLUMN DESCRIPTION identifier that is the lookup (.01) to this field 
                DESCRIPTION:      If the FIELD NUMBER is associated with a multiple field, then this field holds the COLUMN
                                  DESCRIPTION of the .01 field of the multiple. 
                                   
                                  If the .01 field is not a sequence, then leave this field blank and provide a value for SUBFILE
                                  LKUP LITERAL.  
                                   
                                  If SUBFILE LKUP LITERAL is NULL then SUBFILE LKUP SEQUENCE must not be NULL.  
                                   
                                  If SUBFILE LKUP LITERAL is not NULL then SUBFILE LKUP SEQUENCE must be NULL.  


4.011,.07       EXTENDED POINTER LKUP  0;7 NUMBER

                INPUT TRANSFORM:  K:+X'=X!(X>999999999)!(X<.01)!(X?.E1"."8.N) X K:'$$F^XUMF(+$G(XUMF)) X
                LAST EDITED:      DEC 26, 2003 
                HELP-PROMPT:      Enter the field number which is the key to the extended reference of FIELD NAME if other than .01 
                DESCRIPTION:      If FIELD NUMBER is a pointer and you want to look-up the entry by a field other than its .01,
                                  then enter that field number.  
                                   
                                  Example: Parent facility, in the association multiple of the Institution file points to
                                  Institution.  The Institution NAME may not be unique.  It would be more useful to look-up the
                                  Institution by STATION NUMBER.  

                NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.011,.08       LIST                   0;8 SET

                                  '1' FOR YES; 
                                  '0' FOR NO; 
                LAST EDITED:      APR 13, 2006 
                HELP-PROMPT:      Is this a member of a sub-file to be compared against the message 

4.011,.09       COLUMN LENGTH          0;9 NUMBER (Required)

                INPUT TRANSFORM:  K:+X'=X!(X>99)!(X<1)!(X?.E1"."1N.N) X
                LAST EDITED:      MAY 25, 2004 
                HELP-PROMPT:      Type the maximum column width 
                DESCRIPTION:      This field holds the maximum column width of the column in question.  The column description is
                                  the 3rd sequence of the RDF segment.  It is a repeating element.  The maximum column width is the
                                  3rd component of the element.  


4.011,.11       REPEATING FIELD        0;11 SET

                                  '1' FOR YES; 
                                  '0' FOR NO; 
                LAST EDITED:      AUG 17, 2004 
                DESCRIPTION:      If this field is repeating - a single valued multiple (a multiple field with only a .01 field) -
                                  field, then set the flag to YES.  
                                   
                                  If the multiple should be cleaned out first, then also set the CLEAN MULTIPLE flag too.  


4.011,.12       CLEAN MULTIPLE         0;12 SET

                                  '1' FOR YES; 
                                  '0' FOR NO; 
                LAST EDITED:      AUG 17, 2004 
                HELP-PROMPT:      delete existing values before updating 
                DESCRIPTION:      If this field is a single valued repeating element (see REPEATING FIELD) and the existing values
                                  should be deleted before the update occurs, then set this flag to YES.  
                                   
                                  By setting this flag, you indicate all the valid data is contained within the incoming message,
                                  so purge existing values and start clean.  


4.011,.13       VUID PREFIX            0;13 FREE TEXT

                INPUT TRANSFORM:  K:$L(X)>10!($L(X)<1) X
                LAST EDITED:      OCT 19, 2004 
                HELP-PROMPT:      Enter string (i.e. "VUID") to indicate VUID value is passed instead of VALUE 
                DESCRIPTION:      String indicates that the field is a Pointer, and the VUID may be used instead of the value
                                  (.01).  
                                   
                                  Example:  Instead of Drug Class name, you may be use the VUID of the drug class such as
                                  "VUID123456", where 123456 is the VUID of the Drug Class and "VUID" is the prefix.  


4.011,.14       TIME ZONE FLAG         0;14 SET

                                  'L' FOR LOCAL; 
                                  'U' FOR UTC; 
                LAST EDITED:      MAR 17, 2005 
                HELP-PROMPT:      Should the local or UTC time be filed? 
                DESCRIPTION:      If this column/field represents a date data type then MFS needs to know how to handle the time
                                  zone.  
                                   
                                  This field indicates how FileMan should file the HL7 date -- local time or UTC time.  
                                   
                                  Note: VUID effective date/time should always be flagged LOCAL.  


4.011,.15       SEQUENCE               0;15 NUMBER

                INPUT TRANSFORM:  K:+X'=X!(X>999)!(X<1)!(X?.E1"."1N.N) X
                LAST EDITED:      MAR 06, 2006 
                HELP-PROMPT:      Type a Number between 1 and 999 
                DESCRIPTION:      The sequence number of the data segments returned in a query.  
                                   
                                  If this field is a Sub-file record, enter the sequence of the .01.  If the sequence has
                                  associated sub-record fields, use the SUBFILE SEQUENCE of this sequence number to sequence the
                                  fields of the sub-record.  

                CROSS-REFERENCE:  4.011^ASEQ 
                                  1)= S ^DIC(4.001,DA(1),1,"ASEQ",$E(X,1,30),DA)=""
                                  2)= K ^DIC(4.001,DA(1),1,"ASEQ",$E(X,1,30),DA)
                                  The sequence number of the data segments returned in a query.  Sub-file entries should use
                                  fractional digits to group data.  



4.011,.16       WP FIELD               0;16 SET

                                  '1' FOR YES; 
                                  '0' FOR NO; 
                LAST EDITED:      MAY 11, 2006 
                HELP-PROMPT:      Is this a Word Processing field 
                DESCRIPTION:
                                  If this field is a word processing field then set this flag to YES.  


4.011,1         SUBFILE SEQUENCE       1;0 Multiple #4.111


4.111,.01         SUBFILE SEQUENCE       0;1 NUMBER (Multiply asked)

                  INPUT TRANSFORM:  K:+X'=X!(X>99)!(X<1)!(X?.E1"."1N.N) X
                  LAST EDITED:      MAR 06, 2006 
                  HELP-PROMPT:      Type a Number between 1 and 99 
                  DESCRIPTION:      If the SEQUENCE is a subfile, and it has associated fields at the sub-file level, enter the
                                    sequence of sub-record fields.  

                  CROSS-REFERENCE:  4.111^B 
                                    1)= S ^DIC(4.001,DA(2),1,DA(1),1,"B",$E(X,1,30),DA)=""
                                    2)= K ^DIC(4.001,DA(2),1,DA(1),1,"B",$E(X,1,30),DA)

                  CROSS-REFERENCE:  4.111^ASEQ1 
                                    1)= S ^DIC(4.001,DA(2),1,DA(1),1,"ASEQ1",$E(X,1,30),DA)=""
                                    2)= K ^DIC(4.001,DA(2),1,DA(1),1,"ASEQ1",$E(X,1,30),DA)


4.111,.02         SUBFILE COLUMN NAME    0;2 FREE TEXT

                  INPUT TRANSFORM:  K:$L(X)>40!($L(X)<1) X
                  LAST EDITED:      MAY 25, 2006 
                  HELP-PROMPT:      Enter the subfile field # to be returned. 
                  DESCRIPTION:
                                    Enter the field name associated with the sub-file sequence for the sequence.  


4.111,.03         SUBFILE FIELD NUMBER   0;3 NUMBER

                  INPUT TRANSFORM:  K:+X'=X!(X>999999999)!(X<.001)!(X?.E1"."10N.N) X
                  LAST EDITED:      MAY 25, 2006 
                  HELP-PROMPT:      Enter the field number. 
                  DESCRIPTION:
                                    Enter the field name associated with the sub-file sequence for the sequence.  


4.111,.04         SUBFILE FIELD VUID     0;4 SET

                                    '1' FOR YES; 
                  LAST EDITED:      MAY 25, 2006 
                  DESCRIPTION:
                                    If this field references another file entry by VUID set the flag to YES, otherwise leave empty.  


4.111,.05         SUBFILE FIELD TYPE     0;5 FREE TEXT

                  INPUT TRANSFORM:  K:$L(X)>2!($L(X)<2) X
                  LAST EDITED:      MAY 25, 2006 
                  HELP-PROMPT:      Enter the 2 character HL7 data type. 
                  DESCRIPTION:
                                    This is the HL7 data type of the field.  The default is ST (string).  






4.001,2       POST-PROCESSING LOGIC  2;E1,245 MUMPS

              INPUT TRANSFORM:  K:$L(X)>245 X D:$D(X) ^DIM
              LAST EDITED:      FEB 07, 2006 
              HELP-PROMPT:      This is Standard MUMPS code. 
              DESCRIPTION:
                                This is Standard MUMPS code that gets executed after message processing.  

              WRITE AUTHORITY:  @

4.001,3       ADD-PROCESSING LOGIC   3;E1,245 MUMPS

              INPUT TRANSFORM:  K:$L(X)>245 X D:$D(X) ^DIM
              LAST EDITED:      MAY 22, 2006 
              HELP-PROMPT:      This is Standard MUMPS code. 
              DESCRIPTION:
                                This is Standard MUMPS code that gets executed before message processing.  

              WRITE AUTHORITY:  @

4.001,4       MFE-PROCESSING LOGIC   4;E1,245 MUMPS

              INPUT TRANSFORM:  K:$L(X)>245 X D:$D(X) ^DIM
              LAST EDITED:      FEB 07, 2006 
              HELP-PROMPT:      This is Standard MUMPS code. 
              DESCRIPTION:
                                This is Standard MUMPS code that gets executed for each MFE segment.  

              WRITE AUTHORITY:  @

4.001,4.1     MFE ID FIELD           MFE;1 NUMBER (Required)

              LAST EDITED:      DEC 30, 2003 
              HELP-PROMPT:      Enter the field # that corresponds to the PKV id. 
              DESCRIPTION:      This field holds the field number that corresponds to the ID of the Primary Key Value in MFE.  
                                 
                                This field # is the SDS field added to the file to store the internal identifier to the SDS
                                database.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.001,4.11    MFE ID TYPE            MFE;11 POINTER TO HL7 DATA TYPE FILE (#771.4) (Required)

              INPUT TRANSFORM:  K:'$$F^XUMF(+$G(XUMF)) X
              LAST EDITED:      DEC 26, 2003 
              HELP-PROMPT:      Enter HL7 data type. 
              DESCRIPTION:
                                MFE ID HL7 data type.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.001,4.12    MFE TEXT TYPE          MFE;12 POINTER TO HL7 DATA TYPE FILE (#771.4) (Required)

              INPUT TRANSFORM:  K:'$$F^XUMF(+$G(XUMF)) X
              LAST EDITED:      DEC 26, 2003 
              HELP-PROMPT:      Enter the HL7 data type. 
              DESCRIPTION:
                                Enter the MFE TEXT HL7 data type.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.001,4.14    MFE ALT ID TYPE        MFE;14 POINTER TO HL7 DATA TYPE FILE (#771.4) (Required)

              INPUT TRANSFORM:  K:'$$F^XUMF(+$G(XUMF)) X
              LAST EDITED:      DEC 26, 2003 
              HELP-PROMPT:      Enter the HL7 data type. 
              DESCRIPTION:
                                Enter the MFE ID HL7 data type.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.001,4.15    MFE ALT TEXT TYPE      MFE;15 POINTER TO HL7 DATA TYPE FILE (#771.4) (Required)

              INPUT TRANSFORM:  K:'$$F^XUMF(+$G(XUMF)) X
              LAST EDITED:      DEC 26, 2003 
              HELP-PROMPT:      Enter the HL7 data type. 
              DESCRIPTION:
                                Enter the MFE ALT TEXT HL7 data type.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.001,4.16    MFE PRE-UPDATE ROUTINE MFE;16 FREE TEXT (Required)

              INPUT TRANSFORM:  K:$L(X)>8!($L(X)<2) X K:'$$F^XUMF(+$G(XUMF)) X
              LAST EDITED:      DEC 26, 2003 
              HELP-PROMPT:      Enter the subroutine label that executes prior to MFE. 
              DESCRIPTION:      This field holds the label of the sub-routine in XUMFRMFE that gets called before an update by the
                                MFS for an MFE segment.  
                                 
                                Enter the label without '^XUMFRMFE'.  The sub-routine can assume the presence of the variable IFN. 
                                All local variables within the sub-routine must be NEW'd before using the.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.001,4.17    MFE POST-UPDATE ROUTINE MFE;17 FREE TEXT (Required)

              INPUT TRANSFORM:  K:$L(X)>8!($L(X)<2) X K:'$$F^XUMF(+$G(XUMF)) X
              LAST EDITED:      DEC 26, 2003 
              HELP-PROMPT:      Enter the subroutine label that executes after the MFE segment. 
              DESCRIPTION:      This field holds the label of the sub-routine in XUMFRMFE that gets called after an update by the
                                MFS for an MFE segment.                             
                                 
                                Enter the label without '^XUMFRMFE'.  The sub-routine can assume the presence of the variables IFN
                                and IEN.  All local variables within the sub-routine must be NEW'd before using them.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.001,4.2     MFE TEXT FIELD         MFE;2 NUMBER (Required)

              LAST EDITED:      DEC 30, 2003 
              HELP-PROMPT:      Enter the field # that corresponds to the PKV text. 
              DESCRIPTION:
                                This field holds the field number that corresponds to the TEXT of the Primary Key Value in MFE.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.001,4.3     MFE CODSYS             MFE;3 FREE TEXT (Required)

              INPUT TRANSFORM:  K:$L(X)>20!($L(X)<1) X K:'$$F^XUMF(+$G(XUMF)) X
              LAST EDITED:      DEC 26, 2003 
              HELP-PROMPT:      Enter the coding system for the MFE ID. 
              DESCRIPTION:
                                This field holds the coding system that corresponds to the ID of the Primary Key Value in MFE.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.001,4.4     MFE ALT ID FIELD       MFE;4 NUMBER (Required)

              LAST EDITED:      DEC 30, 2003 
              HELP-PROMPT:      Enter the field # that corresponds to the PKV alternate id. 
              DESCRIPTION:      This field holds the field number that corresponds to the alternate ID of the Primary Key Value in
                                MFE.  
                                 
                                The field # should be a key field to the file (not the SDS identifier field).  This field will be
                                used by MFS to determine which entry in the file corresponds to the PKV id if it hasn't been
                                already associated.  Ideally, this field is a unique key to the file.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.001,4.5     MFE ALT TEXT FIELD     MFE;5 NUMBER (Required)

              LAST EDITED:      DEC 30, 2003 
              HELP-PROMPT:      Enter the field # that corresponds to the PKV alternate text. 
              DESCRIPTION:      This field holds the field number that corresponds to the alternate TEXT of the Primary Key Value
                                in MFE.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.001,4.6     MFE ALT CODSYS         MFE;6 FREE TEXT (Required)

              INPUT TRANSFORM:  K:$L(X)>20!($L(X)<2) X K:'$$F^XUMF(+$G(XUMF)) X
              LAST EDITED:      DEC 26, 2003 
              HELP-PROMPT:      Enter the alternate coding system of the PKV. 
              DESCRIPTION:      This field holds the alternate coding system that corresponds to the ID of the Primary Key Value in
                                MFE.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.001,4.7     MFE PKV TYPE           MFE;7 POINTER TO HL7 DATA TYPE FILE (#771.4) (Required)

              INPUT TRANSFORM:  K:'$$F^XUMF(+$G(XUMF)) X
              LAST EDITED:      DEC 26, 2003 
              HELP-PROMPT:      Enter the PKV type (i.e., CE or PL) CE or Composite Element. 
              DESCRIPTION:      This field holds the Primary Key Value data type.  Valid values stored in HL7 Table 0355 - Primary
                                key value type.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.001,4.8     MFE PKV X-REF          MFE;8 FREE TEXT (Required)

              INPUT TRANSFORM:  K:$L(X)>10!($L(X)<1) X K:'$$F^XUMF(+$G(XUMF)) X
              LAST EDITED:      DEC 26, 2003 
              HELP-PROMPT:      Enter the FM x-ref of non-SDS key field - MFE.4.4 
              DESCRIPTION:      This field hold the FileMan cross-reference of the Primary Key Value (PKV).  
                                 
                                Since MFE.4.1 is the SDS internal identifier then provide the alternate ID (MFE.4.4)
                                cross-reference.  The natural FileMan key x-ref that corresponds to the alt id.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.001,4.9     ASSIGNING AUTHORITY    MFE;9 FREE TEXT (Required)

              INPUT TRANSFORM:  K:$L(X)>20!($L(X)<2) X K:'$$F^XUMF(+$G(XUMF)) X
              LAST EDITED:      DEC 26, 2003 
              HELP-PROMPT:      Enter the entity responsible for assigning IDs for coding system. 
              DESCRIPTION:      This field holds the assigning authority responsible for the code system used in the HL7 MFE PKV
                                segment sequence.  
                                 
                                See QRD segment.  Who Subject Filter.  
                                 
                                This field holds the code that identifies the standards body, or in the case of VA specific data
                                the routing symbol (or other identifying code) of the data owner of steward.  
                                 
                                If all else fails, use 'VA' as the code.  

              NOTES:            XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER


4.001,5       ZRT-PROCESSING LOGIC   5;E1,245 MUMPS

              INPUT TRANSFORM:  K:$L(X)>245 X D:$D(X) ^DIM
              LAST EDITED:      FEB 07, 2006 
              HELP-PROMPT:      This is Standard MUMPS code. 
              DESCRIPTION:
                                This is Standard MUMPS code that gets executed for each ZRT segment.  

              WRITE AUTHORITY:  @

4.001,6       ZRT-DISCOVERY LOGIC    6;E1,245 MUMPS

              INPUT TRANSFORM:  K:$L(X)>245 X D:$D(X) ^DIM
              LAST EDITED:      JAN 19, 2017 
              HELP-PROMPT:      Enter Standard MUMPS code. 
              DESCRIPTION:
                                This is standard MUMPS code that gets execute in DISCOVERY for each ZRT segment.  

              WRITE AUTHORITY:  @


      FILES POINTED TO                      FIELDS

FILE (#1)                         MASTER FILE (#.01)

HL7 DATA TYPE (#771.4)            MFE ID TYPE (#4.11)
                                  MFE TEXT TYPE (#4.12)
                                  MFE ALT ID TYPE (#4.14)
                                  MFE ALT TEXT TYPE (#4.15)
                                  MFE PKV TYPE (#4.7)
                                  FIELD^NL^1^16:HL7 DATA TYPE (#.03)

MAIL GROUP (#3.8)                 MAIL GROUP (#.06)



INPUT TEMPLATE(S):
XUMF MFP EDIT                 MAR 17, 2005@07:22  USER #0    

PRINT TEMPLATE(S):

SORT TEMPLATE(S):

FORM(S)/BLOCK(S):