APSGMSG ;IHS/DSD/ENM - INPATIENT MEDS PATCH 28 MSG ; [ 01/15/2002 9:48 AM ]
;;3.2;INPATIENT MEDICATIONS;**3**;12/28/01
MSG ;SETUP AND SEND EMAIL MSG
W !,"Now I will send a mail message to all holders of the pharmacy 'PSJI MGR' KEY.",!
D XMSET
D TEXT
D MSG1
D ZAAP
Q
XMSET ;SET MAIL VARIABLES
K XMY S XMSUB="Pre-Release Set-Up for Inpatient Meds V4.0 & V4.5.",XMDUZ="PHARMACY SOFTWARE DEVELOPMENT"
D RPH
Q
MSG1 D ^XMD K APSPMSG
Q
TEXT S APSPMSG(1,0)="To: Inpatient Pharmacy (IP) Supervisors"
S APSPMSG(2,0)=" "
S APSPMSG(3,0)=" Pre-Release Set-Up for Inpatient Medications Version 4.0 and 4.5."
S APSPMSG(4,0)=" "
S APSPMSG(9,0)="Primary Drugs "
S APSPMSG(10,0)=""
S APSPMSG(11,0)="A Primary Drug is a drug that (usually) has no strength or dosage form"
S APSPMSG(12,0)="associated with it. The Primary Drug was designed to make it easier for"
S APSPMSG(13,0)="providers to enter medication orders while letting the pharmacist select"
S APSPMSG(14,0)="the actual drug product that should be dispensed. Drugs that are in the"
S APSPMSG(15,0)="regular drug file are referred to as Dispense Drugs."
S APSPMSG(16,0)=""
S APSPMSG(17,0)="The example below shows an Inpatient Medication Profile. You can see that"
S APSPMSG(18,0)="the profile displays the Primary Drug name, e.g., LISINOPRIL. Medication"
S APSPMSG(19,0)="Administration Reports or MARs also print the Primary Drug name instead"
S APSPMSG(20,0)="of the Dispense Drug name."
S APSPMSG(21,0)=""
S APSPMSG(22,0)="I N P A T I E N T M E D I C A T I O N S 12/10/01 15:42"
S APSPMSG(23,0)=""
S APSPMSG(24,0)="- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
S APSPMSG(25,0)="DEMO,PATIENT NMN Ward: ICU"
S APSPMSG(26,0)=" HRN: 00-00-01 Room-Bed: 216-2 Ht(cm): ______ (________)"
S APSPMSG(27,0)=" DOB: 08/25/58 (43) Wt(kg): ______ (________)"
S APSPMSG(28,0)="ex: MALE Admitted: 06/19/00"
S APSPMSG(29,0)=" Dx: UNKNOWN "
S APSPMSG(30,0)="Allergies: ASPIRIN/OXYCODONE"
S APSPMSG(31,0)=" ADR: PROCHLORPERAZINE"
S APSPMSG(32,0)=" - - - - - - - - - - - - - - - A C T I V E - - - - - - - - - - - - - - - - -"
S APSPMSG(33,0)=" 1 LISINOPRIL C 11/2 A"
S APSPMSG(34,0)=" Give: 20MG PO QD"
S APSPMSG(35,0)=" 2 IBUPROFEN P 11/20 12/20 A "
S APSPMSG(36,0)=" Give: 400MG PO QID"
S APSPMSG(37,0)=" PRN PAIN"
S APSPMSG(38,0)=" 3 PROCHLORPERAZINE P 11/20 12/20 A HSM"
S APSPMSG(39,0)=" Give: 10MG (2X5MG) PO Q4H PRN "
S APSPMSG(40,0)=" NAUSEA/VOMITING "
S APSPMSG(41,0)=""
S APSPMSG(42,0)=""
S APSPMSG(43,0)="It is best to create a separate Primary Drug for drugs that come in"
S APSPMSG(44,0)="different % solutions such as Dextrose 5%, Dextrose 10%, etc. to prevent"
S APSPMSG(45,0)="confusion that might result in a medication error."
S APSPMSG(46,0)=""
S APSPMSG(47,0)=""
S APSPMSG(48,0)="Getting Ready to Set Up the Primary Drug File"
S APSPMSG(49,0)=""
S APSPMSG(50,0)=""
S APSPMSG(51,0)="In order to save time later, it is recommended that the pharmacy staff"
S APSPMSG(52,0)="make sure that unit dose drugs are entered into the Drug File prior to"
S APSPMSG(53,0)="creating a Primary Drug File. Sites that purchase bulk bottles of tablets"
S APSPMSG(54,0)="or capsules and repackage them into unit dose containers may decide to use"
S APSPMSG(55,0)="the same drug entry for both Inpatient and Outpatient Medications. Another"
S APSPMSG(56,0)="alternative is to create a separate entry for the repackaged unit dose"
S APSPMSG(57,0)="product, e.g., Amoxicillin 250mg Cap U/D. Separate entries should be"
S APSPMSG(58,0)="created for all drugs that come in Unit Dose packaging from the"
S APSPMSG(59,0)="manufacturer so that correct NDC numbers and cost information can be"
S APSPMSG(60,0)="entered into the Drug File."
S APSPMSG(61,0)=""
S APSPMSG(62,0)=""
S APSPMSG(63,0)="Inpatient Medications Patch 3"
S APSPMSG(64,0)=""
S APSPMSG(65,0)="This patch will create a new menu for all pharmacists who hold the"
S APSPMSG(66,0)="PSJI MGR security key. To access this menu, go to PSJI MGR 'IV Menu'"
S APSPMSG(67,0)="The new menu contains several options that must be run in order to"
S APSPMSG(68,0)="create a Primary Drug File. The Primary Drug File needs to be completed"
S APSPMSG(69,0)="in order to be able to install Inpatient Medications v4.5. The Inpatient"
S APSPMSG(70,0)="Medications v4.5 package contains both IV Medications and Unit Dose "
S APSPMSG(71,0)="Medications."
S APSPMSG(72,0)=""
S APSPMSG(73,0)="This is what the new menu created by Inpatient Medications Patch 3 will"
S APSPMSG(74,0)="look like:"
S APSPMSG(75,0)=""
S APSPMSG(76,0)="Inpatient Meds V4 Pre-Release Menu"
S APSPMSG(77,0)=""
S APSPMSG(78,0)=" 1 Auto-Create Print"
S APSPMSG(79,0)=" 2 Auto-Create Primary Drug"
S APSPMSG(80,0)=" 3 Drug Print"
S APSPMSG(81,0)=" 4 Create Primary Drug (Manual)"
S APSPMSG(82,0)=" 5 Synonym Move From Drug File To Primary Drug File"
S APSPMSG(83,0)=" 6 Edit Primary Drug "
S APSPMSG(84,0)=" 7 Inpatient Site Print"
S APSPMSG(85,0)=" 8 Move Inpatient Site To Inpatient Ward "
S APSPMSG(86,0)=" 9 Move Inpatient Site To Ward Group"
S APSPMSG(87,0)=" 10 Edit Inpatient Ward Parameters File"
S APSPMSG(88,0)=" 11 Edit Ward Group Pick List Parameters"
S APSPMSG(89,0)=" 12 Edit IV Additive Type"
S APSPMSG(90,0)=" 13 Mark Solutions for use in IV Fluids Order Entry"
S APSPMSG(91,0)=" 14 Edit Dispense Drug"
S APSPMSG(92,0)=" 15 IV Drug Matched to Primary Drug Print"
S APSPMSG(93,0)=" 16 IV Additive Type Print"
S APSPMSG(94,0)=" 17 IV Fluid Solutions Print"
S APSPMSG(95,0)=" 18 Primary Drug/Dispense Drug Report"
S APSPMSG(96,0)=" 19 New Person User Report"
S APSPMSG(97,0)=" 20 Active Provider Report"
S APSPMSG(98,0)=" 21 Edit Provider Fields in New Person File"
S APSPMSG(99,0)=" 22 Edit User Parameters"
S APSPMSG(99.1,0)=" MUD Mark/Unmark Items for Unit Dose"
S APSPMSG(100,0)=""
S APSPMSG(101,0)="Entering ??? at the Select Inpatient Meds V4 Pre-Release Menu Option"
S APSPMSG(102,0)="prompt will display information about each option on this menu."
S APSPMSG(103,0)=""
S APSPMSG(104,0)="Complete the following steps in the order listed to create a Primary"
S APSPMSG(105,0)="Drug File:"
S APSPMSG(106,0)=""
S APSPMSG(107,0)="1. Select '2 Auto-Create Primary Drug'."
S APSPMSG(108,0)=""
S APSPMSG(109,0)="2. Select '3 Drug Print' - This report displays the Drug File entries"
S APSPMSG(110,0)=" grouped by Primary Drug and may be useful when manually creating"
S APSPMSG(111,0)=" Primary Drugs."
S APSPMSG(112,0)="3. Select '4 Create Primary Drug (Manual)'. The Auto-Create Primary Drug"
S APSPMSG(113,0)=" option will create a Primary Drug entry for most but not all drugs."
S APSPMSG(114,0)=" It is critical that pharmacy staff complete the manual creation of"
S APSPMSG(115,0)=" the Primary Drug file. It doesn't have to be completed all at once,"
S APSPMSG(116,0)=" but it must be completed and the SITE MANAGER MUST be notified of"
S APSPMSG(117,0)=" completion as soon as possible."
S APSPMSG(118,0)="4. Select '18 Primary Drug/Dispense Drug Report'. Review the report to"
S APSPMSG(119,0)=" make sure that drugs are matched up to the correct Primary Drug and"
S APSPMSG(120,0)=" that the Primary Drug name appears correctly. Primary drugs may be"
S APSPMSG(121,0)=" created for drugs listed as Exceptions (meaning that they do not have"
S APSPMSG(122,0)=" a Primary Drug) by selecting '6 Edit Primary Drug'. If a drug is"
S APSPMSG(123,0)=" matched to the wrong Primary Drug, select '14 Edit Dispense Drug' and"
S APSPMSG(124,0)=" select the correct Primary Drug."
S APSPMSG(125,0)="5. Select '5 Synonym Move From Drug File to Primary Drug File'."
S APSPMSG(125.1,0)="6. Mark/Unmark Items For Unit Dose"
S APSPMSG(125.2,0)="When Patch 3 to Inpatient Medications package is first installed,"
S APSPMSG(125.3,0)="it marks all items in the Drug file for use by Unit Dose so that"
S APSPMSG(125.4,0)="users may immediately continue to use the package."
S APSPMSG(126,0)=""
S APSPMSG(127,0)="Refining the Primary Drug File"
S APSPMSG(128,0)=""
S APSPMSG(129,0)="Primary Drugs can be customized as much or as little as desired by each"
S APSPMSG(130,0)="site. When information such as Medication Route, Schedule Type, or"
S APSPMSG(131,0)="Schedule is added to the Primary Drug entries, that information will"
S APSPMSG(132,0)="automatically fill in fields during Unit Dose Medication order entry."
S APSPMSG(133,0)="This can save a lot of time for the pharmacist entering orders, but"
S APSPMSG(134,0)="does require some time initially to edit the Primary Drug entries."
S APSPMSG(135,0)=""
S APSPMSG(136,0)="Please contact the Help Desk"
S APSPMSG(138,0)="if you need assistance."
S APSPMSG(139,0)=""
S XMTEXT="APSPMSG(",%H=$H D YX^%DTC
Q
RPH ;GET HOLDERS OF 'PSORPH' (PHARMACIST)
;S XMY("MOORE,EDGAR")="" Q ;TEMPORARY, REMOVE AFTER TESTING
;S XMY("JARAMILLO,LISA")="" Q ;temporary, remark out after testing
S J=0
;select holders of the PSJI MGR key
F J=0:0 S J=$O(^XUSEC("PSJI MGR",J)) Q:'J S APSPNAME=$P($G(^VA(200,J,0)),"^"),XMY(APSPNAME)=""
Q
ZAAP ;KILL ALL VARIABLES ON EXIT
K APSLNAME,APSP,APSPDG,APSPZ,XMDUZ,J,X,XMSUB,XMTEXT
Q
APSGMSG ;IHS/DSD/ENM - INPATIENT MEDS PATCH 28 MSG ; [ 01/15/2002 9:48 AM ]
+1 ;;3.2;INPATIENT MEDICATIONS;**3**;12/28/01
MSG ;SETUP AND SEND EMAIL MSG
+1 WRITE !,"Now I will send a mail message to all holders of the pharmacy 'PSJI MGR' KEY.",!
+2 DO XMSET
+3 DO TEXT
+4 DO MSG1
+5 DO ZAAP
+6 QUIT
XMSET ;SET MAIL VARIABLES
+1 KILL XMY
SET XMSUB="Pre-Release Set-Up for Inpatient Meds V4.0 & V4.5."
SET XMDUZ="PHARMACY SOFTWARE DEVELOPMENT"
+2 DO RPH
+3 QUIT
MSG1 DO ^XMD
KILL APSPMSG
+1 QUIT
TEXT SET APSPMSG(1,0)="To: Inpatient Pharmacy (IP) Supervisors"
+1 SET APSPMSG(2,0)=" "
+2 SET APSPMSG(3,0)=" Pre-Release Set-Up for Inpatient Medications Version 4.0 and 4.5."
+3 SET APSPMSG(4,0)=" "
+4 SET APSPMSG(9,0)="Primary Drugs "
+5 SET APSPMSG(10,0)=""
+6 SET APSPMSG(11,0)="A Primary Drug is a drug that (usually) has no strength or dosage form"
+7 SET APSPMSG(12,0)="associated with it. The Primary Drug was designed to make it easier for"
+8 SET APSPMSG(13,0)="providers to enter medication orders while letting the pharmacist select"
+9 SET APSPMSG(14,0)="the actual drug product that should be dispensed. Drugs that are in the"
+10 SET APSPMSG(15,0)="regular drug file are referred to as Dispense Drugs."
+11 SET APSPMSG(16,0)=""
+12 SET APSPMSG(17,0)="The example below shows an Inpatient Medication Profile. You can see that"
+13 SET APSPMSG(18,0)="the profile displays the Primary Drug name, e.g., LISINOPRIL. Medication"
+14 SET APSPMSG(19,0)="Administration Reports or MARs also print the Primary Drug name instead"
+15 SET APSPMSG(20,0)="of the Dispense Drug name."
+16 SET APSPMSG(21,0)=""
+17 SET APSPMSG(22,0)="I N P A T I E N T M E D I C A T I O N S 12/10/01 15:42"
+18 SET APSPMSG(23,0)=""
+19 SET APSPMSG(24,0)="- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -"
+20 SET APSPMSG(25,0)="DEMO,PATIENT NMN Ward: ICU"
+21 SET APSPMSG(26,0)=" HRN: 00-00-01 Room-Bed: 216-2 Ht(cm): ______ (________)"
+22 SET APSPMSG(27,0)=" DOB: 08/25/58 (43) Wt(kg): ______ (________)"
+23 SET APSPMSG(28,0)="ex: MALE Admitted: 06/19/00"
+24 SET APSPMSG(29,0)=" Dx: UNKNOWN "
+25 SET APSPMSG(30,0)="Allergies: ASPIRIN/OXYCODONE"
+26 SET APSPMSG(31,0)=" ADR: PROCHLORPERAZINE"
+27 SET APSPMSG(32,0)=" - - - - - - - - - - - - - - - A C T I V E - - - - - - - - - - - - - - - - -"
+28 SET APSPMSG(33,0)=" 1 LISINOPRIL C 11/2 A"
+29 SET APSPMSG(34,0)=" Give: 20MG PO QD"
+30 SET APSPMSG(35,0)=" 2 IBUPROFEN P 11/20 12/20 A "
+31 SET APSPMSG(36,0)=" Give: 400MG PO QID"
+32 SET APSPMSG(37,0)=" PRN PAIN"
+33 SET APSPMSG(38,0)=" 3 PROCHLORPERAZINE P 11/20 12/20 A HSM"
+34 SET APSPMSG(39,0)=" Give: 10MG (2X5MG) PO Q4H PRN "
+35 SET APSPMSG(40,0)=" NAUSEA/VOMITING "
+36 SET APSPMSG(41,0)=""
+37 SET APSPMSG(42,0)=""
+38 SET APSPMSG(43,0)="It is best to create a separate Primary Drug for drugs that come in"
+39 SET APSPMSG(44,0)="different % solutions such as Dextrose 5%, Dextrose 10%, etc. to prevent"
+40 SET APSPMSG(45,0)="confusion that might result in a medication error."
+41 SET APSPMSG(46,0)=""
+42 SET APSPMSG(47,0)=""
+43 SET APSPMSG(48,0)="Getting Ready to Set Up the Primary Drug File"
+44 SET APSPMSG(49,0)=""
+45 SET APSPMSG(50,0)=""
+46 SET APSPMSG(51,0)="In order to save time later, it is recommended that the pharmacy staff"
+47 SET APSPMSG(52,0)="make sure that unit dose drugs are entered into the Drug File prior to"
+48 SET APSPMSG(53,0)="creating a Primary Drug File. Sites that purchase bulk bottles of tablets"
+49 SET APSPMSG(54,0)="or capsules and repackage them into unit dose containers may decide to use"
+50 SET APSPMSG(55,0)="the same drug entry for both Inpatient and Outpatient Medications. Another"
+51 SET APSPMSG(56,0)="alternative is to create a separate entry for the repackaged unit dose"
+52 SET APSPMSG(57,0)="product, e.g., Amoxicillin 250mg Cap U/D. Separate entries should be"
+53 SET APSPMSG(58,0)="created for all drugs that come in Unit Dose packaging from the"
+54 SET APSPMSG(59,0)="manufacturer so that correct NDC numbers and cost information can be"
+55 SET APSPMSG(60,0)="entered into the Drug File."
+56 SET APSPMSG(61,0)=""
+57 SET APSPMSG(62,0)=""
+58 SET APSPMSG(63,0)="Inpatient Medications Patch 3"
+59 SET APSPMSG(64,0)=""
+60 SET APSPMSG(65,0)="This patch will create a new menu for all pharmacists who hold the"
+61 SET APSPMSG(66,0)="PSJI MGR security key. To access this menu, go to PSJI MGR 'IV Menu'"
+62 SET APSPMSG(67,0)="The new menu contains several options that must be run in order to"
+63 SET APSPMSG(68,0)="create a Primary Drug File. The Primary Drug File needs to be completed"
+64 SET APSPMSG(69,0)="in order to be able to install Inpatient Medications v4.5. The Inpatient"
+65 SET APSPMSG(70,0)="Medications v4.5 package contains both IV Medications and Unit Dose "
+66 SET APSPMSG(71,0)="Medications."
+67 SET APSPMSG(72,0)=""
+68 SET APSPMSG(73,0)="This is what the new menu created by Inpatient Medications Patch 3 will"
+69 SET APSPMSG(74,0)="look like:"
+70 SET APSPMSG(75,0)=""
+71 SET APSPMSG(76,0)="Inpatient Meds V4 Pre-Release Menu"
+72 SET APSPMSG(77,0)=""
+73 SET APSPMSG(78,0)=" 1 Auto-Create Print"
+74 SET APSPMSG(79,0)=" 2 Auto-Create Primary Drug"
+75 SET APSPMSG(80,0)=" 3 Drug Print"
+76 SET APSPMSG(81,0)=" 4 Create Primary Drug (Manual)"
+77 SET APSPMSG(82,0)=" 5 Synonym Move From Drug File To Primary Drug File"
+78 SET APSPMSG(83,0)=" 6 Edit Primary Drug "
+79 SET APSPMSG(84,0)=" 7 Inpatient Site Print"
+80 SET APSPMSG(85,0)=" 8 Move Inpatient Site To Inpatient Ward "
+81 SET APSPMSG(86,0)=" 9 Move Inpatient Site To Ward Group"
+82 SET APSPMSG(87,0)=" 10 Edit Inpatient Ward Parameters File"
+83 SET APSPMSG(88,0)=" 11 Edit Ward Group Pick List Parameters"
+84 SET APSPMSG(89,0)=" 12 Edit IV Additive Type"
+85 SET APSPMSG(90,0)=" 13 Mark Solutions for use in IV Fluids Order Entry"
+86 SET APSPMSG(91,0)=" 14 Edit Dispense Drug"
+87 SET APSPMSG(92,0)=" 15 IV Drug Matched to Primary Drug Print"
+88 SET APSPMSG(93,0)=" 16 IV Additive Type Print"
+89 SET APSPMSG(94,0)=" 17 IV Fluid Solutions Print"
+90 SET APSPMSG(95,0)=" 18 Primary Drug/Dispense Drug Report"
+91 SET APSPMSG(96,0)=" 19 New Person User Report"
+92 SET APSPMSG(97,0)=" 20 Active Provider Report"
+93 SET APSPMSG(98,0)=" 21 Edit Provider Fields in New Person File"
+94 SET APSPMSG(99,0)=" 22 Edit User Parameters"
+95 SET APSPMSG(99.1,0)=" MUD Mark/Unmark Items for Unit Dose"
+96 SET APSPMSG(100,0)=""
+97 SET APSPMSG(101,0)="Entering ??? at the Select Inpatient Meds V4 Pre-Release Menu Option"
+98 SET APSPMSG(102,0)="prompt will display information about each option on this menu."
+99 SET APSPMSG(103,0)=""
+100 SET APSPMSG(104,0)="Complete the following steps in the order listed to create a Primary"
+101 SET APSPMSG(105,0)="Drug File:"
+102 SET APSPMSG(106,0)=""
+103 SET APSPMSG(107,0)="1. Select '2 Auto-Create Primary Drug'."
+104 SET APSPMSG(108,0)=""
+105 SET APSPMSG(109,0)="2. Select '3 Drug Print' - This report displays the Drug File entries"
+106 SET APSPMSG(110,0)=" grouped by Primary Drug and may be useful when manually creating"
+107 SET APSPMSG(111,0)=" Primary Drugs."
+108 SET APSPMSG(112,0)="3. Select '4 Create Primary Drug (Manual)'. The Auto-Create Primary Drug"
+109 SET APSPMSG(113,0)=" option will create a Primary Drug entry for most but not all drugs."
+110 SET APSPMSG(114,0)=" It is critical that pharmacy staff complete the manual creation of"
+111 SET APSPMSG(115,0)=" the Primary Drug file. It doesn't have to be completed all at once,"
+112 SET APSPMSG(116,0)=" but it must be completed and the SITE MANAGER MUST be notified of"
+113 SET APSPMSG(117,0)=" completion as soon as possible."
+114 SET APSPMSG(118,0)="4. Select '18 Primary Drug/Dispense Drug Report'. Review the report to"
+115 SET APSPMSG(119,0)=" make sure that drugs are matched up to the correct Primary Drug and"
+116 SET APSPMSG(120,0)=" that the Primary Drug name appears correctly. Primary drugs may be"
+117 SET APSPMSG(121,0)=" created for drugs listed as Exceptions (meaning that they do not have"
+118 SET APSPMSG(122,0)=" a Primary Drug) by selecting '6 Edit Primary Drug'. If a drug is"
+119 SET APSPMSG(123,0)=" matched to the wrong Primary Drug, select '14 Edit Dispense Drug' and"
+120 SET APSPMSG(124,0)=" select the correct Primary Drug."
+121 SET APSPMSG(125,0)="5. Select '5 Synonym Move From Drug File to Primary Drug File'."
+122 SET APSPMSG(125.1,0)="6. Mark/Unmark Items For Unit Dose"
+123 SET APSPMSG(125.2,0)="When Patch 3 to Inpatient Medications package is first installed,"
+124 SET APSPMSG(125.3,0)="it marks all items in the Drug file for use by Unit Dose so that"
+125 SET APSPMSG(125.4,0)="users may immediately continue to use the package."
+126 SET APSPMSG(126,0)=""
+127 SET APSPMSG(127,0)="Refining the Primary Drug File"
+128 SET APSPMSG(128,0)=""
+129 SET APSPMSG(129,0)="Primary Drugs can be customized as much or as little as desired by each"
+130 SET APSPMSG(130,0)="site. When information such as Medication Route, Schedule Type, or"
+131 SET APSPMSG(131,0)="Schedule is added to the Primary Drug entries, that information will"
+132 SET APSPMSG(132,0)="automatically fill in fields during Unit Dose Medication order entry."
+133 SET APSPMSG(133,0)="This can save a lot of time for the pharmacist entering orders, but"
+134 SET APSPMSG(134,0)="does require some time initially to edit the Primary Drug entries."
+135 SET APSPMSG(135,0)=""
+136 SET APSPMSG(136,0)="Please contact the Help Desk"
+137 SET APSPMSG(138,0)="if you need assistance."
+138 SET APSPMSG(139,0)=""
+139 SET XMTEXT="APSPMSG("
SET %H=$HOROLOG
DO YX^%DTC
+140 QUIT
RPH ;GET HOLDERS OF 'PSORPH' (PHARMACIST)
+1 ;S XMY("MOORE,EDGAR")="" Q ;TEMPORARY, REMOVE AFTER TESTING
+2 ;S XMY("JARAMILLO,LISA")="" Q ;temporary, remark out after testing
+3 SET J=0
+4 ;select holders of the PSJI MGR key
+5 FOR J=0:0
SET J=$ORDER(^XUSEC("PSJI MGR",J))
IF 'J
QUIT
SET APSPNAME=$PIECE($GET(^VA(200,J,0)),"^")
SET XMY(APSPNAME)=""
+6 QUIT
ZAAP ;KILL ALL VARIABLES ON EXIT
+1 KILL APSLNAME,APSP,APSPDG,APSPZ,XMDUZ,J,X,XMSUB,XMTEXT
+2 QUIT