Print Page as PDF
National Utility Clean-up ICR (6036)

National Utility Clean-up    ICR (6036)

Name Value
NUMBER 6036
IA # 6036
DATE CREATED 2014/04/02
CUSTODIAL PACKAGE OUTPATIENT PHARMACY
USAGE Private
TYPE Routine
ROUTINE PSOUT433
NAME National Utility Clean-up
GENERAL DESCRIPTION
This agreement describes the call made from
Computerized Patient Record System (CPRS) to Outpatient Pharmacy as part of a
combined build that contains patches OR*3.0*378 and PSO*7.0*433.
STATUS Withdrawn
DURATION Till Otherwise Agreed
ID PSOUT433
COMPONENT/ENTRY POINT
COMPONENT/ENTRY POINT COMPONENT DESCRIPTION VARIABLES
EN(PSOCWORD,PSOCWPFL,PSOCWDRY,PSOCWDSQ,PSOCWTXT)
This is the entry point CPRS calls to indicate to
Outpatient Pharmacy that the order that CPRS has cleaned up has a
corresponding Prescription or Pending Order that needs to be checked for
possible clean-up.
VARIABLES TYPE VARIABLES DESCRIPTION
PSOCWORD Input
This is a 2 piece variable, with the ";" character as
the separator. Piece 1 is the CPRS order number from the ORDERS (#100) File.
Piece 2 is either a "P" to indicate the PRESCRIPTION (#52) File, or an "S" to
indicate PENDING OUTPATIENT ORDERS (#52.41) File.
PSOCWPFL Input
This parameter is used only for pending orders. If 0,
that indicates that if a Drug Name was removed from the dosage to not show the
removed drug name on the Pending screen when the Pending order is displayed
for finishing, and if 1 show the drug name on the Pending order screen.
PSOCWDRY Input
This is the Dry run flag. If 1, then no file changes
are made in Pharmacy, but all the data that is returned if the data was
changed is returned to CPRS for reporting purposes. If 0, then the Pharmacy
file changes are to occur.
PSOCWDSQ Input
This is the array of dosing sequences that are to be
cleaned up. For example, if PSOCWDSQ(1) and PSOCWDSQ(3) are defined, then
Pharmacy needs to check dosing sequence 1 and dosing sequence 3 for potential
clean up.
PSOCWTXT Input
This is the array name that the return data will be
set into.
PSOCWTXT Output
This is the Output returned to CPRS.

For prescriptions:

If there is an error of some sort, the reason is returned in the "ERR" array
node. For example: PSOCWTXT("ERR")=No Dispense Drug found. Clean-Up could not
be performed.

If there is data to clean up, the following is returned:
PSOCWTXT("PHARM")=Prescription number^Issue Date (VA FileMan format)^Status
(In external format) PSOCWTXT("PHARM","DISP")=Drug Name^Internal Entry number
of Drug Note: For a prescription, there should always be a DRUG (#50) File
Entry with the prescription, which is what the "DISP" values contain. Just in
case there is no DRUG (#50) File entry, the "DISP" values will be from the
PHARMACY ORDERABLE ITEM (#50.7) File.  PSOCWTXT("PHARM","DOSE",#)=Old
Dosage^New Dosage Note" The '#' subscript in the array represents the dosing
sequence.  PSOCWTXT("PHARM","SIG")=Old Sig^New Sig

If there are no errors and there is nothing to clean-up, then nothing is
returned.


For Pending orders:

If there is an error of some sort, the reason is returned in the "ERR" array
node. For example: PSOCWTXT("ERR")=Pharmacy record not found

If there is data to clean up the following is returned:
PSOCWTXT("PHARM")=P12345^Effective Date (VA FileMan Format)^PENDING Note:
Piece 1 is the letter P followed by the Internal Entry Number from the PENDING
OUTPATIENT ORDERS (#52.41) File.  PSOCWTXT("PHARM","DISP")=Drug Name^Internal
Entry number of Drug Note: If there is a DRUG (#50) File Entry with the
Pending Order, that is what the "DISP" values contain. If there is no DRUG
(#50) File entry, the "DISP" values are from the PHARMACY ORDERABLE ITEM
(#50.7) File.  PSOCWTXT("PHARM","DOSE",#)=Old Dosage^New Dosage Note: The '#'
subscript in the array represents the dosing sequence.
PSOCWTXT("PHARM","SIG")=Old Sig^New Sig

If there are no errors and there is nothing to clean-up, then nothing is
returned.
SUBSCRIBING PACKAGE
SUBSCRIBING PACKAGE SUBSCRIBING DETAILS
ORDER ENTRY/RESULTS REPORTING
CPRS will pass an order number to Outpatient Pharmacy.
CPRS has determined this order to have invalid data in the Dosage Field(s),
and the order should have the invalid data removed and the Sig rebuilt.