DGMHVAC ;HIRMFO/WAA-REACTIONS SELECT ROUTINE ;6/9/05 11:12
Source file <DGMHVAC.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
EN(DFN,DGABB) | ; Entry point for MHV Enrollment/Registration 'screen'
; Allow editing only if "1" is selected, always begin with Registered? field, since subsequent field logic is dependent |
|
MAIN(DFN,DGABB) | ; Main Driver for Enrollment/Registration 'screen'.
; Prompt for three MHV Enrollment/Registration fields - include previously entered values as defaults ; Copy NO value and reason entered at any field to all subsequent fields. ; Do not prompt for subsequent field unless 'YES' is entered at current field. ; (A)ction (in progress) is treated as UNANSWERED. |
|
ENROLLQ(MHV,DGMHVNOW) | ; Prompt for "MHV Enrolled/Registered"
|
|
AUTHENQ(MHV,DGMHVNOW) | ; Prompt for "MHV Authenticated"
|
|
OPTINQ(MHV,DGMHVNOW) | ; Prompt for "Use MHV Secure Messaging" - Note previous wording was Opt In
|
|
ENROLL | ||
AUTHENT | ||
SECMSG | ||
GETRSN(TXTAD,REASPT,REASTXT,REASDFLT,DGTXTND) | ; Prompt for "NO" Reason
|
|
FILRNA(DFN,DGFIELD,DGRSPT) | ; File selected NO Reason to Patient file
|
|
FILACT(DFN,DGNODE,DGACTSEL) | ; File selected MHV Action(s) to Patient file
|
|
GETRSNS(DGMSACT,DGSCRQ) | ; Build and return array of selectable reasons from file 390.03
|
|
SETDIR(DGMSACT,TXTAD,DGMDEF) | ; Put incoming array of reasons into DIC("A")
|
|
MHVOK(DFN) | ; Check patient's MHV enrollment/registration info.
; Logic to activate/deactivate alert ; ----------------------------------- ; 1. If any field contains null (UNANSWERED), return 0 ; 2. If any field contains "A" (ACTION), return 0 ; 3. If neither 1 nor 2 is true, and any field contains "N" (NO): ; a. The alert is ON if the date the NO was entered is at least 6 months prior to the current date ; b. The alert is OFF if the date the NO was entered is less than 6 months prior to the current date ; 4. If all fields contain "Y" (YES), return 1 |
|
LKUPRSN(REASON) | ; Lookup "NO" Reason in file 390.03
|
|
LKUPRTXT(DFN,DGRFIELD) | ; Lookup "OTHER" Reason free text from PATIENT (#2) file
|
|
LKUPACT(ACTION) | ; Lookup MHV Action in file 390.02
|
|
LASTACHK(DFN,ACTXT) | ; Check if ACTXT contains the text matching the most recent ACTION entered for patient DFN
|
Name | Line Occurrences |
---|---|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
FileNo | Call Tags |
---|---|
^DPT - [#2] | Classic Fileman Calls |