Print Page as PDF
ORQQCN1 ICR (5608)

ORQQCN1    ICR (5608)

Name Value
NUMBER 5608
IA # 5608
DATE CREATED 2011/02/15
CUSTODIAL PACKAGE ORDER ENTRY/RESULTS REPORTING
USAGE Private
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE ORQQCN1
NAME ORQQCN1
GENERAL DESCRIPTION
The Mental Health package requests permission to call
GETCSLT^ORQQCN1 to retrieve a complete consult record.
STATUS Active
KEYWORDS GETCSLT
DURATION Till Otherwise Agreed
ID ORQQCN1
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
GETCSLT
This entry point has three parameters. From left to
right they are ORY, ORIEN and SHOWADD).

D GETCSLT^ORQQCN1(.ORY,ORIEN,SHOWADD)

Output: If an error was encountered, the ORY array equals:
ORY(0)="-1^error message"

Otherwise, the ORY array contains:
ORY(0)=p1^p2^p3^p4^p5^p6^p7^p8^p9^p10^p11^p12^p13^p14^p15^p16^p17^p18^p19
^p20^p21^p22^p23^p24
ORY(n)=p25^p26^p27^p28^p29^p30^p31^p32^p33^p34^p35^p36

ORY(0) is basically the zero node of the FILE 123 entry except that p14
contains the sending provider's name as well as NEW PERSON (#200) file number
(aka DUZ).

p1 = (#.01) FILE ENTRY DATE [FileMan date/time]
p2 = (#.02) PATIENT NAME [pointer to PATIENT (#2) file]
p3 = (#.03) OE/RR FILE NUMBER [pointer to ORDER (#100) file]
p4 = (#.04) PATIENT LOCATION [pointer to HOSPITAL LOCATION (#44) file]
p5 = (#1) TO SERVICE [pointer to REQUEST SERVICES (#123.5) file]
p6 = (#2) FROM [pointer to HOSPITAL LOCATION (#44) file]
p7 = (#3) DATE OF REQUEST [FileMan date/time]
p8 = (#4) PROCEDURE/REQUEST TYPE [variable pointer]
p9 = (#5) URGENCY [pointer to PROTOCOL (#101) file)
p10 = (#6) PLACE OF CONSULTATION [pointer to PROTOCOL (#101) file]
p11 = (#7) ATTENTION [pointer to NEW PERSON (#200) file]
p12 = (#8) CPRS STATUS [pointer to ORDER STATUS (#100.01) file]
p13 = (#9) LAST ACTION TAKEN [pointer to REQUEST ACTION TYPES (#123.1)
file]
p14 = (#10) SENDING PROVIDER [pointer to NEW PERSON (#200) file;.01
value]
p15 = (#11) RESULT [variable pointer]
p16 = (#12) MODE OF ENTRY [set of codes: 1:SERVICE FORCED ENTRY]
p17 = (#13) REQUEST TYPE [set of codes: C:Consult;P:Procedure]
p18 = (#14) SERVICE RENDERED AS IN OR OUT [set of codes:
I:inpatient;O:outpatient]
p19 = (#15) SIGNIFICANT FINDINGS [set of codes: Y:yes;N:no;U:unknown]
p20 = (#16) TIU RESULT NARRATIVE [pointer to TIU DOCUMENT (#8925) file]
p21 = (#.05) ORDERING FACILITY [pointer to INSTITUTION (#4) file]
p22 = (#.06) REMOTE CONSULT FILE ENTRY [number from 1 to 999999999999]
p23 = (#.07) ROUTING FACILITY (pointer to INSTITUTION (#4) file]
p24 = ((#17) EARLIEST DATE [FileMan date/time]

ORY(n) contains the results of the RESOLVE^TIUSRVLO call.
p25 = Pointer to a TIU DOCUMENT (#8925) entry
p26 = Display name of TIU Title
p27 = REFERENCE DATE from TIU DOCUMENT file (internal format)
p28 = Patient name in format LAST, FIRST MI followed by space followed by
last 4 of patient SSN
p29 = AUTHOR/DICTATOR from TIU DOCUMENT file as IEN;SIGNATURE BLOCK TITLE
p30 = External format of HOSPITAL LOCATION from TIU DOCUMENT file
p31 = STATUS from TIU DOCUMENT file (external format in lower case)
p32 = String_": "_EPISODE BEGIN DATE/TIME where String is "Adm" for ward
locations and "Visit" for all other location types. Date/time is in
MM/DD/YY format.
p33 = String_" "_EPISODE END DATE/TIME where string is null if no
date/time or "Dis: " if date/time exists.  Date/time is in MM/DD/YY
format.
p34 = REQUESTING PACKAGE REFERENCE field from TIU DOCUMENT file (internal
format)
p35 = Number of images associated with TIU DOCUMENT entry
p36 = SUBJECT (OPTIONAL description) field from TIU DOCUMENT file (note
that characters are limited to ensure returned string is not longer
than 255 characters).

Example:

>D GETCSLT^ORQQCN1(.TEST,4052,1) ZW TEST
TEST(0)="3110210.155^2361323495^22715^63^4^63^3110210.155034^13;GMR(123.3,
^1305^1301^^2^10^4558;MHUSER,FIRST^6039;TIU(8925,^^P^I^^^6020^3110210.15"
TEST(1)="6039^ECG^3110210.155131^MHPATIENT, FIRST  (M1234)^4687;CLINICAL
DEVICE P ROXY SERVICE;CLINICAL,DEVICE PROXY SERVICE^CARDIAC
CLINIC^completed^Visit: 02/10 /11;3110210.16^;^4052;GMR(123,^0^^^1^"
VARIABLES TYPE VARIABLES DESCRIPTION
ORY Both
ORY is the array name to hold the results of the
search. This parameter is required.
ORIEN Input
ORIEN is the internal entry number of a record in the
REQUEST/CONSULTATION (#123) file. This parameter is required.
SHOWADD Input
SHOWADD is a boolean value to indicate if addenda
should be returned. Set it to a positive number to return addenda. This
parameter is optional.  There is no default value.
SUBSCRIBING PACKAGE MENTAL HEALTH
DATE ACTIVATED 2011/03/09