Name | Value | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NUMBER | 4336 | |||||||||||||||
IA # | 4336 | |||||||||||||||
DATE CREATED | 2004/02/09 | |||||||||||||||
CUSTODIAL PACKAGE | COMMUNICATIONS SERVICE LIBRARY | |||||||||||||||
CUSTODIAL ISC | Washington | |||||||||||||||
USAGE | Private | |||||||||||||||
TYPE | Routine | |||||||||||||||
DBIC APPROVAL STATUS | APPROVED | |||||||||||||||
NAME | AP Status Update (from CoreFLS to VistA Prosthetics) | |||||||||||||||
GENERAL DESCRIPTION | AP Status Update Purpose: To transmit a message from CoreFLS to VistA Prosthetics when a value on a Prosthetics Purchase Order has been changed, either because of an Invoice transaction, a price or quantity change on a PO. or a reconciliation of a line item or the cancellation of a PO or the completion of a PO. Behavior: There is no user prompting in this event. All information is transmitted by CoreFLS. When the event occurs, a message is sent to VistA Prosthetics via CSL. Upon receipt, an Application Acknowledgement ACK or NAK is returned to CoreFLS. Information is transmitted from CoreFLS in an HL7 format specified as "AP Status Update Event from CoreFLS". Incoming information is read by routines ~CSLPRUP and ~CSLPRUPA. If the Order Status Field is "CA", the message is considered a cancellation of the entire PO; otherwise, the message is a transmission of a change to a specific line on a specified PO. Information that is transmitted from CoreFLS is put into an ^XTMP global for use by VistA Prosthetics. The CSL routine calls a VistA routine, EN~RMPRCSL1(CSLSUB,.ERRAY), passing the complete node structure of "CSLAPUP" concatenated with the Message Control ID, for processing, plus any content or format errors that the CSL code has identified. NOTE: Quantity Invoiced and Invoice Line Amount are assumed to be transmitted from CoreFLS as running totals for the line item on the PO. This means that if 15 units were ordered and they were invoiced as they arrived as 1, 2, 3, 4 then 5 items, there would be 5 AP Status Update messages. The first would reflect a quantity of 1, the second would be 3, the third would 6, the fourth would be 10, and the fifth would be 15. If the message transmitted is a cancellation of a complete Purchase Order, the CSL process branches to ~CSLPRUPC to develop the ~XTMP global with less data in the global but with the same structure. CSL invokes the same processing routine for sending information to VistA Prosthetics. The CSL routine evaluates the data sent by CoreFLS for the following structure and content: PO Number longer than 20 characters Quantity Ordered not numeric PO Line number not numeric ACS longer than 200 characters Quantity Invoiced not numeric Purchase card longer than 80 characters PO Line ID not numeric Unit price not numeric Vendor Number longer than 30 characters Vendor Site longer than 15 characters Update Date not formatted correctly Line Cancelled Quantity not numeric Invoice Line Amount not numeric Order Line Amount not numeric After VistA Prosthetics processes the supplied information, if an error is detected, an error message is returned to CSL in sub-node 5 of the ~XTMP global. This causes an Application NAK to be transmitted to CoreFLS for evaluation and reprocessing. If no errors are detected, either by CSL or by VistA Prosthetics, then an Application Acknowledgement ACK is sent from CSL to CoreFLS. This completes the activities for AP Status Update |
|||||||||||||||
STATUS | Active | |||||||||||||||
KEYWORDS |
|
|||||||||||||||
DURATION | Till Otherwise Agreed | |||||||||||||||
COMPONENT/ENTRY POINT |
|
|||||||||||||||
SUBSCRIBING PACKAGE |
|