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

ABME5TOO.m

Go to the documentation of this file.
  1. ABME5TOO ; IHS/ASDST/DMJ - 837 TOO Segment
  1. ;;2.6;IHS Third Party Billing System;**6,19**;NOV 12, 2009;Build 300
  1. ;Tooth Identification
  1. ;IHS/SD/SDR - 2.6*19 - HEAT180453 - Updated TOO02 for some of the codes being sent, mostly the ones with 'X' or 'Q'
  1. ; as the final character.
  1. ;
  1. ;EP - START HERE
  1. K ABMREC("TOO"),ABMR("TOO")
  1. S ABME("RTYPE")="TOO"
  1. D LOOP
  1. K ABME,ABM
  1. Q
  1. LOOP ;LOOP HERE
  1. F I=10:10:40 D
  1. .D @I
  1. .I $D(^ABMEXLM("AA",+$G(ABMP("INS")),+$G(ABMP("EXP")),ABME("RTYPE"),I)) D @(^(I))
  1. .I $G(ABMREC("TOO"))'="" S ABMREC("TOO")=ABMREC("TOO")_"*"
  1. .S ABMREC("TOO")=$G(ABMREC("TOO"))_ABMR("TOO",I)
  1. Q
  1. 10 ;segment
  1. S ABMR("TOO",10)="TOO"
  1. Q
  1. 20 ;TOO01 - Code List Qualifier Code
  1. S ABMR("TOO",20)="JP"
  1. Q
  1. 30 ;TOO02 - Tooth Number
  1. N I
  1. S I=$P(ABMRV(ABMI,ABMJ,ABMK),U,23)
  1. S ABMR("TOO",30)=$G(^ADEOPS(+I,88))
  1. ;start new abm*2.6*19 IHS/SD/SDR HEAT180453
  1. I ABMR("TOO",30)="MND" S ABMR("TOO",30)="02"
  1. I ABMR("TOO",30)="MAX" S ABMR("TOO",30)="01"
  1. I ABMR("TOO",30)="OT" S ABMR("TOO",30)="09"
  1. I ABMR("TOO",30)="LLQ" S ABMR("TOO",30)="30"
  1. I ABMR("TOO",30)="LRQ" S ABMR("TOO",30)="40"
  1. I ABMR("TOO",30)="ULQ" S ABMR("TOO",30)="20"
  1. I ABMR("TOO",30)="URQ" S ABMR("TOO",30)="10"
  1. I ABMR("TOO",30)="LAX" S ABMR("TOO",30)="07"
  1. I ABMR("TOO",30)="LLX" S ABMR("TOO",30)="06"
  1. I ABMR("TOO",30)="LRX" S ABMR("TOO",30)="08"
  1. I ABMR("TOO",30)="UAX" S ABMR("TOO",30)="04"
  1. I ABMR("TOO",30)="ULX" S ABMR("TOO",30)="05"
  1. I ABMR("TOO",30)="URX" S ABMR("TOO",30)="03"
  1. ;end new abm*2.6*19 IHS/SD/SDR HEAT180453
  1. Q
  1. 40 ;TOO03 - Tooth Surface
  1. N I,J
  1. S I=$P(ABMRV(ABMI,ABMJ,ABMK),U,24)
  1. I I="" S ABMR("TOO",40)="" Q
  1. F J=1:1:$L(I) D
  1. .S $P(ABMR("TOO",40),":",J)=$E(I,J)
  1. Q