GMVRPCHL ;HIOFO/FT-RPC FOR HOSPITAL LOCATION SELECTION ;12/7/05 10:32
Source file <GMVRPCHL.m>
Name | Comments | DBIA/ICR reference |
---|---|---|
RPC(RESULTS,OPTION,DATA) | ; [Procedure] Main RPC call tag
; RPC: [GMV LOCATION SELECT] |
|
NAME | ; Return list of clinics and wards by name
; DATA=pieceA^pieceB^pieceC ; where pieceA - file number (required) ; pieceB - value to begin search with (required) ; pieceC - field(s) to do the look-up on (optional, defaults to .01 field) |
|
APPT | ; Get patient appointments using SDA^VADPT
; DATA=GMVDFN^GMVFROM^GMVTO^GMVFLAG ; GMVDFN - DFN (required) ; GMVFROM - Start date of search (optional) ; GMVTO - End date of search (optional) ; GMVFLAG - kind of appt flag (optional) ; RESULTS(0)=piece1^piece2 ; RESULTS(n)=piece3^piece4^piece5^piece6^piece7^piece8^piece9^piece10 |
|
ADMIT | ; return a list of admissions
; DATA=DFN ; RESULTS(0)=piece1 ; RESULTS(n)=piece2^piece3^piece4^piece5^piece6 ; where piece1 - number of records returned ; piece2 - movement date/time (external) ; piece3 - location ien (FILE 44) ; piece4 - location name (FILE 44, Field .01) ; piece5 - type of move ; PIECE6 - movement ien ; n - a sequential number starting with 1 |
|
CLINIC | ; Return list of active clinics
; DATA = GMVFROM^GMVMAX^GMVDIR ; Where: ; GMVFROM - Value to begin the search (optional). Default is null (i.e., start ; with the first entry in the B x-ref). ; GMVMAX - Maximum number of entries to return. (optional) Default is 100. ; GMVDIR - Direction of search (optional). 1 means forward and -1 means backwards. ; Default is 1. ; Output ; RESULT(n)=piece1^piece2 ; ; where n is a sequential number starting with zero ; piece1 - 44;ien (44, a semi-colon and the entry number) ; piece2 - location name (FILE 44, Field .01) ; ; ex: ; RESULTS(0)=n ; RESULTS(1)=44;123^TEST CLINIC ; ; If no entries are found, then RESULTS(0)="-1^NO ENTRIES FOUND" |
RPC Name | Call Tags |
---|---|
GMV LOCATION SELECT | RPC |