PSOSPMUT ;BIRM/MFR - State Prescription Monitoring Program Utilities ;10/07/12
Source file <PSOSPMUT.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
EXPORT(BATCHIEN,MODE,BCKGRND,DEBUG,FLUSH) | ; Export a SPMP Batch
|
|
WRITELEV(LEVEL,ARRAY) | ; Write the ASAP Segments for each Level
|
|
WRITESEG(SEGID,LEVEL,ARRAY) | ; Write the ASAP segment to the file
|
|
WRITEELM(SEGID,ELMPOS,ARRAY) | ; Write the ASAP Data Element to file
|
|
SEGCOUNT(LEVEL) | ; Keeps track of Segment Count for TP and TT info
|
|
ERROR | ; Error Trap Handling to catch errors on user-entered M SET expressions
|
|
SCREEN(RXIEN,FILLNUM) | ; Screens Rx's from being sent to the State
; Input: RXIEN - PRESCRIPTION file (#52) IEN ; FILLNUM - Fill Number |
|
CSRX(RXIEN) | ; Controlled Substance Rx?
; Input: RXIEN - PRESCRIPTION file (#52) pointer |
|
ADMCLN(RXIEN,FILL) | ; Returns whether the fill was administered in clinic or not
; Input: (r) RXIEN - Rx IEN (#52) ; (o) FILL - Refill # ; Output: 1 - Yes (Administered in Clinic) / 0 - No |
|
SPOK(STATE) | ; State Parameters OK?
; Input: STATE - STATE file (#5) pointer |
|
SETNAME(DFN) | ; Set array variable PSONAME with Patient name
|
|
LOGERROR(BATCHIEN,STATEIEN,ERROR,BCKGRND,LOGFILE) | ; Log/Display an error in the transmission
|
|
PREIEN(RECTYPE,RXIEN,FILLNUM) | ; Returns the Provider IEN
|
|
RPHIEN(RECTYPE,RXIEN,FILLNUM) | ; Returns the Pharmacist IEN
|
|
FEXIST(DIR,FILE) | ; Check if a File exists
; Input: DIR - Name of the directory where the file is located ; FILE - Name of the file to be checked |
|
ESC(VALUE) | ; Removes Control Characters from the Data Element Value
|
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 |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
Function Call: WRITE |
|
FileNo | Call Tags |
---|---|
^DPT - [#2] | GET1^DIQ |
^VA(20 - [#20] | GET1^DIQ |
^DIC(5 - [#5] | GET1^DIQ |
^PSDRUG - [#50] | GET1^DIQ |
^PSRX - [#52] | GET1^DIQ |
52.1 | GET1^DIQ |
^PS(58.41 - [#58.41] | GET1^DIQ |
^PS(58.42 - [#58.42] | Classic Fileman Calls, GET1^DIQ |