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

ACHSPOS5.m

Go to the documentation of this file.
  1. ACHSPOS5 ; IHS/ITSC/PMF - DATA FOR MEDICAL PRIORITY FILE FORCE ENTRY ; [ 10/19/2001 11:00 AM ]
  1. ;;3.1;CONTRACT HEALTH MGMT SYSTEM;;JUN 11, 2001
  1. ;
  1. S $ZT="ERROR^"_$ZN
  1. S %H=$H D YX^%DTC S NOW=Y
  1. S ^ACHSINST(ACHSVERS,$ZN,"ENTERED")=NOW
  1. ;
  1. I $D(ACHSINST(ACHSVERS,"ERROR")) S ^ACHSINST(ACHSVERS,"ERROR","PREVIOUS ERRORS HAVE NOT BEEN CLEARED")=NOW S ERROR=1,XPDABORT=1 D START^ACHSPOSM(ERROR) Q
  1. ;
  1. ;IF FILE CHECKSOK THEN FILE HAS ENTRIES DON'T OVERWRITE
  1. I $$CHECKSOK("") S %H=$H D YX^%DTC S NOW=Y S ^ACHSINST(ACHSVERS,$ZN,"CHS MEDICAL PRIORITY DATA FOUND")=NOW W !?15,"'MEDICAL PRIORITY' data found! Not overwriting!" D END Q
  1. ;
  1. ;
  1. N A,B,C
  1. F A=1:2 S B=$P($T(TAG+A),";;",2) Q:B="" S @B=$P($T(TAG+(A+1)),";;",2)
  1. D ENTER
  1. ;
  1. END S %H=$H D YX^%DTC S NOW=Y
  1. S ^ACHSINST(ACHSVERS,$ZN,"FINISHED")=NOW
  1. ;
  1. Q
  1. ;
  1. ;PLACE CODE FOR FORCE ENTRY INTO ^ACHSMPRI HERE
  1. ENTER ;
  1. ;
  1. S %H=$H D YX^%DTC S NOW=Y
  1. S ^ACHSINST(ACHSVERS,"ENTER^"_$ZN,"ENTERED")=NOW
  1. ;
  1. W !?15,"Cannot find 'CHS MEDICAL PRIORITY' data not found....."
  1. W !?15,"Adding now........"
  1. S X="^TMP("_$J_",""MPRI"")"
  1. F S X=$Q(@X) Q:X=""!(X'[("""MPRI""")) D
  1. .S GLOBAL="^ACHSMPRI("_$P(X,",",3,99)
  1. .S @GLOBAL=@X
  1. S DIK="^ACHSMPRI(" D IXALL^DIK
  1. W !,"Done."
  1. ;
  1. S %H=$H D YX^%DTC S NOW=Y
  1. S ^ACHSINST(ACHSVERS,"ENTER^"_$ZN,"FINISHED")=NOW
  1. Q
  1. ;
  1. ;RESET O NODE AND RETURN NUMBER OF ENTRIES
  1. CHECKSOK(X) ;
  1. I '$D(^ACHSMPRI(0)) S ACHSMPRI(0)="CHS MEDICAL PRIORITY^9002073.1^0^0"
  1. S XBCFIXFL=9002073.1
  1. D XBCFIXFL^XBCFIX
  1. Q $G(XBCFIXC)
  1. ;
  1. ERROR S ^ACHSINST(ACHSVERS,"ERROR",$ZN,"ERROR TRAP CALLED")=NOW
  1. G ^%ET
  1. Q
  1. TAG ;
  1. ;;^TMP($J,"MPRI",1,0)
  1. ;;I EMERGENT/ACUTELY URGENT CARE^EMERGENT/ACUTELY URGENT CARE
  1. ;;^TMP($J,"MPRI",1,1,0)
  1. ;;^9002073.12^7^7^
  1. ;;^TMP($J,"MPRI",1,1,1,0)
  1. ;;I - EMERGENT/ACUTELY URGENT CARE: Diagnostic or therapeutic services
  1. ;;^TMP($J,"MPRI",1,1,2,0)
  1. ;;which are necessary to prevent the immediate death or serious impairment
  1. ;;^TMP($J,"MPRI",1,1,3,0)
  1. ;;of the health of the individual, and which, because of the threat to the
  1. ;;^TMP($J,"MPRI",1,1,4,0)
  1. ;;life or health of the individual, necessitate the use of the most
  1. ;;^TMP($J,"MPRI",1,1,5,0)
  1. ;;accessible health care available and capable of furnishing such services.
  1. ;;^TMP($J,"MPRI",1,1,6,0)
  1. ;;Diagnosis and treatment of injuries or medical conditions that, if left
  1. ;;^TMP($J,"MPRI",1,1,7,0)
  1. ;;untreated, would result in uncertain but potentially grave outcomes.
  1. ;;^TMP($J,"MPRI",2,0)
  1. ;;II PREVENTIVE CARE^PREVENTIVE CARE
  1. ;;^TMP($J,"MPRI",2,1,0)
  1. ;;^9002073.12^6^6^
  1. ;;^TMP($J,"MPRI",2,1,1,0)
  1. ;;II - PREVENTIVE CARE: Primary health care that is aimed at the prevention
  1. ;;^TMP($J,"MPRI",2,1,2,0)
  1. ;;of long term disability. This includes services proven effective in
  1. ;;^TMP($J,"MPRI",2,1,3,0)
  1. ;;avoiding the occurrence of a disease (primary prevention) and services
  1. ;;^TMP($J,"MPRI",2,1,4,0)
  1. ;;proven effective in mitigating the consequences of an illness or condition
  1. ;;^TMP($J,"MPRI",2,1,5,0)
  1. ;;(secondary prevention). Level II services are available at most IHS
  1. ;;^TMP($J,"MPRI",2,1,6,0)
  1. ;;facilities.
  1. ;;^TMP($J,"MPRI",3,0)
  1. ;;III PRIMARY AND SECONDARY CARE^PRIMARY AND SECONDARY CARE
  1. ;;^TMP($J,"MPRI",3,1,0)
  1. ;;^9002073.12^8^8^
  1. ;;^TMP($J,"MPRI",3,1,1,0)
  1. ;;III - PRIMARY AND SECONDARY CARE: Inpatient and outpatient care services
  1. ;;^TMP($J,"MPRI",3,1,2,0)
  1. ;;that involve the treatment of prevalent illnesses or conditions that have
  1. ;;^TMP($J,"MPRI",3,1,3,0)
  1. ;;a significant impact on morbidity and mortality. This involves treatment
  1. ;;^TMP($J,"MPRI",3,1,4,0)
  1. ;;for conditions that may be delayed without progressive loss of function or
  1. ;;^TMP($J,"MPRI",3,1,5,0)
  1. ;;risk of life, limb or senses. It includes services that may not be
  1. ;;^TMP($J,"MPRI",3,1,6,0)
  1. ;;available at many IHS facilities and/or may require specialty
  1. ;;^TMP($J,"MPRI",3,1,7,0)
  1. ;;consultation. Level III referrals should be approved by the local CHS
  1. ;;^TMP($J,"MPRI",3,1,8,0)
  1. ;;committee or clinical director before the services are rendered.
  1. ;;^TMP($J,"MPRI",4,0)
  1. ;;IV CHRONIC TERTIARY AND EXTENDED CARE^CHRONIC TERTIARY AND EXTENDED CARE
  1. ;;^TMP($J,"MPRI",4,1,0)
  1. ;;^9002073.12^14^14^
  1. ;;^TMP($J,"MPRI",4,1,1,0)
  1. ;;IV - CHRONIC TERTIARY AND EXTENDED CARE: Inpatient and outpatient care
  1. ;;^TMP($J,"MPRI",4,1,2,0)
  1. ;;services
  1. ;;^TMP($J,"MPRI",4,1,3,0)
  1. ;;(1) that require sophisticated specialists or equipment and
  1. ;;^TMP($J,"MPRI",4,1,4,0)
  1. ;;tertiary care facilities,
  1. ;;^TMP($J,"MPRI",4,1,5,0)
  1. ;;(2) that are not essential for initial/emergent diagnosis or
  1. ;;^TMP($J,"MPRI",4,1,6,0)
  1. ;;therapy, or
  1. ;;^TMP($J,"MPRI",4,1,7,0)
  1. ;;(3) that are high cost, are elective, and have less impact on
  1. ;;^TMP($J,"MPRI",4,1,8,0)
  1. ;;mortality than morbidity.
  1. ;;^TMP($J,"MPRI",4,1,9,0)
  1. ;;
  1. ;;^TMP($J,"MPRI",4,1,10,0)
  1. ;;These services are not readily available from direct care IHS
  1. ;;^TMP($J,"MPRI",4,1,11,0)
  1. ;;facilities. Careful case management by the service unit CHS committee is
  1. ;;^TMP($J,"MPRI",4,1,12,0)
  1. ;;a requirement, as is monitoring by the Area Chief Medical Officer, or
  1. ;;^TMP($J,"MPRI",4,1,13,0)
  1. ;;his/her designee. Depending on cost, the referral may require concurrence
  1. ;;^TMP($J,"MPRI",4,1,14,0)
  1. ;;by the Chief Medical Officer.
  1. ;;^TMP($J,"MPRI",5,0)
  1. ;;V EXCLUDED^EXCLUDED
  1. ;;^TMP($J,"MPRI",5,1,0)
  1. ;;^9002073.12^2^2
  1. ;;^TMP($J,"MPRI",5,1,1,0)
  1. ;;V - EXCLUDED CARE: Services and procedures that are considered purely cosmetic
  1. ;;^TMP($J,"MPRI",5,1,2,0)
  1. ;;in nature, experimental or investigational, or have no proven medical benefit.