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

NUPAPI.m

Go to the documentation of this file.
NUPAPI ;PHOENIX/KLD; 7/15/09; NUPA PRE & POST-INITS; 2/23/12  1:27 PM
 ;;1.0;NUPA;;;Build 105
ST S DIK="^NUPA(1927.1," F DA=0:0 S DA=$O(^NUPA(1927.1,DA)) Q:'DA  D
 .D:$P(^NUPA(1927.1,DA,0),U)'="ASSESS NEW VERSION" ^DIK
 D ADD^XPAR("SYS","NUPA PRESSURE ULCER SITE",,"vaww1.domain.ext/nursing/docs/npuap_press_ulcer_stages_rev_2-07.doc") ;IA 2263
 D CHG^XPAR("SYS","NUPA PRESSURE ULCER SITE",,"vaww1.domain.ext/nursing/docs/npuap_press_ulcer_stages_rev_2-07.doc") ;IA 2263
 K DA,DIK D HFCAT,TOBACCO,HF^NUPAPI1,HF^NUPAPI2 Q
 ;
PRE K ^NUPA(1927.2),^NUPA(1927.24),^NUPA(1927.41) Q  ;Because KIDS wasn't overwriting the files
 ;
HFCAT ;Enter Health Factor Categories
 N DIC,I,X S DIC="^AUTTHF(",DIC(0)="L"
 F I=0:1 S X=$P($T(HFC+I),";",3) Q:X="END"  D:'$D(^AUTTHF("B",X))
 .S DIC("DR")=".1///C" K DD,DO D FILE^DICN
 Q
HFC ;;ONS AA BRADEN SCALE
 ;;ONS AA CARDIOVASCULAR
 ;;ONS AA EDUCATION
 ;;ONS AA FALL PREVENTION INTERVENTIONS
 ;;ONS AA FUNCTIONAL
 ;;ONS AA GASTROINTESTINAL
 ;;ONS AA GENERAL INFO
 ;;ONS AA GENITOURINARY
 ;;ONS AA HX OF FALLING
 ;;ONS AA INFECT CONTROL
 ;;ONS AA MENTAL HEALTH
 ;;ONS AA MORSE FALL SCALE SCORE
 ;;ONS AA MRSA
 ;;ONS AA MUSCULOSKELETAL
 ;;ONS AA NEUROLOGICAL
 ;;ONS AA PAIN
 ;;ONS AA PRESSURE ULCER-EDUCATION
 ;;ONS AA LANGUAGE
 ;;ONS AA PSYCHOSOCIAL
 ;;ONS AA RESPIRATORY
 ;;ONS AA RESTRAINTS
 ;;ONS AA SECONDARY DIAGNOSIS
 ;;ONS AA SKIN
 ;;ONS AA SKIN ASSESSMENT
 ;;ONS AA SKIN HIGH RISK FACTORS
 ;;ONS AA SKIN INTERVENTIONS
 ;;ONS AA UNIT ORIENT
 ;;ONS AA VASCULAR ACCESS
 ;;ONS FALL PREVENTION AMBULATORY AIDS
 ;;ONS FALL PREVENTION GAIT/TRANSFER
 ;;ONS FALL PREVENTION HX OF FALLING
 ;;ONS FALL PREVENTION HX OF SECONDARY DX
 ;;ONS FALL PREVENTION IV/HEP/SALINE LOCK
 ;;ONS FALL PREVENTION MENTAL STATUS
 ;;ONS FALL PREVENTION UNIVERSAL
 ;;ONS FR HISTORY OF FALLING
 ;;ONS FR MORSE FALL SCALE SCORE
 ;;ONS FR SECONDARY DIAGNOSIS
 ;;ONS PF INFORMATION ON FALL
 ;;ONS PF MORSE FALL SCALE SCORE
 ;;ONS PF NEW PAIN CATEGORY
 ;;ONS PF POST FALL ASSESSMENT
 ;;ONS PF RESTRAINTS
 ;;ONS PRESSURE ULCER PROTOCOL
 ;;ONS PRESSURE ULCER-ACTIVITY
 ;;ONS PRESSURE ULCER-EDUCATION
 ;;ONS PRESSURE ULCER-EDUCATION
 ;;ONS PRESSURE ULCER-FRICTION/SHEAR
 ;;ONS PRESSURE ULCER-MOISTURE
 ;;ONS PRESSURE ULCER-NUTRITION
 ;;ONS PRESSURE ULCER-PRESSURE REDUCING
 ;;ONS PRESSURE ULCER-REMOBILIZE
 ;;ONS RA BRADEN SCALE
 ;;ONS RA CARDIOVASCULAR
 ;;ONS RA CARDIOVASCULAR
 ;;ONS RA EDUCATION
 ;;ONS RA FALL PREVENTION INTERVENTIONS
 ;;ONS RA GASTRONINTESTINAL
 ;;ONS RA GENERAL INFO
 ;;ONS RA GENITOURINARY
 ;;ONS RA HX OF FALLING
 ;;ONS RA INFECT CONTROL
 ;;ONS RA MENTAL HEALTH
 ;;ONS RA LANGUAGE
 ;;ONS RA MORSE FALL SCALE SCORE
 ;;ONS RA MRSA
 ;;ONS RA MUSCULOSKELETAL
 ;;ONS RA NEUROLOGICAL
 ;;ONS RA PAIN
 ;;ONS RA PRESSURE ULCER
 ;;ONS RA PSYCHOSOCIAL
 ;;ONS RA RESPIRATORY
 ;;ONS RA RESTRAINTS
 ;;ONS RA SECONDARY DIAGNOSIS
 ;;ONS RA SKIN
 ;;ONS RA SKIN ASSESSMENT
 ;;ONS RA SKIN HIGH RISK FACTORS
 ;;ONS RA SKIN INTERVENTIONS
 ;;ONS RA UNIT ORIENT
 ;;ONS RA VASCULAR ACCESS
 ;;ONS TOBACCO USE SCREEN
 ;;END
 ;
