Changeset 1400 for pharmacy-utils


Ignore:
Timestamp:
Apr 12, 2012, 7:42:10 PM (12 years ago)
Author:
Sam Habiel
Message:

updated documentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pharmacy-utils/drug-file-cleanup/VWPSSXPD.m

    r1399 r1400  
    1 VWPSSXPD        ; VW/SMH - Update the Drug File and friends... ; Wed Apr 12 2012
     1VWPSSXPD ; VW/SMH - Update the Drug File and friends... ; Wed Apr 12 2012
    22        ;;WorldVista Modifications;1.0;;;Build 3
    33        ; (C) Sam Habiel
     
    55        ;
    66        ; This routine contains utilities to remove a drug file and install a new drug
    7         ; file in VISTA.
    8         ; Workflow:
     7        ; file in VISTA originating in another system. As of Build 3, you can use KIDS
     8        ; to transport the file.
     9        ;
     10        ; Workflow (Manual, without using KIDS)
     11        ; On the Origin System:
     12        ; - Create a Global Output containing ^PSDRUG and ^PS(50.6)
     13        ; On the Destination System:
    914        ; 1. Call KILLDRUG to remove all Drug Data
    1015        ; 2. Restore a global containing a Drug File (^PSDRUG) and Pharmacy Orderable
    11         ;    Item file (^PS(50.6)). Can use a KIDS global transport.
     16        ;    Item file (^PS(50.6)) created on the origin system.
    1217        ; 3. Call RESTOCK to sync CPRS files back with drug files.
     18        ;
     19        ; Workflow (using KIDS):
     20        ; On the Origin System:
     21        ; - Create a KIDS build that calls the follwing:
     22        ;  1. ENV is the Environment Check for the Build
     23        ;  2. TRAN is the Pre-Transport Routine for your originating system drug data
     24        ;  3. PRE is the Pre-Init for the Destination System
     25        ;  4. POST is the Post-Init for the Destination System
     26        ; - Generate the KIDS Build
     27        ; On the Destination System:
     28        ; - Install the KIDS Build
     29        ;
     30        ; --- ()()() ---
    1331        ;
    1432        ; PEPs: KILLDRUG to remove all Drugs
     
    2139        ;       POST -> Post-Init for the Destination System
    2240        ;
     41        ; KIDS EPs call PEPs to do their work.
     42        ;
    2343        ; Environment Check falls through from the top
    24         ;
    25         ; As of Build 3, this routine supports transporting a drug file using
    26         ; -> plain jane KIDS builds rather than a manual workflow outlined above.
    27         ;
    28         ; You do it by creating a KIDS build that calls the follwing:
    29         ; - ENV is the Environment Check for the Build
    30         ; - TRAN is the Pre-Transport Routine for your originating system drug data
    31         ; - PRE is the Pre-Init for the Destination System
    32         ; - POST is the Post-Init for the Destination System
    3344        ;
    3445        ; -- START KIDS HOOKS --
     
    8596        ; Files
    8697        S PSOIEN=0 F  S PSOIEN=$O(^PS(50.7,PSOIEN)) Q:'PSOIEN  D
    87         . D MES^XPDUTL("Updating Pharamcy Orderable Item "_PSOIEN)
     98        . D MES^XPDUTL("Syncing Pharamcy Orderable Item "_PSOIEN)
    8899        . D EN^PSSPOIDT(PSOIEN),EN2^PSSHL1(PSOIEN,"MUP")
    89100        D CPRS ; Update Orderable Item View files
Note: See TracChangeset for help on using the changeset viewer.