Print Page as PDF
$$BLDMSG VAFCMSG1 ICR (2756)

$$BLDMSG VAFCMSG1    ICR (2756)

Name Value
NUMBER 2756
IA # 2756
DATE CREATED 1999/02/17
CUSTODIAL PACKAGE REGISTRATION
USAGE Private
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE VAFCMSG1
NAME $$BLDMSG VAFCMSG1
GENERAL DESCRIPTION
MPIF is requesting to use $$BLDMSG^VAFCMSG1 to build
the HL7 ADT-A28 message for a given patient.
STATUS Active
ID VAFCMSG1
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
$$BLDMSG

$$BLDMSG^VAFCMSG1(DFN,EVNTHL7,EVNTDATE,EVNTINFO,XMITARRY,INSRTPNT)

This entry point builds HL7 ADT messages for a given patient.
VARIABLES TYPE VARIABLES DESCRIPTION
DFN Input
DFN - Pointer to entry in PATIENT file (#2) for
building message.
EVNTHL7 Input
EVNTHL7 - HL7 ADT event to build message for
(Defaults to A08)
Currently supported event types: A04, A08, A28.
EVNTDATE Input
EVNTDATE - Date/time event occurred in FileMan format
- Defaults to current date/time (NOW)
EVNTINFO Input
EVNTINFO - Array containing further event information
needed when
building HL7 segments/message.  Use and subscripting of
array is determined by segment and/or message being built.
- Defaults to ^TMP("VAFCMSG",$J,"EVNTINFO")
Current subscripts include:
EVNTINFO("DFN") = Pointer to PATIENT file (#2)
EVNTINFO("EVENT") = Event type
EVNTINFO("DATE") = Event date/time
EVNTINFO("PIVOT") = Pointer to ADT/HL7 PIVOT file
(#391.71)
EVNTINFO("REASON",X) = Event reason codes
EVNTINFO("USER") = User associated with the event
XMITARRAY Both
As Input: XMITARRY - Array to build message into
(full global reference)
- Defaults to ^TMP("HLS",$J)

As Output: XMITARRY(N) = Line N of message    XMITARRY(N,M) = Continuation
number M of line N
INSRTPNT Input
INSRTPNT - Line to begin inserting message text at
- Defaults to 1 (can not be zero or less)
$$BLDMSG Output
LastLine^TotalLine = ADT-Axx message was build Where
LastLine = Last line number in message and TotalLine = Number of lines in
message (this total includes continuation lines) OR -1^ErrorText = Error
generating ADT-Axx message
SUBSCRIBING PACKAGE MASTER PATIENT INDEX VISTA