VistA Analysis » VistA Reference » RPCs » ORWGN MAXFRQ

ORWGN MAXFRQ

This RPC checks if the frequency of an ICD-10 search term is than the maximum allowed ICD-10 return values.

Properties

Property Value
Label MAXFRQ
MUMPS Implementation ORWGN
Return Type SINGLE VALUE

Input Parameters

Name Type Maximum Data Length Required Description
ORTRM LITERAL 99 true This is the search term to be looked up.

MUMPS Method Description

Property Value
Method MAXFRQ^ORWGN
Method Comment Checks if frequency of search term is greater than
Input Parameters ORTRM
First Comment
 max ICD-10 setting
Input Value: ORTRM = Search term to look up

Return Value: 2 pieces (first piece is 0 or 1, second piece is
occurrance frequency of search term)
First piece:
0 - Search term frequency is less than
maximum return
1 - Search term frequency is greater
than maximum return
Code
 N ORMAX,ORFRQ
S ORY=0
I ORTRM="" Q ;if search term not sent in, then quit
S ORMAX=+$$MAX^LEXU("10D")
I ORMAX=0 S ORMAX=20000 ;if Max value not set, default to 20,000
S ORFRQ=+$$FREQ^LEXU(ORTRM)
I ORFRQ'>ORMAX Q ;if frequency not greater than Max value
S ORY="1^"_ORFRQ

CPRS

File Type Description
NOT OSEHRA CPRS  


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