| TITLE | VALUE | |
|---|---|---|
| NAME | SDECRMG RMG | |
| DESCRIPTION | This RPC returns data from the ^XTMP("SDECIDX",$J,"XREF" global. This call uses the filter and sort arrays passed in to return data in the desired format. This call returns a list of items by a key. Per SD*5.3*784, MAX RECS ACCUMULATED (#5) field has been added and Input Parameters were defined to match the routine input parameters. | |
| TAG | RMG | |
| ROUTINE | SDECRMG | |
| INPUT PARAMETERS | SEQUENCE NUMBER | 1 |
| INPUT PARAMETER | MAXREC | |
| DESCRIPTION | MAXIMUM number of records to return. The default is 25 if left blank. | |
| PARAMETER TYPE | LITERAL | |
| REQUIRED | ||
| MAXIMUM DATA LENGTH | ||
| INPUT PARAMETERS | SEQUENCE NUMBER | 2 |
| INPUT PARAMETER | LASTSUB | |
| DESCRIPTION | This parameter would contain the key of the last record processed. If this parameter is included, the routine will retrieve the next MAXREC number of items from the previous filter/sort request and will not initiate a new search. | |
| PARAMETER TYPE | LITERAL | |
| REQUIRED | ||
| MAXIMUM DATA LENGTH | ||
| INPUT PARAMETERS | SEQUENCE NUMBER | 3 |
| INPUT PARAMETER | FILTER | |
| DESCRIPTION | This parameter will contain the filter data. Filters can be in any order and in any number. It has 2 pieces to each entry. The first piece is the type and the second piece is the value. Below are examples FILTER(1)=WAITTIME^>=90 FILTER(2)=REQUESTTYPE^E~C FILTER(3)=PRIORITYGROUP^GROUP 1~GROUP 2 Clinics is a list of clinics in EXTERNAL FORMAT Origination date and desired date are list of dates in EXTERNAL format PatientName is a list of internal DFNS | |
| PARAMETER TYPE | LIST | |
| REQUIRED | ||
| MAXIMUM DATA LENGTH | ||
| INPUT PARAMETERS | SEQUENCE NUMBER | 4 |
| INPUT PARAMETER | SORT | |
| DESCRIPTION | The sort array tells how to return the requested data. Sort can be any number and in any order. SORT(1)=WAITTIME SORT(2)=REQUESTTYPE SORT(3)=PRIORITYGROUP SORT(4)=DESIREDDATE SORT(5)=ORIGINATIONDATE SORT(6)=CLINICS SORT(7)=PATIENTNAME SORT(8)=SCVISIT | |
| PARAMETER TYPE | LIST | |
| REQUIRED | ||
| MAXIMUM DATA LENGTH | ||
| INPUT PARAMETERS | SEQUENCE NUMBER | 5 |
| INPUT PARAMETER | MGIENS | |
| DESCRIPTION | List of IENs separated by pipe | to be sorted to the top of the return each IEN needs to be prefaced by the request type initial: A = APPT A123 E = EWL E123 C = Consult C123 ;not implemented R = Recall R123 ;not implemented | |
| PARAMETER TYPE | LITERAL | |
| REQUIRED | NO | |
| MAXIMUM DATA LENGTH | 999 | |
| INPUT PARAMETERS | SEQUENCE NUMBER | 6 |
| INPUT PARAMETER | SDMAX | |
| DESCRIPTION | Max records allowed to be accumulated. | |
| PARAMETER TYPE | LITERAL | |
| REQUIRED | ||
| MAXIMUM DATA LENGTH | 10 | |
| RETURN VALUE TYPE | GLOBAL ARRAY | |
| RETURN PARAMETER DESCRIPTION | ^TMP("SDECRMG",7628,0)="T00030TYPE^T00030IEN^T00030KEY"_$c(30) ^TMP("SDECRMG",7628,1)="E^119^0|0|3141102|3140919|119"_$c(30) ^TMP("SDECRMG",7628,2)="E^69^0|1|3140924|3140905|69"_$c(30) FILTER(4)=DESIREDDATE^02/20/2015~03/01/2015 FILTER(5)=ORIGINATIONDATE^11/23/2014~11/24/2014~11/25/2014 FILTER(6)=CLINICS^CARDIOLOGY CLINIC~FAMILY PRACTICE FILTER(7)=PATIENTNAME^15~23~100 FILTER(8)=SCVISIT^False Waittime is a set of codes: <30,30-60,60-90,>=90,all Priority group is a set of codes NULL, GROUP 1 - GROUP 7 Request type is a set of codes E(wait list),A(Appt request),R(recall list),C(consult) SCVisit is true/false ^TMP("SDECRMG",7628,3)="E^148^0|1|3141003|3140929|148"_$c(30) ^TMP("SDECRMG",7628,4)="E^187^0|1|3141008|3141008|187"_$c(30) ^TMP("SDECRMG",7628,5)="E^143^0|1|3141009|3140925|143"_$c(30) ^TMP("SDECRMG",7628,6)="E^181^0|1|3141009|3141008|181"_$c(30) ^TMP("SDECRMG",7628,7)="R^78^0|1|3141016|3141014|78"_$c(30) ^TMP("SDECRMG",7628,8)="E^205^0|1|3141017|3141014|205"_$c(30) ^TMP("SDECRMG",7628,9)="E^207^0|1|3141017|3141014|207"_$c(30) ^TMP("SDECRMG",7628,10)="E^192^0|1|3141023|3141010|192"_$c(30) ^TMP("SDECRMG",7628,11)="R^47^0|1|3141023|3141010|47"_$c(30) ^TMP("SDECRMG",7628,12)="E^199^0|1|3141023|3141013|199"_$c(30) ^TMP("SDECRMG",7628,13)="R^67^0|1|3141023|3141014|67"_$c(30) ^TMP("SDECRMG",7628,14)="R^64^0|1|3141024|3141014|64"_$c(30) ^TMP("SDECRMG",7628,15)="R^114^0|1|3141028|114"_$c(30) ^TMP("SDECRMG",7628,16)="R^60^0|1|3141029|3141014|60"_$c(30) ^TMP("SDECRMG",7628,17)="R^94^0|1|3141029|3141020|94"_$c(30) ^TMP("SDECRMG",7628,18)="E^159^0|1|3141030|3141002|159"_$c(30) The first piece is the request type (E,R,A,C) The second piece is the IEN of the request type The 3rd piece is the KEY to retrieving further data | |
| AVAILABILITY | RESTRICTED | |
| INACTIVE | ACTIVE | |
| CLIENT MANAGER | ||
| WORD WRAP ON | FALSE | |
| VERSION | ||
| SUPPRESS RDV USER SETUP | ||
| APP PROXY ALLOWED | ||