C. Version 2.6 BNF Message Descriptions

ORC OBR OBX RXA RXC RXO RXR RXG RXD RXE ODS ODT RQ1 RQD MSHorr1 MSHorr2 C.2.3 BNF Message Definitions The following is a listing of the BNF message de...

0 downloads 1 Views 76KB Size
C. Version 2.6 BNF Message Descriptions Editor:

Karen Van Hentenryck Health Level Seven

C.1

APPENDIX C CONTENTS

C.1

APPENDIX C CONTENTS....................................................................................................................... C-1

C.2

BNF DESCRIPTIONS OF HL7 VERSION 2.5 ABSTRACT MESSAGES ......................................... C-1

C.2.1 OVERVIEW ..............................................................................................................................................C-1 C.2.2 TOKENS ..................................................................................................................................................C-2 C.2.2.1 Terminators ...................................................................................................................................C-2 C.2.2.2 Segments ........................................................................................................................................C-2 C.2.2.2.1 C.2.2.2.2 C.2.2.2.3 C.2.2.2.4 C.2.2.2.5

C.2.3

Control/query............................................................................................................................................. C-2 Master files ................................................................................................................................................ C-2 Patient administration ............................................................................................................................. C-2 Financial information ................................................................................................................................ C-2 Orders/Observations .................................................................................................................................. C-2

BNF MESSAGE DEFINITIONS ..................................................................................................................C-2

C.2 BNF DESCRIPTIONS OF HL7 VERSION 2.6 ABSTRACT MESSAGES C.2.1

Overview This appendix gives examples of BNF representations of abstract message definitions at the segment level for HL7, version 2.6. It does not specify the field-level or data-type definitions nor does it define the message exchange protocol. It is not the only possible set of BNF productions capable of describing these messages, since the choice of tokens for certain segments and messages is to some extent arbitrary (e.g., should the EVN segment have a single token, or many?), as are the forms used to define recursion. In the definitions that follow an attempt has been made both to follow the general use of message definitions given in the various chapters and to resolve questions of ambiguity. For more information on BNF, see Compiler Design in C ; Allen I. Holub; Prentice Hall; Englewood Cliffs, New Jersey; 1990.

Health Level Seven, Version 2.6 © 2007. All rights reserved.Page C-1 Final Standard

October 2007.

Appendix C: BNF Message Descriptions

C.2.2

Tokens

C.2.2.1

Terminators EOM End of message. Not formally part of HL7 abstract message definition, nor of the encoding rules: hence optional from the point of view of the abstract message definitions and encoding rules. Included here to add to clarity and to the usefulness of the BNF descriptions in generating HL7 parsers. ST

Segment terminator.

SOM Start of Message. Not formally part of HL7 abstract message definition, nor of the encoding rules: hence optional from the point of view of the abstract message definitions and encoding rules. Included here to add to clarity and to the usefulness of the BNF descriptions in generating HL7 parsers. C.2.2.2

Segments

C.2.2.2.1

Control/query

MSH MSA ERR NTE QRD QRF DSC URS URD DSP MSHmcf C.2.2.2.2

Master files

MFE MFI MFA C.2.2.2.3 Patient administration EVN EVNA01 EVNA02 EVNA03 EVNA04 EVNA05 EVNA06 EVNA07 EVNA08 EVNA0 EVNA10 EVNA11 EVNA12 EVNA13 EVNA14 EVNA15 EVNA16 EVNA17 EVNA18 EVNA19 EVNA20 EVNA21 EVNA22 EVNA23 EVNA24 EVNA25 EVNA26 EVNA27 EVNA28 EVNA29 EVNA30 EVNA31 EVNA32 EVNA33 EVNA34 EVNA35 EVNA36 EVNA37 PID PV1 DG1 PR1 NK1 PV2 ACC AL1 IN1 IN2 IN3 UB1 UB2 NPU MRG C.2.2.2.4

Financial information

GT1 FT1 BLG EVNP01 EVNP02 EVNP03 C.2.2.2.5

Orders/Observations

ORC OBR OBX RXA RXC RXO RXR RXG RXD RXE ODS ODT RQ1 RQD MSHorr1 MSHorr2

C.2.3

BNF Message Definitions The following is a listing of the BNF message descriptions, using the tokens defined above. It includes the accompanying segment groups used in producing the messages. Comments within the file are delimited by "/*" (comment start) and "*/" (comment end). hl7Msgs: ack

