Masters Overview

Masters are shared configurations in the Global PRS system that provide standardized data and settings that can be referenced across different programs and templates. They ensure consistency and reduce redundancy in program configurations.

Master Types

1. Data Masters

  • Country lists
  • State/Province lists
  • City lists
  • Language options
  • Currency codes
  • Time zones

2. Configuration Masters

  • Program types
  • Payment methods
  • Communication templates
  • Validation rules
  • Integration settings

3. Business Masters

  • Fee structures
  • Discount rules
  • Cancellation policies
  • Refund policies
  • Terms and conditions

Master Structure

1. Basic Structure

{
  "masterId": "country_list",
  "type": "data_master",
  "version": "1.0",
  "description": "List of countries with codes",
  "data": [
    {
      "code": "US",
      "name": "United States",
      "dialCode": "+1",
      "currency": "USD"
    }
  ],
  "metadata": {
    "lastUpdated": "2025-04-08",
    "source": "ISO 3166"
  }
}

2. Configuration Example

{
  "masterId": "payment_methods",
  "type": "config_master",
  "version": "1.0",
  "config": {
    "methods": [
      {
        "id": "card",
        "name": "Credit/Debit Card",
        "enabled": true,
        "providers": ["stripe", "razorpay"]
      }
    ]
  }
}

Master Features

1. Data Management

  • Centralized storage
  • Version control
  • Change tracking
  • Data validation
  • Update propagation

2. Access Control

  • Role-based access
  • Read/write permissions
  • Version locking
  • Audit logging
  • Change approval

3. Integration

  • API access
  • Bulk updates
  • Data synchronization
  • Cache management
  • Event notifications

Master Usage

1. In Templates

  • Field options
  • Validation rules
  • Default values
  • Display conditions
  • Integration settings

2. In Programs

  • Configuration values
  • Business rules
  • Policy references
  • Integration setup
  • Communication templates

3. In Forms

  • Field options
  • Validation rules
  • Lookup values
  • Default settings
  • Display conditions

Best Practices

1. Data Management

  • Regular updates
  • Data validation
  • Version control
  • Documentation
  • Backup strategy

2. Implementation

  • Consistent naming
  • Clear structure
  • Proper versioning
  • Error handling
  • Performance optimization

3. Maintenance

  • Regular review
  • Data cleanup
  • Performance monitoring
  • Security updates
  • Documentation updates

Security Considerations

1. Access Control

  • Role-based access
  • Permission management
  • Version control
  • Audit logging
  • Change tracking

2. Data Protection

  • Encryption
  • Secure storage
  • Input validation
  • Output encoding
  • Access logging

Integration Points

1. External Systems

  • Data providers
  • Validation services
  • Currency services
  • Location services
  • Time services

2. Internal Systems

  • Template system
  • Program management
  • Form builder
  • Validation engine
  • Reporting system

Performance Optimization

1. Caching

  • Data caching
  • Cache invalidation
  • Cache updates
  • Performance monitoring
  • Load balancing

2. Updates

  • Bulk updates
  • Incremental updates
  • Change notification
  • Version management
  • Rollback support

Next Steps