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

ABME5DN1.m

Go to the documentation of this file.
  1. ABME5DN1 ; IHS/SD/SDR - 837 DN1 Segment
  1. ;;2.6;IHS Third Party Billing System;**11**;NOV 12, 2009;Build 133
  1. ;Transaction Set Header
  1. ;
  1. EP ;START HERE
  1. K ABMREC("DN1"),ABMR("DN1")
  1. S ABME("RTYPE")="DN1"
  1. D LOOP
  1. K ABME,ABM
  1. Q
  1. LOOP ;LOOP HERE
  1. F I=10:10:50 D
  1. .D @I
  1. .I $D(^ABMEXLM("AA",+$G(ABMP("INS")),+$G(ABMP("EXP")),ABME("RTYPE"),I)) D @(^(I))
  1. .I $G(ABMREC("DN1"))'="" S ABMREC("DN1")=ABMREC("DN1")_"*"
  1. .S ABMREC("DN1")=$G(ABMREC("DN1"))_ABMR("DN1",I)
  1. Q
  1. 10 ;segment
  1. S ABMR("DN1",10)="DN1"
  1. Q
  1. 20 ;DN101 - Quantity - Treatment Months Count
  1. S ABMR("DN1",20)=""
  1. I $P(ABMB4,U,5)'="" D
  1. S X1=ABMP("VDT")
  1. S X2=$P(ABMB4,U,5)
  1. D ^%DTC
  1. S ABMR("DN1",20)=(X\30)
  1. I +$P(ABMB4,U,13)>0 S ABMR("DN1",20)=+$G(ABMR("DN1",20))+$P(ABMB4,U,13)
  1. Q
  1. 30 ;DN102 - Quantity - Treatment Months Remaining Count
  1. S ABMR("DN1",30)=""
  1. S ABMR("DN1",30)=$P(ABMB4,U,13)
  1. Q
  1. 40 ;DN103 - Yes/No Conditon or Response Code - Not Used
  1. S ABMR("DN1",40)=""
  1. Q
  1. 50 ;DN104 - Description - Orthodontic Treatment Indicator
  1. S ABMR("DN1",50)=""
  1. Q