Page C-2 October 2007

/* General acknowledgment

*/

|

mcf

/* Delayed acknowledgment message.

|

qry

/* Query message.

*/

|

dsr

/* Display response message.

*/

|

udm

/* Unsolicited display message.

*/

*/

Health Level Seven, Version 2.6 © 2007. All rights reserved. Final Standard

Appendix C: BNF Message Descriptions |

adt

/* Admissions, discharge, transfer. */

|

orm

/* Order message.

*/

|

orr

/* Order message response.

*/

|

rxo

/* Pharmacy order. */

|

rde

/* Pharmacy order information.

|

rds

/* Pharmacy dispense information.

|

rgv

/* Pharmacy dose information. */

|

ras

/* Pharmacy administration information. */

|

rre

/* Pharmacy encoded order history report. */

|

rrd

/* Pharmacy dispense history report. */

|

rrg

/* Pharmacy give history report. */

|

rra

/* Pharmacy administration report. */

|

orrRxo

/* Pharmacy order message response. */

|

orrRde

/* Pharmacy encoded order message response. */

|

orrRds

/* Pharmacy dispense message response. */

|

orrRgv

/* Pharmacy give message response. */

|

orrRas

/* Pharmacy administer message response. */

|

bar

/* Add or change billing account. */

|

dft

/* Detail financial transaction. */

|

oru

/* Observation result - unsolicited. */

|

orf

/* Observation result - solicited. */

|

mfn

/* Master Files Notification */

|

mfk

/* Master Files Acknowledgement */

|

mfd

/* Master File Update Delayed Application Acknowledgement */

|

mfq

/* Master Files Query

|

mfr

/* Master Files Query Response */

*/ */

*/

; /* Chapter II - Control Section */

/* ACK - General synchronous acknowledgement.

ack:

*/

SOM MSH ST MSA ST ERROpt EOM ;

Health Level Seven, Version 2.6 © 2007. All rights reserved.Page C-3 Final Standard

October 2007

Appendix C: BNF Message Descriptions /*

Delayed Acknowledgement */

mcf: |

SOM MSHmcf ST MSA ST EOM SOM MSHmcf ST MSA ST ERROpt EOM ;

NoteOptGrp: |

NoteGrp ;

NoteGrp: NTE ST |

NTE ST NoteGrp ;

/* Chapter II - Query Section */ QueryHdr:

QRD ST QRFOpt PIDOpt ;

qry:

SOM MSH ST QRD ST QRFOpt DSCOpt EOM ;

dsr:

SOM MSH ST MSA ST ERROpt QRD ST QRFOpt DisplayGrp DSCOpt EOM

|

SOM MSH ST QRD ST QRFOpt DisplayGrp DSCOpt EOM ;

udm:

SOM MSH ST URD ST URSOpt DisplayGrp DSCOpt EOM ;

DisplayGrp: DSP ST |

DSP ST DisplayGrp ;

/* Chapter III - ADT Messages: note that the EVNxxx tokens stand for identical segments except for the event type code values. This allows the BNF description for each ADT message to be unique, although the actual segment level definitions are non-unique. Thus the BNF is parallel to that used in the ADT chapter. */

Page C-4 October 2007

adt:

a01

/* Admit a patient.

*/

|

a02

/* Transfer a patient.

*/

|

a03

/* Discharge a patient. */

|

a04

/* Register a patient.

|

a05

/* Pre-admit a patient. */

|

a06

/* Transfer an outpatient to inpatient.

*/

|

a07

/* Transfer an inpatient to outpatient.

*/

|

a08

/* Update patient information.

|

a09

/* Patient departing.

*/

|

a10

/* Patient arriving.

*/

|

a11

/* Cancel admit.

*/

|

a12

/* Cancel transfer.

*/

|

a13

/* Cancel discharge.

*/

|

a14

/* Pending admit.

*/

|

a15

/* Pending transfer.

*/

*/

*/

Health Level Seven, Version 2.6 © 2007. All rights reserved. Final Standard

Appendix C: BNF Message Descriptions |

a16

/* Pending discharge.

*/

|

a17

/* Swap a patient.

*/

|

a18

/* Merge patient information.

|

a19

/* Patient query.

|

a20

/* Nursing - census application updates.

*/

