Vaccine query

M

Mark M S

I would like to determine which patients did not obtain the right number of
vaccines by the age of 2. My database can tell me if each patient is not up
to date through the electronioc medical record but I must look at a child
individually. There is no general report. I can produce a summary file in
Access but must figure out the query

I sure would appreciate some hints how to find outlyers if you know that
each child needs
4 dpt
4 hib
3 ipv
3 hepb
1 mmr
1 var

My query so far that would include the basic data is
SELECT REGISTER.LNAME, REGISTER.FNAME, REGISTER.MI, REGISTER.BIRTHDAT,
REGISTER.SEX, Year(Now())-Year([BirthDAT]) AS Age, VACCINE1.VACDATE,
VACCINE1.VACNAME
FROM REGISTER INNER JOIN VACCINE1 ON REGISTER.PATNO = VACCINE1.PATNO
WHERE (((REGISTER.FNAME) Not Like "baby*") AND
((Year(Now())-Year([BirthDAT]))<2) AND ((REGISTER.DOCTOR)="mms"))
ORDER BY REGISTER.LNAME;

If I can get a start on how to do this it would be most appreciated.
*************************************************
Mark M Simonian MD FAAP

****************************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.
 
T

Tom Ellison

Dear Dr. Mark:

What I propose is to filter a cross-product of all patients with all
vaccines and check the required number of vaccinations against the actual
number given.

To be able to flesh this out, I need to know a few things:

- Is the REGISTER table a registration of patients? One row, one patient,
correct?

- Is the VACCINE1 table a record of vaccinations given? If so, does each
record show one specific innoculation? If there are 3 innoculations given
in a single visit to a single patient, is this 3 rows of data?

The solution will require 3 tables:

- a table of patients

- a table of innoculations given to those patients

- a table of all innoculations and the number of times they are to be given

It is possible that there are innoculations that should be given a certain
number of times to someone of age 2, a larger number of times by age 5, and
so forth. Tracking all this, with rules like "within 6 years" and the like
can also be accomodated. Describing these rules for each innoculations
should be modeled as well.

A more complete layout of what is in your tables and some good sample data
would be most helpful. I'm expecting that you, as an MD, may have some
interest in building databases, but that this is not the primary function
you want to be performing next week. Perhaps it would work well to send me
what you have so far, and I'll try to work out what can be done.

Tom Ellison


Mark M S said:
I would like to determine which patients did not obtain the right number of
vaccines by the age of 2. My database can tell me if each patient is not up
to date through the electronioc medical record but I must look at a child
individually. There is no general report. I can produce a summary file in
Access but must figure out the query

I sure would appreciate some hints how to find outlyers if you know that
each child needs
4 dpt
4 hib
3 ipv
3 hepb
1 mmr
1 var

My query so far that would include the basic data is
SELECT REGISTER.LNAME, REGISTER.FNAME, REGISTER.MI, REGISTER.BIRTHDAT,
REGISTER.SEX, Year(Now())-Year([BirthDAT]) AS Age, VACCINE1.VACDATE,
VACCINE1.VACNAME
FROM REGISTER INNER JOIN VACCINE1 ON REGISTER.PATNO = VACCINE1.PATNO
WHERE (((REGISTER.FNAME) Not Like "baby*") AND
((Year(Now())-Year([BirthDAT]))<2) AND ((REGISTER.DOCTOR)="mms"))
ORDER BY REGISTER.LNAME;

If I can get a start on how to do this it would be most appreciated.
*************************************************
Mark M Simonian MD FAAP

****************************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.
 
K

KARL DEWEY

You need another table that list all vacination required. Something like --
VACNAME MinAge - months
dpt 6
dpt 12
dpt 18
dpt 24
hepb 6
hepb 12
hepb 18
hib 6
hib 12
hib 18
hib 24
ipv 6
ipv 12
ipv 18
mmr 12
var 18
 
M

Mark M S

REGISTER PATNO LNAME FNAME MI BIRTHDAT SEX PORGFNM PORGLNM PORGMI ADDRESS
CITY STATE ZIPCODE HPHONE BPHONE DOACCT TYPACCT CURRBAL LASTPAY BILLDATE
BILLTWO PORG2FNM PORG2LNM PORG2MI DOCTOR TELCALNO SICKVNO REFERDBY PATSSNO
P1SSNO P2SSNO INSURED_ID COPAYBAL ADDRESS1 P1ADD1 P1ADD2 P1CITY P1ST P1ZIP
P1LWP P1RELATIONSHIP P1HPHONE P1BPHONE P2ADD1 P2ADD2 P2CITY P2ST P2ZIP P2LWP
P2RELATIONSHIP P2HPHONE P2BPHONE P3FNM P3LNM P3MI P3SSNO P3ADD1 P3ADD2
P3CITY P3ST P3ZIP P3LWP P3RELATIONSHIP P3HPHONE P3BPHONE P4FNM P4LNM P4MI
P4SSNO P4ADD1 P4ADD2 P4CITY P4ST P4ZIP P4LWP P4RELATIONSHIP P4HPHONE
P4BPHONE EMERGENCYCONTACT PATALTERNATEFNM PATALTERNATELNM ZIP4 LASTUPDATE
UPIF_HPCODE INS_CARRIER_CODE BILLTO INSURED_ID_OTHER INS2_CARRIER_CODE
LEGACYID P1_ADD_TYPE P2_ADD_TYPE P3_ADD_TYPE P4_ADD_TYPE PRIVACY_TAG
PRIVACY_NOTE CELL_PHONE PAGER1 FAX1 E_MAIL_ADDRESS DOD VOID_NOTE ADDR_ID
P_ADDR_ID S_ADDR_ID PAT_REF_BY IMM_REGISTRY_OK
99 TESTPATIENT MARY
5/16/1998 F SUSAN TESTPATIENT
123 XYZ STREET CLEVELAND OH 44130 215-555-1212
5/16/2000 2 0 0 9/16/2005 9/29/2005 JOHN TESTPATIENT
LRT 3 5 @@MOM NEEDS TO UPDATE OFFICE W/NEW INS INFO 7/12/05 KR VACCINES
TO BE MAILED TO HOME PLAN COPAY BILLED TO #2 HOME PLAN


SELF 0





Y MOTHER






Y FATHER










N











N






1/27/2006 XX ABI 1 456789 AAK




0





0 389
306
0


--
VACCINE1 PATNO VACNAME VACDATE
99 HepB 9/7/1998
99 HepB 6/15/1998
99 HepB 2/15/1999
99 DTaP 7/15/1998
99 DTaP 9/15/1998
99 DTaP 11/15/1998
99 IPV 7/15/1998
99 IPV 9/15/1998
99 IPV 8/16/1998
99 HIB-PRP-T 7/15/1998
99 HIB-PRP-T 9/15/1998
99 HIB-PRP-T 11/15/1998
99 HIB-PRP-T 8/15/1999
99 MMR 5/17/1999


Minimum table would be in months
DPT 2,4,6,15
IPV 2,4,6
HIB 2,4,6,15
MMR 12
VAR 12
HEPB 1,2, 6

Tom, I wanted to be able to generate a monthly report to see who might be
out of compliance so I could follow up with the patient. It is unusual to
have patients not follow up but I don't want to miss people

*************************************************
Mark M Simonian MD FAAP

****************************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.
Tom Ellison said:
Dear Dr. Mark:

