VistA Analysis » VistA Reference » RPCs » SPN MEDS BY FULL VA CLASS

SPN MEDS BY FULL VA CLASS

This RPC supports the Antiviral Medications subscreen of the Influenza Diagnosis and Treatment Report. NOTE this RPC will find antiviral medications based on the WHOLE VALUE of the NATIONAL DRUG CLASS (NDC) i.e., IN160, AM800. Another name for NDC is VA CLASS. NOTE To find prescriptions based on the first two characters of the NATIONAL DRUG CLASS, use SPN MEDS 1ST 2-CHARS VA CLASS Parameter values: DFN is ien of the pt CUTDATE is the date to start collection data from TYPE will be for the drug’s VA class 1 is anti-viral medications 2 is NSAID analgesics 3 is pain medications 4 is anticonvulsants 5 is tricyclic antidepressants 6 is opioid analgesics 7 is local anesthetics 8 is other medications Returns: TMP($J,X) sorted by most recent rx VA CLASS ^ ITEM DESCRIPTION ^ DATE DISPENSED ^ PSRX(IEN Piece 1 is VA CLASS (such as AM800)Piece 2 is ITEM DESCRIPTION (such as OSELTAMIVIR PO4 75MG CAP)Piece 3 is DATE DISPENSED (such as 10/01/2003)

Properties

Property Value
Label COL
MUMPS Implementation SPNRPCI
Return Type GLOBAL ARRAY

Input Parameters

Name Type Maximum Data Length Required Description
ICN LITERAL      
CUTDATE LITERAL      
TYPE LITERAL      


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