VistA Analysis » VistA Reference » RPCs » ORWDLR32 ALLSAMP

ORWDLR32 ALLSAMP

Returns all collection samples in the format: n^SampIEN^SampName^SpecPtr^TubeTop^^^LabCollect^^SpecName

Properties

Property Value
Label ALLSAMP
MUMPS Implementation ORWDLR32
Return Type ARRAY

MUMPS Method Description

Property Value
Method ALLSAMP^ORWDLR32
Method Comment procedure
First Comment
 returns all collection samples
n^SampIEN^SampName^SpecPtr^TubeTop^^^LabCollect^^SpecName
Code
 N SMP,SPC,ILST,IEN,X,X0,A,%,INC
S ILST=0,LST($$NXT)="~CollSamp"
S SMP="" F S SMP=$O(^LAB(62,"B",SMP)) Q:SMP="" D
. S IEN=0 F S IEN=$O(^LAB(62,"B",SMP,IEN)) Q:'IEN D
. . S INC=1 I $D(^LAB(62,IEN,64.91)) D I 'INC Q
. . . S A=^LAB(62,IEN,64.91)
. . . S B=$P(A,"^") D NOW^%DTC I B]"",B'>$P(%,".") S INC=0 Q
. . S X0=^LAB(62,IEN,0)
. . S X="i"_U_IEN_U_SMP_U_$P(X0,U,2)_U_$P(X0,U,3)_U_U_U_$P(X0,U,7)
. . I $P(X0,U,2) D
. . . S $P(X,U,10)=$P(^LAB(61,+$P(X0,U,2),0),U,1)
. . . S SPC($P(X,U,4))=$P(X,U,10)
. . S LST($$NXT)=X
S LST($$NXT)="~Specimens"
S SPC=0 F S SPC=$O(SPC(SPC)) Q:'SPC S LST($$NXT)=SPC_U_SPC(SPC)

CPRS

File Type Description
Pascal File Orders/rODLab.pas


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