Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Info |  Source |  Entry Points
Print Page as PDF
Routine: MPIFXMLS

Package: Master Patient Index VistA

Routine: MPIFXMLS


Information

MPIFXMLS ;OAK/ELZ - MPIF HEALTHEVET XML BUILDING - SEARCH ID (PATIENT) ;19 APR 2012

Source Information

Source file <MPIFXMLS.m>

Entry Points

Name Comments DBIA/ICR reference
PATIENT(RETURN,MPIID) ; - look up and return PV data from fully qualified id
; such as 1000323423^PI^500^USVHA
CARDPV(RETURN,MPICARD,EDIPI) ; - look up PV data from a VIC card number
; pass in the VIC card number or EDIPI in MPICARD,
; EDIPI if set to 1 to indicate EDIPI lookup
; this will return the array:
; RETURN(.01)= patient name
; RETURN(.02)= patient sex
; RETURN(.03)= patient dob
; RETURN(.09)= patient ssn
; RETURN(.092)= patient place of birth (city)
; RETURN(.093)= patient place of birth (state)
; RETURN(.2403)= mother's maiden name
; RETURN(991.01)= patient icn
; RETURN(991.02)= patient icn checksum
; or if not found RETURN=-1
DPTLK(RETURN,MPIDATA) ; - sets up return data for DPTLK needs
XMLS(MPIID) ; setup xml to search
; MPIID =fully qualified ID to search for a patient delaminated with "^"
; Returns XML for the search
PARSE(MPIDATA,MPIXML) ; - parse the data
SE(MPIN,MPIA) ; - used for the parser to call back with STARTELEMENT
VALUE(MPIT) ; - used by the parser to call back with CHARACTERS
Info |  Source |  Entry Points