SlideShare a Scribd company logo
OHSUG Annual Conference
October 16-19, 2011
Toronto, Ontario Canada


                                       Using Lag Variables in
                                          Oracle Clinical
                                            Procedures
                                             Steven Rifkin




 Copyright © 2011   BioPharm Systems, Inc
Topics

• Setting up Lags in a procedure
• Lag Example
   –   Description of the forms and required edit check
   –   Modeling the Forms
   –   Writing the validation procedure
   –   Structure of the procedure




                                     2


  Lags in Oracle Clinical
                            Lags in Procedures
Lags …

• Lags retrieve previous instances of the
  response to a question
• Lag Aggregates summarize the previous
  instances
• Can specify how many previous responses
  are remembered (depth) and whether to
  count null responses
• Defined on the Procedure Questions Screen


                                              3
                 Lags in Procedures
Lags …



Specify Lag Depth to
                                       Define if the aggregate of
create Lags
                                       the Lags are available

   Checks means to include
   nulls in the lag count




                                                                    4
                       Lags in Procedures
Lags

• Lags Variables are referenced
    <alias>$<question name>$Ln for value
    <alias>$<question name>$In for response_id
    <alias>$<question name>$Tn for entry_ts


• Aggregate Lag Values are referenced
    <alias>$<question name>$fc
          where fc is AV, MN, MX, SM, or CT



                                                 5
                     Lags in Procedures
Lag Example …




                                V_NAUSEA_CHECK

                                                 6
           Lags in Procedures
Lag Example …




  Make as Assessment of Nausea at scheduled times
 and respond ‘Yes’ if there was an Episode of Nausea
           since the previous Assessment

        If ‘YES’ record the episode(s) on
          the Episodes of Nausea Form
                                                       7
                    Lags in Procedures
Lag Example




 Record Date and Time of each Episode of Nausea and
             the intensity of the episode



                                                      8
                    Lags in Procedures
Lag Edit Check Description …

Check that if the Assessment of Nausea
form has been marked YES for an
assessment period
 Then there is at least one episode of
 Nausea indicated on the Episode of Nausea
 form in the period since the last
 assessment was performed.



                                             9
                Lags in Procedures
Lag Edit Check Description …

                                           Assessment
                                              Form
       02-01-02        07:05


        02-01-02       08:04                  Nausea
                                           Episode Form




 OK!              02-01-02      07:35


                   02-01-02     07:55




                                                        10
                      Lags in Procedures
Lag Edit Check Description

                                                    Assessment
                                                       Form
                02-01-02       07:05


                    02-01-02   08:04                   Nausea
                                                    Episode Form




  Not OK!
No Nausea Episode
reported between
07:05 and 08:04


                                                                 11
                               Lags in Procedures
DCM Modeling

• Both forms modeled with Repeating
  Question Groups
  – Nausea Assessment Form uses Repeating
    Defaults for Scheduled Times
  – Episodes of Nausea Form uses the (internal)
    Repeat_sn field of the DCM Cursor for the
    episode number
• Forms collected only at the “1 to 24 Hour
  Post Op” Event


                                                  12
                    Lags in Procedures
Validation Procedure …

• Two Procedure Question Groups
  – Assessment Group
    • SCHEDULED_TIME, ACTUAL_DATE, ACTUAL_TIME   and EPISODE_YN
      questions available
    • Lag Depth of 1 specified for each question
  – Episode Group
    • ACTUAL_DATE and ACTUAL_TIME    questions available
• Question Groups not correlated
  – Forms collected at a single event



                                                              13
                       Lags in Procedures
Validation Procedure

• Qualifying Expressions
  – Assessment Group:
     • EPISODE_YN in (‘YES’,’NO’) to ignore any scheduled
       assessment which is Not Done
  – Episode Group:
     • Episode ACTUAL DATE TIME is between the lag Assessment
       DATE TIME and Current Assessment DATE TIME
• Check ‘Single Repeat Only’ on Episode Group
• Check ‘Create Placeholder’ on Episode Group
• Detail checks EPI$HAS_DATA = ‘N’



                                                                14
                         Lags in Procedures
Comparing Dates and Times

• Oracle Clinical stores Dates and Times as
  separate variables formatted as character
  strings: yyyymmdd and hhmmss
