Changeset 894 for cprs/branches/tmg-cprs/m_files/TMGRPCSR.m
- Timestamp:
- Jul 25, 2010, 2:51:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cprs/branches/tmg-cprs/m_files/TMGRPCSR.m
r796 r894 28 28 ; 29 29 CHANNEL(TMGRESULT,INPUT) ; 30 ;"Purpose: This will be a general purpose channel RPC from a GUI config program30 ;"Purpose: This will be a general purpose channel RPC from CPRS 31 31 ;"Input: TMGRESULT -- this is an OUT parameter, and it is always passed by reference 32 32 ;" INPUT -- this will be array of data sent from the GUI client. Defined below: … … 56 56 ;" "RESULTS LIST SUBSET" -- get sublist of search results 57 57 ;" params: JobNum^ListStartValue^direction^MaxCount(optional, def=44) 58 ;" ================================================================================= 59 ;" == Calls for searching TIU DOCUMENTS == 60 ;" ================================================================================= 61 ;" "PT DOCS SEARCH" -- launch a background search in documents for 1 patient 62 ;" params: PatientEIN^SearchString 63 ;" "PT DOCS STATUS" -- Get status of background search 64 ;" params : none 65 ;" "PT DOCS GET RESULTS" -- get result from background search 66 ;" params : none 67 ;" "PT DOCS CLEAR" -- Tell background task to stop, and clear data array 68 ;" params : none 69 ;" "PT DOCS STOP" -- Tell background task to stop searching 70 ;" params : none 71 ;" "PT DOCS CHANGE SEARCH" -- tell background task to change search parameters 72 ;" Note: this can be used to allow the search to begin while the 73 ;" user is still entering the search terms. If the new search is just an 74 ;" extension to the prior search, then the prior search will be added on 75 ;" rather than starting over. 76 ;" params: PatientEIN^SearchString 77 ;" "PT DOCS PREP FOR SUBSET" -- Prep for Subset of List for TORCombobox 78 ;" params : none 79 ;" "PT DOCS SUBSET OF RESULTS" -- Get a subset of list for TORCombobox 80 ;" params : StartFrom^Direction^MaxCount 81 ;" Direction and Maxcount are optional, def=1, 44 respectively 82 ;" ================================================================================= 58 83 ;"Output: results of this function should be put into TMGRESULTS array. 59 84 ;" For cmd: … … 86 111 ;" TMGRESULT(2)=IENNum^RequestedFieldNames 87 112 ;" etc ... 113 ;" ================================================================================= 114 ;" == Calls for searching TIU DOCUMENTS == 115 ;" ================================================================================= 116 ;" "PT DOCS SEARCH" 117 ;" TMGRESULT(0)="1^Success", OR -1^ErrorMsg 118 ;" "PT DOCS STATUS" 119 ;" TMGRESULT(0)="1^Status" or -1^ErrorMessage 120 ;" NOTe: will return 1^DONE when done with search. 121 ;" "PT DOCS GET RESULTS" 122 ;" TMGRESULT(0)=FoundCount^Success, or -1^Message 123 ;" TMGRESULT(1)=IEN1 124 ;" TMGRESULT(2)=IEN2 ... etc. 125 ;" "PT DOCS CLEAR" 126 ;" TMGRESULT(0)="1^Success 127 ;" "PT DOCS STOP" 128 ;" TMGRESULT(0)="1^Success 129 ;" "PT DOCS PREP FOR SUBSET" 130 ;" TMGRESULT(0)="1^Success", OR -1^ErrorMsg 131 ;" "PT DOCS SUBSET OF RESULTS" 132 ;" TMGRESULT(0)="1^Success" or "-1^Message" 133 ;" TMGRESULT(1)=IEN^ANoteIdentifier 134 ;" TMGRESULT(2)=IEN^ANoteIdentifier 135 ;" ================================================================================= 88 136 ;"Result: none 89 137 ; … … 112 160 ELSE IF TMGCOMMAND="RESULTS LIST SUBSET" DO 113 161 . DO GETRSLTSB^TMGRPCS0(.TMGRESULT,TMGPARAMS) 114 ; 162 ELSE IF TMGCOMMAND="PT DOCS SEARCH" DO 163 . DO PDSRCH^TMGRPCS1(.TMGRESULT,TMGPARAMS) 164 ELSE IF TMGCOMMAND="PT DOCS STATUS" DO 165 . DO PDSTATUS^TMGRPCS1(.TMGRESULT,TMGPARAMS) 166 ELSE IF TMGCOMMAND="PT DOCS GET RESULTS" DO 167 . DO PDRESULT^TMGRPCS1(.TMGRESULT,TMGPARAMS) 168 ELSE IF TMGCOMMAND="PT DOCS CLEAR" DO 169 . DO PDCLEAR^TMGRPCS1(.TMGRESULT,TMGPARAMS) 170 ELSE IF TMGCOMMAND="PT DOCS STOP" DO 171 . DO PDSTOP^TMGRPCS1(.TMGRESULT,TMGPARAMS) 172 ELSE IF TMGCOMMAND="PT DOCS CLEAR" DO 173 . DO PDCLEAR^TMGRPCS1(.TMGRESULT,TMGPARAMS) 174 ELSE IF TMGCOMMAND="PT DOCS PREP FOR SUBSET" DO 175 . DO PDPREPSS^TMGRPCS1(.TMGRESULT,TMGPARAMS) 176 ELSE IF TMGCOMMAND="PT DOCS SUBSET OF RESULTS" DO 177 . DO PDGETSS^TMGRPCS1(.TMGRESULT,TMGPARAMS) 178 ; 115 179 QUIT 116 180 ;
Note:
See TracChangeset
for help on using the changeset viewer.