Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All
Print Page as PDF
Routine: MPIF002

Package: Master Patient Index VistA

Routine: MPIF002


Information

MPIF002 ;CIOFOSF/CMC-UTILITY ROUTINE OF APIS ;JUL 12, 1996

Source Information

Source file <MPIF002.m>

Call Graph

Call Graph

Call Graph Total: 9

Package Total Call Graph
Master Patient Index VistA 3 ($$DFN2ICN,$$GETICN)^MPIF001  $$MPINODE^MPIFAPI  GETDATA^MPIFQ0  
Registration 2 TFL^VAFCTFU1  $$SITE^VASITE  
Clinical Information Resource Network 1 (EXC,START,STOP)^RGHLLOG  
Kernel 1 ($$IEN,$$NNT)^XUAF4  
Toolkit 1 ADD^XDRDADDS  
VA FileMan 1 $$GET1^DIQ  

Caller Graph

Legends:

Legend of Colors

Package Component Superscript legend

action A extended action Ea event driver Ed subscriber Su protocol O limited protocol LP run routine RR broker B edit E server Se print P screenman SM inquire I

Caller Graph

Caller Graph Total: 13

Package Total Caller Graph
Master Patient Index VistA 11 MPIF001  MPIFAPI1  MPIFBT3  MPIFD1  MPIFDUP  MPIFEXT  MPIFEXT2  MPIFQ0  
MPIFQ1  MPIFRPC  MPIFRPC2  
Clinical Information Resource Network 1 RGRPC  
Registration 1 VAFCQRY2  

Entry Points

