- Aug 12, 2004
- 106
- 0
- 76
So I created this new database to import and record records from our triage patients in access.
It has 2 tables, based on how the data is stored in the EMR.
tblTriageVisits and tblTriageProcedures
tblTriageVisits has the following fields
-Patient ID
-Export Time
-Display DateTime
-PT Name
-PT Billnum
-Admission Date and Time
-Discharge Date and time
-PT Attenddoc
-Chief Complain
-PT AdmitDX
-UniqueVisitRecord
tblTriageProcedures has the following fields
-Patient ID
-ExportTime
-Display DateTime
-Procedures FMS
-UniqueProcedureRecord
-TimeProcFMS
In both table, Patient ID refers to the same thing, ie the patients ID
Export time is the time that the EMR spit the text file out
Display DateTime is the time that the field was created in the datebase inside the database inside the EMR.
I am going to use this for several reports, most of which are fairly straight forward. The complicated report that I am stuck on involves making a list of triage visits and what happened to each patient.
Given the way that I have to export the data, there is no direct way to associate a PT-Billnum or a Admit or Discharge date with each procedure.
However, I figured, ok, simple logic, if the procedure time falls between a admit and admit date I can get those two dates (and once I do some more work on exporting the time the ptbillnum was created in the EMR) by looking for the closest Admit and discharge dates to the procedures.
So each procedure would wind up with its own associated admission and discharge date.
I can do this for example if I did not have to associate each procedure with a patient, if I just wanted to find all the procedures between 2 dates.
I can do this if I am only looking for the dates for the first patient in thw query.
What I cannot figure out how to do is for all patients in a given range (which would be by date, but the date part I don't know how to do).
Any suggestions?
It has 2 tables, based on how the data is stored in the EMR.
tblTriageVisits and tblTriageProcedures
tblTriageVisits has the following fields
-Patient ID
-Export Time
-Display DateTime
-PT Name
-PT Billnum
-Admission Date and Time
-Discharge Date and time
-PT Attenddoc
-Chief Complain
-PT AdmitDX
-UniqueVisitRecord
tblTriageProcedures has the following fields
-Patient ID
-ExportTime
-Display DateTime
-Procedures FMS
-UniqueProcedureRecord
-TimeProcFMS
In both table, Patient ID refers to the same thing, ie the patients ID
Export time is the time that the EMR spit the text file out
Display DateTime is the time that the field was created in the datebase inside the database inside the EMR.
I am going to use this for several reports, most of which are fairly straight forward. The complicated report that I am stuck on involves making a list of triage visits and what happened to each patient.
Given the way that I have to export the data, there is no direct way to associate a PT-Billnum or a Admit or Discharge date with each procedure.
However, I figured, ok, simple logic, if the procedure time falls between a admit and admit date I can get those two dates (and once I do some more work on exporting the time the ptbillnum was created in the EMR) by looking for the closest Admit and discharge dates to the procedures.
So each procedure would wind up with its own associated admission and discharge date.
I can do this for example if I did not have to associate each procedure with a patient, if I just wanted to find all the procedures between 2 dates.
I can do this if I am only looking for the dates for the first patient in thw query.
What I cannot figure out how to do is for all patients in a given range (which would be by date, but the date part I don't know how to do).
Any suggestions?