AA ;;SKIN RISK-QUADRAPLEGIA;SKIN HIGH RISK FACTORS
 ;;SKIN RISK-SPINAL CORD INJURY;SKIN HIGH RISK FACTORS
 ;;SKIN TEMPERATURE;SKIN ASSESSMENT
 ;;SKIN TURGOR;SKIN ASSESSMENT
 ;;SKIN-EDUCATION;ONS PRESSURE ULCER PROTOCOL
 ;;SUICIDAL THOUGHTS DECLINES ANSWER;PSYCHOSOCIAL
 ;;SUICIDAL THOUGHTS NO;PSYCHOSOCIAL
 ;;SUICIDAL THOUGHTS YES;PSYCHOSOCIAL
 ;;SUICIDE DCLINES ANSR;PSYCHOSOCIAL
 ;;SUICIDE PRIOR ATTEMPT DECL ANSW;PSYCHOSOCIAL
 ;;SUICIDE PRIOR ATTEMPT NO;PSYCHOSOCIAL
 ;;SUICIDE PRIOR ATTEMPT YES;PSYCHOSOCIAL
 ;;UNIT ORIENT FOR PATIENT;UNIT ORIENT
 ;;UNIT ORIENT FOR SUPPORT PERSON;UNIT ORIENT
 ;;UNIT ORIENT NO;UNIT ORIENT
 ;;URINARY CATHETER DATE INSERTED;GENITOURINARY
 ;;URINARY CATHETER DATE REMOVED;GENITOURINARY
 ;;URINARY CATHETER ON ADMISSION;GENITOURINARY
 ;;WANDERING RISK-COGNITIVE ABILITY;PSYCHOSOCIAL
 ;;WANDERING RISK-DANGER SELF/OTHERS;PSYCHOSOCIAL
 ;;WANDERING RISK-GRAVELY DISABLED;PSYCHOSOCIAL
 ;;WANDERING RISK-LEGAL GUARDIAN;PSYCHOSOCIAL
 ;;WANDERING RISK-LEGALLY COMMITTED;PSYCHOSOCIAL
 ;;END
TOBACCO N DIC,NUPA,X S DIC="^AUTTHF(",DIC(0)="L"
 F NUPA("I")=0:1 S X=$P($T(TOB+NUPA("I")),";",3,4),X(1)=$P(X,";",2),X=$P(X,";") Q:"END"[X  D:'$D(^AUTTHF("B",X))
 .S DIC("DR")=".1///F;.08///Y;.03///"_X(1) K DD,DO D FILE^DICN Q
 Q
TOB ;;ONS TOBACCO USE CURRENT;ONS TOBACCO USE SCREEN
 ;;ONS TOBACCO LIFETIME NON-USER;ONS TOBACCO USE SCREEN
 ;;ONS TOBACCO USE FORMER LESS THAN 1Y;ONS TOBACCO USE SCREEN
 ;;ONS TOBACCO USE FORMER 1Y-7Y;ONS TOBACCO USE SCREEN
 ;;ONS TOBACCO USE FORMER GREATER THAN 7Y;ONS TOBACCO USE SCREEN
 ;;END
 ;
RA ;;SKIN TEMPERATURE;SKIN ASSESSMENT
 ;;SKIN TURGOR;SKIN ASSESSMENT
 ;;SUICIDAL THOUGHTS DECLINES ANSWER;PSYCHOSOCIAL
 ;;SUICIDAL THOUGHTS NO;PSYCHOSOCIAL
 ;;SUICIDAL THOUGHTS YES;PSYCHOSOCIAL
 ;;SUICIDE PRIOR ATTEMPT DECL ANSW;PSYCHOSOCIAL
 ;;SUICIDE PRIOR ATTEMPT NO;PSYCHOSOCIAL
 ;;SUICIDE PRIOR ATTEMPT YES;PSYCHOSOCIAL
 ;;UNIT ORIENT FOR PATIENT;UNIT ORIENT
 ;;UNIT ORIENT FOR SUPPORT PERSON;UNIT ORIENT
 ;;UNIT ORIENT NO;UNIT ORIENT
 ;;URINARY CATHETER DATE INSERTED;GENITOURINARY
 ;;URINARY CATHETER DATE REMOVED;GENITOURINARY
 ;;WANDERING RISK-COGNITIVE ABILITY;PSYCHOSOCIAL
 ;;WANDERING RISK-DANGER SELF/OTHERS;PSYCHOSOCIAL
 ;;WANDERING RISK-GRAVELY DISABLED;PSYCHOSOCIAL
 ;;WANDERING RISK-LEGAL GUARDIAN;PSYCHOSOCIAL
 ;;WANDERING RISK-LEGALLY COMMITTED;PSYCHOSOCIAL
 ;;END