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 |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call
Print Page as PDF
Routine: HMPACT

Package: Enterprise Health Management Platform

Routine: HMPACT


Information

HMPACT ;ASMR/EJK/PB/JD - Patient Appointment Broker Call;May 15, 2016 14:15

Source Information

Source file <HMPACT.m>

Entry Points

Name Comments DBIA/ICR reference
ACT(ROOT,DFN,ID,ALPHA,OMEGA,DTRANGE,REMOTE,MAX,ORFHIE) ;
FETCH ;GET PENDING JSON MESSAGES AND UPDATE DATE RECORD RETRIEVED
CLEAN ;CLEAN UP STRAY VARIABLES
SETITEM(ROOT,X) ; -- set item in list - RRB US5872
APPT(HMPOUT,BEG,END,LOCIEN) ; Lookup appointments by date and location
LOCLKUP ; Gets all appointments for all clinics in the LOC(D1) array
SCHED(LOCIEN,BEG,END) ;
; Get list of patients and appointment dates from the
; using $$SDAPI^SDAMA301 api.
; Inputs are SDARRAY(1)=BEG;END - Beginning and ending dates for the search.
; BEG must be defined.
; END ending date for the search. If END is undefined, the API returns all appointments starting with the BEG date.
; BEG and END are FileMan Date/Time. Both BEG and END are validated in the calling linetag APPT^HMPACT
; LOCIEN = IEN for the location in the Hospital Location file (#44). LOCIEN is validated in the calling linetag APPT^HMPACT
;
; Feb 24, 2016 - PB - DE2991 requested that all patients be returned. Prior to DE2991, if a patient was in the HMP Subscription file (#800000)
; they were excluded from the return data.
ENDAPPT ;
ADMIT(HMPOUT,LOCIEN) ; Lookup admissions by location
ENDADMIT ;
GETADMIT(DFN) ;

Used in RPC

RPC Name Call Tags
HMP PATIENT ACTIVITY ACT
HMP PATIENT SCHED SYNC APPT
HMP PATIENT ADMIT SYNC ADMIT

FileMan Files Accessed Via FileMan Db Call

FileNo Call Tags
^DIC(42 - [#42] FIND1^DIC
Info |  Source |  Entry Points |  Used in RPC |  FileMan Files Accessed Via FileMan Db Call