SDMHAP ;MAF/ALB - MENTAL HEALTH AD HOC PROACTIVE HIGH RISK REPORT;JULY 14, 2010
Source file <SDMHAP.m>
| Name | Comments | DBIA/ICR reference |
|---|---|---|
| EN | ;entry point for the manual generation of the Proactive Report
|
|
| SORT | ;sort is by clinic
|
|
| START | ;
|
|
| PROCESS | ;find patients in date range that have scheduled appt for a clinic in the date range.
|
|
| BGJ | ||
| CHK | ;Check to see if Division/Clinic/Stop have been selected & if Clinic and Stop code are a valid mental health pair.
|
|
| ACT | ;Make sure patient has active patient record flag
|
|
| HEAD | ;Heading for the report
|
|
| HEAD1 | ||
| RANGE() | ;Select Start and End date for report
|
|
| DIV() | ;Division selection for multidivisional facility
|
|
| LIST | ||
| LINE(STR) | ; Print display prompts
|
|
| LINE1(STR) | ; Print display prompts
|
|
| TOTAL(DIV) | ;INITIALIZE total(DIV,CLIN/STOP)
|
|
| CLIN | ;select clinics
|
|
| PID(DFN) | ; Return PID
; INPUT - DFN ; OUTPUT - PID or 'UNKNOWN' |
|
| RANGE1(SDBEG,SDEND,SDAMETH) | ; -- select range
|
|
| RANGEQ | ||
| NAMSPC() | ; API returns the name space for this patch
|
|
| NAMSPC1() | ; API returns the name space for this patch
|
|
| PXRMD | ;Set up Reminder Location List valid Stop Codes for Proactive Report
|
|
| END | ;NO RECORDS
|
|
| QUIT |
| 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: READ |
|
| Function Call: WRITE |
|
| Function Call: WRITE |
|
| FileNo | Call Tags |
|---|---|
| ^SC - [#44] | Classic Fileman Calls |