• Oracle Clinical Package function
  rxc_date.convert, combines and converts
  from OC’s format to native Oracle date
  datatype
  – allows simple date time comparisons



                                              15
                    Lags in Procedures
rxc_date.convert Function

     rxc_date.convert (OC_DATE, OC_TIME)
     RETURN date;

    • OC_DATE in YYYYMMDD format
       – Partial Date returns null
    • OC_TIME in HHMMSS format
       – Optional argument – 000000 assumed if absent
       – Time can be HH, HHMM or HHMMSS – 00 used to
         complete the 6 character time




                                                        16
                      Lags in Procedures
Episode Group Qualifying
Expression …
   EPI.actual_DateTime between
    asmt.actual_DateTime$L1
      and
    asmt.actual_DateTime

                     is coded
rxc_date.convert(epi.actual_date,epi.actual_time)
between
 rxc_date.convert(asmt.actual_date$L1,asmt.actual_time$L1)
 and
 rxc_date.convert(asmt.actual_date,asmt.actual_time)


             But this is not enough!
                                                             17
                        Lags in Procedures
Episode Group Qualifying
Expression

   Need to account for the first assessment!

  EPI.actual_DateTime between
   nvl(asmt.actual_DateTime$L1, ’01-JAN-1900’)
     and
   asmt.actual_DateTime

  If LAG variable doesn’t yet exist, the value is null!



                                                          18
                      Lags in Procedures
Detail Expression

 Create a discrepancy if

Asmt.EPISODE_YN=‘YES’ and EPI$HAS_DATA=‘N’


 Only concerned with               And if record found
 assessments which                 by the checking
 reported Nausea                   “create placeholder”




                                                          19
                   Lags in Procedures
Validation Program Structure

 Fetch Patient Data

  Initialize Assessment Lags to null
    Fetch Current Assessment Repeat where
        EPISODE_YN is YES or NO
       Fetch 1ST Episode Repeat where DateTime
       between last assessment and current
       assessment or create a null record if none
         Test for null record and that Current
         Assessment EPISODE_YN=‘YES’
         Set Lag Variables


                                                    20
                         Lags in Procedures
Limits on Lags

• Lags are initialized to null when the Patient
  Information Cursor is fetched
• Lags are set after post-detail code executes
• Always contain data from the previous
  occurrence of the Procedure question group
  – Independent of the Clinical Planned Event or
    Repeat SN
• Could overcome limits with manual
  initialization in pre-detail code

                                                   21
                    Lags in Procedures
Contact Information

       Steve Rifkin
       BioPharm Systems
       908 822 0552
       srifkin@biopharm.com




                                   22
              Lags in Procedures
Presenter Bio

 Steve Rifkin has over 15 years of Oracle Clinical
 experience. As an Oracle Consultant, and then a
 Practice Manager at Oracle Clinical consulting, Steve
 has assisted about 75 companies with implementation of
 Oracle Clinical and RDC, leading the implementation
 process, providing training and performing custom
 coding. Since joining Biopharm in 2000, Steve has been
 responsible for developing Oracle Clinical training
 courses, and providing training and implementation
 services for Biopharm clients.


                                                          23
                      Lags in Procedures
?


                     24
Lags in Procedures

More Related Content

Similar to Using Lag Variables in Oracle Clinical Procedures

Talk-Foutse-SrangeLoop.pdf
Talk-Foutse-SrangeLoop.pdfTalk-Foutse-SrangeLoop.pdf
Talk-Foutse-SrangeLoop.pdf
Foutse Khomh
 
Monitoring EQA / PT Performance
Monitoring EQA / PT PerformanceMonitoring EQA / PT Performance
Monitoring EQA / PT Performance
Randox
 
Quality assignment(1)
Quality assignment(1)Quality assignment(1)
Quality assignment(1)Reham Mokhtar
 
NG BB 46 Mistake Proofing
NG BB 46 Mistake ProofingNG BB 46 Mistake Proofing
NG BB 46 Mistake ProofingLeanleaders.org
 
Asq Auto Webinar Spc Common Questions Web
Asq Auto Webinar Spc Common Questions WebAsq Auto Webinar Spc Common Questions Web
Asq Auto Webinar Spc Common Questions Web
Walter Oldeck
 
