Skip to main content

Medical Records Management - Technical Specification

Document and medical record management system

Purpose

The Medical Records Management module handles the storage, tracking, and retrieval of all medical documentation related to legal cases. This includes medical bills, lien documents, imaging studies, therapy notes, surgical reports, and other healthcare documentation. The system maintains document versioning, tracks document status, ensures HIPAA compliance, and integrates with claim processing and case management workflows.

Key Concepts

TermDefinition
Medical RecordAny healthcare-related document for a case
Document TypeCategory of medical documentation
Medical BillInvoice for medical services
Lien DocumentLegal claim on settlement for medical costs
Imaging StudyX-rays, MRIs, CT scans, etc.
Operative ReportSurgical procedure documentation
Therapy NotesPhysical therapy progress notes
Document StatusCurrent state of document processing
OCR ProcessingOptical character recognition for data extraction
Document RetentionLegal requirements for keeping records

User Roles

RoleDescriptionPermissions
Records ManagerManages all medical recordsFull CRUD
Medical Records ClerkUploads and categorizes documentsCreate, Read, Update
Case ManagerReviews case-related documentsRead only
ProviderSubmits medical documentationCreate, Read own
AttorneyReviews case documentsRead case documents
AuditorCompliance reviewRead, Audit access
System AdministratorSystem configurationAll permissions

Field Documentation - Medical Record Entity

Field NameTypeRequiredDescriptionValidation RulesRelated Entity
IDStringYesUnique record IDAuto-generated CUIDPrimary Key
Document NumberStringYesHuman-readable numberFormat: MR-YYYY-XXXXXXX-
Legal CaseLegalCaseYesAssociated legal caseMust be active caseLegalCase
PatientPatientYesRelated patientMust match case patientPatient
Document TypeStringYesType of documentEnum: Medical Bill, Lien, Imaging, Op Report, Therapy Notes, Lab Results, Prescription, Other-
Document Sub TypeStringNoSpecific document categoryBased on document type-
Document NameStringYesDescriptive nameMax 200 chars-
File NameStringYesOriginal file nameWith extension-
File PathStringYesStorage locationSecure path-
File SizeIntegerYesSize in bytesPositive integer-
File TypeStringYesMIME typeValid MIME type-
File ExtensionStringYesFile extensionpdf, jpg, png, tiff, etc.-
ProviderClinicalProviderNoSource providerIf applicableClinicalProvider
VendorVendorNoSource vendorIf applicableVendor
Service DateDateTimeNoDate of serviceFor bills and records-
Received DateDateTimeYesWhen document receivedAuto-set on upload-
Document DateDateTimeNoDate on documentFrom document-
Page CountIntegerYesNumber of pagesPositive integer-
Document StatusStringYesProcessing statusEnum: Pending, Reviewed, Processed, Rejected, Archived-
Status ReasonStringNoReason for statusRequired for Rejected-
Status DateDateTimeYesWhen status changedAuto-updated-
Status ByUserNoWho changed statusValid user IDUser
Review RequiredBooleanYesNeeds reviewDefault true-
Reviewed ByUserNoWho reviewedValid user IDUser
Review DateDateTimeNoWhen reviewedSet on review-
Review NotesTextNoReview commentsMax 2000 chars-
Is BillBooleanYesIs medical billDefault false-
Bill AmountDecimalNoTotal bill amountRequired if bill-
Bill NumberStringNoProvider bill numberIf available-
CPT CodesStringNoExtracted CPT codesComma-separated-
ICD CodesStringNoExtracted diagnosis codesComma-separated-
Is LienBooleanYesIs lien documentDefault false-
Lien AmountDecimalNoLien claim amountRequired if lien-
Lien HolderStringNoWho holds lienRequired if lien-
OCR ProcessedBooleanYesOCR completedDefault false-
OCR DateDateTimeNoWhen OCR'dSet after OCR-
OCR ConfidenceDecimalNoOCR accuracy score0-100 percentage-
Extracted DataTextNoOCR extracted dataJSON format-
Is ConfidentialBooleanYesExtra securityDefault false-
Retention DateDateTimeYesWhen can be deletedBased on retention policy-
Retention PolicyStringYesRetention rule applied7 years default-
Source SystemStringNoWhere document originatedPortal, Email, Fax, etc.-
Related ClaimClaimNoAssociated claimIf applicableClaim
Related AppointmentAppointmentNoRelated appointmentIf applicableAppointment
Related AuthorizationAuthorizationNoRelated authIf applicableAuthorization
Version NumberIntegerYesDocument versionStarts at 1-
Previous VersionMedicalRecordNoPrior versionFor versioningMedicalRecord
Is CurrentBooleanYesLatest versionDefault true-
ChecksumStringYesFile integrity hashSHA-256 hash-
EncryptedBooleanYesIs encrypted at restDefault true-
CompressionStringNoCompression typeIf compressed-
Thumbnail PathStringNoPreview image pathFor images/PDFs-
Full TextTextNoSearchable textFor text search-
TagsStringNoDocument tagsComma-separated-
Access CountIntegerYesTimes accessedIncremented on view-
Last AccessedDateTimeNoLast access timeUpdated on view-
Last Accessed ByUserNoWho last accessedValid user IDUser
ArchivedBooleanYesIn archive storageDefault false-
Archive DateDateTimeNoWhen archivedSet on archive-
Created AtDateTimeYesUpload timestampAuto-generated-
Updated AtDateTimeYesUpdate timestampAuto-updated-
Created ByUserYesUploading userValid user IDUser
Updated ByUserYesUpdating userValid user IDUser

