visit the hl7 website The Demo site for our new HL7 Version 2+ (plus) Standard

18.8.80 MFE - Master File Entry Segment (8.5.2)

The Technical Steward for the MFE segment is Infrastructure and Messaging.

HL7 Attribute Table - MFE - Master File Entry

Base Framework
Seq#Data ElementDescriptionFlagsImplementCardinalityLengthC.LENVocabularyData Type
MFE
100664Record-Level Event Code SHALL[1..1][3..3]univ: Masterfile Action Code (CD) hl7VS-masterfileActionCode (VS) masterfileActionCode (CS)
ID

Coded Value for HL7 Defined Tables


200665MFN Control ID
C

Condition defined for this element

=

Truncation not allowed!

MAY[0..1] 20
ST

String Data

300662Effective Date/Time MAY[0..1] 
DTM

Date/Time

400667Primary Key Value - MFE SHOULD[1..*] PrimaryKeyValue-MFE (CD)
Varies

variable data type

501319Primary Key Value Type SHALL[1..*][2..3]univ: PrimaryKeyValueType (CD) hl7VS-primaryKeyValueType (VS) primaryKeyValueType (CS)
ID

Coded Value for HL7 Defined Tables

600661Entered Date/Time MAY[0..1] 
DTM

Date/Time

700224Entered By MAY[0..1] 
XCN

Extended Composite ID Number and Name for Persons

Conditions/Invariants

The root for the expression is on the segment.

Seq. Referenced Elements Introduction Invariant Comment
1 ?

Seq#Data ElementDescriptionFlagsImplementCardinalityLengthC.LENVocabularyData Type
MFE
100664Record-Level Event Code SHALL[1..1][3..3]univ: Masterfile Action Code (CD) hl7VS-masterfileActionCode (VS) masterfileActionCode (CS)
ID

Coded Value for HL7 Defined Tables


200665MFN Control ID
C

Condition defined for this element

=

Truncation not allowed!

MAY[0..1] 20
ST

String Data

300662Effective Date/Time MAY[0..1] 
DTM

Date/Time

400667Primary Key Value - MFE SHALL[1..*] PrimaryKeyValue-MFE (CD)
Varies

variable data type

501319Primary Key Value Type SHALL[1..*][2..3]univ: PrimaryKeyValueType (CD) hl7VS-primaryKeyValueType (VS) primaryKeyValueType (CS)
ID

Coded Value for HL7 Defined Tables

600661Entered Date/Time MAY[0..1] 
DTM

Date/Time

700224Entered By MAY[0..1] 
XCN

Extended Composite ID Number and Name for Persons

Base FrameworkBase Standard Profile
Seq#Data ElementDescriptionFlagsImplementCardinalityLengthC.LENVocabularyData TypeImplementVocabulary
MFE 
100664Record-Level Event Code SHALL[1..1][3..3]univ: Masterfile Action Code (CD) hl7VS-masterfileActionCode (VS) masterfileActionCode (CS)
ID

Coded Value for HL7 Defined Tables

SHALL 

200665MFN Control ID
C

Condition defined for this element

=

Truncation not allowed!

MAY[0..1] 20
ST

String Data

MAY
300662Effective Date/Time MAY[0..1] 
DTM

Date/Time

MAY
400667Primary Key Value - MFE SHOULD[1..*] PrimaryKeyValue-MFE (CD)
Varies

variable data type

SHALL
501319Primary Key Value Type SHALL[1..*][2..3]univ: PrimaryKeyValueType (CD) hl7VS-primaryKeyValueType (VS) primaryKeyValueType (CS)
ID

Coded Value for HL7 Defined Tables

SHALL 
600661Entered Date/Time MAY[0..1] 
DTM

Date/Time

MAY
700224Entered By MAY[0..1] 
XCN

Extended Composite ID Number and Name for Persons

MAY
Base Framework Base Standard Profile
Seq# Data Element Description Flags Optionality Repetition Length C.LEN Table Data Type Optionality Table
MFE  
1 00664 Record-Level Event Code   O   [3..3] (0180)
ID

Coded Value for HL7 Defined Tables

R  

2 00665 MFN Control ID
C

Condition defined for this element

O     20=  
ST