Clinical Data Classification of alzheimer's disease
Clinical Data Classification of alzheimer's diseaseClinical Data Classification of alzheimer's disease
Clinical Data Classification of alzheimer's diseaseGeorge Kalangi
 
The Pursuit of Quality - Chasing Tornadoes or Just Hot Air?
The Pursuit of Quality - Chasing Tornadoes or Just Hot Air?The Pursuit of Quality - Chasing Tornadoes or Just Hot Air?
The Pursuit of Quality - Chasing Tornadoes or Just Hot Air?
Paul Gerrard
 
Are Your Continuous Tests Too Fragile for Agile?
Are Your Continuous Tests Too Fragile for Agile?Are Your Continuous Tests Too Fragile for Agile?
Are Your Continuous Tests Too Fragile for Agile?
Erika Barron
 
Verification and Validation with Innoslate
Verification and Validation with InnoslateVerification and Validation with Innoslate
Verification and Validation with Innoslate
Elizabeth Steiner
 
Dealing with the Three Horrible Problems in Verification
Dealing with the Three Horrible Problems in VerificationDealing with the Three Horrible Problems in Verification
Dealing with the Three Horrible Problems in VerificationDVClub
 
Fixfindprodissues
FixfindprodissuesFixfindprodissues
FixfindprodissuesDave Stokes
 
Fixfindprodissues
FixfindprodissuesFixfindprodissues
Fixfindprodissues
Dave Stokes
 
SPL FDA ESG Green Belt Project
SPL FDA ESG Green Belt ProjectSPL FDA ESG Green Belt Project
SPL FDA ESG Green Belt Project
Jay Prakash
 
An Approach to estimate Software Testing
An Approach to estimate Software TestingAn Approach to estimate Software Testing
An Approach to estimate Software Testing
Agile Vietnam
 
Hybrid system architecture overview
Hybrid system architecture overviewHybrid system architecture overview
Hybrid system architecture overview
Jesse Wang
 
Things Could Get Worse: Ideas About Regression Testing
Things Could Get Worse: Ideas About Regression TestingThings Could Get Worse: Ideas About Regression Testing
Things Could Get Worse: Ideas About Regression Testing
TechWell
 
Finding Bugs Faster with Assertion Based Verification (ABV)
Finding Bugs Faster with Assertion Based Verification (ABV)Finding Bugs Faster with Assertion Based Verification (ABV)
Finding Bugs Faster with Assertion Based Verification (ABV)DVClub
 

Similar to Using Lag Variables in Oracle Clinical Procedures (20)

Talk-Foutse-SrangeLoop.pdf
Talk-Foutse-SrangeLoop.pdfTalk-Foutse-SrangeLoop.pdf
Talk-Foutse-SrangeLoop.pdf
 
Monitoring EQA / PT Performance
Monitoring EQA / PT PerformanceMonitoring EQA / PT Performance
Monitoring EQA / PT Performance
 
Quality assignment(1)
Quality assignment(1)Quality assignment(1)
Quality assignment(1)
 
NG BB 46 Mistake Proofing
NG BB 46 Mistake ProofingNG BB 46 Mistake Proofing
NG BB 46 Mistake Proofing
 
Asq Auto Webinar Spc Common Questions Web
Asq Auto Webinar Spc Common Questions WebAsq Auto Webinar Spc Common Questions Web
Asq Auto Webinar Spc Common Questions Web
 
Clinical Data Classification of alzheimer's disease
Clinical Data Classification of alzheimer's diseaseClinical Data Classification of alzheimer's disease
Clinical Data Classification of alzheimer's disease
 
Seals 2nd campaign results
Seals 2nd campaign resultsSeals 2nd campaign results
Seals 2nd campaign results
 
The Pursuit of Quality - Chasing Tornadoes or Just Hot Air?
The Pursuit of Quality - Chasing Tornadoes or Just Hot Air?The Pursuit of Quality - Chasing Tornadoes or Just Hot Air?
The Pursuit of Quality - Chasing Tornadoes or Just Hot Air?
 
Are Your Continuous Tests Too Fragile for Agile?
Are Your Continuous Tests Too Fragile for Agile?Are Your Continuous Tests Too Fragile for Agile?
Are Your Continuous Tests Too Fragile for Agile?
 
