Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: XDRDOC

XDRDOC.m

Go to the documentation of this file.
  1. XDRDOC ;IHS/OHPRD/JCM - DOCUMENTATION OF KERNEL ROUTINES ;09/13/93 08:39
  1. ;;7.3;TOOLKIT;;Apr 25, 1995
  1. ;
  1. XDRDADD ; ADDS POTENTIAL DUPLICATE RECORDS TO DUPLICATE RECORD FILE
  1. ;
  1. ; Input Variables: XDRCD,XDRCD2,XDRFL,XDRGL,XDRDSCOR(,XDRDTEST(
  1. ;
  1. ; Called by: XDRDUP
  1. ;
  1. ; Calls: FILE^DICN,DIE,EN^XDRMAIN
  1. ;
  1. XDRDADJ ; ADJUSTS DUPLICATE RECORD FILE UPON MERGE OF A PATIENT
  1. ;
  1. ; This routine is executed by a MUMPS xref on the MERGE STATUS field
  1. ; of the DUPLICATE RECORD file only when the status is set to MERGED.
  1. ; This routine checks for entries in the file that are affected by
  1. ; the merging of this entry, and adjusts their .01 and .02 fields
  1. ; accordingly. The problem being addressed is:
  1. ;
  1. ; 1 to 5 If 5 to 10 merged first 1 to 10
  1. ; 5 to 10 then other entries would 5 to 10
  1. ; 5 to 20 be adjusted as follows: 10 to 20
  1. ;
  1. ; Or, if both 1 to 5 and 1 to 10 existed at the time of the
  1. ; merge, the 1 to 5 entry would be deleted.
  1. ;
  1. ; The STATUS field (.03) is re-indexed because it sets xrefs based
  1. ; on the values in the .01 and .02 fields. TRIGGERs are not fired
  1. ; for the .01, .02, or .03 fields.
  1. ;
  1. ; Entries previously resolved are ignored.
  1. ;
  1. ; Called by: Cross Reference on Merge Status field of
  1. ; Duplicate Record File entry
  1. ;
  1. ; Calls: EN^XDRDUP,DIK
  1. ;
  1. XDRDCOMP ; COMPARE TWO PATIENTS VIA THE DUP CHECKER ALGORITHM
  1. ;
  1. ; Input variables: XDRFL
  1. ;
  1. ; Calls: %ZIS,%ZTLOAD,DIC,DR,EN^DITC,FILE^XDRDQUE,XDRDSCOR,XDRDUP
  1. ;
  1. XDRDLIST ; PRINT POTENTIAL AND VERIFIED DUPLICATES
  1. ;
  1. ; This routine is the main driver for reports dealing with the
  1. ; duplicate record file. It will print listings of Potential
  1. ; duplicates, ready and not ready to merge verified duplicates.
  1. ;
  1. ; Input variables: XDRFL
  1. ;
  1. ; Calls: EN1^DIP,DIR,FILE^XDRDQUE
  1. ;
  1. XDRDMAIN ; MAIN DRIVER FOR DUPLICATE CHECKING SOFTWARE
  1. ;
  1. ; Input Variables: XDRFL - File number of File to be Checked
  1. ; XDRDPDTI - Defined if Potential Threshold Increased
  1. ; and Previous search completed
  1. ; XDRDTYPE - Type of search to run
  1. ;
  1. ; Calls: NOW^%DTC,DIE,DIK,XDRDPDTI,XDRDUP,XDREMSG,XDRMAINI
  1. ;
  1. ; We will pass the variable XDRCD for them to then get the candidates
  1. ; Expect the routine to send back the possibles in
  1. ; ^TMP("XDRD",$J,XDRFL,DFN
  1. ;
  1. ; There is a basic assumption in the limiting of which records are
  1. ; checked. It is assumed that if Record 1 gathers Record 2 as a
  1. ; candidate for duplicate checking that Record 2 will in turn
  1. ; gather Record 1 as a candidate for duplicate checking.
  1. ;
  1. ; It was decided that if a record is being checked again outside of
  1. ; the BASIC search type any entries in the Duplicate Record file
  1. ; other than merged entries will be deleted and then the pair
  1. ; rechecked.
  1. ;
  1. XDRDPDTI ; CHECKS POTENTIAL DUPLICATES IF THRESHOLD RAISED
  1. ;
  1. ; This routine is called by XDRDMAIN when the Potential Duplicate
  1. ; threshold has been increased from a previous value. This routine
  1. ; $O's through the "APOT" cross reference on the Duplicate Record file
  1. ; and deletes all entries in the Duplicate Record file that had a DC
  1. ; Dupe Match Score that did not meet the new Potential Duplicate
  1. ; Threshold value. It also updates the DC Potential Dupe Threshold %.
  1. ; It should be noted that if a person changes the weights of the
  1. ; Duplicate Tests, they should delete all Non-Verified Potential
  1. ; Duplicates and rerun the Duplicate Resolution search.
  1. ;
  1. ; Input Variables: XDRGL,XDRFL,XDRDSCOR(
  1. ;
  1. ; Called by: XDRDMAIN
  1. ;
  1. ; Calls: DIE,DIK
  1. ;
  1. XDRDPRGE ; PURGE DUPLICATE RECORD FILE
  1. ;
  1. ; This routine is used to purge the Duplicate Record file of either
  1. ; Potential Duplicates, Verified Non-Duplicates, or both.
  1. ; Verified Duplicates cannot be purged until Fileman institutes
  1. ; some sort of archival or merged node.
  1. ;
  1. ; Input Variable: XDRFL
  1. ;
  1. ; Calls: %ZTLOAD,DIC,DIR,DIK
  1. ;