I. Direct read access to the DPT global.
A. ^DPT("SSN") -> Used to obtain a list of all patient SSN's
currently on file. These SSN's are then compared to the
SSN's on the MPD CDROM to check for visits to other
B. ^DPT(DFN) -> Used to verify that a patient is in the
C. ^DPT(DFN,"S",DATE,0) -> Used to verify that a clinic
appointment has not been canceled.
II. The addition of a Mumps cross-reference to the SSN field for
the purpose of setting the SSN in the PPP NEW SSN file. Any
new SSN's will be checked at night for visits to other
hospitals and then deleted from the PPP NEW SSN file.
We suggest the Mumps cross-reference be implemented as
SET -> S PPP=X,X="PPPFMX" X ^%ZOSF("TEST") D:$T SNSSN^PPPFMX
S X=PPP K PPP
KILL -> S PPP=X,X="PPPFMX" X ^%ZOSF("TEST") D:$T KNSSN^PPPFMX
S X=PPP K PPP
The referenced routines are as follows:
; Check that this is either an edit or a new entry to avoid
; setting during a re-index of the Patient file.
; PPPOK is defined in the kill logic below if the new entry
; does not equal the old.
; DPTDFN is defined in the Patient Registration routines.
I ($D(PPPOK))!($D(DPTDFN)) D
.; Get the File Descriptor Node for updating.
.; Set the entry and the "B" Xref
.; Update the Descriptor node.
.; Task out the MPD lookup.
.S ZTDESC="NEW SSN/MPD ROUTINE"
; Check that this is an edit and not a re-index.
I X'=$P($G(^DPT(DA,0)),"^",9) D
.; Check that the node currently exists, kill it if it does.
.I $D(^PPP(1020.7,"B",PPP)) D
..; If the record count is alredy 0 then quit.