|

a21

/* Leave of absence - out (leaving).

*/

|

a22

/* Leave of absence - in (returning).

*/

|

a23

/* Delete a patient record.

*/

|

a24

/* Link patient information.

*/

|

a25

/* Cancel pending discharge.

*/

|

a26

/* Cancel pending transfer.

*/

|

a27

/* Cancel pending admit.

*/

|

a28

/* Add person information.

*/

|

a29

/* Delete person information.

*/

|

a30

/* Merge person information.

*/

|

a31

/* Update person information.

*/

|

a32

/* Cancel patient arriving.

*/

|

a33

/* Cancel patient departing.

*/

|

a34

/* Merge patient information (PID only). */

|

a35

/* Merge patient information (Account # only). */

|

a36

/* Merge patient information (PID & Account #). */

|

a37 ; /* Unlink patient information.

a01:

*/

*/

*/

SOM MSH ST EVNA01 ST PID ST NK1OptGrp PV1 ST PV2Opt OBXOptGrp AL1OptGrp DG1OptGrp PR1OptGrp GT1OptGrp InsOptGrp1 ACCOpt UB1Opt UB2Opt EOM ;

a02:

SOM MSH ST EVNA02 ST PidGrp EOM ;

a03:

SOM MSH ST EVNA03 ST PidGrp EOM ;

a04:

SOM MSH ST EVNA04 ST PID ST NK1OptGrp PV1 ST PV2Opt OBXOptGrp AL1OptGrp DG1OptGrp PR1OptGrp GT1OptGrp InsOptGrp1 ACCOpt UB1Opt UB2Opt EOM ;

a05:

SOM MSH ST EVNA05 ST PID ST NK1OptGrp PV1 ST PV2Opt OBXOptGrp AL1OptGrp DG1OptGrp PR1OptGrp GT1OptGrp InsOptGrp1 ACCOpt UB1Opt UB2Opt EOM ;

Health Level Seven, Version 2.6 © 2007. All rights reserved.Page C-5 Final Standard

October 2007

Appendix C: BNF Message Descriptions a06:

SOM MSH ST EVNA06 ST PID ST MRGOpt NK1OptGrp PV1 ST PV2Opt OBXOptGrp AL1OptGrp DG1OptGrp PR1OptGrp GT1OptGrp InsOptGrp1 ACCOpt UB1Opt UB2Opt EOM ;

a07:

SOM MSH ST EVNA07 ST PID ST MRGOpt NK1OptGrp PV1 ST PV2Opt OBXOptGrp AL1OptGrp DG1OptGrp PR1OptGrp GT1OptGrp InsOptGrp1 ACCOpt UB1Opt UB2Opt EOM ;

a08:

SOM MSH ST EVNA08 ST PID ST NK1OptGrp PV1 ST PV2Opt OBXOptGrp AL1OptGrp DG1OptGrp PR1OptGrp GT1OptGrp InsOptGrp1 ACCOpt UB1Opt UB2Opt EOM ;

a09:

SOM MSH ST EVNA09 ST PidGrp DG1OptGrp EOM ;

a10:

SOM MSH ST EVNA10 ST PidGrp DG1OptGrp EOM ;

a11:

SOM MSH ST EVNA11 ST PidGrp DG1OptGrp EOM ;

a12:

SOM MSH ST EVNA12 ST PidGrp DG1OptGrp EOM ;

a13:

SOM MSH ST EVNA13 ST PID ST NK1OptGrp PV1 ST PV2Opt OBXOptGrp AL1OptGrp DG1OptGrp PR1OptGrp GT1OptGrp InsOptGrp1 ACCOpt UB1Opt UB2Opt EOM ;

a14:

SOM MSH ST EVNA14 ST PID ST NK1OptGrp PV1 ST PV2Opt OBXOptGrp AL1OptGrp DG1OptGrp PR1OptGrp GT1OptGrp InsOptGrp1 ACCOpt UB1Opt UB2Opt EOM ;

Page C-6 October 2007

a15:

SOM MSH ST EVNA15 ST PidGrp DG1OptGrp EOM ;

a16:

SOM MSH ST EVNA16 ST PidGrp DG1OptGrp EOM ;

a17:

SOM MSH ST EVNA17 ST PidGrp PidGrp EOM ;

