Print Page as PDF
MPIFAPI ICR (2702)

MPIFAPI    ICR (2702)

Name Value
NUMBER 2702
IA # 2702
DATE CREATED 1999/01/12
CUSTODIAL PACKAGE MASTER PATIENT INDEX VISTA
USAGE Supported
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE MPIFAPI
NAME MPIFAPI
GENERAL DESCRIPTION
Functions to return the MPI node, Subscriptioon Control
Number from the MPI Node, the name of the HL7 Logical Link for the MPI and to
return the next Local Integration Control Number.  These APIs are provided for
the CIRN developers and others that may need this data.
STATUS Active
ID MPIFAPI
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
$$MPINODE
$$MPINODE^MPIFAPI(DFN)  This function returns the MPI
node for a given patient in the Patient file (#2). Returning:  MPI node OR
-1^error message.
VARIABLES TYPE VARIABLES DESCRIPTION
DFN Input
DFN - IEN of patient in Patient file (#2).
$$SUBNUM
$$SUBNUM^MPIFAPI(DFN)  This function returns the
Subscription Control Number from the MPI node for a given patient in the
Patient file (#2).  Returns:  Subscription Control Number OR -1^error message.

VARIABLES TYPE VARIABLES DESCRIPTION
DFN Input
DFN = IEN of patient in the Patient file (#2).
$$EN2
$$EN2^MPIFAPI()  This function creates and returns
the next Local ICN (Integration Control Number) and ICN Checksum.  Returns:
ICN V ICN Checksum (no spaces).
$$MPILINK
This function returns the name of the MPI logical
link from the HL Logical Link file.
GETADFN
This API will return the DFN for a given ICN ONLY if
the ICN is the active ICN for a patient.
VARIABLES TYPE VARIABLES DESCRIPTION
ICN Input
This is the Integration Control Number that is being
used to find a given patient.
DFN Output
The IEN of the patient in the Patient (#2) file that
currently has this ICN as the active ICN (stored in field 991.01).  ICN is not
found -1^error message is returned.