Print Page as PDF
DBIA4340 ICR (4340)

DBIA4340    ICR (4340)

Name Value
NUMBER 4340
IA # 4340
DATE CREATED 2004/02/09
CUSTODIAL PACKAGE COMMUNICATIONS SERVICE LIBRARY
CUSTODIAL ISC Washington
USAGE Controlled Subscription
TYPE Routine
DBIC APPROVAL STATUS APPROVED
ROUTINE CSLPRIT
NAME DBIA4340
GENERAL DESCRIPTION
Item Query is a silent query which receive inputs from
calling program for building a query.  The inputs would be in a local array as
in OUT shown  below.  CLSPRIT* would use the input to build an HL7 message,
obtain the message Control ID (MID), and send the message to the CoreFLS
Oracle database.  Once the query results were returned, CSLPRIT* would build a
^XTMP(SUB) with that data.

STATUS Active
KEYWORDS
  • ITEM
  • ITEM QUERY
  • CSLPRIT
ID CSLPRIT
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT VARIABLES
ITEMQ(.CSLOUT)
VARIABLES TYPE VARIABLES DESCRIPTION
~XTMP(SUB,N, Output
SUB equals the string "CSLPRIT" concatenated with the
MID
(ex. "CSLPRIT51698874").

An example of the structure of the output array (^XTMP(SUB)) appears below,
where SUB is as described above and N holds the information for the Nth result
returned from CoreFLS:

^XTMP(SUB,N,"NUMBER")=2345
^XTMP(SUB,N,"DESCRIPTION")=WHEEL CHAIR
^XTMP(SUB,N,"HCPCS CODE")=H1011
^XTMP(SUB,N,"UOM CODE")=EA
^XTMP(SUB,N,"UOM DESCRIPTION")=EACH
^XTMP(SUB,N,"RESTRICTED")=N
^XTMP(SUB,N,"CONTRACT UOM")=EACH
^XTMP(SUB,N,"CONTRACT UNIT PRICE")=300.00
^XTMP(SUB,N,"CONTRACT TYPE")=GSA
^XTMP(SUB,N,"CONTRACT NUMBER")=G1234
CSLOUT Output

The structure of the local input array (OUT) is as follows:
CSLOUT("VENDOR NUMBER") - Vendor number
CSLOUT("HCPCS CODE")    - HCPCS Code
CSLOUT("ITEM DESCRIPTION") - Item description

Note that if any of the above nodes are not defined or are set to NULL then
those fields will not be used in composing the query.  The data in every field
that is defined will have the "%" wildcard appended to it.  For example, if
CSLOUT("VENDOR NUMBER")="A" then the value "A%" will be used in building the
query.

CSLOUT("ERROR"): The list below shows the error messages that could be
returned along with comments.  Note that these error messages, unless
specified in the comments to the right, will appear as the return value for
the routine call described above.

Invalid input parameter list            HL7 error - the input message
string sent to CoreFLS was invalid
Query aborted due to error              HL7 error when initializing HL7
parameters Message send failure:
HL7 error when transmitting
message to CoreFLS Network Timeout
the query request to CoreFLS
timed or the check for results
in ^XTMP timed out
Not Found                              no results obtained for query in
CoreFLS

SUBSCRIBING PACKAGE
SUBSCRIBING PACKAGE ISC
PROSTHETICS Washington/Silver Spring