EC2P150B ;ALB/TXH - EC National Procedure Update; Apr 27, 2020@14:13
;;2.0;EVENT CAPTURE;**150**;May 8, 1996;Build 5
;
;This routine is used as a post-init in a KIDS build
;to add new procedure codes and change procedure names
;in the EC National Procedure file (#725).
;
Q
;
ADDPROC ;* add national procedures
;
; ECXX is in format:
; NAME^NATIONAL NUMBER^CPT CODE^FIRST NATIONAL NUMBER SEQUENCE
; LAST NATIONAL NUMBER SEQUENCE
;
N ECX,ECXX,ECDINUM,ECNAME,ECCODE,ECCPT,ECCOUNT,X,Y,DIC,DIE,DA,DR,DLAYGO,DINUM
N ECADD,ECBEG,ECEND,ECCODX,ECNAMX,ECSEQ,ECLIEN,ECSTR,ECCPTN,ECCNT1,ECCNT11
;
D MES^XPDUTL("*** Adding new procedures to the EC NATIONAL PROCEDURE File (#725)...")
;
S ECDINUM=$O(^EC(725,9999),-1),ECCOUNT=$P(^EC(725,0),U,4)
S (ECCNT1,ECCNT11)=0
F ECX=1:1 S ECXX=$P($T(NEW+ECX),";;",2) Q:ECXX="QUIT" D
.S ECNAME=$P(ECXX,U,1),ECCODE=$P(ECXX,U,2),ECCPTN=$P(ECXX,U,3),ECCODX=ECCODE
.S ECCPT=""
.I ECCPTN'="" S ECCPT=$$FIND1^DIC(81,"","X",ECCPTN) I +ECCPT<1 D Q
..S ECSTR=" CPT code "_ECCPTN_" not a valid code in CPT File."
..D MES^XPDUTL(" ")
..D MES^XPDUTL(" ["_ECCODE_"] "_ECSTR)
.S ECBEG=$P(ECXX,U,4),ECEND=$P(ECXX,U,5),ECNAMX=ECNAME
.I ECBEG="" S X=ECNAME D FILPROC Q
.F ECSEQ=ECBEG:1:ECEND D
..S ECADD="000"_ECSEQ,ECADD=$E(ECADD,$L(ECADD)-2,$L(ECADD))
..I $E(ECCODX,1,3)'="RCM" S ECNAME=ECNAMX_ECSEQ,X=ECNAME,ECCODE=ECCODX_ECADD
..E S ECNAME=ECNAMX_$E(ECADD,2,99),X=ECNAME,ECCODE=ECCODX_$E(ECADD,2,99)
..D FILPROC
S $P(^EC(725,0),U,4)=ECCOUNT,X=$O(^EC(725,999999),-1),$P(^EC(725,0),U,3)=X
D BMES^XPDUTL(" Total "_ECCNT1_" new codes have been added.")
I ECCNT11>0 D MES^XPDUTL(" Total "_ECCNT11_" new codes have NOT added.")
D MES^XPDUTL(" ")
Q
;
FILPROC ;File national procedures
I '$D(^EC(725,"D",ECCODE)) D
.S ECDINUM=ECDINUM+1,DINUM=ECDINUM,DIC(0)="L",DLAYGO=725,DIC="^EC(725,"
.S DIC("DR")="1////^S X=ECCODE;4///^S X=ECCPT"
.D FILE^DICN
.;
.I +Y>0 D
..S ECCOUNT=ECCOUNT+1
..D MES^XPDUTL(" ")
..S ECSTR=" Entry #"_+Y_" for "_$P(Y,U,2)
..S ECSTR=ECSTR_$S(ECCPT'="":" [CPT: "_ECCPT_"]",1:"")_" ("_ECCODE_")"
..D MES^XPDUTL(ECSTR)
..D MES^XPDUTL(" ...successfully added.")
..S ECCNT1=ECCNT1+1
.;
.I Y=-1 D
..D MES^XPDUTL(" ")
..D BMES^XPDUTL(" ERROR when attempting to add "_ECNAME_" ("_ECCODE_")")
..S ECCNT11=ECCNT11+1
;
I $D(^EC(725,"DL",ECCODE)) D
.S ECLIEN=$O(^EC(725,"DL",ECCODE,""))
.D BMES^XPDUTL(" ")
.D MES^XPDUTL(" ** Your site has a local procedure (entry #"_ECLIEN_") in File #725")
.D MES^XPDUTL(" which uses "_ECCODE_" as its National Number.")
.D MES^XPDUTL(" Please inactivate this local procedure.")
.D MES^XPDUTL(" ")
.K Y
Q
NEW ;national procedures to add;;descript^nation #^CPT code^beg seq^end seq
;;CGM PT EQ TRAIN 30M^NU221^95249^^
;;CGM ANALY/INTERP 45M^NU222^95251^^
;;INTERDIS CARE PLN MTG 3M^NU223^^^
;;DX-INCR ENERGY EXPEND 0M^NU311^^^
;;DX-INAD ENERGY INTAKE 0M^NU312^^^
;;DX-EXC ENERGY INTAKE 0M^NU313^^^
;;DX-PRED INAD ENER INT 0M^NU314^^^
;;DX-PRED EXC ENER INT 0M^NU315^^^
;;DX-INAD ORAL INTAKE 0M^NU316^^^
;;DX-EXC ORAL INTAKE 0M^NU317^^^
;;DX-INAD EN INFUSION 0M^NU318^^^
;;DX-EXC EN INFUSION 0M^NU319^^^
;;DX-EN COMP INCONST 0M^NU320^^^
;;DX-EN ADM INCONST 0M^NU321^^^
;;DX-LMT FOOD ACCEPT 0M^NU322^^^
;;DX-INAD FLUID INTAKE 0M^NU323^^^
;;DX-EXC FLUID INTAKE 0M^NU324^^^
;;DX-INCR NUTR NEEDS 0M^NU325^^^
;;DX-INAD PRO/ENER INT 0M^NU326^^^
;;DX-DECR NUTR NEEDS 0M^NU327^^^
;;DX-IMBAL OF NUTR 0M^NU328^^^
;;DS-INAD FAT INTAKE 0M^NU329^^^
;;DX-EXC FAT INTAKE 0M^NU330^^^
;;DX-FATS INCON W/NEEDS 0M^NU331^^^
;;DX-INAD PRO INTAKE 0M^NU332^^^
;;DX-EXC PRO INTAKE 0M^NU333^^^
;;DX-PRO INCON W/NEEDS 0M^NU334^^^
;;DX-INAD CHO 0M^NU335^^^
;;DX-EXC CHO 0M^NU336^^^
;;DX-CHO INCON W/NEEDS 0M^NU337^^^
;;DX-INCON CHO INTAKE 0M^NU338^^^
;;DX-INAD FIBER INTAKE 0M^NU339^^^
;;DX-EXC FIBER INTAKE 0M^NU340^^^
;;DX-INAD VIT INTAKE 0M^NU341^^^
;;DX-EXC VIT INTAKE 0M^NU342^^^
;;DX-INAD MIN INTAKE 0M^NU343^^^
;;DX-EXC MIN INTAKE 0M^NU344^^^
;;DX-PRED SUB NUT INTAKE 0M^NU345^^^
;;DX-PRED EXC NUT INTAKE 0M^NU346^^^
;;DX-SWALLOW DIFF 0M^NU347^^^
;;DX-CHEW DIFF 0M^NU348^^^
;;DX-ALT GI FX 0M^NU349^^^
;;DX-IMPAIR NUTR UTIL 0M^NU350^^^
;;DX-ALTERED LABS 0M^NU351^^^
;;DX-FOOD-MED INTERACT 0M^NU352^^^
;;DX-PRED FD-MED INTER 0M^NU353^^^
;;DX-UNDERWEIGHT 0M^NU354^^^
;;DX-UNINTEN WT LOSS 0M^NU355^^^
;;DX-OVERWEIGHT 0M^NU356^^^
;;DX-OBESE, CLASS 1 0M^NU357^^^
;;DX-OBESE, CLASS II 0M^NU358^^^
;;DX-OBESE, CLASS III 0M^NU359^^^
;;DX-UNINTEND WT GAIN 0M^NU360^^^
;;DX-FN KNOW DEF 0M^NU361^^^
;;DX-UNSUP BELIEFS/ATT 0M^NU362^^^
;;DX-NOT RDY DT/LIF CHG 0M^NU363^^^
;;DX-SELF-MONITOR DEF 0M^NU364^^^
;;DX-DISORDERED EAT PAT 0M^NU365^^^
;;DX-LIMITED ADHERENCE 0M^NU366^^^
;;DX-UNDES FOOD CHOICES 0M^NU367^^^
;;DX-PHYSICAL INACATIVITY 0M^NU368^^^
;;DX-EXC PHYSI ACTIVITY 0M^NU369^^^
;;DX-INAB MGE SELF-CARE 0M^NU370^^^
;;DX-IMP ABILITY PREP FD 0M^NU371^^^
;;DX-POOR NUTR QOL 0M^NU372^^^
;;DX-SELF-FEED DIFF 0M^NU373^^^
;;DX-INT OF UNSAFE FOOD 0M^NU374^^^
;;DX-LMT ACCESS FD/WATER 0M^NU375^^^
;;DX-LMT ACCESS NUTR SUP 0M^NU376^^^
;;DX-NO NUTR DX 0M^NU377^^^
;;DX-NOC 0M^NU378^^^
;;ET-ACCESS 0M^NU390^^^
;;ET-BEHAVIOR 0M^NU391^^^
;;ET-BELIEFS-ATTITUDES 0M^NU392^^^
;;ET-CULTURAL 0M^NU393^^^
;;ET-KNOWLEDGE 0M^NU394^^^
;;ET-PHYSICAL FUNCTION 0M^NU395^^^
;;ET-PHYSIOLOGIC-METAB 0M^NU396^^^
;;ET-PSYCHOLOGICAL 0M^NU397^^^
;;ET-SOCIAL-PERSONAL 0M^NU398^^^
;;ET-TREATMENT 0M^NU399^^^
;;IN-GEN HEALT DIET 0M^NU411^^^
;;IN-MOD COMP MEAL/SN 0M^NU412^^^
;;IN-TEXT MOD DIET 0M^NU413^^^
;;IN-ENERGY MOD DIET 0M^NU414^^^
;;IN-PROT MOD DIET 0M^NU415^^^
;;IN-CHO MODIFIED DIET 0M^NU416^^^
;;IN-FAT MODIFIED DIET 0M^NU417^^^
;;IN-FIBER MODIFIED DIET 0M^NU418^^^
;;IN-FLUID MODIFIED DIET 0M^NU419^^^
;;IN-MOD SPEC FOOD/INGR 0M^NU420^^^
;;IN-VIT MOD DIET 0M^NU421^^^
;;IN-MOD EN 0M^NU422^^^
;;IN-MOD PN 0M^NU423^^^
;;IN-INSERT FT 0M^NU424^^^
;;IN-EN SITE CARE 0M^NU425^^^
;;IN-EN FLUSH 0M^NU426^^^
;;IN-COM BEV 0M^NU427^^^
;;IN-COM FOOD 0M^NU428^^^
;;IN-MOD BEV 0M^NU429^^^
;;IN-MOD FOOD 0M^NU430^^^
;;IN-SPEC FOODS/BEV 0M^NU431^^^
;;IN-MULTIVIT/MIN SUPP 0M^NU432^^^
;;IN-MULTITRACE SUPP 0M^NU433^^^
;;IN-VIT SUPP 0M^NU434^^^
;;IN-MIN SUPP 0M^NU435^^^
;;IN-FEED ASSIST 0M^NU436^^^
;;IN-ADAPTIVE DEVICE 0M^NU437^^^
;;IN-FEED POS 0M^NU438^^^
;;IN-MEAL SET UP 0M^NU439^^^
;;IN-MOUTH CARE 0M^NU440^^^
;;IN-MENU ASSIST 0M^NU441^^^
;;IN-MANAG FEED ENVIRON 0M^NU442^^^
;;IN-PRESCRIPTION RX 0M^NU443^^^
;;IN-(OTC) MED 0M^NU444^^^
;;IN-CAM 0M^NU445^^^
;;IN-CONTENT ED 0M^NU446^^^
;;IN-ED-INFLUE ON HEALTHi 0M^NU447^^^
;;IN-PA GUIDE 0M^NU448^^^
;;IN-LAB RESULT INTERPR 0M^NU449^^^
;;IN-NUTR SKILL ED 0M^NU450^^^
;;IN-TECH NUT ED 0M^NU451^^^
;;IN-CBT 0M^NU452^^^
;;IN-HBM 0M^NU453^^^
;;IN-SOCIAL LEARN 0M^NU454^^^
;;IN-TRANSTH ST OF CHG 0M^NU455^^^
;;IN-MI 0M^NU456^^^
;;IN-GOAL SET 0M^NU457^^^
;;IN-SELF-MONITOR 0M^NU458^^^
;;IN-PROBLEM SOLVING 0M^NU459^^^
;;IN-SOCIAL SUPPORT 0M^NU460^^^
;;IN-STRESS MANAGEMENT 0M^NU461^^^
;;IN-STIMULUS CONTROL 0M^NU462^^^
;;IN-COGNIT RESTRUCT 0M^NU463^^^
;;IN-RELAPSE PREVENTION 0M^NU464^^^
;;IN-REWARDS 0M^NU465^^^
;;IN-TEAM MEETING 0M^NU466^^^
;;IN-REFERRAL TO RDN 0M^NU467^^^
;;IN-COLLAB WITH RDN/DT 0M^NU468^^^
;;IN-COLLAB W/ OTHER PROV 0M^NU469^^^
;;IN-REFER TO OTHER PROV 0M^NU470^^^
;;IN-REFERRAL TO COM 0M^NU471^^^
;;IN-D/C-TX CARE OTH PROV 0M^NU472^^^
;;IN-D/C-TX CARE OTH AGEN 0M^NU473^^^
;;IN-D/C-TX CARE OTH RDN 0M^NU474^^^
;;IN-INTERV NOC 0M^NU475^^^
;;M&E GOAL MET 0M^NU510^^^
;;M&E GOAL NOT MET 0M^NU511^^^
;;HEALTH BEHAV INTERV INI 30^SW189^96158^^
;;HEALTH BEHAV INTERV INI GRP 30^SW190^96164^^
;;HEALTH BEHAV INTERV FAM INI W/PT 30^SW191^96167^^
;;HEALTH BEHAV INTERV FAM INI W/O PT 30^SW192^96170^^
;;SELF CARE MGMT TRAINING^SW193^97535^^
;;COMMUNITY/WORK REINTEGRT^SW194^97537^^
;;SECURE MESG 11-20 MIN^SW195^98971^^
;;SECURE MESG 21+ MIN^SW196^98972^^
;;GROUP EDUCATION SVS^SW197^99078^^
;;E-CONSLT 5-10 MIN^SW198^G2061^^
;;E-CONSLT 11-20 MIN^SW199^G2062^^
;;E-CONSLT 21+ MIN^SW200^G2063^^
;;CRISIS INT SVC^SW201^S9484^^
;;TELE GROUP^SW202^T1015^^
;;QUIT
;
NAMECHG ;* change national procedure names
;
; ECXX is in format:
; NATIONAL NUMBER^NEW NAME
;
N ECX,ECXX,ECDA,DA,DR,DIC,DIE,X,Y,ECSTR,ECCNT4
D MES^XPDUTL("*** Changing names in EC NATIONAL PROCEDURE File (#725)...")
;
S ECCNT4=0
F ECX=1:1 S ECXX=$P($T(CHNG+ECX),";;",2) Q:ECXX="QUIT" D
.I $D(^EC(725,"D",$P(ECXX,U,1))) D
..S ECDA=+$O(^EC(725,"D",$P(ECXX,U,1),0))
..I $D(^EC(725,ECDA,0)) D
...S DA=ECDA,DR=".01////^S X=$P(ECXX,U,2)",DIE="^EC(725," D ^DIE
...D MES^XPDUTL(" ")
...D MES^XPDUTL(" Entry #"_ECDA_" for "_$P(ECXX,U,1))
...D MES^XPDUTL(" ... field (#.01) updated to "_$P(ECXX,U,2)_".")
...S ECCNT4=ECCNT4+1
.;
.I '$D(^EC(725,"D",$P(ECXX,U,1))) D
..D MES^XPDUTL(" ")
..S ECSTR="Can't find entry for "_$P(ECXX,U,1)
..D BMES^XPDUTL(ECSTR_" ...field (#.01) not updated.")
;
D BMES^XPDUTL(" Total "_ECCNT4_" names have been changed.")
D MES^XPDUTL(" ")
Q
;
CHNG ;name changes -national code #^new procedure name
;;CH100^RITE/SACRAMENT/ORDINANCE
;;CH109^FUNERAL/MEMORIAL
;;CH110^INDIVIDUAL CARE COUNSELING
;;CH114^FAMILY CARE/COUNSELING
;;CH118^GROUP
;;CH125^INTERDISCIPLINARY TEAM
;;NU181^REM MNTR PHYSIO PARAM DEV
;;SW019^PREVENTATIVE COUNSEL, GRP
;;SW181^SECURE MESG 5-10 MIN
;;QUIT
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HEC2P150B 9696 printed Nov 22, 2024@17:05:32 Page 2
EC2P150B ;ALB/TXH - EC National Procedure Update; Apr 27, 2020@14:13
+1 ;;2.0;EVENT CAPTURE;**150**;May 8, 1996;Build 5
+2 ;
+3 ;This routine is used as a post-init in a KIDS build
+4 ;to add new procedure codes and change procedure names
+5 ;in the EC National Procedure file (#725).
+6 ;
+7 QUIT
+8 ;
ADDPROC ;* add national procedures
+1 ;
+2 ; ECXX is in format:
+3 ; NAME^NATIONAL NUMBER^CPT CODE^FIRST NATIONAL NUMBER SEQUENCE
+4 ; LAST NATIONAL NUMBER SEQUENCE
+5 ;
+6 NEW ECX,ECXX,ECDINUM,ECNAME,ECCODE,ECCPT,ECCOUNT,X,Y,DIC,DIE,DA,DR,DLAYGO,DINUM
+7 NEW ECADD,ECBEG,ECEND,ECCODX,ECNAMX,ECSEQ,ECLIEN,ECSTR,ECCPTN,ECCNT1,ECCNT11
+8 ;
+9 DO MES^XPDUTL("*** Adding new procedures to the EC NATIONAL PROCEDURE File (#725)...")
+10 ;
+11 SET ECDINUM=$ORDER(^EC(725,9999),-1)
SET ECCOUNT=$PIECE(^EC(725,0),U,4)
+12 SET (ECCNT1,ECCNT11)=0
+13 FOR ECX=1:1
SET ECXX=$PIECE($TEXT(NEW+ECX),";;",2)
if ECXX="QUIT"
QUIT
Begin DoDot:1
+14 SET ECNAME=$PIECE(ECXX,U,1)
SET ECCODE=$PIECE(ECXX,U,2)
SET ECCPTN=$PIECE(ECXX,U,3)
SET ECCODX=ECCODE
+15 SET ECCPT=""
+16 IF ECCPTN'=""
SET ECCPT=$$FIND1^DIC(81,"","X",ECCPTN)
IF +ECCPT<1
Begin DoDot:2
+17 SET ECSTR=" CPT code "_ECCPTN_" not a valid code in CPT File."
+18 DO MES^XPDUTL(" ")
+19 DO MES^XPDUTL(" ["_ECCODE_"] "_ECSTR)
End DoDot:2
QUIT
+20 SET ECBEG=$PIECE(ECXX,U,4)
SET ECEND=$PIECE(ECXX,U,5)
SET ECNAMX=ECNAME
+21 IF ECBEG=""
SET X=ECNAME
DO FILPROC
QUIT
+22 FOR ECSEQ=ECBEG:1:ECEND
Begin DoDot:2
+23 SET ECADD="000"_ECSEQ
SET ECADD=$EXTRACT(ECADD,$LENGTH(ECADD)-2,$LENGTH(ECADD))
+24 IF $EXTRACT(ECCODX,1,3)'="RCM"
SET ECNAME=ECNAMX_ECSEQ
SET X=ECNAME
SET ECCODE=ECCODX_ECADD
+25 IF '$TEST
SET ECNAME=ECNAMX_$EXTRACT(ECADD,2,99)
SET X=ECNAME
SET ECCODE=ECCODX_$EXTRACT(ECADD,2,99)
+26 DO FILPROC
End DoDot:2
End DoDot:1
+27 SET $PIECE(^EC(725,0),U,4)=ECCOUNT
SET X=$ORDER(^EC(725,999999),-1)
SET $PIECE(^EC(725,0),U,3)=X
+28 DO BMES^XPDUTL(" Total "_ECCNT1_" new codes have been added.")
+29 IF ECCNT11>0
DO MES^XPDUTL(" Total "_ECCNT11_" new codes have NOT added.")
+30 DO MES^XPDUTL(" ")
+31 QUIT
+32 ;
FILPROC ;File national procedures
+1 IF '$DATA(^EC(725,"D",ECCODE))
Begin DoDot:1
+2 SET ECDINUM=ECDINUM+1
SET DINUM=ECDINUM
SET DIC(0)="L"
SET DLAYGO=725
SET DIC="^EC(725,"
+3 SET DIC("DR")="1////^S X=ECCODE;4///^S X=ECCPT"
+4 DO FILE^DICN
+5 ;
+6 IF +Y>0
Begin DoDot:2
+7 SET ECCOUNT=ECCOUNT+1
+8 DO MES^XPDUTL(" ")
+9 SET ECSTR=" Entry #"_+Y_" for "_$PIECE(Y,U,2)
+10 SET ECSTR=ECSTR_$SELECT(ECCPT'="":" [CPT: "_ECCPT_"]",1:"")_" ("_ECCODE_")"
+11 DO MES^XPDUTL(ECSTR)
+12 DO MES^XPDUTL(" ...successfully added.")
+13 SET ECCNT1=ECCNT1+1
End DoDot:2
+14 ;
+15 IF Y=-1
Begin DoDot:2
+16 DO MES^XPDUTL(" ")
+17 DO BMES^XPDUTL(" ERROR when attempting to add "_ECNAME_" ("_ECCODE_")")
+18 SET ECCNT11=ECCNT11+1
End DoDot:2
End DoDot:1
+19 ;
+20 IF $DATA(^EC(725,"DL",ECCODE))
Begin DoDot:1
+21 SET ECLIEN=$ORDER(^EC(725,"DL",ECCODE,""))
+22 DO BMES^XPDUTL(" ")
+23 DO MES^XPDUTL(" ** Your site has a local procedure (entry #"_ECLIEN_") in File #725")
+24 DO MES^XPDUTL(" which uses "_ECCODE_" as its National Number.")
+25 DO MES^XPDUTL(" Please inactivate this local procedure.")
+26 DO MES^XPDUTL(" ")
+27 KILL Y
End DoDot:1
+28 QUIT
NEW ;national procedures to add;;descript^nation #^CPT code^beg seq^end seq
+1 ;;CGM PT EQ TRAIN 30M^NU221^95249^^
+2 ;;CGM ANALY/INTERP 45M^NU222^95251^^
+3 ;;INTERDIS CARE PLN MTG 3M^NU223^^^
+4 ;;DX-INCR ENERGY EXPEND 0M^NU311^^^
+5 ;;DX-INAD ENERGY INTAKE 0M^NU312^^^
+6 ;;DX-EXC ENERGY INTAKE 0M^NU313^^^
+7 ;;DX-PRED INAD ENER INT 0M^NU314^^^
+8 ;;DX-PRED EXC ENER INT 0M^NU315^^^
+9 ;;DX-INAD ORAL INTAKE 0M^NU316^^^
+10 ;;DX-EXC ORAL INTAKE 0M^NU317^^^
+11 ;;DX-INAD EN INFUSION 0M^NU318^^^
+12 ;;DX-EXC EN INFUSION 0M^NU319^^^
+13 ;;DX-EN COMP INCONST 0M^NU320^^^
+14 ;;DX-EN ADM INCONST 0M^NU321^^^
+15 ;;DX-LMT FOOD ACCEPT 0M^NU322^^^
+16 ;;DX-INAD FLUID INTAKE 0M^NU323^^^
+17 ;;DX-EXC FLUID INTAKE 0M^NU324^^^
+18 ;;DX-INCR NUTR NEEDS 0M^NU325^^^
+19 ;;DX-INAD PRO/ENER INT 0M^NU326^^^
+20 ;;DX-DECR NUTR NEEDS 0M^NU327^^^
+21 ;;DX-IMBAL OF NUTR 0M^NU328^^^
+22 ;;DS-INAD FAT INTAKE 0M^NU329^^^
+23 ;;DX-EXC FAT INTAKE 0M^NU330^^^
+24 ;;DX-FATS INCON W/NEEDS 0M^NU331^^^
+25 ;;DX-INAD PRO INTAKE 0M^NU332^^^
+26 ;;DX-EXC PRO INTAKE 0M^NU333^^^
+27 ;;DX-PRO INCON W/NEEDS 0M^NU334^^^
+28 ;;DX-INAD CHO 0M^NU335^^^
+29 ;;DX-EXC CHO 0M^NU336^^^
+30 ;;DX-CHO INCON W/NEEDS 0M^NU337^^^
+31 ;;DX-INCON CHO INTAKE 0M^NU338^^^
+32 ;;DX-INAD FIBER INTAKE 0M^NU339^^^
+33 ;;DX-EXC FIBER INTAKE 0M^NU340^^^
+34 ;;DX-INAD VIT INTAKE 0M^NU341^^^
+35 ;;DX-EXC VIT INTAKE 0M^NU342^^^
+36 ;;DX-INAD MIN INTAKE 0M^NU343^^^
+37 ;;DX-EXC MIN INTAKE 0M^NU344^^^
+38 ;;DX-PRED SUB NUT INTAKE 0M^NU345^^^
+39 ;;DX-PRED EXC NUT INTAKE 0M^NU346^^^
+40 ;;DX-SWALLOW DIFF 0M^NU347^^^
+41 ;;DX-CHEW DIFF 0M^NU348^^^
+42 ;;DX-ALT GI FX 0M^NU349^^^
+43 ;;DX-IMPAIR NUTR UTIL 0M^NU350^^^
+44 ;;DX-ALTERED LABS 0M^NU351^^^
+45 ;;DX-FOOD-MED INTERACT 0M^NU352^^^
+46 ;;DX-PRED FD-MED INTER 0M^NU353^^^
+47 ;;DX-UNDERWEIGHT 0M^NU354^^^
+48 ;;DX-UNINTEN WT LOSS 0M^NU355^^^
+49 ;;DX-OVERWEIGHT 0M^NU356^^^
+50 ;;DX-OBESE, CLASS 1 0M^NU357^^^
+51 ;;DX-OBESE, CLASS II 0M^NU358^^^
+52 ;;DX-OBESE, CLASS III 0M^NU359^^^
+53 ;;DX-UNINTEND WT GAIN 0M^NU360^^^
+54 ;;DX-FN KNOW DEF 0M^NU361^^^
+55 ;;DX-UNSUP BELIEFS/ATT 0M^NU362^^^
+56 ;;DX-NOT RDY DT/LIF CHG 0M^NU363^^^
+57 ;;DX-SELF-MONITOR DEF 0M^NU364^^^
+58 ;;DX-DISORDERED EAT PAT 0M^NU365^^^
+59 ;;DX-LIMITED ADHERENCE 0M^NU366^^^
+60 ;;DX-UNDES FOOD CHOICES 0M^NU367^^^
+61 ;;DX-PHYSICAL INACATIVITY 0M^NU368^^^
+62 ;;DX-EXC PHYSI ACTIVITY 0M^NU369^^^
+63 ;;DX-INAB MGE SELF-CARE 0M^NU370^^^
+64 ;;DX-IMP ABILITY PREP FD 0M^NU371^^^
+65 ;;DX-POOR NUTR QOL 0M^NU372^^^
+66 ;;DX-SELF-FEED DIFF 0M^NU373^^^
+67 ;;DX-INT OF UNSAFE FOOD 0M^NU374^^^
+68 ;;DX-LMT ACCESS FD/WATER 0M^NU375^^^
+69 ;;DX-LMT ACCESS NUTR SUP 0M^NU376^^^
+70 ;;DX-NO NUTR DX 0M^NU377^^^
+71 ;;DX-NOC 0M^NU378^^^
+72 ;;ET-ACCESS 0M^NU390^^^
+73 ;;ET-BEHAVIOR 0M^NU391^^^
+74 ;;ET-BELIEFS-ATTITUDES 0M^NU392^^^
+75 ;;ET-CULTURAL 0M^NU393^^^
+76 ;;ET-KNOWLEDGE 0M^NU394^^^
+77 ;;ET-PHYSICAL FUNCTION 0M^NU395^^^
+78 ;;ET-PHYSIOLOGIC-METAB 0M^NU396^^^
+79 ;;ET-PSYCHOLOGICAL 0M^NU397^^^
+80 ;;ET-SOCIAL-PERSONAL 0M^NU398^^^
+81 ;;ET-TREATMENT 0M^NU399^^^
+82 ;;IN-GEN HEALT DIET 0M^NU411^^^
+83 ;;IN-MOD COMP MEAL/SN 0M^NU412^^^
+84 ;;IN-TEXT MOD DIET 0M^NU413^^^
+85 ;;IN-ENERGY MOD DIET 0M^NU414^^^
+86 ;;IN-PROT MOD DIET 0M^NU415^^^
+87 ;;IN-CHO MODIFIED DIET 0M^NU416^^^
+88 ;;IN-FAT MODIFIED DIET 0M^NU417^^^
+89 ;;IN-FIBER MODIFIED DIET 0M^NU418^^^
+90 ;;IN-FLUID MODIFIED DIET 0M^NU419^^^
+91 ;;IN-MOD SPEC FOOD/INGR 0M^NU420^^^
+92 ;;IN-VIT MOD DIET 0M^NU421^^^
+93 ;;IN-MOD EN 0M^NU422^^^
+94 ;;IN-MOD PN 0M^NU423^^^
+95 ;;IN-INSERT FT 0M^NU424^^^
+96 ;;IN-EN SITE CARE 0M^NU425^^^
+97 ;;IN-EN FLUSH 0M^NU426^^^
+98 ;;IN-COM BEV 0M^NU427^^^
+99 ;;IN-COM FOOD 0M^NU428^^^
+100 ;;IN-MOD BEV 0M^NU429^^^
+101 ;;IN-MOD FOOD 0M^NU430^^^
+102 ;;IN-SPEC FOODS/BEV 0M^NU431^^^
+103 ;;IN-MULTIVIT/MIN SUPP 0M^NU432^^^
+104 ;;IN-MULTITRACE SUPP 0M^NU433^^^
+105 ;;IN-VIT SUPP 0M^NU434^^^
+106 ;;IN-MIN SUPP 0M^NU435^^^
+107 ;;IN-FEED ASSIST 0M^NU436^^^
+108 ;;IN-ADAPTIVE DEVICE 0M^NU437^^^
+109 ;;IN-FEED POS 0M^NU438^^^
+110 ;;IN-MEAL SET UP 0M^NU439^^^
+111 ;;IN-MOUTH CARE 0M^NU440^^^
+112 ;;IN-MENU ASSIST 0M^NU441^^^
+113 ;;IN-MANAG FEED ENVIRON 0M^NU442^^^
+114 ;;IN-PRESCRIPTION RX 0M^NU443^^^
+115 ;;IN-(OTC) MED 0M^NU444^^^
+116 ;;IN-CAM 0M^NU445^^^
+117 ;;IN-CONTENT ED 0M^NU446^^^
+118 ;;IN-ED-INFLUE ON HEALTHi 0M^NU447^^^
+119 ;;IN-PA GUIDE 0M^NU448^^^
+120 ;;IN-LAB RESULT INTERPR 0M^NU449^^^
+121 ;;IN-NUTR SKILL ED 0M^NU450^^^
+122 ;;IN-TECH NUT ED 0M^NU451^^^
+123 ;;IN-CBT 0M^NU452^^^
+124 ;;IN-HBM 0M^NU453^^^
+125 ;;IN-SOCIAL LEARN 0M^NU454^^^
+126 ;;IN-TRANSTH ST OF CHG 0M^NU455^^^
+127 ;;IN-MI 0M^NU456^^^
+128 ;;IN-GOAL SET 0M^NU457^^^
+129 ;;IN-SELF-MONITOR 0M^NU458^^^
+130 ;;IN-PROBLEM SOLVING 0M^NU459^^^
+131 ;;IN-SOCIAL SUPPORT 0M^NU460^^^
+132 ;;IN-STRESS MANAGEMENT 0M^NU461^^^
+133 ;;IN-STIMULUS CONTROL 0M^NU462^^^
+134 ;;IN-COGNIT RESTRUCT 0M^NU463^^^
+135 ;;IN-RELAPSE PREVENTION 0M^NU464^^^
+136 ;;IN-REWARDS 0M^NU465^^^
+137 ;;IN-TEAM MEETING 0M^NU466^^^
+138 ;;IN-REFERRAL TO RDN 0M^NU467^^^
+139 ;;IN-COLLAB WITH RDN/DT 0M^NU468^^^
+140 ;;IN-COLLAB W/ OTHER PROV 0M^NU469^^^
+141 ;;IN-REFER TO OTHER PROV 0M^NU470^^^
+142 ;;IN-REFERRAL TO COM 0M^NU471^^^
+143 ;;IN-D/C-TX CARE OTH PROV 0M^NU472^^^
+144 ;;IN-D/C-TX CARE OTH AGEN 0M^NU473^^^
+145 ;;IN-D/C-TX CARE OTH RDN 0M^NU474^^^
+146 ;;IN-INTERV NOC 0M^NU475^^^
+147 ;;M&E GOAL MET 0M^NU510^^^
+148 ;;M&E GOAL NOT MET 0M^NU511^^^
+149 ;;HEALTH BEHAV INTERV INI 30^SW189^96158^^
+150 ;;HEALTH BEHAV INTERV INI GRP 30^SW190^96164^^
+151 ;;HEALTH BEHAV INTERV FAM INI W/PT 30^SW191^96167^^
+152 ;;HEALTH BEHAV INTERV FAM INI W/O PT 30^SW192^96170^^
+153 ;;SELF CARE MGMT TRAINING^SW193^97535^^
+154 ;;COMMUNITY/WORK REINTEGRT^SW194^97537^^
+155 ;;SECURE MESG 11-20 MIN^SW195^98971^^
+156 ;;SECURE MESG 21+ MIN^SW196^98972^^
+157 ;;GROUP EDUCATION SVS^SW197^99078^^
+158 ;;E-CONSLT 5-10 MIN^SW198^G2061^^
+159 ;;E-CONSLT 11-20 MIN^SW199^G2062^^
+160 ;;E-CONSLT 21+ MIN^SW200^G2063^^
+161 ;;CRISIS INT SVC^SW201^S9484^^
+162 ;;TELE GROUP^SW202^T1015^^
+163 ;;QUIT
+164 ;
NAMECHG ;* change national procedure names
+1 ;
+2 ; ECXX is in format:
+3 ; NATIONAL NUMBER^NEW NAME
+4 ;
+5 NEW ECX,ECXX,ECDA,DA,DR,DIC,DIE,X,Y,ECSTR,ECCNT4
+6 DO MES^XPDUTL("*** Changing names in EC NATIONAL PROCEDURE File (#725)...")
+7 ;
+8 SET ECCNT4=0
+9 FOR ECX=1:1
SET ECXX=$PIECE($TEXT(CHNG+ECX),";;",2)
if ECXX="QUIT"
QUIT
Begin DoDot:1
+10 IF $DATA(^EC(725,"D",$PIECE(ECXX,U,1)))
Begin DoDot:2
+11 SET ECDA=+$ORDER(^EC(725,"D",$PIECE(ECXX,U,1),0))
+12 IF $DATA(^EC(725,ECDA,0))
Begin DoDot:3
+13 SET DA=ECDA
SET DR=".01////^S X=$P(ECXX,U,2)"
SET DIE="^EC(725,"
DO ^DIE
+14 DO MES^XPDUTL(" ")
+15 DO MES^XPDUTL(" Entry #"_ECDA_" for "_$PIECE(ECXX,U,1))
+16 DO MES^XPDUTL(" ... field (#.01) updated to "_$PIECE(ECXX,U,2)_".")
+17 SET ECCNT4=ECCNT4+1
End DoDot:3
End DoDot:2
+18 ;
+19 IF '$DATA(^EC(725,"D",$PIECE(ECXX,U,1)))
Begin DoDot:2
+20 DO MES^XPDUTL(" ")
+21 SET ECSTR="Can't find entry for "_$PIECE(ECXX,U,1)
+22 DO BMES^XPDUTL(ECSTR_" ...field (#.01) not updated.")
End DoDot:2
End DoDot:1
+23 ;
+24 DO BMES^XPDUTL(" Total "_ECCNT4_" names have been changed.")
+25 DO MES^XPDUTL(" ")
+26 QUIT
+27 ;
CHNG ;name changes -national code #^new procedure name
+1 ;;CH100^RITE/SACRAMENT/ORDINANCE
+2 ;;CH109^FUNERAL/MEMORIAL
+3 ;;CH110^INDIVIDUAL CARE COUNSELING
+4 ;;CH114^FAMILY CARE/COUNSELING
+5 ;;CH118^GROUP
+6 ;;CH125^INTERDISCIPLINARY TEAM
+7 ;;NU181^REM MNTR PHYSIO PARAM DEV
+8 ;;SW019^PREVENTATIVE COUNSEL, GRP
+9 ;;SW181^SECURE MESG 5-10 MIN
+10 ;;QUIT