String Data

   
3 00662 Effective Date/Time   O      
DTM

Date/Time

   
4 00667 Primary Key Value - MFE   O Y   (0608)
Varies

variable data type

R  
5 01319 Primary Key Value Type   O Y [2..3] (0355)
ID

Coded Value for HL7 Defined Tables

R  
6 00661 Entered Date/Time   O      
DTM

Date/Time

   
7 00224 Entered By   O      
XCN

Extended Composite ID Number and Name for Persons

   
Seq# Data Element Description Optionality Repetition Length C.LEN Table Data Type
MFE
1 00664 Record-Level Event Code R   [3..3] (0180)
ID

Coded Value for HL7 Defined Tables

2 00665 MFN Control ID C     20=  
ST

String Data

3 00662 Effective Date/Time O      
DTM

Date/Time

4 00667 Primary Key Value - MFE R Y   (0608)
Varies

variable data type

5 01319 Primary Key Value Type R Y [2..3] (0355)
ID

Coded Value for HL7 Defined Tables

6 00661 Entered Date/Time O      
DTM

Date/Time

7 00224 Entered By O      
XCN

Extended Composite ID Number and Name for Persons

18.8.80.1 MFE Field Definitions (8.5.2.0)

18.8.80.2 MFE-1 Record-Level Event Code (ID) 00664 (8.5.2.1)

Definition: This field defines the record-level event for the master file record identified by the MFI segment and the primary key field in this segment. Refer to HL7 Table 0180 - Record Level Event Code in Chapter 2C, Code Tables, for valid values.

Note: If the MFI-3 - File-level event code is "REP" (replace file), then each MFE segment must have an MFE-1 - Record-level event code of "MAD" (add record to master file).

18.8.80.3 MFE-2 MFN Control ID (ST) 00665 (8.5.2.2)

Definition: A number or other identifier that uniquely identifies this change to this record from the point of view of the originating system. When returned to the originating system via the MFA segment, this field allows the target system to precisely identify which change to this record is being acknowledged. It is only required if the MFI response level code requires responses at the record level (any value other than NE).

Note: Note that this segment does not contain a Set ID field. The MFE-2 - MFN Control ID implements a more general concept than the Set ID. It takes the place of the SET ID in the MFE segment.

18.8.80.4 MFE-3 Effective Date/Time (DTM) 00662 (8.5.2.3)

Definition: An optional effective date/time can be included for the record-level action specified. It is the date/time the originating system expects that the event is to have been completed on the receiving system. If this field is not present, the effective date/time should default to the current date/time (when the message is received).

18.8.80.5 MFE-4 Primary Key Value - MFE (Varies) 00667 (8.5.2.4)

Definition: This field uniquely identifies the record of the master file (identified in the MFI segment) to be changed (as defined by the record-level event code). The data type of field is defined by the value of MFE-5 - Value Type, and may take on the format of any of the HL7 data types defined in HL7 Table 0355 - Primary Key Value Type in Chapter 2C, Code Tables. The PL data type is used only on Location master transactions. Refer to Table 0608 - Primary Key Value - MFE in Chapter 2C for valid values.

The repetition of the primary key permits the identification of an individual component of a complex record as the object of the record-level event code. This feature allows the Master Files protocol to be used for modifications of single components of complex records. If this field repeats, the field MFE-5 - Value Type must also repeat (with the same number of repetitions), and the data type of each repetition of MFE-4 - Primary Key Value - MFE is specified by the corresponding repetition of MFE-5 - Value Type.

18.8.80.6 MFE-5 Primary Key Value Type (ID) 01319 (8.5.2.5)

Definition: This field contains the HL7 data type of MFE-4 - Primary Key Value - MFE. The valid values for the data type of a primary key are listed in HL7 Table 0355 - Primary Key Value Type in Chapter 2C, Code Tables.

18.8.80.7 MFE-6 Entered Date/Time (DTM) 00661 (8.5.2.6)

Definition: This field contains the date and time of the last change of the record.

18.8.80.8 MFE-7 Entered By (XCN) 00224 (8.5.2.7)

Definition: This field contains the identity of the person who actually keyed the master file entry into the application. It provides an audit trail in case the request is entered incorrectly and the ancillary department needs to clarify the request.