VistA Analysis » VistA Reference » RPCs » ORQQCN2 SCHEDULE CONSULT

ORQQCN2 SCHEDULE CONSULT

Changes status of consult to “Scheduled”, optionally adding a comment andsending alerts.

Properties

Property Value
Label SCH
MUMPS Implementation ORQQCN2
Return Type SINGLE VALUE

Input Parameters

Name Type Maximum Data Length Required Description
Consult IEN LITERAL 16 true Consult IEN in file 123.
Responsible provider LITERAL 32 true  
Date of action LITERAL 16    
Send alerts? LITERAL 2 true  
Send alerts to LITERAL 100 true ";" separated list of alert recipients - pointers to file 200.
Comments LIST     Array of comments to be added with this action.

MUMPS Method Description

Property Value
Method SCH^ORQQCN2
Method Comment Schedule consult and change status
Input Parameters ORIEN, ORNP, ORDATE, ORALRT, ORALTO, ORCOM
First Comment
ORERR - return array for results/errors
ORIEN - IEN of consult from File 123
ORNP - Provider who Scheduled consult
ORDATE - Date/Time Consult was scheduled.
ORALRT - should alerts be sent to anyone?
ORALTO - array of alert recipient IENs
ORCOM is the comments array to be added
passed in as ORCOM(1)="Xxxx Xxxxx...",ORCOM(2)="Xxxx Xx Xxx...", ORCOM(3)="Xxxxx Xxx Xx...", etc.
Code
 N ORAD,ORDUZ,X
S ORERR=0,ORAD=$S($D(ORDATE):ORDATE,1:$$NOW^XLFDT)
S:+$G(ORNP)=0 ORNP=DUZ
I '$D(^GMR(123,ORIEN)) S ORERR="1^No such consult" Q
I $G(ORALRT)=1 D
.F I=1:1 S X=$P(ORALTO,";",I) Q:X="" S ORDUZ(X)=""
S ORERR=$$SCH^GMRCGUIB(ORIEN,ORNP,ORAD,.ORDUZ,.ORCOM)

CPRS

File Type Description
Pascal File Consults/rConsults.pas


Document generated on August 31st 2022, 2:55:43 pm