MPIF001 ;ALB/RJS/CMC-UTILITY ROUTINE OF APIS ; 10/28/20 8:35pm
Source file <MPIF001.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
GETICN(DFN) | ; This function returns the ICN, including checksum for a given
; DFN or -1^error message ; INPUT: DFN - ien in Patient file |
|
EXIT1 | ;
|
|
GETDFN(ICN) | ; Returns DFN (ien Patient file) or -1^error message for a given ICN
; ICN - ICN for a given Patient in the Patient file |
|
EXIT2 | ;
|
|
ICNLC(DFN) | ;This API will return an ICN if one exists or create and return
; a Local ICN and update the appropriate fields if a Local was created ; DFN= Patient IEN ; Returns ICN (local or National including checksum) or -1^error msg |
|
CMOR2(DFN) | ; Returns CMOR Site Name or -1^error message
; DFN = Patient IEN |
|
CMORNAME(CIEN) | ; Returns CMOR site name or -1^error message
; CIEN - ien from Institution file |
|
GETVCCI(DFN) | ; Returns CMOR or -1^error message for a given patient
; DFN - ien of patient in Patient file |
|
EXIT3 | ;
|
|
CHANGE(DFN,VCCI) | ;
; ** This function is only to be used by approved packages ** |
|
REP | ||
EXIT4 | ;
|
|
SETICN(DFN,ICN,CHKSUM) | ;
; ** this function is to only be used by approved packages ** |
|
EXIT5 | ;
|
|
SETLOC(DFN,DELFLAG) | ;
; ** This function should be only used by approved packages ** |
|
EXIT6 | ;
|
|
IFLOCAL(DFN) | ; This function is used to see if a patient has a local ICN
; DFN - ien of patient in Patient file ; returned: 0 = patient does not exist, dfn is not defined or no MPI node OR Patient does not have a local ICN ; 1 = patient has a Local ICN assigned |
|
IFVCCI(DFN) | ; this function returns 1 if your facility is the CMOR for the given pt
; DFN - ien of patient in Patient file ; returns: 1 = your site in the CMOR for this patient ; -1 = your site is not the CMOR for this patient ; 0^ERROR MSG |
|
HL7CMOR(DFN,SEP) | ; This function returns the CMOR station number and institution name for
; the given patient. ; DFN = ien for patient in Patient file ; SEP = delimiter to separate station number and name ; returned: Station Number <sep> Institution name ; -1^error message |
|
EXIT7 | ;
|
|
ICN2DFN(ICN) | ; - This function will return a DFN based on the ICN entered
; **60 (elz) MVI_793 this is the new function to use the new single ; ICN field/cross-reference. The full ICN value must be passed in |
|
QICN2DFN | ;
|
|
DFN2ICN(DFN) | ; This function will return an ICN based on the DFN entered
; **60 (elz) MVI_793 this is the new function to use the new single ; ICN field. The full ICN value will be returned |
|
QDFN2ICN | ;
|
|
SETFICN(DFN,ICN) | ; - Set the Full ICN value
; ** this function is to only be used by approved packages ** |
|
QSETFICN | ;
|
|
LOCK | ;
|
|
UNLOCK | ;
|
Name | Field # of Occurrence |
---|---|
^DIE | REP+1, SETICN+31, SETLOC+16, SETFICN+29 |
TWODFNS^MPIF002 | SETICN+24, SETFICN+23 |
$$EN2^MPIFAPI | ICNLC+10 |
$$MPINODE^MPIFAPI | CMOR2+4, GETVCCI+6, REP+3, HL7CMOR+10, HL7CMOR+11 |
$$CHECKDG^MPIFSPC | GETICN+10, SETICN+29 |
EXC^RGHLLOG | REP+8 |
START^RGHLLOG | REP+7 |
STOP^RGHLLOG | REP+9 |
$$SITE^VASITE | ICNLC+20, CHANGE+17, SETICN+16, SETICN+18, SETICN+36, SETICN+37, IFLOCAL+7, IFVCCI+8, SETFICN+15, SETFICN+17 , SETFICN+33, SETFICN+34 |
$$NNT^XUAF4 | CMORNAME+5, GETVCCI+9, HL7CMOR+14 |
$$STA^XUAF4 | REP+8 |
FileNo | Call Tags |
---|---|
^DPT - [#2] | Classic Fileman Calls |
Name | Line Occurrences (* Changed, ! Killed) |
---|---|
^DPT - [#2] | GETICN+6, GETICN+7, GETICN+8, GETDFN+8, GETVCCI+4, GETVCCI+5, CHANGE+12, SETICN+13, SETLOC+12, IFLOCAL+5 , IFLOCAL+6, HL7CMOR+9, ICN2DFN+9, DFN2ICN+5, DFN2ICN+6, DFN2ICN+7, SETFICN+12, LOCK+1, UNLOCK+1 |
^DPT("AFICN" | ICN2DFN+6, ICN2DFN+7, ICN2DFN+9!, DFN2ICN+10*, SETFICN+19, SETFICN+20, SETFICN+21, SETFICN+22 |
^DPT("AICN" | GETICN+11*, GETDFN+5, GETDFN+6, GETDFN+8!, SETICN+20, SETICN+21, SETICN+22, SETICN+23 |
^DPT("AMPIMIS" | SETICN+35!, SETLOC+18!, SETFICN+32! |
Name | Line Occurrences |
---|---|
$$CHANGE | ICNLC+20 |
$$CMORNAME | CMOR2+6 |
$$DFN2ICN | SETFICN+15, SETFICN+17 |
$$GETICN | ICNLC+7, CHANGE+17, SETICN+16, SETICN+18, IFLOCAL+7 |
$$GETVCCI | IFVCCI+7 |
$$SETFICN | SETICN+40 |
$$SETICN | ICNLC+14 |
$$SETLOC | ICNLC+19, SETICN+36, SETICN+37, SETFICN+33, SETFICN+34 |
EXIT1 | GETICN+5, GETICN+6, GETICN+7, GETICN+9 |
EXIT2 | GETDFN+3, GETDFN+5, GETDFN+7, GETDFN+8 |
EXIT3 | GETVCCI+3, GETVCCI+4, GETVCCI+5, GETVCCI+8, GETVCCI+10 |
EXIT4 | CHANGE+11, CHANGE+12, CHANGE+13 |
EXIT5 | SETICN+12, SETICN+13, SETICN+14, SETICN+15, SETICN+16, SETICN+18, SETICN+26, SETICN+33 |
EXIT6 | SETLOC+11, SETLOC+12 |
EXIT7 | HL7CMOR+7, HL7CMOR+8, HL7CMOR+9, HL7CMOR+10, HL7CMOR+13, HL7CMOR+15, HL7CMOR+16 |
LOCK | ICNLC+6, CHANGE+15, SETICN+27, SETLOC+13, SETFICN+26 |
QDFN2ICN | DFN2ICN+4, DFN2ICN+5, DFN2ICN+6, DFN2ICN+8 |
QICN2DFN | ICN2DFN+4, ICN2DFN+5, ICN2DFN+6, ICN2DFN+8, ICN2DFN+9 |
QSETFICN | SETFICN+11, SETFICN+12, SETFICN+13, SETFICN+14, SETFICN+15, SETFICN+17, SETFICN+25 |
REP | REP+4 |
UNLOCK | ICNLC+22, REP+10, SETICN+38, SETLOC+19, SETFICN+35 |
>> | Not killed explicitly |
* | Changed |
! | Killed |
~ | Newed |
Name | Field # of Occurrence |
---|---|
CHKSUM | ICNLC+4~, ICNLC+11*, ICNLC+14, SETICN~, SETICN+15, SETICN+29*, SETICN+40 |
CIEN | CMORNAME~, CMORNAME+3, CMORNAME+5 |
CNT | CHANGE+14~*, REP+2*, REP+4, REP+5 |
DA | CHANGE+9~, REP*, SETICN+10~, SETICN+30*, SETLOC+9~, SETLOC+15*, SETFICN+9~, SETFICN+28* |
DELFLAG | SETLOC~, SETLOC+14 |
DFN | GETICN~, GETICN+5, GETICN+6, GETICN+7, GETICN+8, GETICN+11, GETDFN+2~, GETDFN+6*, GETDFN+7, GETDFN+8 , GETDFN+10, ICNLC~, ICNLC+5, ICNLC+7, ICNLC+14, ICNLC+19, ICNLC+20, CMOR2~, CMOR2+2, CMOR2+4 , GETVCCI~, GETVCCI+3, GETVCCI+4, GETVCCI+5, GETVCCI+6, CHANGE~, CHANGE+11, CHANGE+12, CHANGE+17, REP , REP+3, REP+8, SETICN~, SETICN+12, SETICN+13, SETICN+16, SETICN+18, SETICN+21, SETICN+22, SETICN+24 , SETICN+30, SETICN+35, SETICN+36, SETICN+37, SETICN+40, SETLOC~, SETLOC+11, SETLOC+12, SETLOC+15, SETLOC+18 , IFLOCAL~, IFLOCAL+4, IFLOCAL+5, IFLOCAL+6, IFLOCAL+7, IFVCCI~, IFVCCI+6, IFVCCI+7, HL7CMOR~, HL7CMOR+7 , HL7CMOR+9, HL7CMOR+10, HL7CMOR+11, ICN2DFN+3~, ICN2DFN+7*, ICN2DFN+8, ICN2DFN+9, ICN2DFN+10, DFN2ICN~, DFN2ICN+4 , DFN2ICN+5, DFN2ICN+6, DFN2ICN+7, DFN2ICN+10, SETFICN~, SETFICN+11, SETFICN+12, SETFICN+15, SETFICN+17, SETFICN+20 , SETFICN+21, SETFICN+23, SETFICN+28, SETFICN+32, SETFICN+33, SETFICN+34, LOCK+1, UNLOCK+1 |
DFN2 | SETICN+23~*, SETICN+24, SETFICN+22~*, SETFICN+23 |
DIC | CHANGE+9~ |
DIE | CHANGE+9~, REP*, SETICN+10~, SETICN+30*, SETLOC+9~, SETLOC+15*, SETFICN+9~, SETFICN+28* |
DIQUIET | CHANGE+9~, CHANGE+10*, CHANGE+14*, SETICN+10~, SETICN+11*, SETICN+28*, SETLOC+9~, SETLOC+10*, SETLOC+14*, SETFICN+9~ , SETFICN+10*, SETFICN+27* |
DR | CHANGE+9~, REP*, SETICN+10~, SETICN+30*, SETLOC+9~, SETLOC+15*, SETFICN+9~, SETFICN+28* |
ERR | SETICN+10~, SETICN+36*, SETICN+37*, SETFICN+9~, SETFICN+33*, SETFICN+34* |
ICN | GETDFN~, GETDFN+3, GETDFN+4*, GETDFN+5, GETDFN+6, GETDFN+8, ICNLC+4~, ICNLC+7*, ICNLC+8, ICNLC+10* , ICNLC+11, ICNLC+13*, ICNLC+23, SETICN~, SETICN+14, SETICN+16, SETICN+18, SETICN+20, SETICN+21, SETICN+22 , SETICN+23, SETICN+24, SETICN+29, SETICN+36, SETICN+37, SETICN+40, ICN2DFN~, ICN2DFN+4, ICN2DFN+5, ICN2DFN+6 , ICN2DFN+7, ICN2DFN+9, SETFICN~, SETFICN+13, SETFICN+14, SETFICN+15, SETFICN+17, SETFICN+19, SETFICN+20, SETFICN+21 , SETFICN+22, SETFICN+23, SETFICN+33, SETFICN+34 |
ICNX | ICNLC+4~, ICNLC+11*, ICNLC+13, ICNLC+14 |
INST | CMORNAME+4~, CMORNAME+5*, CMORNAME+6, CMORNAME+7, CMORNAME+8 |
NODE | GETICN+4~, GETICN+8*, GETICN+9, GETICN+10, GETICN+11, CMOR2+3~, CMOR2+4*, CMOR2+5, CMOR2+6, GETVCCI+2~ , GETVCCI+6*, GETVCCI+7, HL7CMOR+6~, HL7CMOR+11*, HL7CMOR+12, DFN2ICN+3~, DFN2ICN+7*, DFN2ICN+8, DFN2ICN+9 |
NOLOCK | ICNLC+12*, ICNLC+13!, ICNLC+15!, ICNLC+21!, CHANGE+15, REP+10, SETICN+27, SETICN+38, SETLOC+13, SETLOC+19 , SETFICN+26, SETFICN+35 |
PTR | GETVCCI+2~, GETVCCI+7*, GETVCCI+8, GETVCCI+9, HL7CMOR+6~, HL7CMOR+12*, HL7CMOR+13, HL7CMOR+14 |
RETURN | GETICN+4~, GETICN+5*, GETICN+6*, GETICN+7*, GETICN+9*, GETICN+10*, EXIT1+1, GETDFN+2~, GETDFN+3*, GETDFN+5* , GETDFN+7*, GETDFN+8*, GETDFN+10*, EXIT2+1, GETVCCI+2~, GETVCCI+3*, GETVCCI+4*, GETVCCI+5*, GETVCCI+8*, GETVCCI+10* , GETVCCI+11*, EXIT3+1, CHANGE+9~, CHANGE+10*, CHANGE+11*, CHANGE+12*, CHANGE+13*, REP+6*, EXIT4+1, SETICN+10~ , SETICN+11*, SETICN+12*, SETICN+13*, SETICN+14*, SETICN+15*, SETICN+16*, SETICN+18*, SETICN+25*, SETICN+26, SETICN+33* , SETICN+34, SETICN+40*, EXIT5+1, SETLOC+9~, SETLOC+10*, SETLOC+11*, SETLOC+12*, SETLOC+17*, SETLOC+18, EXIT6+1 , HL7CMOR+6~, HL7CMOR+7*, HL7CMOR+8*, HL7CMOR+9*, HL7CMOR+10*, HL7CMOR+13*, HL7CMOR+15*, HL7CMOR+16*, HL7CMOR+17*, EXIT7+1 , ICN2DFN+3~, ICN2DFN+4*, ICN2DFN+5*, ICN2DFN+6*, ICN2DFN+8*, ICN2DFN+9*, ICN2DFN+10*, QICN2DFN+1, DFN2ICN+3~, DFN2ICN+4* , DFN2ICN+5*, DFN2ICN+6*, DFN2ICN+8*, DFN2ICN+9*, DFN2ICN+10, QDFN2ICN+1, SETFICN+9~, SETFICN+10*, SETFICN+11*, SETFICN+12* , SETFICN+13*, SETFICN+14*, SETFICN+15*, SETFICN+17*, SETFICN+24*, SETFICN+25, SETFICN+30*, SETFICN+31, QSETFICN+1 |
RGRSICN | SETICN+10~, SETICN+11*, SETFICN+9~, SETFICN+10* |
SEP | HL7CMOR~, HL7CMOR+8, HL7CMOR+17 |
SITE | IFVCCI+5~, IFVCCI+8*, IFVCCI+10 |
STANUM | GETVCCI+2~, GETVCCI+9*, GETVCCI+10, GETVCCI+11 |
STAT | HL7CMOR+6~, HL7CMOR+14*, HL7CMOR+15, HL7CMOR+16, HL7CMOR+17 |
TIEN | CHANGE+14~, REP+3*, REP+4, REP+5, REP+8 |
TMP | ICNLC+4~, ICNLC+14*, ICNLC+15, ICNLC+19*, ICNLC+20* |
>> TWODFN | SETICN+24, SETFICN+23 |
VALUE | SETLOC+9~, SETLOC+14* |
VCCI | CHANGE~, CHANGE+13, CHANGE+17*, CHANGE+19*, REP+4, REP+5, IFVCCI+5~, IFVCCI+7*, IFVCCI+9, IFVCCI+10 |
X | CHANGE+9~ |
Y | CHANGE+9~, SETICN+10~, SETICN+33, SETLOC+9~, SETLOC+17, SETFICN+9~, SETFICN+30 |