Verification and Validation with Innoslate
Verification and Validation with InnoslateVerification and Validation with Innoslate
Verification and Validation with Innoslate
 
Dealing with the Three Horrible Problems in Verification
Dealing with the Three Horrible Problems in VerificationDealing with the Three Horrible Problems in Verification
Dealing with the Three Horrible Problems in Verification
 
Asq pitch
Asq pitchAsq pitch
Asq pitch
 
Fixfindprodissues
FixfindprodissuesFixfindprodissues
Fixfindprodissues
 
Fixfindprodissues
FixfindprodissuesFixfindprodissues
Fixfindprodissues
 
SPL FDA ESG Green Belt Project
SPL FDA ESG Green Belt ProjectSPL FDA ESG Green Belt Project
SPL FDA ESG Green Belt Project
 
Catapult DOE Case Study
Catapult DOE Case StudyCatapult DOE Case Study
Catapult DOE Case Study
 
An Approach to estimate Software Testing
An Approach to estimate Software TestingAn Approach to estimate Software Testing
An Approach to estimate Software Testing
 
Hybrid system architecture overview
Hybrid system architecture overviewHybrid system architecture overview
Hybrid system architecture overview
 
Things Could Get Worse: Ideas About Regression Testing
Things Could Get Worse: Ideas About Regression TestingThings Could Get Worse: Ideas About Regression Testing
Things Could Get Worse: Ideas About Regression Testing
 
Finding Bugs Faster with Assertion Based Verification (ABV)
Finding Bugs Faster with Assertion Based Verification (ABV)Finding Bugs Faster with Assertion Based Verification (ABV)
Finding Bugs Faster with Assertion Based Verification (ABV)
 

More from Perficient

Freedom and Flexibility with Siebel Clinical (CTMS) Open UI
Freedom and Flexibility with Siebel Clinical (CTMS) Open UIFreedom and Flexibility with Siebel Clinical (CTMS) Open UI
Freedom and Flexibility with Siebel Clinical (CTMS) Open UIPerficient
 
Managing Global Studies with Oracle's Siebel Clinical Trial Management System...
Managing Global Studies with Oracle's Siebel Clinical Trial Management System...Managing Global Studies with Oracle's Siebel Clinical Trial Management System...
Managing Global Studies with Oracle's Siebel Clinical Trial Management System...Perficient
 
How to Rapidly Configure Oracle Life Sciences Data Hub (LSH) to Support the M...
How to Rapidly Configure Oracle Life Sciences Data Hub (LSH) to Support the M...How to Rapidly Configure Oracle Life Sciences Data Hub (LSH) to Support the M...
How to Rapidly Configure Oracle Life Sciences Data Hub (LSH) to Support the M...Perficient
 
Cloud-based vs. On-site CTMS - Which is Right for Your Organization?
Cloud-based vs. On-site CTMS - Which is Right for Your Organization?Cloud-based vs. On-site CTMS - Which is Right for Your Organization?
Cloud-based vs. On-site CTMS - Which is Right for Your Organization?Perficient
 
Clinical Trial Supply Management with Siebel CTMS
Clinical Trial Supply Management with Siebel CTMSClinical Trial Supply Management with Siebel CTMS
Clinical Trial Supply Management with Siebel CTMSPerficient
 
Using Oracle Health Sciences Data Management Workbench to Optimize the Manage...
Using Oracle Health Sciences Data Management Workbench to Optimize the Manage...Using Oracle Health Sciences Data Management Workbench to Optimize the Manage...
Using Oracle Health Sciences Data Management Workbench to Optimize the Manage...Perficient
 
Integrating Oracle Argus Safety with other Clinical Systems Using Argus Inter...
Integrating Oracle Argus Safety with other Clinical Systems Using Argus Inter...Integrating Oracle Argus Safety with other Clinical Systems Using Argus Inter...
Integrating Oracle Argus Safety with other Clinical Systems Using Argus Inter...Perficient
 
How St. Jude Medical Manages Oracle Clinical Studies Using Accel-Copy
How St. Jude Medical Manages Oracle Clinical Studies Using Accel-CopyHow St. Jude Medical Manages Oracle Clinical Studies Using Accel-Copy
How St. Jude Medical Manages Oracle Clinical Studies Using Accel-CopyPerficient
 