a18:

SOM MSH ST EVNA18 ST PID ST MRG ST PV1Opt EOM ;

a19:

SOM MSH ST MSA ST ERROpt QRD ST InfGrp DSCOpt EOM ;

a20:

SOM MSH ST EVNA20 ST NPU ST EOM

a21:

SOM MSH ST EVNA21 ST PidGrp EOM ;

a22:

SOM MSH ST EVNA22 ST PidGrp EOM ;

a23:

SOM MSH ST EVNA23 ST PidGrp EOM ;

a24:

SOM MSH ST EVNA24 ST PID ST PV1Opt PID ST EOM

a25:

SOM MSH ST EVNA25 ST PidGrp EOM ;

a26:

SOM MSH ST EVNA26 ST PidGrp EOM ;

a27:

SOM MSH ST EVNA27 ST PID ST NK1OptGrp PV1 ST PV2Opt OBXOptGrp EOM ;

a28:

SOM MSH ST EVNA28 ST PID ST NK1OptGrp PV1Opt PV2Opt OBXOptGrp

;

;

Health Level Seven, Version 2.6 © 2007. All rights reserved. Final Standard

Appendix C: BNF Message Descriptions AL1OptGrp DG1OptGrp PR1OptGrp GT1OptGrp InsOptGrp1 ACCOpt UB1Opt UB2Opt EOM ; a29:

SOM MSH ST EVNA29 ST PID ST PV1Opt PV2Opt OBXOptGrp EOM ;

a30:

SOM MSH ST EVNA30 ST PID ST MRG ST EOM ;

a31:

SOM MSH ST EVNA31 ST PID ST NK1OptGrp PV1Opt PV2Opt OBXOptGrp AL1OptGrp DG1OptGrp PR1OptGrp GT1OptGrp InsOptGrp1 ACCOpt UB1Opt UB2Opt EOM ;

a32:

SOM MSH ST EVNA32 ST PidGrp EOM ;

a33:

SOM MSH ST EVNA33 ST PidGrp EOM ;

a34:

SOM MSH ST EVNA34 ST PID ST MRG ST EOM ;

a35:

SOM MSH ST EVNA35 ST PID ST MRG ST EOM ;

a36:

SOM MSH ST EVNA36 ST PID ST MRG ST EOM ;

a37:

SOM MSH ST EVNA37 ST PID ST PV1Opt PID ST PV1Opt EOM ;

/* Insurance group 1 requires an IN1 segment within a repeating insurance */ /* group while Insurance group 2 allows a repeating IN3 within the group

*/

/* of a single IN1-IN2 pair

*/

InsOptGrp1: |

InsGrp1 ;

InsGrp1: Ins1 |

Ins1 InsGrp1 ;

Ins1:

IN1 ST IN2Opt IN3Opt ;

InsOptGrp2: |

InsGrp2 ;

InsGrp2: | Ins2:

Ins2 Ins2 InsGrp2 ; IN1 ST IN2Opt IN3OptGrp ;

/* Inf is the patient information data that forms each member */ /*

of a list of patient information segments in response to a query

*/

InfGrp: Inf | Inf InfGrp ; Inf:

EVNA19Opt PID ST NK1OptGrp PV1 ST PV2Opt OBXOptGrp

AL1OptGrp DG1OptGrp PR1OptGrp GT1OptGrp InsOptGrp1

Health Level Seven, Version 2.6 © 2007. All rights reserved.Page C-7 Final Standard

October 2007

Appendix C: BNF Message Descriptions ACCOpt UB1Opt UB2Opt; PidGrp: /*

PID ST PV1 ST PV2Opt OBXOptGrp ;

Chapter IV - ORDERS */

/* ORM - Order message. orm:

*/

SOM MSH ST NoteOptGrp PidOptClause1 ORCGrp EOM ;

PidOptClause1: |

PID ST NoteOptGrp AL1OptGrp PV1Opt ;

ORCGrp:

ORC ST DetailOptClause

|

ORC ST DetailOptClause ORCGrp ;

DetailOptClause: |

OrderSeg OBXDOptGrp BLGOpt ;

OBXDOptGrp: |

OBXDGrp ;

OBXDGrp: |

OBX ST NoteOptGrp OBX ST NoteOptGrp OBXDGrp ;

OrderSeg: OBR ST NoteOptGrp |

