VistA Analysis » VistA Reference » RPCs » ORQQVS DETAIL SUMMARY

ORQQVS DETAIL SUMMARY

Returns discharge summary for a visit.

Properties

Property Value
Label DETSUM
MUMPS Implementation ORQQVS
Return Type ARRAY

Input Parameters

Name Type Maximum Data Length Required Description
Patient LITERAL 16 true Patient identifier (DFN) from File #2 (Patient).
Visit LITERAL 16 true Visit identifier.

MUMPS Method Description

Property Value
Method DETSUM^ORQQVS
Method Comment return discharge summary for a patient's visit
Input Parameters ORPT, ORVIEN
Code
 N CR,ORTY,ORY,TDT
S TDT=0
K ^TMP("TIULIST",$J)
D SUMMARY^TIUSRVLV(.ORY,ORVIEN)
I '+$O(^TMP("TIULIST",$J,0)) D Q
. S ORVY(1)="No Discharge Summary found for this stay."
F S TDT=$O(^TMP("TIULIST",$J,TDT)) Q:+TDT'>0 D
. N SEQ,TIEN S SEQ=0
. F S SEQ=$O(^TMP("TIULIST",$J,TDT,SEQ)) Q:+SEQ'>0 D
. . N TSEQ,ORVI K ^TMP("TIUVIEW",$J)
. . S TIEN=$P(^TMP("TIULIST",$J,TDT,SEQ),U)
. . D TGET^TIUSRVR1(.ORTY,TIEN)
. . S TSEQ=0,ORVI=1
. . F S TSEQ=$O(@ORTY@(TSEQ)) Q:TSEQ="" D
. . . S ORVY(ORVI)=@ORTY@(TSEQ),ORVI=ORVI+1
. . S ORVY(ORVI)=" ",ORVI=ORVI+1
. . S ORVY(ORVI)=" ",ORVI=ORVI+1
K ^TMP("TIULIST",$J)

CPRS

File Type Description
NOT OSEHRA CPRS  


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