Evaluating and Investigating Drug Safety Signals with Public Databases
Evaluating and Investigating Drug Safety Signals with Public DatabasesEvaluating and Investigating Drug Safety Signals with Public Databases
Evaluating and Investigating Drug Safety Signals with Public DatabasesPerficient
 
Plug & Play: Benefits of Out-of-the-Box Clinical Development Analytics (CDA) ...
Plug & Play: Benefits of Out-of-the-Box Clinical Development Analytics (CDA) ...Plug & Play: Benefits of Out-of-the-Box Clinical Development Analytics (CDA) ...
Plug & Play: Benefits of Out-of-the-Box Clinical Development Analytics (CDA) ...Perficient
 
The Perils of Clinical Trial Budgeting
The Perils of Clinical Trial BudgetingThe Perils of Clinical Trial Budgeting
The Perils of Clinical Trial Budgeting
Perficient
 
2013 OHSUG - Use Cases for using the Program Type View in Oracle Life Science...
2013 OHSUG - Use Cases for using the Program Type View in Oracle Life Science...2013 OHSUG - Use Cases for using the Program Type View in Oracle Life Science...
2013 OHSUG - Use Cases for using the Program Type View in Oracle Life Science...
Perficient
 
2013 OHSUG - The Ins and Outs of CTMS Data Migration
2013 OHSUG - The Ins and Outs of CTMS Data Migration2013 OHSUG - The Ins and Outs of CTMS Data Migration
2013 OHSUG - The Ins and Outs of CTMS Data Migration
Perficient
 
2013 OHSUG - Siebel Clinical Integration with Other Systems
2013 OHSUG - Siebel Clinical Integration with Other Systems2013 OHSUG - Siebel Clinical Integration with Other Systems
2013 OHSUG - Siebel Clinical Integration with Other Systems
Perficient
 
2013 OHSUG - Sharing CTMS Data between Sponsors and Contract Research Organiz...
2013 OHSUG - Sharing CTMS Data between Sponsors and Contract Research Organiz...2013 OHSUG - Sharing CTMS Data between Sponsors and Contract Research Organiz...
2013 OHSUG - Sharing CTMS Data between Sponsors and Contract Research Organiz...
Perficient
 
2013 OHSUG - Oracle Clinical and RDC Training for Data Management and Clinica...
2013 OHSUG - Oracle Clinical and RDC Training for Data Management and Clinica...2013 OHSUG - Oracle Clinical and RDC Training for Data Management and Clinica...
2013 OHSUG - Oracle Clinical and RDC Training for Data Management and Clinica...
Perficient
 
2013 OHSUG - Merging Multiple Drug Safety and Pharmacovigilance Databases int...
2013 OHSUG - Merging Multiple Drug Safety and Pharmacovigilance Databases int...2013 OHSUG - Merging Multiple Drug Safety and Pharmacovigilance Databases int...
2013 OHSUG - Merging Multiple Drug Safety and Pharmacovigilance Databases int...
Perficient
 
2013 OHSUG - Integration of Argus and Other Products Using the E2B Interchange
2013 OHSUG - Integration of Argus and Other Products Using the E2B Interchange2013 OHSUG - Integration of Argus and Other Products Using the E2B Interchange
2013 OHSUG - Integration of Argus and Other Products Using the E2B Interchange
Perficient
 
2013 OHSUG - Use Cases for Using the Program Type View in Oracle Life Science...
2013 OHSUG - Use Cases for Using the Program Type View in Oracle Life Science...2013 OHSUG - Use Cases for Using the Program Type View in Oracle Life Science...
2013 OHSUG - Use Cases for Using the Program Type View in Oracle Life Science...
Perficient
 
2013 OHSUG - Facilitating Pharmacovigilance Globalization with Process Reengi...
2013 OHSUG - Facilitating Pharmacovigilance Globalization with Process Reengi...2013 OHSUG - Facilitating Pharmacovigilance Globalization with Process Reengi...
2013 OHSUG - Facilitating Pharmacovigilance Globalization with Process Reengi...
Perficient
 

More from Perficient (20)

Freedom and Flexibility with Siebel Clinical (CTMS) Open UI
Freedom and Flexibility with Siebel Clinical (CTMS) Open UIFreedom and Flexibility with Siebel Clinical (CTMS) Open UI
Freedom and Flexibility with Siebel Clinical (CTMS) Open UI
 
