source: WorldVistAEHR/trunk/r/HOSPITAL_BASED_HOME_CARE-HBH/HBHCXMC.m@ 1042

Last change on this file since 1042 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 825 bytes
Line 
1HBHCXMC ; LR VAMC(IRMS)/MJT-HBHC populate ^HBHC(634) with Form 6 Corrections, called by ^HBHCFILE, but can be run by D ^HBHCXMC ;9204
2 ;;1.0;HOSPITAL BASED HOME CARE;**6**;NOV 01, 1993
3LOOP ; Loop thru ^HBHC(634.4) (Correction records) to create nodes in ^HBHC(634) => transmit
4 W !,"Processing Correction/Form 6 Data"
5 S HBHCIEN=0 F S HBHCIEN=$O(^HBHC(634.4,HBHCIEN)) Q:HBHCIEN'>0 S HBHCREC=^HBHC(634.4,HBHCIEN,0) D SETNODE
6EXIT ; Exit module
7 K DA,DIK,HBHCIEN,HBHCNDX1,HBHCREC
8 Q
9SETNODE ; Set node in ^HBHC(634) (Transmit)
10 L +^HBHC(634,0) S HBHCNDX1=$P(^HBHC(634,0),U,3)+1,$P(^HBHC(634,0),U,3)=HBHCNDX1,$P(^HBHC(634,0),U,4)=$P(^HBHC(634,0),U,4)+1 L -^HBHC(634,0)
11 S ^HBHC(634,HBHCNDX1,0)=HBHCREC,^HBHC(634,"B",$E(HBHCREC,1,30),HBHCNDX1)=""
12 ; Kill entry in ^HBHC(634.4)
13 K DIK S DIK="^HBHC(634.4,",DA=HBHCIEN D ^DIK
14 Q
Note: See TracBrowser for help on using the repository browser.