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

BMCHELP.m

Go to the documentation of this file.
  1. BMCHELP ; IHS/PHXAO/TMJ - REFERRED CARE INFORMATION SYSTEM ;
  1. ;;4.0;REFERRED CARE INFO SYSTEM;;JAN 09, 2006
  1. ;
  1. EN1 ; EP - SHOW PAYOR ELIGIBILITY (SCREENMAN)
  1. Q:'$G(BMCDFN)
  1. Q:'$G(BMCRDATE)
  1. NEW BMCMSG,BMCI,BMCX
  1. S BMCI=1
  1. S BMCX=$$BEN^AUPNPAT(BMCDFN,"E")
  1. S:BMCX="" BMCX="UNKNOWN"
  1. S BMCMSG(BMCI)="CLASSIFICATION/BENEFICIARY IS: "_BMCX,BMCI=+BMCI+1
  1. S BMCX=$$ELIGSTAT^AUPNPAT(BMCDFN,"E")
  1. S:BMCX="" BMCX="UNKNOWN"
  1. S BMCMSG(BMCI)="ELIGIBILITY STATUS IS: "_BMCX,BMCI=+BMCI+1
  1. NEW BMCELG
  1. S BMCELG=BMCI
  1. I $$MCR^AUPNPAT(BMCDFN,BMCRDATE) S BMCMSG(BMCI)="PATIENT HAS MEDICARE",BMCI=BMCI+1
  1. I $$MCD^AUPNPAT(BMCDFN,BMCRDATE) S BMCMSG(BMCI)="PATIENT HAS MEDICAID",BMCI=BMCI+1
  1. I $$PI^AUPNPAT(BMCDFN,BMCRDATE) S BMCMSG(BMCI)="PATIENT HAS PRIVATE INSURANCE",BMCI=BMCI+1
  1. I BMCELG=BMCI S BMCMSG(BMCI)="NO THIRD PARTY COVERAGE RECORDED",BMC=BMCI+1
  1. NEW J,R S J=$O(^AUPNPAT(BMCDFN,13,0)) S R(1)=$S(J:^(J,0),1:"") S J=$O(^AUPNPAT(BMCDFN,13,J)) S R(2)=$S(J:^(J,0),1:"") S:$O(^AUPNPAT(BMCDFN,13,J)) R(2)=R(2)_" [more]"
  1. I R(1)]"" S BMCMSG(BMCI)=R(1),BMCI=BMCI+1
  1. I R(2)]"" S BMCMSG(BMCI)=R(2),BMCI=BMCI+1
  1. D HLP^DDSUTL(.BMCMSG)
  1. Q
  1. ;
  1. EN2 ; EP - POSSIBLE 3RD PARTY LIABILITY MESSAGE (SCREENMAN)
  1. NEW BMCMSG
  1. S BMCMSG(1)="You are entering a diagnosis that indicates this claim may involve third party"
  1. S BMCMSG(2)="liability. You may want to investigate this possibility in order to recover"
  1. S BMCMSG(3)="costs."
  1. D HLP^DDSUTL(.BMCMSG)
  1. D HLP^DDSUTL("$$EOP")
  1. Q
  1. EN3 ; EP - chs warning if no chs eligibility
  1. NEW BMCMSG
  1. S BMCMSG(1)="WARNING: Patient Registration indicates that this patient is NOT ELIGIBLE"
  1. S BMCMSG(2)=" for CHS care."
  1. D HLP^DDSUTL(.BMCMSG)
  1. D HLP^DDSUTL("$$EOP")
  1. Q
  1. PRIORITY ;EP executable help from priority field in rcis referral
  1. NEW BMCMSG,J,K,T
  1. I '$O(^BMCPARM(DUZ(2),1,0)) D I 1
  1. .S T="TEXTDEF"
  1. .F J=1:1 S K=$T(@T+J),K=$P(K,";;",2) Q:K="END"!(K="") S BMCMSG(J)=K
  1. .Q
  1. E D
  1. .S J=0 F S J=$O(^BMCPARM(DUZ(2),1,J)) Q:J'=+J S BMCMSG(J)=^BMCPARM(DUZ(2),1,J,0)
  1. .Q
  1. D EN^DDIOL(.BMCMSG)
  1. Q
  1. SETDEF ;set default message into BMCMSG
  1. SETMSG ;set site configured help prompt in BMCMSG
  1. Q
  1. TEXTDEF ;default ihs standard help text for priority
  1. ;;1 - LEVEL I. EMERGENT/ACUTELY URGENT CARE SERVICES
  1. ;; DEFINITION: Diagnostic/therapeutic services that are necessary to prevent the
  1. ;; immediate death/serious impairment of the health of the individual, and if
  1. ;; left untreated, would result in uncertain but potientially grave outcomes.
  1. ;;2 - LEVEL II. PREVENTIVE CARE SERVICES
  1. ;; DEFINITION: Primary health care that is aimed at the prevention of
  1. ;; disease/disability such as, non-urgent preventive ambulatory care, screening
  1. ;; for known disease entities, and public health intervention, etc.
  1. ;;3 - LEVEL III. PRIMARY AND SECONDARY CARE SERVICES
  1. ;; DEFINITION: Inpatient and outpatient care services that involve the treatment
  1. ;; of prevalent illnesses/conditions that have a significant impact on mordidity
  1. ;; and mortality.
  1. ;;4 - LEVEL IV. CHRONIC TERTIARY AND EXTENDED CARE SERVICES
  1. ;; DEFINITION: Inpatient and outpatient care services that (1) are not
  1. ;; essential for initial/emergent diagnosis/therapy, (2) have less impact on
  1. ;; mortality that morbidity, or (3) are high cost, elective, and often require
  1. ;; tertiary care facilities.
  1. ;;5 - LEVEL V. EXCLUDED SERVICES
  1. ;; DEFINITION: Services and procedures that are considered purely cosmetic in
  1. ;; nature, experimental or investigational, or have no proven medical benefit.
  1. ;;
  1. ;;END