Name Comments DBIA/ICR reference
GETICNH(DFN,ICNHA) ;Return all ICNs (including checksum) in ICN History for patient DFN
; DFN = IEN of patient in the Patient (#2) file
; ICNHA - array where ICN History will be returned.
GETCMORH(DFN,CMORHA) ;Return all CMORs in CMOR History for patient DFN
; DFN = IEN of patient in the Patient (#2) file
; CMORHA - array where CMOR history will be returned
GETDFNS(SSN) ; Find DFN for a given SSN - all if there are more than one
; SSN - SSN for patient attempted to be found in the Patient file (#2)
; Return - list of DFNs or -1^error msg
  • ICR #3634
    • Status: Active
    • Usage: Private
    GETICNS(SSN) ; Find all ICNs for a given SSN -- all if there are more than one
    ; patient with that SSN
    ; SSN - SSN for patient attempted to be found in the Patient file (#2)
    ; Returned is a list of ICNs for this SSN
    TWODFNS(DFN1,DFN2,ICN) ;Logging Exceptions when there are two DFNs trying to have the same ICN, which isn't allowed.
    CLEAN(DFN,ARR,MPIRETN) ; clean up MPI data from DPT for "stub" records
    ; called from UPDATE^MPIFAPI
    COMPARE(DFN,INDEX,COMMON,MORE) ; Checking if TFs in common between CURRENT PT (DFN)
    ; and ^TMP("MPIFVQQ",$J,INDEX,"TF",ien) OR if patient is shared to exclude those with TYPE of OTHER
    ; INDEX is the selection entry
    ; COMMON is the value returned indicating if there are TFs in common
    MIMDQ(ICN,ICN2,DFN,MSG) ; while reviewing potential duplicates, site picked to link 2 patients together with TFs in common
    ; send exception to IMDQ team

    External References

    Name Field # of Occurrence
    $$GET1^DIQ COMPARE+6
    $$DFN2ICN^MPIF001 CLEAN+5
    $$GETICN^MPIF001 GETICNS+9, CLEAN+3
    $$MPINODE^MPIFAPI GETDFNS+9, GETICNS+11
    GETDATA^MPIFQ0 TWODFNS+4, TWODFNS+6
    EXC^RGHLLOG MIMDQ+3
    START^RGHLLOG MIMDQ+2
    STOP^RGHLLOG MIMDQ+4
    TFL^VAFCTFU1 COMPARE+5
    $$SITE^VASITE CLEAN+3, COMPARE+8
    ADD^XDRDADDS TWODFNS+8
    $$IEN^XUAF4 COMPARE+6
    $$NNT^XUAF4 GETCMORH+9

    Interaction Calls

    Name Line Occurrences
    Function Call: WRITE
    • Prompt: !,"Unable to match these ICNs together as"_$P(MSG,"-",2)
    • Line Location: MIMDQ+5
    Function Call: WRITE
    • Prompt: !,"Exception has been sent to IMDQ team for assistance in resolving this",!,"MPI Duplicate. Local Exception has been automatically marked as processed."
    • Line Location: MIMDQ+6

    FileMan Files Accessed Via FileMan Db Call

    FileNo Call Tags
    ^DIC(4 - [#4] GET1^DIQ

    Global Variables Directly Accessed

    Name Line Occurrences  (* Changed,  ! Killed)
    ^DPT - [#2] GETICNH+4, GETICNH+5, GETICNH+7, GETICNH+8, GETCMORH+4, GETCMORH+5, GETCMORH+7, GETCMORH+8, GETDFNS+7, GETDFNS+9
    , TWODFNS+3, CLEAN+9*
    ^DPT("ACMOR" CLEAN+11!
    ^DPT("AFICN" CLEAN+11!
    ^DPT("AICN" GETDFNS+10*, GETICNS+11*, CLEAN+11!
    ^DPT("AICNL" CLEAN+11!
    ^DPT("SSN" GETDFNS+4, GETDFNS+6
    ^TMP("MPIFVQQ" COMPARE+11, COMPARE+12

    Label References

    Name Line Occurrences
    $$GETDFNS GETICNS+6

    Local Variables

    Legend:

    >> Not killed explicitly
    * Changed
    ! Killed
    ~ Newed

    Name Field # of Occurrence
    ARR CLEAN~, COMPARE+4~, COMPARE+5
    ARR( COMPARE+6
    ARR("ST#" COMPARE+6*, COMPARE+7, COMPARE+9, COMPARE+14
    ARR1 TWODFNS+1~
    ARR2 TWODFNS+1~
    CMOR GETCMORH+3~, GETCMORH+8*, GETCMORH+9*, GETCMORH+10, CLEAN+2~, CLEAN+3*, CLEAN+7, CLEAN+8*, CLEAN+11
    CMORHA GETCMORH~, GETCMORH+4*, GETCMORH+5*, GETCMORH+11*, GETCMORH+12*
    CMORHA( GETCMORH+10*
    CNT GETICNH+3~, GETICNH+6*, GETICNH+9*, GETICNH+10, GETICNH+11, GETCMORH+3~, GETCMORH+6*, GETCMORH+10*, GETCMORH+11, GETCMORH+12
    , GETDFNS+3~, GETDFNS+5*, GETDFNS+8*, GETDFNS+12
    COMMON COMPARE~, COMPARE+4*, COMPARE+11, COMPARE+14*
    DFN GETICNH~, GETICNH+4, GETICNH+5, GETICNH+7, GETICNH+8, GETCMORH~, GETCMORH+4, GETCMORH+5, GETCMORH+7, GETCMORH+8
    , GETDFNS+3~, GETDFNS+5*, GETDFNS+6*, GETDFNS+7, GETDFNS+8, GETDFNS+9, GETDFNS+10, GETICNS+4~, GETICNS+8*, GETICNS+9
    , GETICNS+11, CLEAN~, CLEAN+3, CLEAN+5, CLEAN+9, CLEAN+11, COMPARE~, COMPARE+5, MIMDQ~, MIMDQ+3
    DFN1 TWODFNS~, TWODFNS+2, TWODFNS+3, TWODFNS+4, TWODFNS+5, TWODFNS+8
    DFN2 TWODFNS~, TWODFNS+2, TWODFNS+3, TWODFNS+6, TWODFNS+7, TWODFNS+8
    DFNS GETICNS+4~, GETICNS+6*, GETICNS+7, GETICNS+8
    FICN CLEAN+2~, CLEAN+5*, CLEAN+11
    ICN GETICNH+3~, GETICNH+8*, GETICNH+9, GETDFNS+9*, GETDFNS+10, GETICNS+4~, GETICNS+9*, GETICNS+10, GETICNS+11*, TWODFNS~
    , CLEAN+2~, CLEAN+3*, CLEAN+6, CLEAN+7, CLEAN+11, MIMDQ~
    ICN2 MIMDQ~
    ICNHA GETICNH~, GETICNH+4*, GETICNH+5*, GETICNH+10*, GETICNH+11*
    ICNHA( GETICNH+9*
    IEN GETICNH+3~, GETICNH+6*, GETICNH+7*, GETICNH+8, GETCMORH+3~, GETCMORH+6*, GETCMORH+7*, GETCMORH+8, COMPARE+4~, COMPARE+6*
    , COMPARE+7*, COMPARE+8, COMPARE+9, COMPARE+10*, COMPARE+11*, COMPARE+12
    INDEX COMPARE~, COMPARE+11, COMPARE+12
    LIST GETDFNS+3~, GETDFNS+5*, GETDFNS+8*, GETDFNS+13, GETICNS+4~, GETICNS+5*, GETICNS+10*, GETICNS+12
    MORE COMPARE~, COMPARE+4*, COMPARE+9*
    MPIFD1 TWODFNS+10!
    MPIFD1(2 TWODFNS+5
    MPIFD2 TWODFNS+10!
    MPIFD2(2 TWODFNS+7
    MPIRETN CLEAN~, CLEAN+6*, CLEAN+7*, CLEAN+12*
    MSG MIMDQ~, MIMDQ+3, MIMDQ+5
    NAME1 TWODFNS+1~, TWODFNS+5*
    NAME2 TWODFNS+1~, TWODFNS+7*
    NODE GETDFNS+3~, GETDFNS+9*, GETICNS+4~, GETICNS+11*
    RET GETICNH+3~, GETICNH+6*, GETCMORH+3~, GETCMORH+6*
    SSN GETDFNS~, GETDFNS+4, GETDFNS+6, GETICNS~, GETICNS+6
    SSN1 TWODFNS+1~, TWODFNS+5*
    SSN2 TWODFNS+1~, TWODFNS+7*
    ST COMPARE+4~, COMPARE+12*, COMPARE+13, COMPARE+14
    TEXT TWODFNS+1~
    TYPE COMPARE+4~
    >> XDRSLT1 TWODFNS+8
    XX GETICNS+4~, GETICNS+8*
    Info |  Source |  Call Graph |  Caller Graph |  Entry Points |  External References |  Interaction Calls |  FileMan Files Accessed Via FileMan Db Call |  Global Variables Directly Accessed |  Label References |  Local Variables  | All