Ignore:
Timestamp:
Jul 25, 2010, 2:51:23 PM (14 years ago)
Author:
Kevin Toppenberg
Message:

interval update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cprs/branches/tmg-cprs/m_files/TMGRPCSR.m

    r796 r894  
    2828 ;
    2929CHANNEL(TMGRESULT,INPUT) ;
    30         ;"Purpose: This will be a general purpose channel RPC from a GUI config program
     30        ;"Purpose: This will be a general purpose channel RPC from CPRS
    3131        ;"Input: TMGRESULT -- this is an OUT parameter, and it is always passed by reference
    3232        ;"       INPUT -- this will be array of data sent from the GUI client.  Defined below:
     
    5656        ;"              "RESULTS LIST SUBSET"  -- get sublist of search results
    5757        ;"                   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        ;"              =================================================================================
    5883        ;"Output: results of this function should be put into TMGRESULTS array.
    5984        ;"        For cmd:
     
    86111        ;"            TMGRESULT(2)=IENNum^RequestedFieldNames
    87112        ;"            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        ;"          =================================================================================
    88136        ;"Result: none
    89137        ;
     
    112160        ELSE  IF TMGCOMMAND="RESULTS LIST SUBSET" DO
    113161        . 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        ;
    115179        QUIT
    116180        ;
Note: See TracChangeset for help on using the changeset viewer.