I'm using Access 97 to store information downloaded from another application.
I've got a table of patient results for restraint usage. 'Initiated' is a result, and 'Removed' is a result. What I need to do is figure out how long a patient was in restraints. Since it's possible staff could chart either one, or both, does anyone have any idea how I might attempt this calculation? Result Date/Time are stored together in a single field, but there's a separate row for each.
How will I match up which 'removed' goes with which 'initiated'? if it's possible one of them is missing? Some sort of probablity logic? I've never done anything like that. It's possible for a single patient to have multiple restraint initiations in the same 'visit', espcially in for example, mental health.
For example, I could have records that look like this:
PatientNameOne Initiated 3/11/03 4:15 PM
PatientNameOne Removed 3/11/03 8:00 PM
PatientNameOne Removed 3/13/03 4:00 PM
PatientNameTwo Initiated 3/12/03 9:15 AM
PatientNameTwo Removed 3/12/03 11:00 AM
The second 'Removed' for PatientNameOne didn't have an Initiated charted. In a perfect world they will, but we're talking about human data entry here, and it DOES happen.
Any ideas? Unfortunately, there's no sort of indicator to tell which Removed belogs with which initiated.
How could I compare the date/time field to another record using some sort of if logic to determine the likelihood 'this' one matches 'that' one. Any suggestions welcome!
Thanks,
ainkca
I've got a table of patient results for restraint usage. 'Initiated' is a result, and 'Removed' is a result. What I need to do is figure out how long a patient was in restraints. Since it's possible staff could chart either one, or both, does anyone have any idea how I might attempt this calculation? Result Date/Time are stored together in a single field, but there's a separate row for each.
How will I match up which 'removed' goes with which 'initiated'? if it's possible one of them is missing? Some sort of probablity logic? I've never done anything like that. It's possible for a single patient to have multiple restraint initiations in the same 'visit', espcially in for example, mental health.
For example, I could have records that look like this:
PatientNameOne Initiated 3/11/03 4:15 PM
PatientNameOne Removed 3/11/03 8:00 PM
PatientNameOne Removed 3/13/03 4:00 PM
PatientNameTwo Initiated 3/12/03 9:15 AM
PatientNameTwo Removed 3/12/03 11:00 AM
The second 'Removed' for PatientNameOne didn't have an Initiated charted. In a perfect world they will, but we're talking about human data entry here, and it DOES happen.
Any ideas? Unfortunately, there's no sort of indicator to tell which Removed belogs with which initiated.
How could I compare the date/time field to another record using some sort of if logic to determine the likelihood 'this' one matches 'that' one. Any suggestions welcome!
Thanks,
ainkca