WVTDALRT ;ISP/RFR - TDRUGS STATUS CHANGE ALERTS;Dec 01, 2020@12:39
Source file <WVTDALRT.m>
| Name | Comments | DBIA/ICR reference | 
|---|---|---|
| ALERT(WVDFN,WVRECIP,WVMSG,WVCOUN,WVORDERS) | ;Create and send alert
 ; EN^ORB3 (IA #1362): This component generates the CPRS alert ; INPUT: WVDFN - Patient IEN file #2 ; WVRECIP - Array of alert recipients IEN file #200 ; WVRECIP(IEN)="" ; WVMSG - Text of the alert ; WVCOUN - 1 to include "Counsel rist/benefit." in alert text ; 0 (default) to not include the text ; WVORDER - Caret-delimited list of orders to display  | 
|
| DELALERT(WVMSG,WVDFN) | ;Delete existing alerts containing a specific message
 ; DELETE^XQALERT (IA #10081): This component deletes a single alert ; INPUT: WVMSG - Partial text of the alert ; WVDFN - Patient IEN file #2  | 
|
| GETALRTS(WVRETURN,WVMSG,WVDFN) | ;Return alert IDs that contain a specific message
 ; PATIENT^XQALERT (IA #10081): This component retrieves all alerts for a patient ; INPUT: WVRETURN - reference to array in which to return alert IDs ; WVMSG - Partial text of the alert ; WVDFN - Patient IEN file #2 ; RETURN: WVRETURN(0)=Number of alert IDs found ; WVRETURN(N)=Alert ID ; where N is a whole number starting at 1 and incrementing by 1  | 
|
| LACT(WVDFN,WVLASTAT) | ;Entry point for processing lactation status change
 ; CALLED BY: LACTATION STATUS field (#21) of the LACTATIONS multiple field ; (#50) in the WV PATIENT file (#790) ; INPUT: WVDFN - Patient IEN file #2 ; WVLASTAT - New lacation status  | 
|
| METHOD(WVDFN,WVDA,WVNEWREC,WVNCON) | ||
| MTEXT() | ;Entry point to return starting text of notifications sent when the likelihood of
 ; becoming pregnant changes  | 
|
| PREG(WVDFN,WVPGSTAT) | ;Entry point for processing pregnancy status change
 ; CALLED BY: PREGNANCY STATUS field (#11) of the PREGNANCIES multiple field ; (#40) in the WV PATIENT file (#790) ; INPUT: WVDFN - Patient IEN file #2 ; WVPGSTAT - New pregnancy status  | 
|
| REVIEW(WVDFN,WVTEXT,WVCOUN,WVLAC,WVPRG) | ;Entry point for reviewing patient's orders
 ; INPUT: WVDFN - Patient IEN file #2 ; WVTEXT - The first sentence of the alert text. ; WVCOUN - 1 to include "Counsel rist/benefit." in alert text ; 0 (default) to not include the text ; WVLAC - 1 to indicate calling context is lactation ; 0 (default) to indicate calling context is not lactation ; WVPRG - 1 to indicate calling context is pregnancy ; 0 (default) to indicate calling context is not pregnancy  | 
|
| TRY(WVDFN,WVTSTAT) |