Hi,
I have a table that contains a field cath_procedures.
In this field I found all the procedures that was done on a given event ( I get the date from the event_cath table).
When the even starts in the lab, the recorder selects the procedures from the drop down combo box.
The event can start with a diagnostic procedure, so the recorder picks a diag.procedure.
Then, the next minute the doctor can decide on the interventional procedure. So, the recorder picks the procedure in the combo box called PCI or PCI:*
Than the doctor can decide to have a stent done and that is another Intervention. So, the recorder picks the procedure Stent - coronary in the 3rd field of the combo box.
The problem is that when I query the doctor for all the interventions Like "*PCI*" AND Like "Stent - Coronary" it gives me duplicate dates and patient names, because - again the procedures in one table.
I would like to know how to create this query, that it would show the doctors name, patient_id, pt_name, and only once the event if it was an Intervention (even if they recorded 2 different kind of Interventional procedures that time).
I am calculating with only "Scheduled & Performed" and "Performed" from the cath_extension table.
Thank you!!!!
I have a table that contains a field cath_procedures.
In this field I found all the procedures that was done on a given event ( I get the date from the event_cath table).
When the even starts in the lab, the recorder selects the procedures from the drop down combo box.
The event can start with a diagnostic procedure, so the recorder picks a diag.procedure.
Then, the next minute the doctor can decide on the interventional procedure. So, the recorder picks the procedure in the combo box called PCI or PCI:*
Than the doctor can decide to have a stent done and that is another Intervention. So, the recorder picks the procedure Stent - coronary in the 3rd field of the combo box.
The problem is that when I query the doctor for all the interventions Like "*PCI*" AND Like "Stent - Coronary" it gives me duplicate dates and patient names, because - again the procedures in one table.
I would like to know how to create this query, that it would show the doctors name, patient_id, pt_name, and only once the event if it was an Intervention (even if they recorded 2 different kind of Interventional procedures that time).
I am calculating with only "Scheduled & Performed" and "Performed" from the cath_extension table.
Thank you!!!!