Supplies NoteOptGrp

|

ODSGrp NoteOptGrp

|

ODTGrp NoteOptGrp ;

Supplies: RQD ST |

RQD ST RQ1 ST ;

/* ORR - Response message. orr: |

*/

Orr1 Orr2 ;

Orr1:

SOM MSHorr1 ST MSA ST ERROpt NoteOptGrp PidOptClause2 EOM ;

Orr2:

SOM MSHorr2 ST MSA ST ERROpt NoteOptGrp RxOptResponse EOM ;

RxOptResponse: |

RxResponse ;

RxResponse: PIDOpt PrescriptionGrp ; PrescriptionGrp: |

ORC ST PrescriptionOpt

ORC ST PrescriptionOpt PrescriptionGrp ;

PrescriptionOpt: |

Page C-8 October 2007

Prescription;

Health Level Seven, Version 2.6 © 2007. All rights reserved. Final Standard

Appendix C: BNF Message Descriptions Prescription:

RXO ST NoteOptGrp RXRGrp ST

RXCNOptGrp ;

PidOptClause2: |

PIDOpt ORCGrp1 ;

ORCGrp1:

ORC ST OrderSegOpt

|

ORC ST OrderSegOpt ORCGrp1 ;

OrderSegOpt: |

OrderSeg ;

/* Pharmacy.

*/

rxo:

SOM MSH ST NoteOptGrp PidOptClause1 RxOrderGrp EOM ;

rde:

SOM MSH ST NoteOptGrp PidOptClause1 RxEncOrdGrp EOM ;

rds:

SOM MSH ST NoteOptGrp PidOptClause1 DispenseGrp EOM ;

rgv:

SOM MSH ST NoteOptGrp PidOptClause1 RxGiveGrp EOM ;

ras:

SOM MSH ST NoteOptGrp PidOptClause1 RxAdminGrp EOM ;

rra:

SOM MSH ST MSA ST ERROpt AdminRptGrp DSCOpt EOM ;

rrd:

SOM MSH ST MSA ST ERROpt DispenseRptGrp DSCOpt EOM ;

rre:

SOM MSH ST MSA ST ERROpt RxOrderRptGrp DSCOpt EOM ;

rrg:

SOM MSH ST MSA ST ERROpt GiveRptGrp DSCOpt EOM ;

orrRxo:

SOM MSH ST MSA ST ERROpt NoteOptGrp PidOptClause2 PresriptionGrp EOM ;

orrRde:

SOM MSH ST MSA ST ERROpt NoteOptGrp PidOptClause2 RxOrdGrp2Opt EOM ;

orrRds:

SOM MSH ST MSA ST ERROpt NoteOptGrp PidOptClause2 RxdGrpOpt EOM ;

orrRgv:

SOM MSH ST MSA ST ERROpt NoteOptGrp PidOptClause2 RxgGrpOpt EOM ;

orrRas:

SOM MSH ST MSA ST ERROpt NoteOptGrp PidOptClause2 RxaGrpOpt EOM ;

RxAdmin:

ORC ST PrescriptionOpt RxEncOrdOpt RXAGrp RXR ST ;

RxGive:

ORC ST PrescriptionOpt RxEncOrdOpt RXG ST RXRGrp ST RXCOptGrp ;

RxEncOrd:

ORC ST PrescriptionOpt RXE ST RXRGrp ST RXCOptGrp ;

Dispense:

ORC ST PrescriptionOpt RxEncOrdOpt RXD ST RXRGrp ST RXCOptGrp ;

GiveRpt:

QueryHdr RxOrdGrp4 ;

AdminRpt:

QueryHdr RxOrdGrp1 ;

DispenseRpt: QueryHdr RxOrdGrp3 ; RxOrderRptGrp: RxOrderRpt |

RxOrderRpt RxOrderRptGrp ;

RxOrderRpt: QueryHdr RxOrdGrp2 ;

Health Level Seven, Version 2.6 © 2007. All rights reserved.Page C-9 Final Standard

October 2007

Appendix C: BNF Message Descriptions RxOrdGrp1: |

RxOrd1 RxOrd1 RxOrdGrp1 ;

RxOrd1:

ORC ST RXE ST RXRGrp ST RXCOptGrp RXAGrp RXR ST;

RxOrdGrp2:

RxOrd2