Managing Global Studies with Oracle's Siebel Clinical Trial Management System...
Managing Global Studies with Oracle's Siebel Clinical Trial Management System...Managing Global Studies with Oracle's Siebel Clinical Trial Management System...
Managing Global Studies with Oracle's Siebel Clinical Trial Management System...
 
How to Rapidly Configure Oracle Life Sciences Data Hub (LSH) to Support the M...
How to Rapidly Configure Oracle Life Sciences Data Hub (LSH) to Support the M...How to Rapidly Configure Oracle Life Sciences Data Hub (LSH) to Support the M...
How to Rapidly Configure Oracle Life Sciences Data Hub (LSH) to Support the M...
 
Cloud-based vs. On-site CTMS - Which is Right for Your Organization?
Cloud-based vs. On-site CTMS - Which is Right for Your Organization?Cloud-based vs. On-site CTMS - Which is Right for Your Organization?
Cloud-based vs. On-site CTMS - Which is Right for Your Organization?
 
Clinical Trial Supply Management with Siebel CTMS
Clinical Trial Supply Management with Siebel CTMSClinical Trial Supply Management with Siebel CTMS
Clinical Trial Supply Management with Siebel CTMS
 
Using Oracle Health Sciences Data Management Workbench to Optimize the Manage...
Using Oracle Health Sciences Data Management Workbench to Optimize the Manage...Using Oracle Health Sciences Data Management Workbench to Optimize the Manage...
Using Oracle Health Sciences Data Management Workbench to Optimize the Manage...
 
Integrating Oracle Argus Safety with other Clinical Systems Using Argus Inter...
Integrating Oracle Argus Safety with other Clinical Systems Using Argus Inter...Integrating Oracle Argus Safety with other Clinical Systems Using Argus Inter...
Integrating Oracle Argus Safety with other Clinical Systems Using Argus Inter...
 
How St. Jude Medical Manages Oracle Clinical Studies Using Accel-Copy
How St. Jude Medical Manages Oracle Clinical Studies Using Accel-CopyHow St. Jude Medical Manages Oracle Clinical Studies Using Accel-Copy
How St. Jude Medical Manages Oracle Clinical Studies Using Accel-Copy
 
Evaluating and Investigating Drug Safety Signals with Public Databases
Evaluating and Investigating Drug Safety Signals with Public DatabasesEvaluating and Investigating Drug Safety Signals with Public Databases
Evaluating and Investigating Drug Safety Signals with Public Databases
 
Plug & Play: Benefits of Out-of-the-Box Clinical Development Analytics (CDA) ...
Plug & Play: Benefits of Out-of-the-Box Clinical Development Analytics (CDA) ...Plug & Play: Benefits of Out-of-the-Box Clinical Development Analytics (CDA) ...
Plug & Play: Benefits of Out-of-the-Box Clinical Development Analytics (CDA) ...
 
The Perils of Clinical Trial Budgeting
The Perils of Clinical Trial BudgetingThe Perils of Clinical Trial Budgeting
The Perils of Clinical Trial Budgeting
 
2013 OHSUG - Use Cases for using the Program Type View in Oracle Life Science...
2013 OHSUG - Use Cases for using the Program Type View in Oracle Life Science...2013 OHSUG - Use Cases for using the Program Type View in Oracle Life Science...
2013 OHSUG - Use Cases for using the Program Type View in Oracle Life Science...
 
2013 OHSUG - The Ins and Outs of CTMS Data Migration
2013 OHSUG - The Ins and Outs of CTMS Data Migration2013 OHSUG - The Ins and Outs of CTMS Data Migration
2013 OHSUG - The Ins and Outs of CTMS Data Migration
 
2013 OHSUG - Siebel Clinical Integration with Other Systems
2013 OHSUG - Siebel Clinical Integration with Other Systems2013 OHSUG - Siebel Clinical Integration with Other Systems
2013 OHSUG - Siebel Clinical Integration with Other Systems
 
2013 OHSUG - Sharing CTMS Data between Sponsors and Contract Research Organiz...
2013 OHSUG - Sharing CTMS Data between Sponsors and Contract Research Organiz...2013 OHSUG - Sharing CTMS Data between Sponsors and Contract Research Organiz...
2013 OHSUG - Sharing CTMS Data between Sponsors and Contract Research Organiz...
 
