Print Page as PDF
CPRS REMOTE PROCEDURE CALLS ICR (3080)

CPRS REMOTE PROCEDURE CALLS    ICR (3080)

Name Value
NUMBER 3080
IA # 3080
DATE CREATED 2000/04/11
CUSTODIAL PACKAGE CLINICAL REMINDERS
CUSTODIAL ISC Salt Lake City
USAGE Controlled Subscription
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE PXRMRPCC
NAME CPRS REMOTE PROCEDURE CALLS
GENERAL DESCRIPTION
These are the entry points for routine PXRMRPCC:

1) ACTIVE^PXRMRPCC(.ORY,.LIST) - List active dialogs for selected reminders

2) DIALOG^PXRMRPCC(.ORY,ORREM) - Load a reminder dialog

3) HDR^PXRMRPCC(.ORY,ORLOC)- Progress Note Header by location/service/user

4) MH^PXRMRPCC(.ORY,ORTEST) - Load MH test details

5) MHR^PXRMRPCC(.ORY,ORMHR,.ORES) - Get MH test score and result (P/N text)

6) MHS^PXRMRPCC(.ORY,.ORES) - Save MH test results to MH package

7) MST^PXRMRPCC(.ORY,ORPT,ORDATE,ORSTAT,ORPROV,ORFTYP,ORFIEN,ORRES) - Update
MST

8) PROMPT^PXRMRPCC(.ORY,ORDLG,ORDCUR,ORFTYP,ORIEN) - Load additional
prompts

9) RES^PXRMRPCC(.ORY,ORREM) - Display reminder inquiry

10) WH^PXRMRPCC(.ORY,ORRESULT) - Save WH Exam Results to the WV package

Output is returned in the ORY array
STATUS Active
KEYWORDS PXRMRPCC
DURATION Till Otherwise Agreed
ID PXRMRPCC
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
ACTIVE
ACTIVE^PXRMRPCC(.ORY,.LIST) - List active dialogs for
selected reminders

For a list of reminders [#811.9] returns same list with status to indicate
if an active dialog exists for the reminder.

INPUT: LIST
List of reminders in format :

LIST(1) = reminder ien1 (from #811.9)
LIST(2) = reminder ien2

OUTPUT: ORY
Array of clinical reminders in format

ORY(1)=Reminder_U_Status
ORY(2)=Reminder_U_Status

Where status:

0 - No active dialog
1 - Active dialog

DIALOG
DIALOG^PXRMRPCC(.ORY,ORREM) - Load a reminder dialog

Dialog for a given reminder

INPUT: ORREM
Clinical reminder (ien) from CLINICAL REMINDER DEFINITION file [#811.9]

OUTPUT: ORY
For each dialog item in the reminder dialog for the reminder :

Type 1 records - Initial states

1^dialog item ien[#801.41]^dialog ien [#801.412]^^^^

Type 2 records - Question text

2^dialog item ien[#801.41]^dialog ien [#801.412]^text

MH
MH^PXRMRPCC(.ORY,ORTEST) - Load MH test details

Returns array for given mental health instrument

INPUT: ORTEST
Name of the mental health instrument

OUTPUT: ORY
Returns array of mental health instrument questions/answers
(variable format)

MHR
MHR^PXRMRPCC(.ORY,ORMHR,.ORES) - Get MH test score
and result (P/N text)

Returns progress note text based on the results of the test.

INPUT: ORMHR
This is the pointer to the result group for the test [#801.41,.01].

INPUT: ORES
Test results in YS array format(R1,R2,DFN,DUZ,ADATE etc).

OUTPUT: ORY
Returns array of progress note text as multiple type 7 records.

MHS
MHS^PXRMRPCC(.ORY,.ORES) - Save MH test results to MH
package

Stores test result responses from a reminder dialog.

INPUT: ORES
Test results in YS array format(R1,R2,DFN,DUZ,ADATE etc).

OUTPUT: ORY
Returns either

[DATA]saved ok
or
-1^[ERROR]description of error

PROMPT
PROMPT^PXRMRPCC(.ORY,ORDLG,ORDCUR,ORFTYP,ORIEN) -
Load additional prompts

Additional prompts for a given dialog element

INPUT: ORDLG
Reminder dialog element identifier (ien) from REMINDER DIALOG file
[#801.41]

INPUT: ORCUR
Used only for taxonomy dialogs.

0 - Current Diagnosis/Procedure
1 - Historical Diagnosis/Procedure

INPUT: ORFTYP
For taxonomy dialog the type of finding (POV/CPT) for this dialog line

INPUT: ORIEN
Reminder dialog identifier (IEN) from REMINDER DIALOG file [#801.41] of the
dialog that contains the element identified in parameter ORDLG.

OUTPUT: ORY
For a selected dialog element

type 3 - Resolutions

3^dialog item ien[#801.41]^line id^resolution type code^ien[#various]

type 4 - Additional prompts

4^dialog item ien[#801.41]^line id^prompt text

type 5 - Listbox items (cpt/pov)

5^dialog item ien[#801.41]^line id^cpt/pov ien^code/desc
RES
RES^PXRMRPCC(.ORY,ORREM) - Display reminder inquiry

INPUT: ORREM
Clinical reminder (ien) from CLINICAL REMINDER DEFINITION file [#811.9]

OUTPUT: ORY
Detailed description of clinical reminder as formatted text

ORY(1) = Display text line 1
ORY(2) = Display text line 2
ORY(3) = etc

MST

MST^PXRMRPCC(ORY,ORPT,ORDATE,ORSTAT,ORPROV,ORFTYP,ORFIEN,ORRES) - update MST
from reminder dialog.

INPUT: ORPT
Patient DFN

INPUT: ORDATE
Date/time of encounter

INPUT: ORSTAT
MST status code (Y, N or D) - Null if finding is an exam

INPUT: ORPROV
Primary provider IEN

INPUT: ORFTYP
Finding type code (from PCE)

INPUT: ORFIEN
Finding IEN

INPUT: ORRES
Exam result - Optional. Only required for EXAM type findings

OUTPUT: ORY

ORY(1) = IEN - successfull update of MST

or

ORY(1) = -1^ERROR MESSAGE - failure to update and reason

HDR
Returned the PXRM Progress Note Header by
location/service/user
VARIABLES TYPE VARIABLES DESCRIPTION
ORY Output
Returned the PXRM Progress Note Header to CPRS.
ORLOC Input
ORLOC is the Hospital Location.
WH
This entry point will format the data received from
CPRS. Once the data is format this entry point will send the data to the WH
package.
VARIABLES TYPE VARIABLES DESCRIPTION
ORY Output
ORRESULT Input
ORRESULT is an array containing the unformatted WH
Result data from CPRS.
SUBSCRIBING PACKAGE
SUBSCRIBING PACKAGE ISC SUBSCRIBING DETAILS
ORDER ENTRY/RESULTS REPORTING Salt Lake City
Calls to PXRMRPCC
DATE ACTIVATED 2018/06/18