Workflows

Document Upload Workflow

  1. File Upload

    • Select legal case
    • Choose document type
    • Select file(s)
    • Add metadata
  2. Validation

    • Check file type allowed
    • Verify file size limits
    • Scan for malware
    • Generate checksum
  3. Processing

    • Store in secure location
    • Create database record
    • Generate thumbnail
    • Queue for OCR
  4. OCR Processing

    • Extract text
    • Identify data fields
    • Extract amounts
    • Store extracted data
  5. Review Queue

    • Add to review queue
    • Assign to reviewer
    • Send notification
    • Track review status

Medical Bill Processing Workflow

  1. Bill Receipt

    • Upload medical bill
    • Mark as bill type
    • Enter bill amount
    • Link to provider
  2. Data Extraction

    • OCR processing
    • Extract bill number
    • Extract CPT codes
    • Extract amounts
  3. Validation

    • Verify provider
    • Check for duplicates
    • Validate amounts
    • Match to services
  4. Claim Creation

    • Create claim record
    • Link to document
    • Process for payment
    • Update case records

Lien Document Workflow

  1. Lien Receipt

    • Upload lien document
    • Mark as lien type
    • Enter lien amount
    • Identify lien holder
  2. Verification

    • Validate lien holder
    • Check legal validity
    • Verify amounts
    • Review terms
  3. Recording

    • Record in lien registry
    • Update case liens
    • Calculate total liens
    • Alert case manager
  4. Settlement Processing

    • Include in settlement
    • Calculate lien portion
    • Process payment
    • Release lien

Document Retrieval Workflow

  1. Search Request

    • Search by case
    • Filter by type
    • Date range
    • Text search
  2. Access Control

    • Verify permissions
    • Check confidentiality
    • Log access
    • Apply redactions
  3. Delivery

    • Display document
    • Provide download
    • Track usage
    • Update access count

Business Rules

Upload Rules

  • Maximum file size: 50MB
  • Allowed formats: PDF, JPG, PNG, TIFF, DOC, DOCX
  • Must be associated with active case
  • Duplicate detection by checksum
  • Automatic virus scanning required

Retention Rules

  • Medical records: 7 years minimum
  • Legal documents: 10 years
  • Financial documents: 7 years
  • Archived after 2 years inactive
  • Permanent retention for major cases

Security Rules

  • Encryption at rest mandatory
  • HIPAA compliance required
  • Access logging for all views
  • Confidential docs need extra auth
  • PHI redaction when required

Version Control Rules

  • New version maintains history
  • Previous versions read-only
  • Current version flag maintained
  • Version notes required
  • Maximum 10 versions per document

Integrations

SystemIntegration TypePurpose
Document StorageFile System/S3Secure file storage
OCR EngineAPIText extraction
Claim SystemDirect DatabaseBill to claim conversion
Legal Case SystemDirect DatabaseCase association
Email SystemSMTP/IMAPDocument receipt
Fax SystemAPIFax document receipt
Virus ScannerAPIMalware detection
Full Text SearchElasticsearchDocument search

Common Issues

IssueDescriptionResolution
OCR FailureText extraction failsManual data entry
Duplicate DocumentSame document uploadedMerge or link records
Wrong CaseDocument on wrong caseMove to correct case
Corrupted FileFile won't openRequest reupload
Missing PagesIncomplete documentRequest complete version

Screenshots Needed

  • Document Upload Interface
  • Document Search Grid
  • Document Viewer
  • OCR Review Screen
  • Medical Bill Processor
  • Lien Management View
  • Document Categories
  • Batch Upload Tool
  • Document Timeline
  • Access Log Report

Performance Considerations

  • Upload processing < 5 seconds
  • OCR queue processing time
  • Support 100GB+ storage per case
  • Quick document retrieval
  • Efficient full-text search

Security Considerations

  • HIPAA compliance mandatory
  • Encryption at rest and in transit
  • Access control lists
  • Audit trail for all access
  • Secure deletion process
  • PHI handling procedures

Notes

  • OCR accuracy improves with training
  • Cloud storage migration planned
  • AI-powered data extraction in development
  • Mobile document capture app planned