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

BGP8DPE3.m

Go to the documentation of this file.
BGP8DPE3 ; IHS/CMI/LAB - patient ed report ;
 ;;18.1;IHS CLINICAL REPORTING;;MAY 25, 2018;Build 66
 ;
 ;
SET73 ;EP
 I BGPTIME=2 D SET73P Q
 I BGPTIME=3 D SET73B Q
 I '$D(^BGPPEDCR(BGPRPT,18,0)) S ^BGPPEDCR(BGPRPT,18,0)="^90560.1218A^0^0"
 S Z=$O(^BGPPEDCR(BGPRPT,18,"B",BGPT,0)) I Z D  Q
 .S $P(^BGPPEDCR(BGPRPT,18,Z,0),U,3)=$P(^BGPPEDCR(BGPRPT,18,Z,0),U,3)+BGPC
 S Z=$P(^BGPPEDCR(BGPRPT,18,0),U,3)+BGPC,$P(^BGPPEDCR(BGPRPT,18,0),U,3)=Z,$P(^BGPPEDCR(BGPRPT,18,0),U,4)=Z
 S ^BGPPEDCR(BGPRPT,18,Z,0)=BGPT_U_BGPT_U_BGPC
 S ^BGPPEDCR(BGPRPT,18,"B",BGPT,Z)=""
 Q
SET73P ;
 I '$D(^BGPPEDPR(BGPRPT,18,0)) S ^BGPPEDPR(BGPRPT,18,0)="^90560.1318A^0^0"
 S Z=$O(^BGPPEDPR(BGPRPT,18,"B",BGPT,0)) I Z D  Q
 .S $P(^BGPPEDPR(BGPRPT,18,Z,0),U,3)=$P(^BGPPEDPR(BGPRPT,18,Z,0),U,3)+1
 S Z=$P(^BGPPEDPR(BGPRPT,18,0),U,3)+1,$P(^BGPPEDPR(BGPRPT,18,0),U,3)=Z,$P(^BGPPEDPR(BGPRPT,18,0),U,4)=Z
 S ^BGPPEDPR(BGPRPT,18,Z,0)=BGPT_U_BGPT_U_1
 S ^BGPPEDPR(BGPRPT,18,"B",BGPT,Z)=""
 Q
SET73B ;
 I '$D(^BGPPEDBR(BGPRPT,18,0)) S ^BGPPEDBR(BGP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