[628] | 1 | VSITIPOS ;ISL/dee - Visit Post Init ;7/29/96
|
---|
| 2 | ;;1.0;PCE PATIENT CARE ENCOUNTER;**76**;Aug 12, 1996
|
---|
| 3 | ; Patch PX*1*76 changes the 2nd line of all VSIT* routines to reflect
|
---|
| 4 | ; the incorporation of the module into PCE. For historical reference,
|
---|
| 5 | ; the old (VISIT TRACKING) 2nd line is included below to reference VSIT
|
---|
| 6 | ; patches.
|
---|
| 7 | ;
|
---|
| 8 | ;;2.0;VISIT TRACKING;;Aug 12, 1996;
|
---|
| 9 | EN ;
|
---|
| 10 | ;Run post clean up routine
|
---|
| 11 | S PXNEWCP=$$NEWCP^XPDUTL("VSITIPOS","POST^VSITIPOS")
|
---|
| 12 | Q
|
---|
| 13 | ;
|
---|
| 14 | POST ;
|
---|
| 15 | DEF ; - add the DEFAULT INSTITUTION to VISIT TRACKING PARAMETERS file
|
---|
| 16 | ;
|
---|
| 17 | N DIC,DLAYGO,DA,DR,DIE,X,DINUM
|
---|
| 18 | D:'$D(^DIC(150.9,1,0))
|
---|
| 19 | . S DIC="^DIC(150.9,",DIC(0)="L",(X,DINUM)=1,DLAYGO="150.9"
|
---|
| 20 | . D FILE^DICN K DINUM,DIC,DLAYGO,DD,DO
|
---|
| 21 | K DA,DR,DIC,DLAYGO,X,DINUM
|
---|
| 22 | ;
|
---|
| 23 | D BMES^XPDUTL("Looking at the VISIT TRACKING PRARMETERS file.")
|
---|
| 24 | D:'+$P($G(^DIC(150.9,1,0)),"^",4)
|
---|
| 25 | . D BMES^XPDUTL("I am going to add an entry to the DEFAULT INSTITUTION field #.04")
|
---|
| 26 | . D MES^XPDUTL(" of the VISIT TRACKING PARAMETERS file.")
|
---|
| 27 | . ;
|
---|
| 28 | . S DR=".04///`"_+$$SITE^VASITE
|
---|
| 29 | . S DA=1,DIE="^DIC(150.9," D ^DIE
|
---|
| 30 | K DA,DR,DIE
|
---|
| 31 | ;
|
---|
| 32 | D:'+$P($G(^DIC(150.9,1,0)),"^",3)
|
---|
| 33 | . D BMES^XPDUTL("I am going to add an entry to the DEFAULT TYPE field #.03")
|
---|
| 34 | . D MES^XPDUTL(" of the VISIT TRACKING PARAMETERS file.")
|
---|
| 35 | . ;
|
---|
| 36 | . S DR=".03///V"
|
---|
| 37 | . S DA=1,DIE="^DIC(150.9," D ^DIE
|
---|
| 38 | ;
|
---|
| 39 | K DA,DR,DIE
|
---|
| 40 | ;
|
---|
| 41 | VSITVID ;
|
---|
| 42 | D BMES^XPDUTL("Set the Visit id in the Visit Tracking Parameters file")
|
---|
| 43 | D MES^XPDUTL("if not already set")
|
---|
| 44 | N VSITNODE
|
---|
| 45 | S VSITNODE=$G(^DIC(150.9,1,4))
|
---|
| 46 | I $P(VSITNODE,"^",1)'?4.NU S $P(^DIC(150.9,1,4),"^",1)="10B0"
|
---|
| 47 | ;
|
---|
| 48 | PROTOCOL ;
|
---|
| 49 | N PROTNAME
|
---|
| 50 | S DIE="^ORD(101,"
|
---|
| 51 | S DR="2///@"
|
---|
| 52 | D BMES^XPDUTL("Making sure that these protocols are not disabled.")
|
---|
| 53 | F OFFSET=1:1 SET PROTNAME=$P($T(ENABLE+OFFSET),";;",2) Q:PROTNAME="" D
|
---|
| 54 | . D MES^XPDUTL(" "_PROTNAME)
|
---|
| 55 | . S DA=$O(^ORD(101,"B",PROTNAME,0))
|
---|
| 56 | . I DA>0 D ^DIE
|
---|
| 57 | Q
|
---|
| 58 | ;
|
---|
| 59 | ENABLE ;;
|
---|
| 60 | ;;VSIT PATIENT STATUS
|
---|
| 61 | ;;
|
---|