2013 OHSUG - Oracle Clinical and RDC Training for Data Management and Clinica...
2013 OHSUG - Oracle Clinical and RDC Training for Data Management and Clinica...2013 OHSUG - Oracle Clinical and RDC Training for Data Management and Clinica...
2013 OHSUG - Oracle Clinical and RDC Training for Data Management and Clinica...
 
2013 OHSUG - Merging Multiple Drug Safety and Pharmacovigilance Databases int...
2013 OHSUG - Merging Multiple Drug Safety and Pharmacovigilance Databases int...2013 OHSUG - Merging Multiple Drug Safety and Pharmacovigilance Databases int...
2013 OHSUG - Merging Multiple Drug Safety and Pharmacovigilance Databases int...
 
2013 OHSUG - Integration of Argus and Other Products Using the E2B Interchange
2013 OHSUG - Integration of Argus and Other Products Using the E2B Interchange2013 OHSUG - Integration of Argus and Other Products Using the E2B Interchange
2013 OHSUG - Integration of Argus and Other Products Using the E2B Interchange
 
2013 OHSUG - Use Cases for Using the Program Type View in Oracle Life Science...
2013 OHSUG - Use Cases for Using the Program Type View in Oracle Life Science...2013 OHSUG - Use Cases for Using the Program Type View in Oracle Life Science...
2013 OHSUG - Use Cases for Using the Program Type View in Oracle Life Science...
 
2013 OHSUG - Facilitating Pharmacovigilance Globalization with Process Reengi...
2013 OHSUG - Facilitating Pharmacovigilance Globalization with Process Reengi...2013 OHSUG - Facilitating Pharmacovigilance Globalization with Process Reengi...
2013 OHSUG - Facilitating Pharmacovigilance Globalization with Process Reengi...
 