| RxOrd2:

RxOrd2 RxOrdGrp2 ; ORC ST RXE ST RXRGrp ST RXCOptGrp ;

RxOrdGrp2Opt: | RxOrdGrp2 RxOrdGrp2Opt ; RxOrdGrp3: |

RxOrd3 RxOrd3 RxOrdGrp3 ;

RxOrd3:

ORC ST RXE ST RXRGrp ST RXCOptGrp RXDGrp RXRGrp ST ;

RxOrdGrp4:

RxOrd4

| RxOrd4:

RxOrd4 RxordGrp4 ; RXE St RXRGrp ST RXCOptGrp RXGGrp RXRGrp ST ;

RxdGrpOpt: | OrcRxdGrp RxdGrpOpt ; OrcRxdGrp: | ORC ST RxdDsGrp OrcRxdGrp ; RxdDsGrp: | RXD RXRGrp RXCOptGrp RxdDsGrp ; RxgGrpOpt: | OrcRxgGrp RxgGrpOpt ; OrcRxgGrp: | ORC ST RxgGvGrp OrcRxgGrp ; RxgGvGrp: | RXG RXRGrp RXCOptGrp RxgGvGrp ; RxaGrpOpt: | OrcRxaGrp RxaGrpOpt ; OrcRxaGrp: | ORC ST RxaRaGrp OrcRxaGrp ; RxaRaGrp: | RXA RXR RxaRaGrp ; GiveRptGrp:

Page C-10 October 2007

GiveRpt

Health Level Seven, Version 2.6 © 2007. All rights reserved. Final Standard

Appendix C: BNF Message Descriptions |

GiveRpt GiveRptGrp ;

AdminRptGrp: |

AdminRpt

AdminRpt AdminRptGrp ;

DispenseRptGrp: |

DispenseRpt DispenseRptGrp ;

DispenseGrp: |

DispenseRpt

Dispense

Dispense DispenseGrp ;

RxAdminGrp: RxAdmin |

RxAdmin RxAdminGrp ;

RxOrderGrp: RxOrder |

RxOrder RxOrderGrp ;

RxOrder:

ORC ST Prescription OBXDOptGrp BLGOpt ;

RxGiveGrp: |

RxGive

RxGive RxGiveGrp ;

RxEncOrdGrp: RxEncOrd |

RxEncOrd RxEncOrdGrp ;

RxEncOrdOpt: |

RxEncOrd ;

/* Chapter VI - Finance */ /* Finance: Patient accounting.

The triggering events that follow are

/* served by the DFT, BAR and ACK messages. bar: |

p01

*/

/* Add and update patient account.

p02 ; /* Purge patient account.

p03 ; /* Post detail financial transaction.

p01:

SOM MSH ST EVNP01 ST PID ST BillingGrp EOM ;

| Billing:

*/

*/

dft:

BillingGrp:

*/

*/

Billing

Billing BillingGrp ; PV1Opt PV2Opt OBXOptGrp AL1OptGrp DG1OptGrp PR1OptGrp GT1OptGrp NK1OptGrp InsOptGrp2 ACCOpt UB1Opt UB2Opt ;

p02:

SOM MSH ST EVNP02 ST VisitGrp EOM ;

VisitGrp: Visit | Visit:

Visit VisitGrp ; PID ST PV1Opt PV2Opt OBXOptGrp ;

Health Level Seven, Version 2.6 © 2007. All rights reserved.Page C-11 Final Standard

October 2007

Appendix C: BNF Message Descriptions p03:

SOM MSH ST EVNP03 ST PID ST PV1Opt PV2Opt1 OBXOptGrp FT1Grp EOM ;

FT1Grp:

FT1 ST

|

FT1 ST FT1Grp ;

/* Chapter VII - Ancillary Reporting */ /* Ancillary Data Reporting. oru: orf:

SOM MSH ST

*/

PidOptClause3 ObserveGrp DSCOpt EOM ;

SOM MSH ST MSA ST ERROpt QueryHdr ObserveGrp DSCOpt EOM ;

PidOptClause3: |

PID ST NoteOptGrp PV1Opt ;

ObserveGrp: Observe |

Observe ObserveGrp ;

Observe:

ORCOpt OBR ST NoteOptGrp OBXDGRPOpt

;

