ABMDE5C ; IHS/SD/SDR - PAGE 5C - DIAGNOSIS-Prov Narrative ;
;;2.6;IHS 3P BILLING SYSTEM;**14**;NOV 12, 2009;Build 238
;IHS/SD/SDR - 2.6*14 - HEAT161263 - Changed reference to AUTNPOV to use GET1^DIQ so output transform will execute for SNOMED/Provider Narrative
;
S ABMA("C")=0,ABMA("D")="",$P(ABMA("D"),".",80)=""
S ABMA=0 F ABMA("I")=1:1 S ABMA=$O(^ABMDCLM(DUZ(2),ABMP("CDFN"),11,ABMA)) Q:'ABMA D V1
I ABMA("I")>1!(ABMA("C")>0) W !,ABMA("D"),!
G XIT
V1 ; view
S ABMA("V")="" F ABMA("J")=1:1 S ABMA("V")=$O(^AUPNVPOV("AD",ABMA,ABMA("V"))) Q:'ABMA("V") D POV
Q
;
POV I $D(^AUPNVPOV(ABMA("V"),0)) S ABMA(0)=^(0)
E Q
Q:'$D(^AUPNVSIT(ABMA,0)) S ABMA("X")=$P(^AUPNVSIT(ABMA,0),U) D DT
S ABMA("C")=ABMA("C")+1
I ABMA("C")=1&(ABMA("I")=1) G SUB
W !,ABMA("X")
;K ABMU S ABMU("TXT")=$P(^AUTNPOV($P(ABMA(0),U,4),0),U),ABMU("LM")=10,ABMU("RM")=79 ;abm*2.6*14 HEAT161263
K ABMU S ABMU("TXT")=$$GET1^DIQ(9000010.07,ABMA("V"),".04","E"),ABMU("LM")=10,ABMU("RM")=79 ;abm*2.6*14 HEAT161263
D ^ABMDWRAP
Q
;
SUB W !,"VISIT DT",?30,"PROVIDER'S NARRATIVE"
W !,"--------",?10,"---------------------------------------------------------------------"
Q
;
XIT K ABMA
Q
;
DT ;dated conversion
I ABMA("X")]"" S ABMA("X")=$$HDT^ABMDUTL(ABMA("X"))
Q
ABMDE5C ; IHS/SD/SDR - PAGE 5C - DIAGNOSIS-Prov Narrative ;
+1 ;;2.6;IHS 3P BILLING SYSTEM;**14**;NOV 12, 2009;Build 238
+2 ;IHS/SD/SDR - 2.6*14 - HEAT161263 - Changed reference to AUTNPOV to use GET1^DIQ so output transform will execute for SNOMED/Provider Narrative
+3 ;
+4 SET ABMA("C")=0
SET ABMA("D")=""
SET $PIECE(ABMA("D"),".",80)=""
+5 SET ABMA=0
FOR ABMA("I")=1:1
SET ABMA=$ORDER(^ABMDCLM(DUZ(2),ABMP("CDFN"),11,ABMA))
IF 'ABMA
QUIT
DO V1
+6 IF ABMA("I")>1!(ABMA("C")>0)
WRITE !,ABMA("D"),!
+7 GOTO XIT
V1 ; view
+1 SET ABMA("V")=""
FOR ABMA("J")=1:1
SET ABMA("V")=$ORDER(^AUPNVPOV("AD",ABMA,ABMA("V")))
IF 'ABMA("V")
QUIT
DO POV
+2 QUIT
+3 ;
POV IF $DATA(^AUPNVPOV(ABMA("V"),0))
SET ABMA(0)=^(0)
+1 IF '$TEST
QUIT
+2 IF '$DATA(^AUPNVSIT(ABMA,0))
QUIT
SET ABMA("X")=$PIECE(^AUPNVSIT(ABMA,0),U)
DO DT
+3 SET ABMA("C")=ABMA("C")+1
+4 IF ABMA("C")=1&(ABMA("I")=1)
GOTO SUB
+5 WRITE !,ABMA("X")
+6 ;K ABMU S ABMU("TXT")=$P(^AUTNPOV($P(ABMA(0),U,4),0),U),ABMU("LM")=10,ABMU("RM")=79 ;abm*2.6*14 HEAT161263
+7 ;abm*2.6*14 HEAT161263
KILL ABMU
SET ABMU("TXT")=$$GET1^DIQ(9000010.07,ABMA("V"),".04","E")
SET ABMU("LM")=10
SET ABMU("RM")=79
+8 DO ^ABMDWRAP
+9 QUIT
+10 ;
SUB WRITE !,"VISIT DT",?30,"PROVIDER'S NARRATIVE"
+1 WRITE !,"--------",?10,"---------------------------------------------------------------------"
+2 QUIT
+3 ;
XIT KILL ABMA
+1 QUIT
+2 ;
DT ;dated conversion
+1 IF ABMA("X")]""
SET ABMA("X")=$$HDT^ABMDUTL(ABMA("X"))
+2 QUIT