Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ABSPECP2

ABSPECP2.m

Go to the documentation of this file.
  1. ABSPECP2 ; IHS/FCS/DRS - NO DESCRIPTION PROVIDED ; [ 10/09/2002 8:02 AM ]
  1. ;;1.0;PHARMACY POINT OF SALE;**3**;JUN 21, 2001;Build 38
  1. ;
  1. ;---------------------------------
  1. ;IHS/SD/lwj 10/09/02 NCPDP 5.1 changes
  1. ; Needed to adjust the translation of the transaction code
  1. ; to account for 5.1 values.
  1. ;
  1. ;---------------------------------
  1. ;
  1. Q
  1. ; Lots of $$functions called from other ABSPECP*
  1. ; ABSPOS6G calls $$DUR
  1. ;
  1. DUR(X) ;EP - DUR code
  1. I X="DA" Q "Drug-Allergy Alert"
  1. I X="DC" Q "Drug-Disease Conflicts"
  1. I X="DD" Q "Drug-Drug Interactions"
  1. I X="ER" Q "Excessive Utilization"
  1. I X="HD" Q "Excessive Drug Doses (Over Utilization)"
  1. I X="ID" Q "Therapeutic Duplication (Same Ingredients)"
  1. I X="LD" Q "Insufficient Drug Doses (Under Utilization)"
  1. I X="LR" Q "Underuse Precaution (Non-compliance)"
  1. I X="MC" Q "Drug Disease Alert (Drug/diagnosis matching)"
  1. I X="MX" Q "Excessive Duration Alert"
  1. I X="PA" Q "Drug-Age Conflicts"
  1. I X="PG" Q "Drug-Pregnancy Conflicts"
  1. I X="SX" Q "Drug-Gender Alert"
  1. I X="TD" Q "Therapeutic Duplications (Same Drug Class)"
  1. DUR8 I X[" " S X=$P(X," ")_"<sp>"_$P(X," ",2,$L(X)) G DUR8
  1. Q "DUR code "_X_" ? "
  1. OTHPHARM(X) ;EP - Other Pharmacy Indicator (within DUR data)
  1. I X=1 Q "Same Pharmacy"
  1. I X=2 Q "Different Pharmacy Same Chain"
  1. I X=3 Q "Different Pharmacy Different Chain"
  1. Q X
  1. OTHPRESC(X) ;EP - Other Prescriber (within DUR data)
  1. I X=1 Q "Same Physician"
  1. I X=2 Q "Different Physician"
  1. Q X
  1. TCODE(X) ;EP - Transaction code
  1. ;-----------------------------------------
  1. ;IHS/SD/lwj 10/08/02 NCPDP 5.1 changes
  1. ; For 5.1 the transaction code will be either B1 or B2
  1. ;-----------------------------------------
  1. I X'<1,X'>4 Q X_" prescription claim"_$S(X>1:"s",1:"")
  1. I (X=11)!(X="B2") Q "Claim Reversal" ;IHS/SD/lwj 10/09/02
  1. I X="B1" Q X_" prescription claim" ;IHS/SD/lwj 10/09/02
  1. Q "Unknown transaction code "_X
  1. REIMB(X) ;EP - Basis of reimbursement
  1. I +X=0 Q "Not specified"
  1. I +X=1 Q "Ingredient cost paid as submitted"
  1. I +X=2 Q "Ingredient cost reduced to AWP pricing"
  1. I +X=3 Q "Ingredient cost reduced to AWP less %"
  1. I +X=4 Q "Usual and Customary paid as submitted"
  1. I +X=5 Q "Paid lower of ingredient cost plus fees versus usual and customary"
  1. I +X=6 Q "MAC Pricing - Ingredient cost paid at MAC price"
  1. I +X=7 Q "MAC Pricing - Ingredient cost reduced to MAC pricing"
  1. I +X=8 Q "Contract Pricing"
  1. Q X
  1. DAW(X) ;EP -
  1. I X=0 Q "No product selection indicated."
  1. I X=1 Q "Substitution not allowed by prescriber."
  1. I X=2 Q "Substitution allowed - patient requested product dispensed."
  1. I X=3 Q "Substitution allowed - pharmacist selected product dispensed."
  1. I X=4 Q "Substitution allowed - generic not in stock."
  1. I X=5 Q "Substitution allowed - brand dispensed as generic."
  1. I X=6 Q "Override"
  1. I X=7 Q "Substitution not allowed - brand drug mandated by law."
  1. I X=8 Q "Substitution allowed - generic drug not available in marketplace."
  1. I X=9 Q "Unspecified"
  1. Q X