704.005 (911)    INDEX (.11)

Name Value
FILE 704.005
NAME LAST
DESCRIPTION
This index will allow us to search for the most recent message type and 
event type for a patient.  The intended use case is that, in some 
instances, cancellations of transfers or discharges may be sent several 
months after the event to which they refer in order to make the G & L 
sheets balance correctly.  We will NOT wish to propagate these events to 
the devices.  So, if we receive a movement cancel request (an A11, A12, 
or A13), we will check to see what the most recent movement was.  If it 
doesn't match what was in the most recent A01, A02, or A03, then we'll 
just drop the message.
SHORT DESCRIPTION Index by Patient, Message and Event type, and Date.
TYPE REGULAR
EXECUTION RECORD
ACTIVITY IR
USE LOOKUP & SORTING
ROOT TYPE INDEX FILE
ROOT FILE 704.005
SET LOGIC S ^MDC(704.005,"LAST",$E(X(1),1,30),$E(X(2),1,3),$E(X(3),1,3),$E(X(4),1,15),DA)=""
CROSS-REFERENCE VALUES
  • ORDER NUMBER:   1
    SUBSCRIPT NUMBER:   1
    TYPE OF VALUE:   FIELD
    FILE:   704.005
    FIELD:   .01
    MAXIMUM LENGTH:   30
    COLLATION:   forwards
  • ORDER NUMBER:   2
    SUBSCRIPT NUMBER:   2
    TYPE OF VALUE:   FIELD
    FILE:   704.005
    FIELD:   .06
    MAXIMUM LENGTH:   3
    COLLATION:   forwards
  • ORDER NUMBER:   3
    SUBSCRIPT NUMBER:   3
    TYPE OF VALUE:   FIELD
    FILE:   704.005
    FIELD:   .07
    MAXIMUM LENGTH:   3
    COLLATION:   forwards
  • ORDER NUMBER:   4
    SUBSCRIPT NUMBER:   4
    TYPE OF VALUE:   FIELD
    FILE:   704.005
    FIELD:   .02
    MAXIMUM LENGTH:   15
    COLLATION:   backwards
KILL LOGIC K ^MDC(704.005,"LAST",$E(X(1),1,30),$E(X(2),1,3),$E(X(3),1,3),$E(X(4),1,15),DA)
KILL ENTIRE INDEX CODE K ^MDC(704.005,"LAST")