/* Master Files Messages...see note below... the segment level definition for the MFSGrp will vary according to the master file entry being referenced in the MFI segment... hence a BNF form will need to be generated for each master file ... */ mfn: SOM MSH ST MFI ST MFEGrp EOM ; MFEGrp: MFE ST MFSGrpOpt |

MFE ST MFSGrpOpt MFEGrp ;

MFSGrpOpt: | MFSGrp ; MFSGrp: XXX ST | XXX ST MFSGrp ; /* XXX is then one or more HL7 and/or Z-segments carrying the data for the entry identified by the MFI segment. */ /* Master File Delayed Acknowledgment mfd:

*/

SOM MSH ST MFI ST MFAOptGrp EOM ;

MFAOptGrp: |

MFAGrp ;

MFAGrp: |

MFA ST MFA ST MFAGrp ;

/* Response to Master Files Query */ mfr:

SOM MSH ST MSA ST ERROpt QRD ST QRFOpt MFI ST MFEGrp EOM ;

/* The segment level definition for the MFSGrp will vary according to the master file being referenced by the MFI segment... hence a BNF form will need to be generated for each master file... */ /* This is the end of the message definition section

Page C-12 October 2007

*/

Health Level Seven, Version 2.6 © 2007. All rights reserved. Final Standard

Appendix C: BNF Message Descriptions /* The following are sets of segment options and groups needed above.

*/

ACCOpt: |

ACC ST ;

BLGOpt: |

BLG ST ;

ERROpt: |

ERR ST ;

AL1OptGrp: |

AL1 ST

|

AL1 ST AL1Grp ;

AL1Grp: |

AL1 ST AL1 ST AL1Grp ;

DSCOpt: | DG1Grp: |

DSC ST ; DG1 ST DG1 ST DG1Grp ;

DG1OptGrp: |

DG1 ST

|

DG1 ST DG1Grp ;

EVNOpt: |

EVN ST ;

EVNA19Opt: |

EVNA19 ST ;

GT1OptGrp: |

GT1 ST

|

GT1 ST GT1Grp ;

GT1Grp: |

GT1 ST GT1 ST GT1Grp ;

IN2Opt: |

IN2 ST ;

IN3Opt: |

IN3 ST ;

IN3OptGrp:

Health Level Seven, Version 2.6 © 2007. All rights reserved.Page C-13 Final Standard

October 2007

Appendix C: BNF Message Descriptions | IN3Grp: |

IN3Grp ; IN3 ST IN3 ST IN3Grp ;

MRGOpt: |

MRG ST ;

NK1OptGrp: |

NK1 ST

|

NK1 ST NK1Grp ;

NK1Grp: |

NK1 ST NK1 ST NK1Grp ;

OBXOptGrp: | OBXGrp: | ODSGrp: | ODTGrp: |

OBXGrp ; OBX ST OBX ST OBXGrp ; ODS ST ODS ST ODSGrp ; ODT ST ODT ST ODTGrp ;

ORCOpt: |

ORC ST ;

PIDOpt: |

PID ST NoteOptGrp ;

PR1OptGrp: |

PR1 ST

|

PR1 ST PR1Grp ;

PR1Grp: |

PR1 ST PR1 ST PR1Grp ;

PV1Opt: |

PV1 ST ;

PV2Opt: |

PV2 ST ;

UB1Opt: |

Page C-14 October 2007

UB1 ST ;

Health Level Seven, Version 2.6 © 2007. All rights reserved. Final Standard

Appendix C: BNF Message Descriptions UB2Opt: | QRFOpt: | RXAGrp: | RXDGrp: | RXGGrp: |

UB2 ST ; QRF ST QRF ST QRFOpt ; RXA ST RXA ST RXAGrp ; RXD ST RXD ST RXDGrp ; RXG ST RXG ST RXGGrp ;

RXCOpt: |

RXC ST ;

RXCOptGrp: | RXCGrp: |

RXCGrp ; RXC ST RXC ST RXCGrp ;

RXCNOptGrp: | RXCNGrp: | RXRGrp: |

RXCNGrp ; RXC ST NoteOptGrp RXC ST NoteOptGrp RXCNGrp ; RXR ST RXR ST RXRGrp ;

URSOpt: |

URS ST ;

Health Level Seven, Version 2.6 © 2007. All rights reserved.Page C-15 Final Standard

October 2007