VIABMS ;AAC/JMC,AFS/PB - VIA BMS RPCs ;10/31/17 14:34
Source file <VIABMS.m>
| Name | Comments | DBIA/ICR reference | 
|---|---|---|
| EN(RESULT,VIA) | ; entry point for RPC
 | 
|
| PARSE(VIA) | ; -- array parsing to parameters
 | 
|
| PATH(VIATAG) | ;The PATH parameter determines the line tag executed and data returned by the RPC.
 | 
|
| GETACT | ;returns activity from the ED LOG (#230) file
 | 
|
| BETWEEN(VIAX,VIAA,VIAB) | ;
 | 
|
| PRIMDX(VIADA) | ;return primary diagnosis
 | 
|
| GETPAT | ;Returns patient information based on DFN from File #2;ICR-10035, ICR-6607
 | 
|
| PATSSN | ;Returns patient information based on SSN from File #2
 | 
|
| LADMPAT | ;Returns a list of admitted patients from File #2
 | 
|
| LSTPAT | ;Returns a list of patients from File #2;ICR-10035, ICR-6607
 | 
|
| GPAT | ;Get patient data from File #2;ICR-10035,ICR-6607
 | 
|
| ADMTPAT | ;Returns a list of admitted patients from File #2 up to the Admitted IEN;ICR-10035
 | 
|
| WRDLOC | ;Returns information for a ward from File #42;ICR-6609
 | 
|
| NEWPER | ;Returns a list of people from the NEW PERSON file #200 for a date range on DATE ENTERED Field (#30)
 | 
|
| SPLTY | ;Returns a list of specialties from the SPECIALTY file #42.4;ICR-2652
 | 
|
| PATAPPT | ; Returns a list of patient appointments using API SDAPI^SDAMA301;ICR-4433
 | 
|
| PATAPPTQ | ||
| CANORDS | ; Returns a list of cancelled orders from the ORDER file #100;ICR-5771
 | 
|
| ACTDATE(IEN) | ;Returns the date of the first ORDER ACTION found
 | 
|
| LWRDLOC | ; Returns a list of ward locations from the WARD LOCATION file #42;ICR-6609
 | 
|
| MOVTYP | ; Returns a list of facility movement type from the FACILITY MOVEMENT TYPE file #405.1;ICR-6610
 | 
|
| DTCHK(RESULT,VIASDT,VIAEDT) | ;check/set date
 | 
|
| PATCHK(DFN) | ;check if patient is valid in File #2
 | 
|
| GDIQ | ;Runs GETS^DIQ
 | 
|
| LDIC | ;Runs LIST^DIC
 | 
|
| SET(X) | ;
 | 
|
| ERR(X) | ;Error processing
 | 
|
| KVAR | ;Clean-up
 | 
|
| GMVTR(IENS) | ;
 | 
|
| HNDL | ;Finds PATH and linetag that needs to be executed for results
 | 
| RPC Name | Call Tags | 
|---|---|
| VIAB BMS | EN | 
| FileNo | Call Tags | 
|---|---|
| ^OR(100 - [#100] | GET1^DIQ | 
| ^EDP(230 - [#230] | GET1^DIQ | 
| 230.04 | GET1^DIQ | 
| ^EDPB(233.1 - [#233.1] | GET1^DIQ | 
| ^DIC(4 - [#4] | GET1^DIQ | 
| ^DGPM - [#405] | GET1^DIQ, GETS^DIQ |