Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: HMPWB

HMPWB.m

Go to the documentation of this file.
HMPWB ;;ASMR/EJK - COMMON ENTRY POINT FOR ALL WRITEBACK ACTIVITY; 12/14/2014
 ;;2.0;ENTERPRISE HEALTH MANAGEMENT PLATFORM;**2**;DEC 11 2014;Build 28
 ;Per VA Directive 6402, this routine should not be modified.
 ;
 ; INPUT PARAMETERS
 ;   IEN - existing allergy IEN or 0 if this is a new allergen. 
 ;   DFN - patient identifier
 ;   DATA(list) - array of related data
 ;      domain - used for determining the type of writeback data this is. 
 ;
 Q
 ;
API(RSLT,IEN,DFN,DATA) ; MAIN ENTRY POINT FROM RPC HMP PUT OPERATIONAL DATA
 M ^TMP("ZZHMPWB",$J,"DATA")=DATA
 S ^TMP("ZZHMPWB",$J,"DFN")=$G(DFN)
 S ^TMP("ZZHMPWB",$J,"IEN")=$G(IEN)
 N HMPAPI
 S HMP=$NA(^TMP("HMP",$J)),HMPI=0 K @HMP
 S HMPAPI=$G(DATA("domain"))
 I HMPAPI="allergy" D ALLERGY^HMPWB1(.RSLT,IEN,DFN,.DATA)
 I HMPAPI="demographics" D DEMOG^HMPWB2(.RSLT,IEN,OL,.DATA)
 I HMPAPI="vitals" D VMADD^HMPWB2(.RSLT,IEN,DFN,.DATA)
 I HMPAPI="vitals error" D VMERR^HMPWB2(.RSLT,IEN,DFN,.DATA)
 ;I HMPAPI="meds" D NVAMED^HMPWB3(.RSLT,IEN,DFN,.DATA)
 Q