What I propose is to filter a cross-product of all patients with all
vaccines and check the required number of vaccinations against the actual
number given.

To be able to flesh this out, I need to know a few things:

- Is the REGISTER table a registration of patients? One row, one patient,
correct?

- Is the VACCINE1 table a record of vaccinations given? If so, does each
record show one specific innoculation? If there are 3 innoculations given
in a single visit to a single patient, is this 3 rows of data?

The solution will require 3 tables:

- a table of patients

- a table of innoculations given to those patients

- a table of all innoculations and the number of times they are to be
given

It is possible that there are innoculations that should be given a certain
number of times to someone of age 2, a larger number of times by age 5,
and so forth. Tracking all this, with rules like "within 6 years" and the
like can also be accomodated. Describing these rules for each
innoculations should be modeled as well.

A more complete layout of what is in your tables and some good sample data
would be most helpful. I'm expecting that you, as an MD, may have some
interest in building databases, but that this is not the primary function
you want to be performing next week. Perhaps it would work well to send
me what you have so far, and I'll try to work out what can be done.

Tom Ellison


Mark M S said:
I would like to determine which patients did not obtain the right number
of vaccines by the age of 2. My database can tell me if each patient is
not up to date through the electronioc medical record but I must look at a
child individually. There is no general report. I can produce a summary
file in Access but must figure out the query

I sure would appreciate some hints how to find outlyers if you know that
each child needs
4 dpt
4 hib
3 ipv
3 hepb
1 mmr
1 var

My query so far that would include the basic data is
SELECT REGISTER.LNAME, REGISTER.FNAME, REGISTER.MI, REGISTER.BIRTHDAT,
REGISTER.SEX, Year(Now())-Year([BirthDAT]) AS Age, VACCINE1.VACDATE,
VACCINE1.VACNAME
FROM REGISTER INNER JOIN VACCINE1 ON REGISTER.PATNO = VACCINE1.PATNO
WHERE (((REGISTER.FNAME) Not Like "baby*") AND
((Year(Now())-Year([BirthDAT]))<2) AND ((REGISTER.DOCTOR)="mms"))
ORDER BY REGISTER.LNAME;

If I can get a start on how to do this it would be most appreciated.
*************************************************
Mark M Simonian MD FAAP

****************************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.
 
T

Tom Ellison

Dear Dr. Mark:

I'm trying to sort through this information and see what I can glean:

REGISTER a table consisting of:
PATNO patient number identifier
LNAME last name
FNAME first name
MI middle initial
BIRTHDAT birth date
SEX gender
PORGFNM first name of ??? (POR) probably not relevant to this project
PORGLNM last name of ??? (POR)
PORGMI middle initial of ??? (POR)
ADDRESS
CITY
STATE
ZIPCODE
HPHONE home phone
BPHONE business phone
DOACCT accounting information follows (probably not relevant to this
project
TYPACCT
CURRBAL
LASTPAY
BILLDATE
BILLTWO
PORG2FNM first name of ??? (POR2) probably not relevant
PORG2LNM last name of ??? (POR2)
PORG2MI
DOCTOR
TELCALNO
SICKVNO
REFERDBY
PATSSNO
P1SSNO not a urine test, I suppose - OK that's a 1 not an I
P2SSNO
INSURED_ID
COPAYBAL
ADDRESS1
P1ADD1
P1ADD2
P1CITY
P1ST
P1ZIP
P1LWP
P1RELATIONSHIP
P1HPHONE
P1BPHONE
P2ADD1
P2ADD2
P2CITY
P2ST
P2ZIP
P2LWP
P2RELATIONSHIP
P2HPHONE
P2BPHONE
P3FNM
P3LNM
P3MI
P3SSNO
P3ADD1
P3ADD2
P3CITY
P3ST
P3ZIP
P3LWP
P3RELATIONSHIP
P3HPHONE
P3BPHONE
P4FNM
P4LNM
P4MI
P4SSNO
P4ADD1
P4ADD2
P4CITY
P4ST
P4ZIP
P4LWP
P4RELATIONSHIP
P4HPHONE
P4BPHONE
EMERGENCYCONTACT
PATALTERNATEFNM
PATALTERNATELNM
ZIP4
LASTUPDATE
UPIF_HPCODE
INS_CARRIER_CODE
BILLTO
INSURED_ID_OTHER
INS2_CARRIER_CODE
LEGACYID
P1_ADD_TYPE
P2_ADD_TYPE
P3_ADD_TYPE
P4_ADD_TYPE
PRIVACY_TAG
PRIVACY_NOTE
CELL_PHONE
PAGER1
FAX1
E_MAIL_ADDRESS
DOD
VOID_NOTE
ADDR_ID
P_ADDR_ID
S_ADDR_ID
PAT_REF_BY
IMM_REGISTRY_OK

VACCINE1 the table of vaccinations
PATNO patient number
VACNAME name of vaccination
VACDATE date of vaccination

Now here's some of the meat of it. One patient, one vaccination, one date
(I hope). Could we run a query on this, please:

SELECT DISTINCT VACNAME
FROM VACCINE1

This will give you all the names of all the vaccinations given. The purpose
is to see if each vaccine is spelled in exactly one way every time. Perhaps
the user is constrained to chosing one from a list when these are entered.
That would be ideal. If one is entered "DPT" some times and "D.P.T." other
times, then there is a problem.

From the other information you gave, I take it there are probably consistent
spellings of all vaccines throughout the system. It might be best if you
made sure of this. It is a foundation on which we'll be building what comes
next.

This information:

DPT 2,4,6,15
IPV 2,4,6
HIB 2,4,6,15
MMR 12
VAR 12
HEPB 1,2, 6

I would design a table for this (if there isn't already one) something like
this:

VaccineFreq (name of table)
Vaccine AgeGiven
DPT 2
DPT 4
DPT 6
DPT 15
IPV 2
IPV 4
IPV 6
MMR 12
VAR 12
HEPB 1
HEPB 2
HEPB 6

It is a better design to use many rows for this. Working with it will be
much easier.

I'll set up some tables to test this and get back to you.

Tom Ellison


Mark M S said:
REGISTER PATNO LNAME FNAME MI BIRTHDAT SEX PORGFNM PORGLNM PORGMI ADDRESS
CITY STATE ZIPCODE HPHONE BPHONE DOACCT TYPACCT CURRBAL LASTPAY BILLDATE
BILLTWO PORG2FNM PORG2LNM PORG2MI DOCTOR TELCALNO SICKVNO REFERDBY PATSSNO
P1SSNO P2SSNO INSURED_ID COPAYBAL ADDRESS1 P1ADD1 P1ADD2 P1CITY P1ST P1ZIP
P1LWP P1RELATIONSHIP P1HPHONE P1BPHONE P2ADD1 P2ADD2 P2CITY P2ST P2ZIP
P2LWP P2RELATIONSHIP P2HPHONE P2BPHONE P3FNM P3LNM P3MI P3SSNO P3ADD1
P3ADD2 P3CITY P3ST P3ZIP P3LWP P3RELATIONSHIP P3HPHONE P3BPHONE P4FNM
P4LNM P4MI P4SSNO P4ADD1 P4ADD2 P4CITY P4ST P4ZIP P4LWP P4RELATIONSHIP
P4HPHONE P4BPHONE EMERGENCYCONTACT PATALTERNATEFNM PATALTERNATELNM ZIP4
LASTUPDATE UPIF_HPCODE INS_CARRIER_CODE BILLTO INSURED_ID_OTHER
INS2_CARRIER_CODE LEGACYID P1_ADD_TYPE P2_ADD_TYPE P3_ADD_TYPE P4_ADD_TYPE
PRIVACY_TAG PRIVACY_NOTE CELL_PHONE PAGER1 FAX1 E_MAIL_ADDRESS DOD
VOID_NOTE ADDR_ID P_ADDR_ID S_ADDR_ID PAT_REF_BY IMM_REGISTRY_OK
99 TESTPATIENT MARY
5/16/1998 F SUSAN TESTPATIENT
123 XYZ STREET CLEVELAND OH 44130 215-555-1212
5/16/2000 2 0 0 9/16/2005 9/29/2005 JOHN TESTPATIENT
LRT 3 5 @@MOM NEEDS TO UPDATE OFFICE W/NEW INS INFO 7/12/05 KR
VACCINES TO BE MAILED TO HOME PLAN COPAY BILLED TO #2 HOME PLAN


SELF 0





Y MOTHER






Y FATHER










N











N






1/27/2006 XX ABI 1 456789 AAK




0





0 389
306
0


--
VACCINE1 PATNO VACNAME VACDATE
99 HepB 9/7/1998
99 HepB 6/15/1998
99 HepB 2/15/1999
99 DTaP 7/15/1998
99 DTaP 9/15/1998
99 DTaP 11/15/1998
99 IPV 7/15/1998
99 IPV 9/15/1998
99 IPV 8/16/1998
99 HIB-PRP-T 7/15/1998
99 HIB-PRP-T 9/15/1998
99 HIB-PRP-T 11/15/1998
99 HIB-PRP-T 8/15/1999
99 MMR 5/17/1999


Minimum table would be in months
DPT 2,4,6,15
IPV 2,4,6
HIB 2,4,6,15
MMR 12
VAR 12
HEPB 1,2, 6

Tom, I wanted to be able to generate a monthly report to see who might be
out of compliance so I could follow up with the patient. It is unusual to
have patients not follow up but I don't want to miss people

*************************************************
Mark M Simonian MD FAAP

****************************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.
Tom Ellison said:
Dear Dr. Mark:

What I propose is to filter a cross-product of all patients with all
vaccines and check the required number of vaccinations against the actual
number given.

To be able to flesh this out, I need to know a few things:

- Is the REGISTER table a registration of patients? One row, one
patient, correct?

- Is the VACCINE1 table a record of vaccinations given? If so, does each
record show one specific innoculation? If there are 3 innoculations
given in a single visit to a single patient, is this 3 rows of data?

The solution will require 3 tables:

- a table of patients

- a table of innoculations given to those patients

- a table of all innoculations and the number of times they are to be
given

It is possible that there are innoculations that should be given a
certain number of times to someone of age 2, a larger number of times by
age 5, and so forth. Tracking all this, with rules like "within 6 years"
and the like can also be accomodated. Describing these rules for each
innoculations should be modeled as well.

A more complete layout of what is in your tables and some good sample
data would be most helpful. I'm expecting that you, as an MD, may have
some interest in building databases, but that this is not the primary
function you want to be performing next week. Perhaps it would work well
to send me what you have so far, and I'll try to work out what can be
done.

Tom Ellison


Mark M S said:
I would like to determine which patients did not obtain the right number
of vaccines by the age of 2. My database can tell me if each patient is
not up to date through the electronioc medical record but I must look at
a child individually. There is no general report. I can produce a summary
file in Access but must figure out the query

I sure would appreciate some hints how to find outlyers if you know that
each child needs
4 dpt
4 hib
3 ipv
3 hepb
1 mmr
1 var

My query so far that would include the basic data is
SELECT REGISTER.LNAME, REGISTER.FNAME, REGISTER.MI, REGISTER.BIRTHDAT,
REGISTER.SEX, Year(Now())-Year([BirthDAT]) AS Age, VACCINE1.VACDATE,
VACCINE1.VACNAME
FROM REGISTER INNER JOIN VACCINE1 ON REGISTER.PATNO = VACCINE1.PATNO
WHERE (((REGISTER.FNAME) Not Like "baby*") AND
((Year(Now())-Year([BirthDAT]))<2) AND ((REGISTER.DOCTOR)="mms"))
ORDER BY REGISTER.LNAME;

If I can get a start on how to do this it would be most appreciated.
*************************************************
Mark M Simonian MD FAAP

****************************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.
 
T

Tom Ellison

Dear Dr. Mark:

There's a question. Consider DPT, due at ages 2, 4, 6, and 15. Now,
consider a patient who is now 15. If they received DPT at age 14, are they
past due? What if they received it at age 12? Or 10? What is the
threshold, the definition of "past due"? Sorry to get technical, but this
is, well, technical. I have to program by very stringent definitions.

Tom Ellison


Mark M S said:
REGISTER PATNO LNAME FNAME MI BIRTHDAT SEX PORGFNM PORGLNM PORGMI ADDRESS
CITY STATE ZIPCODE HPHONE BPHONE DOACCT TYPACCT CURRBAL LASTPAY BILLDATE
BILLTWO PORG2FNM PORG2LNM PORG2MI DOCTOR TELCALNO SICKVNO REFERDBY PATSSNO
P1SSNO P2SSNO INSURED_ID COPAYBAL ADDRESS1 P1ADD1 P1ADD2 P1CITY P1ST P1ZIP
P1LWP P1RELATIONSHIP P1HPHONE P1BPHONE P2ADD1 P2ADD2 P2CITY P2ST P2ZIP
P2LWP P2RELATIONSHIP P2HPHONE P2BPHONE P3FNM P3LNM P3MI P3SSNO P3ADD1
P3ADD2 P3CITY P3ST P3ZIP P3LWP P3RELATIONSHIP P3HPHONE P3BPHONE P4FNM
P4LNM P4MI P4SSNO P4ADD1 P4ADD2 P4CITY P4ST P4ZIP P4LWP P4RELATIONSHIP
P4HPHONE P4BPHONE EMERGENCYCONTACT PATALTERNATEFNM PATALTERNATELNM ZIP4
LASTUPDATE UPIF_HPCODE INS_CARRIER_CODE BILLTO INSURED_ID_OTHER
INS2_CARRIER_CODE LEGACYID P1_ADD_TYPE P2_ADD_TYPE P3_ADD_TYPE P4_ADD_TYPE
PRIVACY_TAG PRIVACY_NOTE CELL_PHONE PAGER1 FAX1 E_MAIL_ADDRESS DOD
VOID_NOTE ADDR_ID P_ADDR_ID S_ADDR_ID PAT_REF_BY IMM_REGISTRY_OK
99 TESTPATIENT MARY
5/16/1998 F SUSAN TESTPATIENT
123 XYZ STREET CLEVELAND OH 44130 215-555-1212
5/16/2000 2 0 0 9/16/2005 9/29/2005 JOHN TESTPATIENT
LRT 3 5 @@MOM NEEDS TO UPDATE OFFICE W/NEW INS INFO 7/12/05 KR
VACCINES TO BE MAILED TO HOME PLAN COPAY BILLED TO #2 HOME PLAN


SELF 0





Y MOTHER






Y FATHER










N











N






1/27/2006 XX ABI 1 456789 AAK




0





0 389
306
0


--
VACCINE1 PATNO VACNAME VACDATE
99 HepB 9/7/1998
99 HepB 6/15/1998
99 HepB 2/15/1999
99 DTaP 7/15/1998
99 DTaP 9/15/1998
99 DTaP 11/15/1998
99 IPV 7/15/1998
99 IPV 9/15/1998
99 IPV 8/16/1998
99 HIB-PRP-T 7/15/1998
99 HIB-PRP-T 9/15/1998
99 HIB-PRP-T 11/15/1998
99 HIB-PRP-T 8/15/1999
99 MMR 5/17/1999


Minimum table would be in months
DPT 2,4,6,15
IPV 2,4,6
HIB 2,4,6,15
MMR 12
VAR 12
HEPB 1,2, 6

Tom, I wanted to be able to generate a monthly report to see who might be
out of compliance so I could follow up with the patient. It is unusual to
have patients not follow up but I don't want to miss people

*************************************************
Mark M Simonian MD FAAP

****************************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.
Tom Ellison said:
Dear Dr. Mark:

What I propose is to filter a cross-product of all patients with all
vaccines and check the required number of vaccinations against the actual
number given.

To be able to flesh this out, I need to know a few things:

- Is the REGISTER table a registration of patients? One row, one
patient, correct?

- Is the VACCINE1 table a record of vaccinations given? If so, does each
record show one specific innoculation? If there are 3 innoculations
given in a single visit to a single patient, is this 3 rows of data?

The solution will require 3 tables:

- a table of patients

- a table of innoculations given to those patients

- a table of all innoculations and the number of times they are to be
given

It is possible that there are innoculations that should be given a
certain number of times to someone of age 2, a larger number of times by
age 5, and so forth. Tracking all this, with rules like "within 6 years"
and the like can also be accomodated. Describing these rules for each
innoculations should be modeled as well.

A more complete layout of what is in your tables and some good sample
data would be most helpful. I'm expecting that you, as an MD, may have
some interest in building databases, but that this is not the primary
function you want to be performing next week. Perhaps it would work well
to send me what you have so far, and I'll try to work out what can be
done.

Tom Ellison


Mark M S said:
I would like to determine which patients did not obtain the right number
of vaccines by the age of 2. My database can tell me if each patient is
not up to date through the electronioc medical record but I must look at
a child individually. There is no general report. I can produce a summary
file in Access but must figure out the query

I sure would appreciate some hints how to find outlyers if you know that
each child needs
4 dpt
4 hib
3 ipv
3 hepb
1 mmr
1 var

My query so far that would include the basic data is
SELECT REGISTER.LNAME, REGISTER.FNAME, REGISTER.MI, REGISTER.BIRTHDAT,
REGISTER.SEX, Year(Now())-Year([BirthDAT]) AS Age, VACCINE1.VACDATE,
VACCINE1.VACNAME
FROM REGISTER INNER JOIN VACCINE1 ON REGISTER.PATNO = VACCINE1.PATNO
WHERE (((REGISTER.FNAME) Not Like "baby*") AND
((Year(Now())-Year([BirthDAT]))<2) AND ((REGISTER.DOCTOR)="mms"))
ORDER BY REGISTER.LNAME;

If I can get a start on how to do this it would be most appreciated.
*************************************************
Mark M Simonian MD FAAP

****************************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.
 
M

Mark M S

Dear Tom, I didn't realize you might need to spend so much effort and time
on this. Wow!

You are right. It is complex logic and there are accepted ranges when a
second, third, and fourth dose must be spaced. I wanted to count the numbers
because if I am on top of the vaccine administration. I will be directing
the spacing at each visit. If they fall out of the established 2 month 4
month 6 months 12 month or 15 months (that is common) it still is the total
number of doses they receive under 24 months that is being screened by the
insurance companies.

Unfortunately, the names aren't as simple as DPT or HIB because there are
two combinations I must work with. There are the HebB/HIB at 2 months and
six months combination and DPT/HIB combination (at 15-18 months)


VACCINE1 PATNO VACNAME VACDATE
288 FLU - 6-35m 10/5/2005
288 Var 1/25/2005
288 HepB 12/1/2003
288 HepB/HIB 1/13/2004
288 HepB/HIB 4/2/2004
288 HepB/HIB 1/25/2005
288 DTaP 1/13/2004
288 DTaP 4/2/2004
288 DTaP 6/14/2004
288 IPV 1/13/2004
288 IPV 4/2/2004
288 IPV 6/14/2004
288 PCV 1/13/2004
288 PCV 4/2/2004
288 PCV 9/2/2004
288 PCV 1/25/2005
288 MMR 1/25/2005

plus DTaP/HIB will cover the all the variations I use.

I can't expect you to spend much time on this and it is my responsibility to
work with my EMR vendor to generate the ongoing reports. I was fascinated by
the Access query and hoped the solution wouldn't require a long or
substantial expense to resolve. You have been great to discuss this.
*************************************************
Mark M Simonian MD FAAP
Medical Director, ChildNet Medical Assoc.
681 Medical Center Drive West #106
Clovis, CA 93611
(559) 325-6850
www.markmsimonian.medem.com
****************************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.
Tom Ellison said:
Dear Dr. Mark:

There's a question. Consider DPT, due at ages 2, 4, 6, and 15. Now,
consider a patient who is now 15. If they received DPT at age 14, are
they past due? What if they received it at age 12? Or 10? What is the
threshold, the definition of "past due"? Sorry to get technical, but this
is, well, technical. I have to program by very stringent definitions.

Tom Ellison


Mark M S said:
REGISTER PATNO LNAME FNAME MI BIRTHDAT SEX PORGFNM PORGLNM PORGMI
ADDRESS CITY STATE ZIPCODE HPHONE BPHONE DOACCT TYPACCT CURRBAL LASTPAY
BILLDATE BILLTWO PORG2FNM PORG2LNM PORG2MI DOCTOR TELCALNO SICKVNO
REFERDBY PATSSNO P1SSNO P2SSNO INSURED_ID COPAYBAL ADDRESS1 P1ADD1 P1ADD2
P1CITY P1ST P1ZIP P1LWP P1RELATIONSHIP P1HPHONE P1BPHONE P2ADD1 P2ADD2
P2CITY P2ST P2ZIP P2LWP P2RELATIONSHIP P2HPHONE P2BPHONE P3FNM P3LNM P3MI
P3SSNO P3ADD1 P3ADD2 P3CITY P3ST P3ZIP P3LWP P3RELATIONSHIP P3HPHONE
P3BPHONE P4FNM P4LNM P4MI P4SSNO P4ADD1 P4ADD2 P4CITY P4ST P4ZIP P4LWP
P4RELATIONSHIP P4HPHONE P4BPHONE EMERGENCYCONTACT PATALTERNATEFNM
PATALTERNATELNM ZIP4 LASTUPDATE UPIF_HPCODE INS_CARRIER_CODE BILLTO
INSURED_ID_OTHER INS2_CARRIER_CODE LEGACYID P1_ADD_TYPE P2_ADD_TYPE
P3_ADD_TYPE P4_ADD_TYPE PRIVACY_TAG PRIVACY_NOTE CELL_PHONE PAGER1 FAX1
E_MAIL_ADDRESS DOD VOID_NOTE ADDR_ID P_ADDR_ID S_ADDR_ID PAT_REF_BY
IMM_REGISTRY_OK
99 TESTPATIENT MARY
5/16/1998 F SUSAN TESTPATIENT
123 XYZ STREET CLEVELAND OH 44130 215-555-1212
5/16/2000 2 0 0 9/16/2005 9/29/2005 JOHN TESTPATIENT
LRT 3 5 @@MOM NEEDS TO UPDATE OFFICE W/NEW INS INFO 7/12/05 KR
VACCINES TO BE MAILED TO HOME PLAN COPAY BILLED TO #2 HOME PLAN


SELF 0





Y MOTHER






Y FATHER










N











N






1/27/2006 XX ABI 1 456789 AAK




0





0 389
306
0


--
VACCINE1 PATNO VACNAME VACDATE
99 HepB 9/7/1998
99 HepB 6/15/1998
99 HepB 2/15/1999
99 DTaP 7/15/1998
99 DTaP 9/15/1998
99 DTaP 11/15/1998
99 IPV 7/15/1998
99 IPV 9/15/1998
99 IPV 8/16/1998
99 HIB-PRP-T 7/15/1998
99 HIB-PRP-T 9/15/1998
99 HIB-PRP-T 11/15/1998
99 HIB-PRP-T 8/15/1999
99 MMR 5/17/1999


Minimum table would be in months
DPT 2,4,6,15
IPV 2,4,6
HIB 2,4,6,15
MMR 12
VAR 12
HEPB 1,2, 6

Tom, I wanted to be able to generate a monthly report to see who might be
out of compliance so I could follow up with the patient. It is unusual to
have patients not follow up but I don't want to miss people

*************************************************
Mark M Simonian MD FAAP

****************************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.
Tom Ellison said:
Dear Dr. Mark:

What I propose is to filter a cross-product of all patients with all
vaccines and check the required number of vaccinations against the
actual number given.

To be able to flesh this out, I need to know a few things:

- Is the REGISTER table a registration of patients? One row, one
patient, correct?

- Is the VACCINE1 table a record of vaccinations given? If so, does
each record show one specific innoculation? If there are 3
innoculations given in a single visit to a single patient, is this 3
rows of data?

The solution will require 3 tables:

- a table of patients

- a table of innoculations given to those patients

- a table of all innoculations and the number of times they are to be
given

It is possible that there are innoculations that should be given a
certain number of times to someone of age 2, a larger number of times by
age 5, and so forth. Tracking all this, with rules like "within 6
years" and the like can also be accomodated. Describing these rules for
each innoculations should be modeled as well.

A more complete layout of what is in your tables and some good sample
data would be most helpful. I'm expecting that you, as an MD, may have
some interest in building databases, but that this is not the primary
function you want to be performing next week. Perhaps it would work
well to send me what you have so far, and I'll try to work out what can
be done.

Tom Ellison


I would like to determine which patients did not obtain the right number
of vaccines by the age of 2. My database can tell me if each patient is
not up to date through the electronioc medical record but I must look at
a child individually. There is no general report. I can produce a
summary file in Access but must figure out the query

I sure would appreciate some hints how to find outlyers if you know
that each child needs
4 dpt
4 hib
3 ipv
3 hepb
1 mmr
1 var

My query so far that would include the basic data is
SELECT REGISTER.LNAME, REGISTER.FNAME, REGISTER.MI, REGISTER.BIRTHDAT,
REGISTER.SEX, Year(Now())-Year([BirthDAT]) AS Age, VACCINE1.VACDATE,
VACCINE1.VACNAME
FROM REGISTER INNER JOIN VACCINE1 ON REGISTER.PATNO = VACCINE1.PATNO
WHERE (((REGISTER.FNAME) Not Like "baby*") AND
((Year(Now())-Year([BirthDAT]))<2) AND ((REGISTER.DOCTOR)="mms"))
ORDER BY REGISTER.LNAME;

If I can get a start on how to do this it would be most appreciated.
*************************************************
Mark M Simonian MD FAAP

****************************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.
 
T

Tom Ellison

Dear Dr. Mark:

I created a database in which to work on your questions. I have added a new
table "Vaccine":

Vaccine AgeRecommended
DPT 2
DPT 4
DPT 6
DPT 15
IPV 2
IPV 4
IPV 6
MMR 12
VAR 12
HEPB 1
HEPB 2
HEPB 6


I have the following query so far:

SELECT R.PATNO, V.Vaccine, V.AgeRecommended,
DateAdd("yyyy", V.AgeRecommended, R.BIRTHDAT) AS DateRecommended,
(SELECT MAX(V1.VACDATE)
FROM Vaccine1 V1
WHERE V1.PATNO = R.PATNO
AND V1.VACNAME = V.Vaccine) AS VaccDate
FROM REGISTER AS R, VACCINE AS V
WHERE V.AgeRecommended = (SELECT MAX(Va.AgeRecommended)
FROM Vaccine Va
WHERE Va.Vaccine = V.Vaccine
AND Va.AgeRecommended <= DateDiff("yyyy", R.BIRTHDAT, Now()) +
Int(Format(now(), "mmdd") < Format(R.BIRTHDAT, "mmdd")))
ORDER BY R.PATNO, V.Vaccine;

If you add the table I show above, you may be able to run this and see
something of the progress so far.

This shows each patient and each vaccine for that patient. Using the
patient's birth date and the age at which each vaccine is recommended, it
gives the most recent date when that vaccine should have been administered.
This could be extended to look back from some future date, say 30 or 60 days
from today. It also shows the most recent administration on record of that
same vaccine.

What I do not know is how you would want to "flag" those patient/vaccine
combinations that are imminent or past due. Let me give an example.

DPT is recommended at 2 and 4. If a child had DPT at age 3 years 1 month,
when would this patient be flagged for DPT? Perhaps reasonably the answer
is age 5 years 1 month. That is, the interval for DPT seems to be 2 years
for children at this age. Does that make sense? Is it anywhere close to
what good practice would be?

As you can see, I am anticipating that the rules for how to do this would
require some rather complex explanation to be formally formulated. I know
that much of this is in the doctor's discretion, but you want this built
into a computer program, in part so you can make those decisions. Yet, it
seems completely unnecessary to flag someone for DPT who has had that
vaccine less than a year ago, right?

I hope it's not irritating to be so picky and specific, but the product you
end up with will depend on your participation in answering this.

Tom Ellison


Mark M S said:
REGISTER PATNO LNAME FNAME MI BIRTHDAT SEX PORGFNM PORGLNM PORGMI ADDRESS
CITY STATE ZIPCODE HPHONE BPHONE DOACCT TYPACCT CURRBAL LASTPAY BILLDATE
BILLTWO PORG2FNM PORG2LNM PORG2MI DOCTOR TELCALNO SICKVNO REFERDBY PATSSNO
P1SSNO P2SSNO INSURED_ID COPAYBAL ADDRESS1 P1ADD1 P1ADD2 P1CITY P1ST P1ZIP
P1LWP P1RELATIONSHIP P1HPHONE P1BPHONE P2ADD1 P2ADD2 P2CITY P2ST P2ZIP
P2LWP P2RELATIONSHIP P2HPHONE P2BPHONE P3FNM P3LNM P3MI P3SSNO P3ADD1
P3ADD2 P3CITY P3ST P3ZIP P3LWP P3RELATIONSHIP P3HPHONE P3BPHONE P4FNM
P4LNM P4MI P4SSNO P4ADD1 P4ADD2 P4CITY P4ST P4ZIP P4LWP P4RELATIONSHIP
P4HPHONE P4BPHONE EMERGENCYCONTACT PATALTERNATEFNM PATALTERNATELNM ZIP4
LASTUPDATE UPIF_HPCODE INS_CARRIER_CODE BILLTO INSURED_ID_OTHER
INS2_CARRIER_CODE LEGACYID P1_ADD_TYPE P2_ADD_TYPE P3_ADD_TYPE P4_ADD_TYPE
PRIVACY_TAG PRIVACY_NOTE CELL_PHONE PAGER1 FAX1 E_MAIL_ADDRESS DOD
VOID_NOTE ADDR_ID P_ADDR_ID S_ADDR_ID PAT_REF_BY IMM_REGISTRY_OK
99 TESTPATIENT MARY
5/16/1998 F SUSAN TESTPATIENT
123 XYZ STREET CLEVELAND OH 44130 215-555-1212
5/16/2000 2 0 0 9/16/2005 9/29/2005 JOHN TESTPATIENT
LRT 3 5 @@MOM NEEDS TO UPDATE OFFICE W/NEW INS INFO 7/12/05 KR
VACCINES TO BE MAILED TO HOME PLAN COPAY BILLED TO #2 HOME PLAN


SELF 0





Y MOTHER






Y FATHER










N











N






1/27/2006 XX ABI 1 456789 AAK




0





0 389
306
0


--
VACCINE1 PATNO VACNAME VACDATE
99 HepB 9/7/1998
99 HepB 6/15/1998
99 HepB 2/15/1999
99 DTaP 7/15/1998
99 DTaP 9/15/1998
99 DTaP 11/15/1998
99 IPV 7/15/1998
99 IPV 9/15/1998
99 IPV 8/16/1998
99 HIB-PRP-T 7/15/1998
99 HIB-PRP-T 9/15/1998
99 HIB-PRP-T 11/15/1998
99 HIB-PRP-T 8/15/1999
99 MMR 5/17/1999


Minimum table would be in months
DPT 2,4,6,15
IPV 2,4,6
HIB 2,4,6,15
MMR 12
VAR 12
HEPB 1,2, 6

Tom, I wanted to be able to generate a monthly report to see who might be
out of compliance so I could follow up with the patient. It is unusual to
have patients not follow up but I don't want to miss people

*************************************************
Mark M Simonian MD FAAP

****************************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.
Tom Ellison said:
Dear Dr. Mark:

What I propose is to filter a cross-product of all patients with all
vaccines and check the required number of vaccinations against the actual
number given.

To be able to flesh this out, I need to know a few things:

- Is the REGISTER table a registration of patients? One row, one
patient, correct?

- Is the VACCINE1 table a record of vaccinations given? If so, does each
record show one specific innoculation? If there are 3 innoculations
given in a single visit to a single patient, is this 3 rows of data?

The solution will require 3 tables:

- a table of patients

- a table of innoculations given to those patients

- a table of all innoculations and the number of times they are to be
given

It is possible that there are innoculations that should be given a
certain number of times to someone of age 2, a larger number of times by
age 5, and so forth. Tracking all this, with rules like "within 6 years"
and the like can also be accomodated. Describing these rules for each
innoculations should be modeled as well.

A more complete layout of what is in your tables and some good sample
data would be most helpful. I'm expecting that you, as an MD, may have
some interest in building databases, but that this is not the primary
function you want to be performing next week. Perhaps it would work well
to send me what you have so far, and I'll try to work out what can be
done.

Tom Ellison


Mark M S said:
I would like to determine which patients did not obtain the right number
of vaccines by the age of 2. My database can tell me if each patient is
not up to date through the electronioc medical record but I must look at
a child individually. There is no general report. I can produce a summary
file in Access but must figure out the query

I sure would appreciate some hints how to find outlyers if you know that
each child needs
4 dpt
4 hib
3 ipv
3 hepb
1 mmr
1 var

My query so far that would include the basic data is
SELECT REGISTER.LNAME, REGISTER.FNAME, REGISTER.MI, REGISTER.BIRTHDAT,
REGISTER.SEX, Year(Now())-Year([BirthDAT]) AS Age, VACCINE1.VACDATE,
VACCINE1.VACNAME
FROM REGISTER INNER JOIN VACCINE1 ON REGISTER.PATNO = VACCINE1.PATNO
WHERE (((REGISTER.FNAME) Not Like "baby*") AND
((Year(Now())-Year([BirthDAT]))<2) AND ((REGISTER.DOCTOR)="mms"))
ORDER BY REGISTER.LNAME;

If I can get a start on how to do this it would be most appreciated.
*************************************************
Mark M Simonian MD FAAP

****************************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.
 
T

Tom Ellison

Dear Mark:

Because of the complexity and the volume of data for an applicaton like
this, I feel it is a very good candidate for computer automation. You have
added some new twists, but they are very systematic and just make the
overall project that much more appropriate for automation. The computer
could do in a fraction of a second what would take people several minutes.
That's what makes my job worthwhile.

I had mistaken the time intervals for years rather than months. Sorry for
my ignorance. That's very easy to fix up.

Properly designed, built, and tested, the computer could save time and
result in more accurate administration, and provide you with timely and
accurate information on which to make judgements. It could forecast the
need for inventories, for example, and then help you make sure patients are
notified so those inventories are consumed close to schedule.

I did get a bit carried away, as I was hoping I might help you get such a
system off the ground. It seems rewarding because it is worthwhile doing.

Shall I take it this is not worth your time at the moment, or what? Didn't
mean to scare you away. Perhaps we should talk.

Tom Ellison


Mark M S said:
Dear Tom, I didn't realize you might need to spend so much effort and time
on this. Wow!

You are right. It is complex logic and there are accepted ranges when a
second, third, and fourth dose must be spaced. I wanted to count the
numbers because if I am on top of the vaccine administration. I will be
directing the spacing at each visit. If they fall out of the established 2
month 4 month 6 months 12 month or 15 months (that is common) it still is
the total number of doses they receive under 24 months that is being
screened by the insurance companies.

Unfortunately, the names aren't as simple as DPT or HIB because there are
two combinations I must work with. There are the HebB/HIB at 2 months and
six months combination and DPT/HIB combination (at 15-18 months)


VACCINE1 PATNO VACNAME VACDATE
288 FLU - 6-35m 10/5/2005
288 Var 1/25/2005
288 HepB 12/1/2003
288 HepB/HIB 1/13/2004
288 HepB/HIB 4/2/2004
288 HepB/HIB 1/25/2005
288 DTaP 1/13/2004
288 DTaP 4/2/2004
288 DTaP 6/14/2004
288 IPV 1/13/2004
288 IPV 4/2/2004
288 IPV 6/14/2004
288 PCV 1/13/2004
288 PCV 4/2/2004
288 PCV 9/2/2004
288 PCV 1/25/2005
288 MMR 1/25/2005

plus DTaP/HIB will cover the all the variations I use.

I can't expect you to spend much time on this and it is my responsibility
to work with my EMR vendor to generate the ongoing reports. I was
fascinated by the Access query and hoped the solution wouldn't require a
long or substantial expense to resolve. You have been great to discuss
this.
*************************************************
Mark M Simonian MD FAAP
Medical Director, ChildNet Medical Assoc.
681 Medical Center Drive West #106
Clovis, CA 93611
(559) 325-6850
www.markmsimonian.medem.com
****************************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.
Tom Ellison said:
Dear Dr. Mark:

There's a question. Consider DPT, due at ages 2, 4, 6, and 15. Now,
consider a patient who is now 15. If they received DPT at age 14, are
they past due? What if they received it at age 12? Or 10? What is the
threshold, the definition of "past due"? Sorry to get technical, but
this is, well, technical. I have to program by very stringent
definitions.

Tom Ellison


Mark M S said:
REGISTER PATNO LNAME FNAME MI BIRTHDAT SEX PORGFNM PORGLNM PORGMI
ADDRESS CITY STATE ZIPCODE HPHONE BPHONE DOACCT TYPACCT CURRBAL LASTPAY
BILLDATE BILLTWO PORG2FNM PORG2LNM PORG2MI DOCTOR TELCALNO SICKVNO
REFERDBY PATSSNO P1SSNO P2SSNO INSURED_ID COPAYBAL ADDRESS1 P1ADD1
P1ADD2 P1CITY P1ST P1ZIP P1LWP P1RELATIONSHIP P1HPHONE P1BPHONE P2ADD1
P2ADD2 P2CITY P2ST P2ZIP P2LWP P2RELATIONSHIP P2HPHONE P2BPHONE P3FNM
P3LNM P3MI P3SSNO P3ADD1 P3ADD2 P3CITY P3ST P3ZIP P3LWP P3RELATIONSHIP
P3HPHONE P3BPHONE P4FNM P4LNM P4MI P4SSNO P4ADD1 P4ADD2 P4CITY P4ST
P4ZIP P4LWP P4RELATIONSHIP P4HPHONE P4BPHONE EMERGENCYCONTACT
PATALTERNATEFNM PATALTERNATELNM ZIP4 LASTUPDATE UPIF_HPCODE
INS_CARRIER_CODE BILLTO INSURED_ID_OTHER INS2_CARRIER_CODE LEGACYID
P1_ADD_TYPE P2_ADD_TYPE P3_ADD_TYPE P4_ADD_TYPE PRIVACY_TAG PRIVACY_NOTE
CELL_PHONE PAGER1 FAX1 E_MAIL_ADDRESS DOD VOID_NOTE ADDR_ID P_ADDR_ID
S_ADDR_ID PAT_REF_BY IMM_REGISTRY_OK
99 TESTPATIENT MARY
5/16/1998 F SUSAN TESTPATIENT
123 XYZ STREET CLEVELAND OH 44130 215-555-1212
5/16/2000 2 0 0 9/16/2005 9/29/2005 JOHN TESTPATIENT
LRT 3 5 @@MOM NEEDS TO UPDATE OFFICE W/NEW INS INFO 7/12/05 KR
VACCINES TO BE MAILED TO HOME PLAN COPAY BILLED TO #2 HOME PLAN


SELF 0





Y MOTHER






Y FATHER










N











N






1/27/2006 XX ABI 1 456789 AAK




0





0 389
306
0


--
VACCINE1 PATNO VACNAME VACDATE
99 HepB 9/7/1998
99 HepB 6/15/1998
99 HepB 2/15/1999
99 DTaP 7/15/1998
99 DTaP 9/15/1998
99 DTaP 11/15/1998
99 IPV 7/15/1998
99 IPV 9/15/1998
99 IPV 8/16/1998
99 HIB-PRP-T 7/15/1998
99 HIB-PRP-T 9/15/1998
99 HIB-PRP-T 11/15/1998
99 HIB-PRP-T 8/15/1999
99 MMR 5/17/1999


Minimum table would be in months
DPT 2,4,6,15
IPV 2,4,6
HIB 2,4,6,15
MMR 12
VAR 12
HEPB 1,2, 6

Tom, I wanted to be able to generate a monthly report to see who might
be out of compliance so I could follow up with the patient. It is
unusual to have patients not follow up but I don't want to miss people

*************************************************
Mark M Simonian MD FAAP

****************************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.
Dear Dr. Mark:

What I propose is to filter a cross-product of all patients with all
vaccines and check the required number of vaccinations against the
actual number given.

To be able to flesh this out, I need to know a few things:

- Is the REGISTER table a registration of patients? One row, one
patient, correct?

- Is the VACCINE1 table a record of vaccinations given? If so, does
each record show one specific innoculation? If there are 3
innoculations given in a single visit to a single patient, is this 3
rows of data?

The solution will require 3 tables:

- a table of patients

- a table of innoculations given to those patients

- a table of all innoculations and the number of times they are to be
given

It is possible that there are innoculations that should be given a
certain number of times to someone of age 2, a larger number of times
by age 5, and so forth. Tracking all this, with rules like "within 6
years" and the like can also be accomodated. Describing these rules
for each innoculations should be modeled as well.

A more complete layout of what is in your tables and some good sample
data would be most helpful. I'm expecting that you, as an MD, may have
some interest in building databases, but that this is not the primary
function you want to be performing next week. Perhaps it would work
well to send me what you have so far, and I'll try to work out what can
be done.

Tom Ellison


I would like to determine which patients did not obtain the right
number of vaccines by the age of 2. My database can tell me if each
patient is not up to date through the electronioc medical record but I
must look at a child individually. There is no general report. I can
produce a summary file in Access but must figure out the query

I sure would appreciate some hints how to find outlyers if you know
that each child needs
4 dpt
4 hib
3 ipv
3 hepb
1 mmr
1 var

My query so far that would include the basic data is
SELECT REGISTER.LNAME, REGISTER.FNAME, REGISTER.MI, REGISTER.BIRTHDAT,
REGISTER.SEX, Year(Now())-Year([BirthDAT]) AS Age, VACCINE1.VACDATE,
VACCINE1.VACNAME
FROM REGISTER INNER JOIN VACCINE1 ON REGISTER.PATNO = VACCINE1.PATNO
WHERE (((REGISTER.FNAME) Not Like "baby*") AND
((Year(Now())-Year([BirthDAT]))<2) AND ((REGISTER.DOCTOR)="mms"))
ORDER BY REGISTER.LNAME;

If I can get a start on how to do this it would be most appreciated.
*************************************************
Mark M Simonian MD FAAP

****************************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.
 
M

Mark M S

Tom, I try never to abuse the expert help on the newsgroup and it seemed I
was overdoing it with my request. You are wonderfully kind to do this much.
I will work on the suggestions you have supplied so far and see what that
produces. I will post back with questions. Now back to my patients.

--
*************************************************
Mark M Simonian MD FAAP
Medical Director, ChildNet Medical Assoc.
681 Medical Center Drive West #106
Clovis, CA 93611
(559) 325-6850
www.markmsimonian.medem.com
****************************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.
Tom Ellison said:
Dear Dr. Mark:

I created a database in which to work on your questions. I have added a
new table "Vaccine":

Vaccine AgeRecommended
DPT 2
DPT 4
DPT 6
DPT 15
IPV 2
IPV 4
IPV 6
MMR 12
VAR 12
HEPB 1
HEPB 2
HEPB 6


I have the following query so far:

SELECT R.PATNO, V.Vaccine, V.AgeRecommended,
DateAdd("yyyy", V.AgeRecommended, R.BIRTHDAT) AS DateRecommended,
(SELECT MAX(V1.VACDATE)
FROM Vaccine1 V1
WHERE V1.PATNO = R.PATNO
AND V1.VACNAME = V.Vaccine) AS VaccDate
FROM REGISTER AS R, VACCINE AS V
WHERE V.AgeRecommended = (SELECT MAX(Va.AgeRecommended)
FROM Vaccine Va
WHERE Va.Vaccine = V.Vaccine
AND Va.AgeRecommended <= DateDiff("yyyy", R.BIRTHDAT, Now()) +
Int(Format(now(), "mmdd") < Format(R.BIRTHDAT, "mmdd")))
ORDER BY R.PATNO, V.Vaccine;

If you add the table I show above, you may be able to run this and see
something of the progress so far.

This shows each patient and each vaccine for that patient. Using the
patient's birth date and the age at which each vaccine is recommended, it
gives the most recent date when that vaccine should have been
administered. This could be extended to look back from some future date,
say 30 or 60 days from today. It also shows the most recent
administration on record of that same vaccine.

What I do not know is how you would want to "flag" those patient/vaccine
combinations that are imminent or past due. Let me give an example.

DPT is recommended at 2 and 4. If a child had DPT at age 3 years 1 month,
when would this patient be flagged for DPT? Perhaps reasonably the answer
is age 5 years 1 month. That is, the interval for DPT seems to be 2 years
for children at this age. Does that make sense? Is it anywhere close to
what good practice would be?

As you can see, I am anticipating that the rules for how to do this would
require some rather complex explanation to be formally formulated. I know
that much of this is in the doctor's discretion, but you want this built
into a computer program, in part so you can make those decisions. Yet, it
seems completely unnecessary to flag someone for DPT who has had that
vaccine less than a year ago, right?

I hope it's not irritating to be so picky and specific, but the product
you end up with will depend on your participation in answering this.

Tom Ellison


Mark M S said:
REGISTER PATNO LNAME FNAME MI BIRTHDAT SEX PORGFNM PORGLNM PORGMI
ADDRESS CITY STATE ZIPCODE HPHONE BPHONE DOACCT TYPACCT CURRBAL LASTPAY
BILLDATE BILLTWO PORG2FNM PORG2LNM PORG2MI DOCTOR TELCALNO SICKVNO
REFERDBY PATSSNO P1SSNO P2SSNO INSURED_ID COPAYBAL ADDRESS1 P1ADD1 P1ADD2
P1CITY P1ST P1ZIP P1LWP P1RELATIONSHIP P1HPHONE P1BPHONE P2ADD1 P2ADD2
P2CITY P2ST P2ZIP P2LWP P2RELATIONSHIP P2HPHONE P2BPHONE P3FNM P3LNM P3MI
P3SSNO P3ADD1 P3ADD2 P3CITY P3ST P3ZIP P3LWP P3RELATIONSHIP P3HPHONE
P3BPHONE P4FNM P4LNM P4MI P4SSNO P4ADD1 P4ADD2 P4CITY P4ST P4ZIP P4LWP
P4RELATIONSHIP P4HPHONE P4BPHONE EMERGENCYCONTACT PATALTERNATEFNM
PATALTERNATELNM ZIP4 LASTUPDATE UPIF_HPCODE INS_CARRIER_CODE BILLTO
INSURED_ID_OTHER INS2_CARRIER_CODE LEGACYID P1_ADD_TYPE P2_ADD_TYPE
P3_ADD_TYPE P4_ADD_TYPE PRIVACY_TAG PRIVACY_NOTE CELL_PHONE PAGER1 FAX1
E_MAIL_ADDRESS DOD VOID_NOTE ADDR_ID P_ADDR_ID S_ADDR_ID PAT_REF_BY
IMM_REGISTRY_OK
99 TESTPATIENT MARY
5/16/1998 F SUSAN TESTPATIENT
123 XYZ STREET CLEVELAND OH 44130 215-555-1212
5/16/2000 2 0 0 9/16/2005 9/29/2005 JOHN TESTPATIENT
LRT 3 5 @@MOM NEEDS TO UPDATE OFFICE W/NEW INS INFO 7/12/05 KR
VACCINES TO BE MAILED TO HOME PLAN COPAY BILLED TO #2 HOME PLAN


SELF 0





Y MOTHER






Y FATHER










N











N






1/27/2006 XX ABI 1 456789 AAK




0





0 389
306
0


--
VACCINE1 PATNO VACNAME VACDATE
99 HepB 9/7/1998
99 HepB 6/15/1998
99 HepB 2/15/1999
99 DTaP 7/15/1998
99 DTaP 9/15/1998
99 DTaP 11/15/1998
99 IPV 7/15/1998
99 IPV 9/15/1998
99 IPV 8/16/1998
99 HIB-PRP-T 7/15/1998
99 HIB-PRP-T 9/15/1998
99 HIB-PRP-T 11/15/1998
99 HIB-PRP-T 8/15/1999
99 MMR 5/17/1999


Minimum table would be in months
DPT 2,4,6,15
IPV 2,4,6
HIB 2,4,6,15
MMR 12
VAR 12
HEPB 1,2, 6

Tom, I wanted to be able to generate a monthly report to see who might be
out of compliance so I could follow up with the patient. It is unusual to
have patients not follow up but I don't want to miss people

*************************************************
Mark M Simonian MD FAAP

****************************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.
Tom Ellison said:
Dear Dr. Mark:

What I propose is to filter a cross-product of all patients with all
vaccines and check the required number of vaccinations against the
actual number given.

To be able to flesh this out, I need to know a few things:

- Is the REGISTER table a registration of patients? One row, one
patient, correct?

- Is the VACCINE1 table a record of vaccinations given? If so, does
each record show one specific innoculation? If there are 3
innoculations given in a single visit to a single patient, is this 3
rows of data?

The solution will require 3 tables:

- a table of patients

- a table of innoculations given to those patients

- a table of all innoculations and the number of times they are to be
given

It is possible that there are innoculations that should be given a
certain number of times to someone of age 2, a larger number of times by
age 5, and so forth. Tracking all this, with rules like "within 6
years" and the like can also be accomodated. Describing these rules for
each innoculations should be modeled as well.

A more complete layout of what is in your tables and some good sample
data would be most helpful. I'm expecting that you, as an MD, may have
some interest in building databases, but that this is not the primary
function you want to be performing next week. Perhaps it would work
well to send me what you have so far, and I'll try to work out what can
be done.

Tom Ellison


I would like to determine which patients did not obtain the right number
of vaccines by the age of 2. My database can tell me if each patient is
not up to date through the electronioc medical record but I must look at
a child individually. There is no general report. I can produce a
summary file in Access but must figure out the query

I sure would appreciate some hints how to find outlyers if you know
that each child needs
4 dpt
4 hib
3 ipv
3 hepb
1 mmr
1 var

My query so far that would include the basic data is
SELECT REGISTER.LNAME, REGISTER.FNAME, REGISTER.MI, REGISTER.BIRTHDAT,
REGISTER.SEX, Year(Now())-Year([BirthDAT]) AS Age, VACCINE1.VACDATE,
VACCINE1.VACNAME
FROM REGISTER INNER JOIN VACCINE1 ON REGISTER.PATNO = VACCINE1.PATNO
WHERE (((REGISTER.FNAME) Not Like "baby*") AND
((Year(Now())-Year([BirthDAT]))<2) AND ((REGISTER.DOCTOR)="mms"))
ORDER BY REGISTER.LNAME;

If I can get a start on how to do this it would be most appreciated.
*************************************************
Mark M Simonian MD FAAP

****************************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.
 
Top