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

BPXRMDM.m

Go to the documentation of this file.
  1. BPXRMDM ; IHS/CIA/MGH - Dental Exam reminders. ;15-Apr-2008 14:20;MGH
  1. ;;1.5;CLINICAL REMINDERS;**1003,1004,1005**;Jun 19, 2000
  1. ;===================================================================
  1. ;This routine will be used as a computed finding for the ADA codes
  1. ;for a dental exam
  1. ;1004 Included for backward compatibility
  1. ;=====================================================================
  1. DENTAL(DFN,TEST,DATE,VALUE,TEXT) ;EP
  1. K BPXRMDEN
  1. N BPXRMERR
  1. S BPXRMERR=$$START1^APCLDF(DFN_"^LAST ADA [APCH DM ADA EXAMS;","BPXRMDEN(")
  1. I BPXRMERR D
  1. . S TEST=0
  1. . S:BPXRMERR=7 TEXT="DM AUDIT DENTAL EXAM TAXONOMY does not exist!"
  1. . S:BPXRMERR'=7 TEXT="Unable to determine Dental Exam status for this patient. Notify Site Manager."
  1. . Q
  1. I $D(BPXRMDEN)<1 S TEST=0
  1. E D
  1. .S TEST=1,DATE=$P(BPXRMDEN(1),U,1),VALUE=$P(BPXRMDEN(1),U,2)
  1. K BPXRMERR
  1. Q