VistA Analysis » VistA Reference » RPCs » ORQQPL PROBLEM NTRT BULLETIN

ORQQPL PROBLEM NTRT BULLETIN

This RPC generates a bulletin to the OR CAC Mail Group, indicating that an unresolved term needs to be requested using the New Term Rapid Turnaround website at http://hdrmul7.aac.domain.ext:7151/ntrt/.

Properties

Property Value
Label NTRTBULL
MUMPS Implementation ORQQPL2
Return Type SINGLE VALUE

Input Parameters

Name Type Maximum Data Length Required Description
ORTERM LITERAL 255 true This is the unresolved term for which an NTRT Request should be filed.

MUMPS Method Description

Property Value
Method NTRTBULL^ORQQPL2
Method Comment Send NTRT Request bulletin to CAC mailgroup
Input Parameters ORTERM, ORNP, ORPT, ORCOMM
Code
 N ORSITE,ORSVC,ORUSER,OREQSTR,OREQSVC,ORDGRP,XMB,XMDUZ,XMY
D USERINFO^XUSRB2(.ORUSER) S ORSITE=$G(ORUSER(3)),ORSVC=$G(ORUSER(5))
S OREQSTR=$S(DUZ'=ORNP:ORUSER(2)_" for "_$$NAME^XUSER(ORNP),1:ORUSER(2))
S OREQSVC=$P($$SERVICE^GMPLX1(ORNP,1),U,2)
S ORSVC=$S(ORSVC=OREQSVC:ORSVC,1:ORSVC_"/"_OREQSVC)
S:ORSITE']"" ORSITE=$$SITE^VASITE
I '$L(ORTERM) S ORY="0^Empty String - a valid term must be sent." Q
I '+$G(DUZ)!'$D(^VA(200,+$G(DUZ))) S ORY="0^A valid user must be identified." Q
S XMB="OR PROBLEM NTRT BULLETIN"
S XMDUZ="OR PROBLEM NTRT BULLETIN"
S ORDGRP=$$GET^XPAR("DIV.`"_DUZ(2),"OR PROBLEM NTRT BY DIVISION",1,"E")
S:ORDGRP]"" XMY("G."_ORDGRP)=""
S XMB(1)=ORTERM
S XMB(2)=$$FMTE^XLFDT($E(($$NOW^XLFDT),1,12),2)
S XMB(3)=OREQSTR
S XMB(4)=ORSVC
S XMB(5)=$P(ORSITE,U,2)_"("_$P(ORSITE,U,3)_")"
S XMB(6)=$G(ORPT,"")
S XMB(7)=$G(ORCOMM,"None")
D ^XMB,KILL^XM S ORY=1

CPRS

File Type Description
Pascal File rProbs.pas


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