Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: IBATLM2B

IBATLM2B.m

Go to the documentation of this file.
  1. IBATLM2B ;LL/ELZ - TRANSFER PRICING PT TRANSACTION DETAIL ; 15-SEP-1998
  1. ;;2.0;INTEGRATED BILLING;**115,266**;21-MAR-94
  1. ;;Per VHA Directive 10-93-142, this routine should not be modified.
  1. ;
  1. FE ; -- editing of facility
  1. N DA,DIE,DR,DTOUT
  1. D LMOPT^IBATUTL
  1. S DA=IBIEN,DIE="^IBAT(351.61,",DR=".11"
  1. I $P(^IBAT(351.61,DA,0),U,5)="X" W !!,"Transaction cancelled!" D H Q
  1. L +^IBAT(351.61,IBIEN):0
  1. I $T D ^DIE L -^IBAT(351.61,IBIEN) D INIT^IBATLM2 Q
  1. W !?5,"Another user is editing this entry."
  1. D H,INIT^IBATLM2
  1. Q
  1. H ; call hang call
  1. D H^IBATLM1B
  1. Q
  1. PI ; -- editing of pricing information
  1. N DA,DIE,DR,DTOUT,ICDVDT,ICPTVDT
  1. D LMOPT^IBATUTL
  1. L +^IBAT(351.61,IBIEN):0
  1. I '$T W !?5,"Another user is editing this entry." D H Q
  1. S (ICDVDT,ICPTVDT)=$P(IBDATA(0),U,4) ; Code Text Versioning
  1. S DR=$S($P(IBDATA(0),U,12)["DGPM":"1.01;D DRGDSP^IBATLM2B(X);1.02:1.06",$P(IBDATA(0),"^",12)["SCE":"[IBAT OUT PRICING EDIT]",$P(IBDATA(0),"^",12)["RMPR":"4.05",1:"4.02;4.03")
  1. S DIE="^IBAT(351.61,",DA=IBIEN
  1. I $P(^IBAT(351.61,DA,0),U,5)="X" W !!,"Transaction cancelled!" D H Q
  1. D ^DIE,TOTAL^IBATCM(IBIEN)
  1. L -^IBAT(351.61,IBIEN)
  1. D INIT^IBATLM2
  1. Q
  1. DRGDSP(DRG) ; called from editing pricing info to display DRG pricing
  1. N IB0,X,Y,IBCHRG Q:'DRG
  1. S IB0=^IBAT(351.61,DA,0)
  1. S IBCHRG=$$INPT^IBATCM(DRG,$P(IB0,"^",4),$P(IB0,"^",11))
  1. S X=$P(IBCHRG,"^",2) D COMMA^%DTC
  1. W !!,?8,"Default Price $",X,! Q:'$P(IBCHRG,"^",3)
  1. S X=$P(IBCHRG,"^",3) D COMMA^%DTC
  1. W ?5,"Negotiated Price $",X,!
  1. Q
  1. CPTDSP(CPT) ; called from editing pricing info to display CPT pricing
  1. N IB0,X,Y,IBCHRG Q:'CPT
  1. S IB0=^IBAT(351.61,DA(1),0)
  1. S IBCHRG=$$OPT^IBATCM(CPT,$P(IB0,"^",4),$P(IB0,"^",11))
  1. S X=$P(IBCHRG,"^",2) D COMMA^%DTC
  1. W !!,?8,"Default Price $",X,! Q:'$P(IBCHRG,"^",3)
  1. S X=$P(IBCHRG,"^",3) D COMMA^%DTC
  1. W ?5,"Negotiated Price $",X,!
  1. Q