Ever field that points to the Visit file (#9000010)
needs to have two cross references. One is a regular Fileman cross reference.
If the field is in a multiple then this cross reference must be a whole file
cross reference. This cross reference is used to make sure that a Visit file
entry is not delete as long as there is a user of the entry.
The second cross reference calls ADD for the set logic and SUB for the kill
logic. This cross reference tells Visit Tracking how many file entries are
using (pointing to) a Visit file entry. Below is an example of this cross
reference
CROSS-REFERENCE: file number^Asomething^MUMPS
1)= D ADD^AUPNVSIT
2)= D SUB^AUPNVSIT
This cross-reference adds and subtracts from
the dependent entry count in the VISIT file.
ADD^VSIT or the more effect version: ADD^AUPNVSIT
Increase the dependent entry count for the Visit file entry by one.
INPUT X Visit IEN
SUB^VSIT or the more effect version: SUB^AUPNVSIT
Decrease the dependent entry count for the Visit file entry by one.
INPUT X Visit IEN
NOTE: These calls are customarily done through a MUMPS cross reference on the
field pointing to a Visit file entry. The input parameter X is set by Fileman.
|