Logical View of a Procedure - Oracle Clinical

1
Logical view of a Procedure Assumptions: three Question Groups Skip code that deals with Test mode since its logic is the same as Production mode Declare Cursor 1 for 1 st Alias – Question Group A Cursor 2 for 2 nd Alias – Question Group B Cursor 3 for 3 rd Alias – Question Group C User Variables Procedure Main Declare procedure’s internal variables DECLARATION custom code Begin Initialize internal variables MAIN-BEGIN custom code Open Patient Info Cursor Fetch a Patient Record Initialize all User Variables POST-PATIENT custom code Open Cursor 1 Fetch a Record from Cursor 1 Initialize User Variables with Init Alias set to Question Group A POST-QG-A custom code Open Cursor 2 Fetch a Record from Cursor 2 Initialize User Variables with Init Alias set to Question Group B POST-QG-B custom code Open Cursor 3 Fetch a Record from Cursor 3 Initialize User Variables with Init Alias set to Question Group C POST-QG-C custom code PRE-DETAILS custom code For each Detail Line If Expression is true Then Create Discrepancy End If Next Detail Line POST-DETAILS custom code Next Cursor 3 Record Close Cursor 3 Next Cursor 2 Record Close Cursor 2 Next Cursor 1 Record Close Cursor 1 Next Patient Record Close Patient Info Cursor MAIN-END custom code End CSS Confidential Information 1

description

Logical View of a Procedure - Oracle Clinical

Transcript of Logical View of a Procedure - Oracle Clinical

Page 1: Logical View of a Procedure - Oracle Clinical

Logical view of a Procedure Assumptions: three Question Groups Skip code that deals with Test mode since its logic is the same as Production mode Declare Cursor 1 for 1st Alias – Question Group A Cursor 2 for 2nd Alias – Question Group B Cursor 3 for 3rd Alias – Question Group C User Variables Procedure Main Declare procedure’s internal variables DECLARATION custom code Begin Initialize internal variables MAIN-BEGIN custom code Open Patient Info Cursor Fetch a Patient Record Initialize all User Variables POST-PATIENT custom code Open Cursor 1 Fetch a Record from Cursor 1 Initialize User Variables with Init Alias set to Question Group A POST-QG-A custom code Open Cursor 2 Fetch a Record from Cursor 2 Initialize User Variables with Init Alias set to Question Group B POST-QG-B custom code Open Cursor 3 Fetch a Record from Cursor 3 Initialize User Variables with Init Alias set to Question Group C POST-QG-C custom code PRE-DETAILS custom code For each Detail Line If Expression is true Then Create Discrepancy End If Next Detail Line POST-DETAILS custom code Next Cursor 3 Record Close Cursor 3 Next Cursor 2 Record Close Cursor 2 Next Cursor 1 Record Close Cursor 1 Next Patient Record Close Patient Info Cursor MAIN-END custom code End

CSS Confidential Information 1