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

ADECD45.m

Go to the documentation of this file.
  1. ADECD45 ; IHS/SET/HMW - DENTAL EDIT TABLE UPDATE (CDT4) ;
  1. ;;6.0;ADE;**12,14**;MAR 25, 1999
  1. ;
  1. ;IHS/SET/HMW 4-14-2003 **14** Removed entry for 9220 code
  1. ;
  1. ;Remove and replace all DENTAL EDIT entries.
  1. ;
  1. ;Remove existing entries
  1. N DA,DIK
  1. S DIK="^ADEDIT("
  1. S DA=0 F S DA=$O(^ADEDIT(DA)) Q:'+DA D ^DIK
  1. ;
  1. ;Manually kill Mumps X-REF nodes
  1. K ^ADEDIT("AC"),^ADEDIT("AD")
  1. ;
  1. ;Add current entries
  1. ;
  1. N ADEGRP,ADECNT
  1. S ADECNT=0
  1. F S ADECNT=ADECNT+1,ADEGRP=$P($T(EDITS+ADECNT),";",3,99) Q:ADEGRP="" D
  1. . D ADDGRP($P(ADEGRP,U),$P(ADEGRP,U,2),$P(ADEGRP,U,3),$P(ADEGRP,U,4),$P(ADEGRP,U,5),$P(ADEGRP,U,6),$P(ADEGRP,U,7),$P(ADEGRP,U,8),$P(ADEGRP,U,9),$P(ADEGRP,U,10))
  1. Q
  1. ;
  1. ADDGRP(ADECOD,ADETYPE,ADEOPSP,ADECONF,ADETIME,ADERTYPE,ADERCODE,ADEAGE,ADERMSG,ADEOPSPR) ;
  1. ;
  1. N ADEIEN,ADEFDA
  1. S ADEIEN="+1,"
  1. S ADEFDA(9002007.9,"+1,",.01)=ADECOD
  1. S ADEFDA(9002007.9,"+1,",1)=ADETYPE ;EDIT TYPE
  1. S ADEFDA(9002007.9,"+1,",1.3)=ADEOPSP ;OPSITE SPECIFIC
  1. S ADEFDA(9002007.9,"+1,",2)=ADECONF ;CONFLICT CODE
  1. S ADEFDA(9002007.9,"+1,",3)=ADETIME ;EDIT TIME
  1. S ADEFDA(9002007.9,"+1,",4)=ADERTYPE ;RESOLUTION TYPE
  1. S ADEFDA(9002007.9,"+1,",5)=ADERCODE
  1. S ADEFDA(9002007.9,"+1,",2.4)=ADEAGE
  1. S ADEFDA(9002007.9,"+1,",6)=ADERMSG
  1. S ADEFDA(9002007.9,"+1,",4.1)=ADEOPSPR ;OPSITES PERMITTED
  1. D UPDATE^DIE("","ADEFDA","ADEIEN")
  1. Q
  1. ;
  1. EDITS ;CODE^TYPE^OPSITE SPECIFIC^CONFLICT CODE^EDIT TIME^RES TYPE^RES CODE^AGE^RESMSG^ADEOPSPR
  1. ;;1350^4^y^^^2^1351^^W *7,"This code cannot be used for permanent molars"^
  1. ;;1355^2^y^1355^1800;2^3^^^W *7,"UNREPORTABLE: This tooth has already had 2 reseals in pst 5 years."
  1. ;;1355^4^y^^^1^^^W *7,"This code is only used for PERMANENT MOLARS"^[PERMANENT MOLARS
  1. ;;[QUADRANT PROCEDURES^4^y^^^1^^^W *7,"Only QUADRANTS may be reported for this code"^[QUADRANTS
  1. ;;9221^4^y^^^1^^^W *7,"A 15 minute increment of general anesthesia, intravenous sedation, or behavior management."^[INCREMENTS
  1. ;;9242^4^y^^^1^^^W *7,"A 15 minute increment of general anesthesia, intravenous sedation, or behavior management."^[INCREMENTS
  1. ;;IH70^2^^IH70^FY|1^1^^^W *7,"This patient has already been assessed during this fiscal year"
  1. ;;IH71^2^^IH71^FY|1^1^^^W *7,"This patient already has a IH71 code during this fiscal year"
  1. ;;IH72^2^^IH72^FY|1^1^^^W *7,"This patient already has a IH72 code during this fiscal year"
  1. ;;IH73^2^^IH73^FY|1^1^^^W *7,"This patient already has a IH73 code during this fiscal year"
  1. ;;IH74^2^^IH74^FY|1^1^^^W *7,"This patient already has a IH74 code during this fiscal year"
  1. ;;IH75^2^^IH75^FY|1^1^^^W *7,"This patient already has a IH75 code during this fiscal year"
  1. ;;IH76^2^^IH76^FY|1^1^^^W *7,"This patient already has a IH76 code during this fiscal year"
  1. ;;IH77^2^^IH77^99999|1^1^^W *7,"This patient already has a IH77 code at this facilitY"
  1. ;;IH71^3^^IH71^^1^^X<20^W *7,"Patient must be 19 years old or younger"
  1. ;;IH72^3^^IH72^^1^^X<20^W *7,"Patient must be 19 years old or younger"
  1. ;;IH75^3^^IH75^^1^^((X>14)&(X<46))^W *7,"Patient must be between 15 and 45 years old"
  1. ;;IH77^3^^IH77^^1^^X>14^W *7,"Patient must be age 15 years or older"
  1. ;;[EXAMS^1^^[EXAMS^^1^^^W *7,"Only one exam may be reported per visit"
  1. ;;[EXTRACTIONS^2^y^[EXTRACTIONS^99999^1^^^W *7,"An extraction has already been reported for this tooth"
  1. ;;[EXTRACTIONS^1^y^[RESTORATIONS^^1^^^W *7,"Cannot extract and fill same tooth on same visit"
  1. ;;[PERMANENT TOOTH PROCEDURES^2^y^[EXTRACTIONS^99999^1^^^W *7,"An extraction has previously been reported for this tooth"
  1. ;;[PERMANENT TOOTH PROCEDURES^1^y^[EXTRACTIONS^^1^^^W *7,"An extraction is also being reported for this tooth"
  1. ;;[PERMANENT TOOTH PROCEDURES^4^y^^^1^^^W *7,"This code may only be used for permanent teeth"^[PERMANENT TEETH
  1. ;;[PERMANENT TOOTH PROCEDURES 2^4^y^^^1^^^W *7,"This code may only be used for permanent teeth"^[PERMANENT TEETH
  1. ;;[PRIMARY TOOTH PROCEDURES^2^y^[EXTRACTIONS^99999^1^^^W *7,"An extraction has previously been reported for this tooth"
  1. ;;[PRIMARY TOOTH PROCEDURES^1^y^[EXTRACTIONS^^1^^^W *7,"An extraction is also being reported for this tooth"
  1. ;;[PRIMARY TOOTH PROCEDURES^4^y^^^1^^^W *7,"This code may only be used for primary teeth"^[PRIMARY TEETH