MRT Workflow
Machine Readable Templates (MRTs) are structured frameworks for generating regulatory and medical documents with consistent format, content, and compliance requirements.What is an MRT?
An MRT is a hierarchical template that defines:- Document structure - How sections are organized
- Content requirements - What information each section needs
- Extraction rules - How to pull data from source documents
- Formatting rules - Style and formatting requirements
- Validation rules - Compliance and data validation
- Eliminating manual document assembly
- Ensuring regulatory compliance
- Maintaining brand consistency
- Accelerating document production
MRT Components
1. Template
The top-level MRT definition that specifies:- Document type (CSR, IND, Protocol, etc.)
- Overall structure and sections
- Default extraction and formatting rules
2. Sections
Hierarchical sections that organize document content with nesting levels:- Level 1: Top-level sections (chapters)
- Level 2+: Nested subsections (subcategories)
- Max Nesting: Unlimited levels supported
3. Extraction Rules
Rules that specify how to extract content from source documents:- extraction - Pull specific data
- summary - Create condensed summaries
- synthesis - Combine multiple sources
- validation - Check compliance
- custom - User-defined processing
4. Outlines
Document-specific instances of templates that include:- Extracted content for specific document
- Section ordering and customization
- Metadata about content sources
Typical MRT Workflow
1. Create Template
Create an MRT template that defines document structure:2. Define Extraction Rules
Add extraction rules to template sections to specify how to get content:3. Create Outline from Template
Generate a document-specific outline based on the template:4. Generate Document
Execute the outline to produce final document:Use Cases
1. Regulatory Document Generation
Generate compliant regulatory documents (CSR, IND, etc.):2. Document Customization
Customize templates for different document types:3. Multi-Section Documents
Organize complex documents with nested sections:4. Content Reuse
Reuse template structure across multiple documents:MRT Architecture
Key Concepts
Section Hierarchy
Sections are organized hierarchically with levels:- Level 1: Main sections (equivalent to chapters)
- Level 2: Subsections (equivalent to section headings)
- Level 3+: Further nesting as needed
order_index determines position within each level.
Extraction Rules
Rules define how content is extracted and processed:Content Organization
Content is organized by:- Source - Where data comes from (which document/section)
- Extraction Rule - How to process the data
- Target Section - Where it goes in final document
- Formatting - How it’s styled in output
Best Practices
- Start Simple - Begin with basic section structure, add rules incrementally
- Reuse Templates - Create templates for common document types
- Version Templates - Maintain template versions for compliance tracking
- Document Rules - Keep clear documentation of extraction rules
- Test Extraction - Validate extraction rules on sample documents before production use
- Monitor Quality - Review generated documents for extraction accuracy
Related Topics
- Document Generation Workflow - End-to-end generation process
- Async Operations - How async processing works
- Templates API - Template CRUD operations
- Outlines API - Outline management