Regulatory Open Forum

 View Only
Expand all | Collapse all

Spreadsheet Validation

  • 1.  Spreadsheet Validation

    Posted 18-Oct-2019 15:51
    I have and excel workbook which I use to calculate Key Risk Indicator metrics for the centralized monitoring of clinical trials. I believe I should validate it for its intended use (calculating metrics for trial management purpose) but I can't find a guidance that applies to the validation of a workbook that is not used to create, modify, maintain, archive, retrieve, or transmit clinical data in the clinical trial setting (not in the manufacturing setting).
    Where should I look? Thanks.

    ------------------------------
    Adam Beauregard RAC
    Data Manager
    Quebec QC
    Canada
    ------------------------------


  • 2.  RE: Spreadsheet Validation

    Posted 18-Oct-2019 18:28

    Stop looking, you don't need a guidance document. Just validate it.

    Validate an Excel workbook to prove that it calculates correctly, not to satisfy some regulatory requirement. Develop some test cases with input data for which you know the result. If you have access to the formulas, include tests at the boundary conditions. For example, a "greater than" logic decision could have been put in place instead of a "greater than or equal to". This is positive white box testing.

    You also conduct negative tests. Put in known bad data and check that the workbook recognizes it as bad and don't process it as if it were good.

    As with any software validation, create protocols and reports, review and approve, and retain as quality records.



    ------------------------------
    Dan O'Leary CQA, CQE
    Swanzey NH
    United States
    ------------------------------



  • 3.  RE: Spreadsheet Validation

    Posted 19-Oct-2019 02:48
    ​Excellent answer, Dan!

    ------------------------------
    Oscar Banz
    Head of QM & RA
    Grenchen
    Switzerland
    ------------------------------



  • 4.  RE: Spreadsheet Validation

    Posted 19-Oct-2019 09:45
    I agree. If you are using Excel (or any software) wouldn't you ALWAYS want to know that it does what you expect it to do? Why do you need something from a regulation, standard or guidance to have you do that?

    ------------------------------
    Regards,
    Mark Swanson, ASQ CBA, CMQ/OE, CQE ASQ, MBA
    Becker MN
    United States
    ------------------------------



  • 5.  RE: Spreadsheet Validation

    Posted 19-Oct-2019 15:59
    My question is the source of discussions with different people arguing that my workbook needs to be validated to comply with 21 CFR part 11 or the Guidance for Industry - Computerized Systems Used in Clinical Investigations or the GAMP guidance. I don't think my workbook corresponds to the systems those guidances are referring to but I still think it must be validated. I was just looking for a guidance that would clearly state to what extent my workbook needs to be validated (to close the discussion with people saying that I need an audit trail within my workbook, among other things). I was also looking for something written for arguing that my workbook needs to be validated because it serves a certain purpose but that not all the workbooks we use internally need to be validated and maintained under change control.
    I intend to validate it simply to show that it does what it is expected to do (using three different datasets and confirming that the calculated results are correct and that the macros work as intended). I will document my validation with the documents you mentioned, and I think it should be sufficient.
    Thanks for your insight.

    ------------------------------
    Adam Beauregard RAC
    Data Manager
    Quebec QC
    Canada
    ------------------------------



  • 6.  RE: Spreadsheet Validation

    Posted 20-Oct-2019 10:29
    First, 21CFR11 has little to do with validation of software (that is focused on Electronic Records and Electronic Signature ONLY). Do not confuse this with requirements to validate software.

    If your spreadsheet is the record that remains, then yes it must have audit trails (all records require that changes must be identifiable)--this IS a 21CFR11 requirement that flow from records requirements (21CFR820, Subparts M & D or other regulatory requirements for data integrity).

    Again though, this is different than software validation (checking that the spreadsheet produces the correct output) which you do for your own reasons.

    ------------------------------
    Regards,
    Mark Swanson, ASQ CBA, CMQ/OE, CQE ASQ, MBA
    Becker MN
    United States
    ------------------------------



  • 7.  RE: Spreadsheet Validation

    Posted 21-Oct-2019 10:15
    This is going to come across as a bit biased, but: If you are looking for why, when, where, who and HOW on spreadsheet validation, there is an online course on "Spreadsheet Validation" that provides a step-by-step path. It is at MyFDAAcademy.com. (Disclosure: I'm the author of that course)

    ------------------------------
    Barry Ashar
    Makromed, Inc.
    Salem NH
    United States
    ------------------------------



  • 8.  RE: Spreadsheet Validation

    Posted 20-Oct-2019 03:10
    Hi Adam
    My feeling is do not overthink this, treat it like any validation:
    • Lock cells, formulae etc that must not be changed
    • write an SOP including how to ensure authenticity and avoid accidental changes (load from template in a location you can not save changes to)
    • Design a worst case challenge for key areas
    • Work out the correct output from the spreadsheet (results of formulae etc)
    • run some tests to confirm in all combinations of worst cases Excel does what you expect
    • review your result - do they convince you everything is working as expected

    Usual areas to watch:
    • number rounding in calculations
    • borderline classification on conditional formatting
    • handling of spaces and special characters (accents etc in patient's name)
    • handling in different revs of Excel an OS (test on pc, apple, iPad etc whatever may be use)

    In short, use your experience to think of everything that could go wrong, then prove it doesn't. Don't worry what I or anybody else says, convince yourself and as you are the most experienced user of the spreadsheet, that's probably enough!

    Good luck

    Neil

    ------------------------------
    Neil Armstrong FRAPS
    CEO MeddiQuest Limited
    Peterborough
    United Kingdom
    ------------------------------



  • 9.  RE: Spreadsheet Validation

    Posted 20-Oct-2019 13:56
    Adam, it sounds like you're on track to do something appropriate with your spreadsheet, and there's excellent advice in this thread.​

    If you also need to discuss the relevant US FDA requirements with your colleagues, 21 CFR 820.70 (i) might be applicable:
    Automated processes. When computers or automated data processing systems are used as part of production or the quality system, the manufacturer shall validate computer software for its intended use according to an established protocol. All software changes shall be validated before approval and issuance. These validation activities and results shall be documented.

    And the associated guidance document:  https://www.fda.gov/media/73141/download
    General Principles of Software Validation, covering
    • Software used as a component, part, or accessory of a medical device;
    • Software that is itself a medical device (e.g., blood establishment software);
    • Software used in the production of a device (e.g., programmable logic controllers in manufacturing equipment); and
    • Software used in implementation of the device manufacturer's quality system (e.g., software that records and maintains the device history record).

    This document is based on generally recognized software validation principles and, therefore, can be applied to any software. For FDA purposes, this guidance applies to any software related to a regulated medical device, as defined by Section 201(h) of the Federal Food, Drug, and Cosmetic Act (the Act) and by current FDA software and regulatory policy. This document does not specifically identify which software is or is not regulated.

    In general, if you care about the output of your software, it's best to do some validation. If the output of your software could directly or indirectly affect patient safety, you must validate it for your purposes. All the guidances sort of say that, though maybe not as clearly as you might hope for.

    ------------------------------
    Anne LeBlanc
    Manager, Regulatory Affairs
    United States
    ------------------------------



  • 10.  RE: Spreadsheet Validation

    Posted 21-Oct-2019 17:06
    Adam,
    Great information here.  My addition is to make you aware of TIR36 - Validation of Software for Regulated Processes.  This is a great tool to assist in guiding you through the validation.  It also has an example for simple spreadsheets.  
    Good luck!

    ------------------------------
    Nicholas Wong RAC
    Regulatory Affairs Manager
    Louisville CO
    United States
    ------------------------------



  • 11.  RE: Spreadsheet Validation

    Posted 21-Oct-2019 19:02
    Edited by Kevin Randall 21-Oct-2019 19:17

    Regarding an Excel workbook used to calculate Key Risk Indicator metrics for the centralized monitoring of clinical investigation of products destined for the U.S., FDA may interpret that such metrics are part of the trial-monitoring records called for by FDA trial-monitoring regulations.  If FDA maintained such a stance, and if the associated records and signatures were electronic records/signatures, then 21 CFR Part 11 would apply.

     

    In such an event, it's very important to remember that validation of the associated computerized systems (i.e., "software validation") is in fact a crucial element specifically demanded by Part 11 [but not to be confused with other similar (yet sometimes overlapping) software validation requirements like 21 CFR 820.70(i)].  Indeed, it would not be possible to comply with 21 CFR Part 11 unless its definitive software validation requirements are given due consideration.

     

    This remains true regardless of any FDA enforcement discretion that may be applied.  For example, FDA Part 11 enforcement discretion guidance states that FDA nonetheless still expects that your decision to validate computerized systems (i.e., software) generating electronic records, and the extent of the validation, will take into account the impact the systems have on your ability to meet predicate rule (such as clinical trial monitoring record) requirements.  FDA told me that it will still take enforcement action if Part 11 record safety concerns are identified.

     

    Remember also that for such Part 11 software validation, FDA specifically refers us to its guidance document on general principles of software validation and to GAMP.  Therefore, Anne LeBlanc's corresponding reference to FDA's guidance document is wise indeed.  Moreover, AAMI TIR36 [containing organic and distinct 21 CFR 820.70(i) and Part 11 validation guidance] wisely mentioned by Nicholas Wong was forged with key participation from FDA itself.  Accordingly, the dismissal of such longstanding guidance may not be in everyone's best interest.

     

    Also, if the aforesaid workbooks are part of a trial Sponsor's or User's ISO 13485 quality management system, then the general validation for intended use of such workbooks would be demanded by that standard.  In that case, I've found ISO/TR 80002-2 (the international adaptation of AAMI TIR 36) to be quite useful for answering the specific questions Adam Beauregard raised.

     

    On that note, it seems one final aspect of Adam's question may not yet have been answered (i.e., "…looking for something written for arguing that my workbook needs to be validated because it serves a certain purpose but that not all the workbooks we use internally need to be validated…").  For that, I leverage the GAMP 5 definition for Category 3 Off the Shelf, non-configured software which is generally exempted from validation by GAMP 5.  I also recommend leveraging and adapting the basic principle embodied by FDA's statement that "…validation would not be important for a word processor used only to generate SOPs…"

     

    Hope this helps.



    ------------------------------
    Kevin Randall, ASQ CQA, RAC (U.S., Canada, Europe)
    Principal Consultant
    ComplianceAcuity, Inc.
    Golden CO
    United States
    www.complianceacuity.com
    © Copyright 2019 by ComplianceAcuity, Inc. All rights reserved.
    ------------------------------



  • 12.  RE: Spreadsheet Validation

    Posted 21-Oct-2019 19:11
    The preceding post edited to remove the accidental reference to ISO 9001.

    ------------------------------
    Kevin Randall, ASQ CQA, RAC (U.S., Canada, Europe)
    Principal Consultant
    ComplianceAcuity, Inc.
    Golden CO
    United States
    www.complianceacuity.com
    © Copyright 2019 by ComplianceAcuity, Inc. All rights reserved.
    ------------------------------



  • 13.  RE: Spreadsheet Validation

    Posted 24-Oct-2019 13:27

    Thanks to everyone who provided insights, I now understand that no single guidance specifically dictates to what extent an excel workbook used to calculate Key Risk Indicators metrics and produce centralized monitoring reports must be validated, but that several guidances collectively provide a good idea of what is expected from regulatory agencies. As the following excerpt from the General Software Validation guidance indicates: …it is not possible to state in one document all of the specific validation elements that are applicable. However, a general application of several broad concepts can be used successfully as guidance for software validation. These broad concepts provide an acceptable framework for building a comprehensive approach to software validation.

    Namely, ISO 13485 and the General Principles of Software Validation guidance refer to medical devices but you can consider the following statement: All production and/or quality system software, even if purchased off-the-shelf, should have documented requirements that fully define its intended use, and information against which testing results and other evidence can be compared, to show that the software is validated for its intended use.

    Similarly, 21 C.F.R. §820.70(i), AAMI TIR36 and GAMP are intended for manufacturing, but you can consider the following statement: [the manufacturer] shall validate computer software for its intended use according to an established protocol. All software changes shall be validated before approval and issuance. These validation activities and results shall be documented.

    (Regarding GAMP Category, I actually believe my workbook would correspond to a Category 5 as it is meant to be customized to meet the specific needs of individual studies and it includes VBA macros to speed-up the production of centralized monitoring reports. However, since it is not involved in manufacturing, I believe the validation approach recommended for GAMP Category 5 software (i.e. IQ, OQ, PQ, etc.) would not apply to my workbook. Nevertheless, I think performing a risk assessment and referring to it in the Validation Plan would be a good idea to justify the extent of validation.)

    I actually think my workbook resembles laboratory equipment more than medical devices or manufacturing systems and the PDA Technical Report 80 section 6.5.3 provides the following statement: Many laboratories use customized spreadsheets for calculations. To avoid possible data breaches, the Quality Unit should validate the customized spreadsheet template for its intended use and protect it by restricting permissions to alter the template or delete data. Typically, customized spreadsheets are validated by customizing them to the intended use with a standardized formula in the USP or another valid source, comparing the manual calculations against the spreadsheet calculations, and testing boundaries and functions.

    Concerning 21 CFR Part 11 and the necessity of preserving the reliability and completeness of data, I argue that my centralized monitoring workbook does not produce records that are submitted to a statistical analysis to draw the conclusion of a study. It only computes KRI metrics using real-time raw data which might be incomplete and incorrect as they are exported from EDC and CTMS. I don't think having an audit trail and eSignature features would serve to ensure any product quality or safety, or record integrity. As such, I would not consider 21 CFR Part 11 as relevant to the implementation of a centralized monitoring system. (I am still not sure if KRIs are "trial-monitoring records" though).

    After all this thinking, I plan not to overthink it. I will simply prove that the workbook does what it is intended to do. I will use my experience to think of everything that could go wrong with the workbook and have an impact on subject safety, data quality or trial integrity. I will prepare a Validation Plan accordingly as well as a Test Case document to spells out the validation steps to be performed to satisfy requirements (e.g. "enter data in INPUT!A:A and confirm that the correct results are displayed in OUTPUT!B:B"). Before executing the Test Case I will place a read-only copy of the workbook in a secure location to ensure that it does not get changed while being validated. I will then execute the tests, sign each step, complete a Validation Summary Report and get everything reviewed and approved by QA. I will then refer to the copy I have place in a secure location as the "validated" workbook.

    ------------------------------
    Adam Beauregard RAC
    Data Manager
    Quebec QC
    Canada
    ------------------------------