| DESCRIPTION OF ENHANCEMENTS |
This patch addresses the following issue:
Duplicate: INC26949869
Outpatient, not linked to Pharmacy orderable item, & not a
controlled substance in #50.
I '$D(DRGARY(LDIEN)) S DRGARY(LDIEN)="",DRLCNT=DRLCNT+1
- At this point if DRLCNT>0, I send all matched drugs in DRGARY
(minus the drug already presented to the user) to ^DIR and prompt to
Select Drug from list (#-#) or <enter> to make a new selection:
- If a drug is selected then ask, Would you like to use this drug?
If the answer is Y, then that drug IEN is returned
- If the user answers N or DRLCNT=0 after all the matching logic,
call SELECT and prompt to 'Select Drug:' and do not offer any that are
inactive, not for outpatient use, not associated with a Pharmacy
Orderable Item or a controlled drug (DEA Schedules 2-5) in file #50.
Problem:
--------
The original reported issue was that the drug matching logic
forced an incorrect drug selection. The OneVA Rx sent dose for Nasal
Spray. The pharmacist inadvertently accepted the bad drug with dose form
tablet, likely because it was the only choice offered.
Resolution:
-----------
This patch will enhance the drug lookup logic. The pharmacist will be
presented with local Drug file lookup. Routine PSORRX1 is modified
to mostly rewrite the DRUGMTCH subroutine.
Here is a list of requirements that are requested
1. If VA Product Identifier is received from HDR, the user is
INCORRECT DRUG LINKED IN AUTOMATED DISPENSING SYSTEM FROM ONEVA
presented with the message:
Remote site VA PRODUCT IDENTIFIER: VA Product Identifier *** NOT
FOUND ***"
2. The VA Product Identifier that is returned from the HDR for then
host site drug item is used to identify the VA Product that the host
site drug is matched to. If the VA PRODUCT ID matches a product in
file VA PRODUCT (#50.68) that is marked as a controlled substance in
field CS FEDERAL SCHEDULE (#19) (1-5), a message indicates that
Controlled substances are not allowed for ONEVA dispensing, and
processing stops.
3. If there is a single drug match using the Drug name returned from
HDR and the VA PRODUCT ID, that is active, for outpatient use,
associated with a Pharmacy Orderable Item, and and not a
controlled substance in file #50, it is presented to the
user, with the prompt, 'Would you like to use the system matched drug
for this refill/partial fill? NO//' If the drug presented is not
accepted or there was more than one drug found that was a match,
processing will continue to step 3.
4. Next through the "APR" cross-reference in the Drug File which is on
the PSNDF VA PRODUCT NAME ENTRY Field (#22) is used to find all drug
entries at the dispensing site that are matched to the same VA
Product as the host site drug selected for OneVA processing.
Eliminate any that are inactive, not marked for outpatient use, does
not have a Pharmacy Orderable Item or is a controlled substance in
file #50. Present the drugs and prompt the user to 'Select
drug from list (#-#) or <enter> to make a new selection:'
5. If no matching drug could be located, a drug wasn't selected or
no drugs were found, the user is presented the message:
Defect Tracking System Ticket(s) & Overview:
No other local match could be found for DRUG NAME
You may need to update your Drug file to process this order"
Type <Enter> to continue or '^' to exit:
NOTE: If no VA Product Identifier is received from HDR this message
will display after the message in step 1.
Technical Resolution:
---------------------
Routine PSORRX1 is modified to mostly rewrite the DRUGMTCH subroutine.
Here is how the logic will function after the patch:
- Look for VAPID in ^PSNDF(50.68,"C" index and
S VAPIEN=$O(^PSNDF(50.68,"C",VAPID,0))
- Check if the product found in file 50.68 is for a controlled
substance. Using field CS FEDERAL SCHEDULE (#19). If the field
contains any value less then 6 and greater than 0, display message
and quit:
1. INC27427008 - INCORRECT DRUG LINKED IN AUTOMATED DISPENSING
S CSSCH=$$GET1^DIQ(50.68,VAPIEN,19,"I")
I +CSSCH>0,+CSSCH<6 D Q 0
. W !!,"Controlled substances are not allowed for ONEVA dispensing.",!
. D PAUSE^VALM1
- If the received VA PRODUCT ID is not found, display "Remote site
VA PRODUCT IDENTIFIER: xxxxxxx *** NOT FOUND ***" (processing will
quit out when VAPID not found after skipping over the )
- Then use DRGNM and loop thru ^PSDRUG("B",DRGNM) and save
any entries found into DRGARY(LDIEN) and increment counter DRLCNT.
filter out drugs that are inactive, not for outpatient, not
SYSTEM FROM ONEVA
associated with a Pharmacy Orderable Item, not linked to the VA
Product ID, and is not a controlled in file #50.
- If only one product is found matching the above criteria, present
it to the user with the prompt 'Would you like to use the system
matched drug for this refill/partial fill? NO//'
- If the user answers Yes processing ends by returning the product's
IEN to the calling process.
The following are only done when VAPIEN exists:
- Loop thru the APR index of file 50 and filter out inactive, not for
|