Using Lag Variables in Oracle Clinical Procedures

  • 1. OHSUG Annual Conference October 16-19, 2011 Toronto, Ontario Canada Using Lag Variables in Oracle Clinical Procedures Steven Rifkin Copyright © 2011 BioPharm Systems, Inc
  • 2. Topics • Setting up Lags in a procedure • Lag Example – Description of the forms and required edit check – Modeling the Forms – Writing the validation procedure – Structure of the procedure 2 Lags in Oracle Clinical Lags in Procedures
  • 3. Lags … • Lags retrieve previous instances of the response to a question • Lag Aggregates summarize the previous instances • Can specify how many previous responses are remembered (depth) and whether to count null responses • Defined on the Procedure Questions Screen 3 Lags in Procedures
  • 4. Lags … Specify Lag Depth to Define if the aggregate of create Lags the Lags are available Checks means to include nulls in the lag count 4 Lags in Procedures
  • 5. Lags • Lags Variables are referenced <alias>$<question name>$Ln for value <alias>$<question name>$In for response_id <alias>$<question name>$Tn for entry_ts • Aggregate Lag Values are referenced <alias>$<question name>$fc where fc is AV, MN, MX, SM, or CT 5 Lags in Procedures
  • 6. Lag Example … V_NAUSEA_CHECK 6 Lags in Procedures
  • 7. Lag Example … Make as Assessment of Nausea at scheduled times and respond ‘Yes’ if there was an Episode of Nausea since the previous Assessment If ‘YES’ record the episode(s) on the Episodes of Nausea Form 7 Lags in Procedures
  • 8. Lag Example Record Date and Time of each Episode of Nausea and the intensity of the episode 8 Lags in Procedures
  • 9. Lag Edit Check Description … Check that if the Assessment of Nausea form has been marked YES for an assessment period Then there is at least one episode of Nausea indicated on the Episode of Nausea form in the period since the last assessment was performed. 9 Lags in Procedures
  • 10. Lag Edit Check Description … Assessment Form 02-01-02 07:05 02-01-02 08:04 Nausea Episode Form OK! 02-01-02 07:35 02-01-02 07:55 10 Lags in Procedures
  • 11. Lag Edit Check Description Assessment Form 02-01-02 07:05 02-01-02 08:04 Nausea Episode Form Not OK! No Nausea Episode reported between 07:05 and 08:04 11 Lags in Procedures
  • 12. DCM Modeling • Both forms modeled with Repeating Question Groups – Nausea Assessment Form uses Repeating Defaults for Scheduled Times – Episodes of Nausea Form uses the (internal) Repeat_sn field of the DCM Cursor for the episode number • Forms collected only at the “1 to 24 Hour Post Op” Event 12 Lags in Procedures
  • 13. Validation Procedure … • Two Procedure Question Groups – Assessment Group • SCHEDULED_TIME, ACTUAL_DATE, ACTUAL_TIME and EPISODE_YN questions available • Lag Depth of 1 specified for each question – Episode Group • ACTUAL_DATE and ACTUAL_TIME questions available • Question Groups not correlated – Forms collected at a single event 13 Lags in Procedures
  • 14. Validation Procedure • Qualifying Expressions – Assessment Group: • EPISODE_YN in (‘YES’,’NO’) to ignore any scheduled assessment which is Not Done – Episode Group: • Episode ACTUAL DATE TIME is between the lag Assessment DATE TIME and Current Assessment DATE TIME • Check ‘Single Repeat Only’ on Episode Group • Check ‘Create Placeholder’ on Episode Group • Detail checks EPI$HAS_DATA = ‘N’ 14 Lags in Procedures
  • 15. Comparing Dates and Times • Oracle Clinical stores Dates and Times as separate variables formatted as character strings: yyyymmdd and hhmmss • Oracle Clinical Package function rxc_date.convert, combines and converts from OC’s format to native Oracle date datatype – allows simple date time comparisons 15 Lags in Procedures
  • 16. rxc_date.convert Function rxc_date.convert (OC_DATE, OC_TIME) RETURN date; • OC_DATE in YYYYMMDD format – Partial Date returns null • OC_TIME in HHMMSS format – Optional argument – 000000 assumed if absent – Time can be HH, HHMM or HHMMSS – 00 used to complete the 6 character time 16 Lags in Procedures
  • 17. Episode Group Qualifying Expression … EPI.actual_DateTime between asmt.actual_DateTime$L1 and asmt.actual_DateTime is coded rxc_date.convert(epi.actual_date,epi.actual_time) between rxc_date.convert(asmt.actual_date$L1,asmt.actual_time$L1) and rxc_date.convert(asmt.actual_date,asmt.actual_time) But this is not enough! 17 Lags in Procedures
  • 18. Episode Group Qualifying Expression Need to account for the first assessment! EPI.actual_DateTime between nvl(asmt.actual_DateTime$L1, ’01-JAN-1900’) and asmt.actual_DateTime If LAG variable doesn’t yet exist, the value is null! 18 Lags in Procedures
  • 19. Detail Expression Create a discrepancy if Asmt.EPISODE_YN=‘YES’ and EPI$HAS_DATA=‘N’ Only concerned with And if record found assessments which by the checking reported Nausea “create placeholder” 19 Lags in Procedures
  • 20. Validation Program Structure Fetch Patient Data Initialize Assessment Lags to null Fetch Current Assessment Repeat where EPISODE_YN is YES or NO Fetch 1ST Episode Repeat where DateTime between last assessment and current assessment or create a null record if none Test for null record and that Current Assessment EPISODE_YN=‘YES’ Set Lag Variables 20 Lags in Procedures
  • 21. Limits on Lags • Lags are initialized to null when the Patient Information Cursor is fetched • Lags are set after post-detail code executes • Always contain data from the previous occurrence of the Procedure question group – Independent of the Clinical Planned Event or Repeat SN • Could overcome limits with manual initialization in pre-detail code 21 Lags in Procedures
  • 22. Contact Information Steve Rifkin BioPharm Systems 908 822 0552 srifkin@biopharm.com 22 Lags in Procedures
  • 23. Presenter Bio Steve Rifkin has over 15 years of Oracle Clinical experience. As an Oracle Consultant, and then a Practice Manager at Oracle Clinical consulting, Steve has assisted about 75 companies with implementation of Oracle Clinical and RDC, leading the implementation process, providing training and performing custom coding. Since joining Biopharm in 2000, Steve has been responsible for developing Oracle Clinical training courses, and providing training and implementation services for Biopharm clients. 23 Lags in Procedures
  • 24. ? 24 Lags in Procedures