andres_paglayan wrote on Friday, July 01, 2005:
Back to the keyboard,
for the HL& retrieving tool I am about to set the following tables, but wanted some agreement before. Don’t worry about the field names, I’ll beautify them.
File supported is result transaction type, ORU, since it’s downloading a file from an FTP server there is no hl7 ack/nak talking.
lab_headers (table) this holds relevant info on MSH, PID, PVI, ORC and OBR segments.
and matches what is regularly printed in the lab header paper report. This information is sent by the lab, and does not necessary matches OpenEMR schema,
lab_head_id
Patient name
patient_id
DOB
Sex
Alias
Patientaccountnumber
Ssn
Status
Physician
DateCollected
DOS
Print
Requisiton
Patient _phone
lab_reference
laboratory
Hl7fileID
Timestamp
lab_results (table) holds the information of the OBX segment, refers to a header.
lab_result_id
lab_head_id
Test
Note
In range
Out of range
Units
Reference range
Flags
Site code
Timestamp
lab_hl7_file(table) holds the original file retrieved, just in case, it may contain more than one lab report.
Hl7fileID
Content
Received
lab_transaction (table) this one, is the one that matters for the work flow,
it holds the status of one particular lab report, and to which patient record has to be assigned. I think this has to be manually done, I see something like this: a flag appears on the screen, it says new labs received, the assistant clicks there, sees a list of the lab headers with a mark on those with abnormal values, runs a pop up to assign the lab to a patient. But at this point something else has to be done, but not sure what, send and email to the doctor?
Fields on lab_transaction.
Date
Pid
User
Groupname
Authorized
lab_head_id
Received (date)
Assigned (date)
Notified (date)
Notes (free text input)
Status (current status for extended functions, but it can be pulled from received, assigned, notified)
timestamp