VistA Analysis » VistA Reference » RPCs » ORQQPL USER PROB LIST

ORQQPL USER PROB LIST

Returns array of user specific problems to select from

Properties

Property Value
Label PROB
MUMPS Implementation ORQQPL3
Return Type ARRAY

Input Parameters

Name Type Maximum Data Length Required Description
Category LITERAL     IFN of problem category

MUMPS Method Description

Property Value
Method PROB^ORQQPL3
Method Comment Get user problem list for given group
Input Parameters GROUP
Code
 N PSEQ,PCNT,IFN,ITEM,TG,CODE,TEXT,ORPLCSYS,ORPLCPTR
S TG=$NAME(TMP) ; put list in local
K @TG
S LCNT=0
S (PSEQ,PCNT)=0
F S PSEQ=$O(^GMPL(125.12,"C",GROUP,PSEQ)) Q:PSEQ'>0 D
. N ORI,ORK,ORQUIT S ORQUIT=0
. S IFN=$O(^GMPL(125.12,"C",GROUP,PSEQ,0)) Q:IFN'>0
. S ITEM=$G(^GMPL(125.12,IFN,0))
. S TEXT=$P(ITEM,U,4)
. ; SEE DD for GMPL(125.12,4 :
. ; "...code which is to be displayed... generally assumed to be ICD"
. S CODE=$P(ITEM,U,5)
. ; if any codes inactive, exclude from list
. I $L(CODE)&(CODE["/") D
. . F ORK=1:1:$L(CODE,"/") Q:+ORQUIT D
. . . S ORPLCPTR=+$$CODECS^ICDEX($P(CODE,"/",ORK),80,DT),ORPLCSYS=$$SAB^ICDEX(ORPLCPTR,DT)
. . . I '+$$STATCHK^ICDXCODE(ORPLCPTR,$P(CODE,"/",ORK),DT) S ORQUIT=1 Q
. . Q
. E D
. . S ORPLCPTR=$S($L(CODE):+$$CODECS^ICDEX(CODE,80,DT),1:""),ORPLCSYS=$S($L(CODE):$$SAB^ICDEX(ORPLCPTR,DT),1:"ICD")
. . I '+$$STATCHK^ICDXCODE(ORPLCPTR,CODE,DT) S ORQUIT=1 Q
. . Q
. I +ORQUIT Q
. S PCNT=PCNT+1
. ; RETURN:
. ; PROBLEM^DISPLAY TEXT^ICD CODE^ICD CODE IFN^^SNOMED CT CONCEPT CODE^SNOMED CT DESIGNATION CODE
. S @TG@(PCNT)=$P(ITEM,U,3,4)_U_"("_$P($$CODECS^ICDEX($P(CODE,"/"),80,DT),U,2)_" "_$G(CODE)_")"_U_+$$ICDDATA^ICDXCODE(ORPLCSYS,$P(CODE,"/"),DT,"E")_U_U_$P(ITEM,U,6,7)

CPRS

File Type Description
Pascal File rProbs.pas


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