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

BPXRMIMM.m

Go to the documentation of this file.
  1. BPXRMIMM ; IHS/MSC/MGH - Computed Findings for Immunizations. ;05-Oct-2017 17:26;DU
  1. ;;2.0;CLINICAL REMINDERS;**1001,1002,1003,1008**;Feb 04, 2005;Build 10
  1. ;=================================================================
  1. ;This routine is designed to evaluate the immunication forcast
  1. ;data to determine if an immunization is due for a child requiring a
  1. ;seried of immunizations
  1. ;=====================================================================
  1. POLIO(DFN,TEST,DATE,VALUE,TEXT) ; EP
  1. ;This computed finding will check the imunization forecast file to find
  1. ;IPV immunizations that are setup in the reminder term for polio
  1. N BPXNAME,BPXTRM,BPXIN,BPXCNT,BPXHI,BPXREM,BPXRTM,BPXTEST,EARLY,LATE,TARGET,LINE,TODAY,COUNT
  1. K ^TMP("PXRMCF",$J,DFN)
  1. S BPXNAME="IHS-PED POLIO IMMUN 2014",LINE=1,TEST=0,DATE="",VALUE="",TEXT=""
  1. S BPXREM="" S BPXREM=$O(^PXD(811.9,"B",BPXNAME,BPXREM))
  1. I BPXREM="" D
  1. . S BPXNAME="IHS-PED POLIO IMMUN 2013",LINE=1,TEST=0,DATE="",VALUE="",TEXT=""
  1. . S BPXREM="" S BPXREM=$O(^PXD(811.9,"B",BPXNAME,BPXREM))
  1. Q:BPXREM=""
  1. S BPXTRM="" S BPXTRM=$O(^PXRMD(811.5,"B","IHS-POLIO IMMUNIZATION",BPXTRM))
  1. I BPXTRM="" S TEST=0,TEXT="Reminder term does not exist" Q
  1. D GETVAR^BPXRMIM2(BPXTRM)
  1. Q
  1. DTP(DFN,TEST,DATE,VALUE,TEXT) ;EP
  1. ;This computed finding will check the imunization forecast file to find
  1. ;DPT immunizations that are setup in the reminder term for dpt
  1. N BPXNAME,BPXTRM,BPXIN,BPXCNT,BPXHI,BPXREM,BPXRTM,BPXTEST,EARLY,LATE,TARGET,LINE,TODAY,COUNT
  1. S BPXNAME="IHS-PED DTP IMMUN",LINE=1,TEST=0,DATE="",VALUE="",TEXT=""
  1. K ^TMP("PXRMCF",$J,DFN)
  1. S BPXREM="" S BPXREM=$O(^PXD(811.9,"B",BPXNAME,BPXREM))
  1. Q:BPXREM=""
  1. S BPXTRM="" S BPXTRM=$O(^PXRMD(811.5,"B","IHS-DTP IMMUNIZATION",BPXTRM))
  1. I BPXTRM="" S TEST=0,TEXT="Reminder term does not exist" Q
  1. D GETVAR^BPXRMIM2(BPXTRM)
  1. Q
  1. DTAP(DFN,TEST,DATE,VALUE,TEXT) ;EP
  1. ;This computed finding will check the imunization forecast file to find
  1. ;DTap immunizations that are setup in the reminder term for DTap
  1. N BPXNAME,BPXTRM,BPXIN,BPXCNT,BPXHI,BPXREM,BPXRTM,BPXTEST,EARLY,LATE,TARGET,LINE,TODAY,COUNT
  1. K ^TMP("BPXRMCF",$J,DFN)
  1. S BPXNAME="IHS-PED DTAP IMMUN 2013",LINE=1,TEST=0,DATE="",VALUE="",TEXT=""
  1. S BPXREM="" S BPXREM=$O(^PXD(811.9,"B",BPXNAME,BPXREM))
  1. I BPXREM="" D
  1. . S BPXNAME="IHS-PED DTAP IMMUN 2012",LINE=1,TEST=0,DATE="",VALUE="",TEXT=""
  1. . S BPXREM="" S BPXREM=$O(^PXD(811.9,"B",BPXNAME,BPXREM))
  1. Q:BPXREM=""
  1. S BPXTRM="" S BPXTRM=$O(^PXRMD(811.5,"B","IHS-DTAP IMMUNIZATION",BPXTRM))
  1. I BPXTRM="" S TEST=0,TEXT="Reminder term does not exist" Q
  1. D GETVAR^BPXRMIM2(BPXTRM)
  1. Q
  1. MMR(DFN,TEST,DATE,VALUE,TEXT) ; EP
  1. ;This computed finding will check the imunization forecast file to find
  1. ;MMR immunizations that are setup in the reminder term for MMR
  1. N BPXNAME,BPXTRM,BPXIN,BPXCNT,BPXHI,BPXREM,BPXRTM,BPXTEST,EARLY,LATE,TARGET,LINE,TODAY,COUNT
  1. K ^TMP("BPXRMCF",$J,DFN)
  1. S BPXNAME="IHS-PED MMR IMMUN 2013",LINE=1,TEST=0,DATE="",VALUE="",TEXT=""
  1. S BPXREM="" S BPXREM=$O(^PXD(811.9,"B",BPXNAME,BPXREM))
  1. I BPXREM="" D
  1. . S BPXNAME="IHS-PED MMR IMMUN 2012",LINE=1,TEST=0,DATE="",VALUE="",TEXT=""
  1. . S BPXREM="" S BPXREM=$O(^PXD(811.9,"B",BPXNAME,BPXREM))
  1. Q:BPXREM=""
  1. S BPXTRM="" S BPXTRM=$O(^PXRMD(811.5,"B","IHS-MMR IMMUNIZATION",BPXTRM))
  1. I BPXTRM="" S TEST=0,TEXT="Reminder term does not exist" Q
  1. D GETVAR^BPXRMIM2(BPXTRM)
  1. Q
  1. HEPB(DFN,TEST,DATE,VALUE,TEXT) ; EP
  1. ;This computed finding will check the imunization forecast file to find
  1. ;hepb pediatric immunizations that are setup in the reminder term for hep b
  1. N BPXNAME,BPXTRM,BPXIN,BPXCNT,BPXHI,BPXREM,BPXRTM,BPXTEST,EARLY,LATE,TARGET,LINE,TODAY,COUNT
  1. K ^TMP("BPXRMCF",$J,DFN)
  1. S BPXNAME="IHS-PED HEPB IMMUN 2014",LINE=1,TEST=0,DATE="",VALUE="",TEXT=""
  1. S BPXREM="" S BPXREM=$O(^PXD(811.9,"B",BPXNAME,BPXREM))
  1. I BPXREM="" D
  1. . S BPXNAME="IHS-PED HEPB IMMUN 2013",LINE=1,TEST=0,DATE="",VALUE="",TEXT=""
  1. . S BPXREM="" S BPXREM=$O(^PXD(811.9,"B",BPXNAME,BPXREM))
  1. Q:BPXREM=""
  1. S BPXTRM="" S BPXTRM=$O(^PXRMD(811.5,"B","IHS-HEPB IMMUNIZATION",BPXTRM))
  1. I BPXTRM="" S TEST=0,TEXT="Reminder term does not exist" Q
  1. D GETVAR^BPXRMIM2(BPXTRM)
  1. Q
  1. HIB(DFN,TEST,DATE,VALUE,TEXT) ; EP
  1. ;This computed finding will check the imunization forecast file to find
  1. ;hibtiter immunizations that are setup in the reminder term for hibtiter
  1. N BPXNAME,BPXTRM,BPXIN,BPXCNT,BPXHI,BPXREM,BPXRTM,BPXTEST,EARLY,LATE,TARGET,LINE,TODAY,COUNT
  1. K ^TMP("BPXRMCF",$J,DFN)
  1. S BPXNAME="IHS-PED HIBTITER IMMUN 2013",LINE=1,TEST=0,DATE="",VALUE="",TEXT=""
  1. S BPXREM="" S BPXREM=$O(^PXD(811.9,"B",BPXNAME,BPXREM))
  1. I BPXREM="" D
  1. . S BPXNAME="IHS-PED HIBTITER IMMUN 2012",LINE=1,TEST=0,DATE="",VALUE="",TEXT=""
  1. . S BPXREM="" S BPXREM=$O(^PXD(811.9,"B",BPXNAME,BPXREM))
  1. Q:BPXREM=""
  1. S BPXTRM="" S BPXTRM=$O(^PXRMD(811.5,"B","IHS-HIBTITER IMMUNIZATION",BPXTRM))
  1. I BPXTRM="" S TEST=0,TEXT="Reminder term does not exist" Q
  1. D GETVAR^BPXRMIM2(BPXTRM)
  1. Q
  1. PEDIARIX(DFN,TEST,DATE,VALUE,TEXT) ; EP
  1. ;This computed finding will check the imunization forecast file to find
  1. ;pediarix immunizations that are setup in the reminder term for pediarix
  1. N BPXNAME,BPXTRM,BPXIN,BPXCNT,BPXHI,BPXREM,BPXRTM,BPXTEST,EARLY,LATE,TARGET,LINE,TODAY,COUNT
  1. K ^TMP("BPXRMCF",$J,DFN)
  1. S BPXNAME="IHS-PED PEDIARIX IMMUN 2013",LINE=1,TEST=0,DATE="",VALUE="",TEXT=""
  1. S BPXREM="" S BPXREM=$O(^PXD(811.9,"B",BPXNAME,BPXREM))
  1. I BPXREM="" D
  1. . S BPXNAME="IHS-PED PEDIARIX IMMUN 2012",LINE=1,TEST=0,DATE="",VALUE="",TEXT=""
  1. . S BPXREM="" S BPXREM=$O(^PXD(811.9,"B",BPXNAME,BPXREM))
  1. Q:BPXREM=""
  1. S BPXTRM="" S BPXTRM=$O(^PXRMD(811.5,"B","IHS-PEDIARIX IMMUNIZATION",BPXTRM))
  1. I BPXTRM="" S TEST=0,TEXT="Reminder term does not exist" Q
  1. D GETVAR^BPXRMIM2(BPXTRM)
  1. Q
  1. PEDIAVAC(DFN,TEST,DATE,VALUE,TEXT) ; EP
  1. ;This computed finding will check the imunization forecast file to find
  1. ;vaxhib immunizations that are setup in the reminder term for vaxhib
  1. N BPXNAME,BPXTRM,BPXIN,BPXCNT,BPXHI,BPXREM,BPXRTM,BPXTEST,EARLY,LATE,TARGET,LINE,TODAY,COUNT
  1. K ^TMP("BPXRMCF",$J,DFN)
  1. S BPXNAME="IHS-PED PEDVAXHIB IMMUN 2013",LINE=1,TEST=0,DATE="",VALUE="",TEXT=""
  1. S BPXREM="" S BPXREM=$O(^PXD(811.9,"B",BPXNAME,BPXREM))
  1. I BPXREM="" D
  1. . S BPXNAME="IHS-PED PEDVAXHIB IMMUN 2012",LINE=1,TEST=0,DATE="",VALUE="",TEXT=""
  1. . S BPXREM="" S BPXREM=$O(^PXD(811.9,"B",BPXNAME,BPXREM))
  1. Q:BPXREM=""
  1. S BPXTRM="" S BPXTRM=$O(^PXRMD(811.5,"B","IHS-PEDVAXHIB IMMUNIZATION",BPXTRM))
  1. I BPXTRM="" S TEST=0,TEXT="Reminder term does not exist" Q
  1. D GETVAR^BPXRMIM2(BPXTRM)
  1. Q
  1. VARI(DFN,TEST,DATE,VALUE,TEXT) ; EP
  1. ;This computed finding will check the imunization forecast file to find
  1. ;varicella immunizations that are setup in the reminder term for varicella
  1. N BPXNAME,BPXTRM,BPXIN,BPXCNT,BPXHI,BPXREM,BPXRTM,BPXTEST,EARLY,LATE,TARGET,LINE,TODAY,COUNT
  1. K ^TMP("BPXRMCF",$J,DFN)
  1. S BPXNAME="IHS-PED VARICELLA IMMUN 2013",LINE=1,TEST=0,DATE="",VALUE="",TEXT=""
  1. S BPXREM="" S BPXREM=$O(^PXD(811.9,"B",BPXNAME,BPXREM))
  1. I BPXREM="" D
  1. . S BPXNAME="IHS-PED VARICELLA IMMUN 2012",LINE=1,TEST=0,DATE="",VALUE="",TEXT=""
  1. . S BPXREM="" S BPXREM=$O(^PXD(811.9,"B",BPXNAME,BPXREM))
  1. Q:BPXREM=""
  1. S BPXTRM="" S BPXTRM=$O(^PXRMD(811.5,"B","IHS-VARICELLA IMMUNIZATION",BPXTRM))
  1. I BPXTRM="" S TEST=0,TEXT="Reminder term does not exist" Q
  1. D GETVAR^BPXRMIM2(BPXTRM)
  1. Q