Guide to Migrating Physical Archives to Digital: An Efficient Scanning Workflow for Healthcare Facilities
N
Back to Blog

Guide to Migrating Physical Archives to Digital: An Efficient Scanning Workflow for Healthcare Facilities

Tutorial
Nugroho Setiawan · Konsultan IT & Full Stack Developer 07 Aug 2026 15 min baca 3,494 kata 253 views
Migrating physical archives to digital is a crucial step for healthcare facilities. This article provides a practical, actionable guide to building an efficient scanning workflow, from preparation to system integration, ensuring medical record data is secure and easily accessible.

The towering stacks of patient medical records in storage rooms are no longer an unfamiliar sight in many hospitals and clinics in Indonesia. This condition not only creates efficiency problems in searching for and accessing data, but also increases the risk of loss or damage to important documents, and consumes considerable operational costs for physical management. In this fast-paced digital era, the transformation from physical archives to digital format is no longer an option, but a necessity, especially with regulations such as PMK No. 24 of 2022 concerning Medical Records that encourage the adoption of electronic medical records. This migration promises significant operational efficiency, improved data security, and compliance with applicable standards. However, this migration process requires careful planning and execution of a structured scanning workflow to ensure the integrity and quality of the resulting digital data. This article will guide you in depth, step by step, in designing and implementing an effective and efficient scanning workflow for physical-to-digital archives, complete with concrete examples, relevant technology, and best practices.

Basic Concepts of Physical-to-Digital Archive Migration

Physical-to-digital archive migration is the process of converting printed documents into electronic format that can be stored, accessed, and managed through computer systems. Its main goals are to improve operational efficiency, information security, and regulatory compliance. In the healthcare sector, the benefits are very tangible, ranging from ease of access to medical records by healthcare personnel, reducing the risk of duplication, to supporting the SatuSehat initiative. This process is not merely scanning documents, but a series of structured stages starting from assessment, preparation, scanning, indexing, validation, to final storage.

For example, a hospital with tens of thousands of outpatient and inpatient patient medical records will face different challenges. Outpatient medical records are generally more concise, but their volume is very large. Meanwhile, inpatient medical records can be very thick and complex, covering various forms, lab results, and progress notes. Each type of document requires a tailored approach in terms of preparation and indexing. For instance, for inpatient medical records, indexing down to the sub-document level may be needed (e.g., observation sheets, radiology results, medical action consent forms).

It is important to understand that the quality of digital results highly depends on the preparation stage. Documents that are untidy, folded, or contain staples and clips will hinder the scanning process and potentially damage the original documents or the scanner. In addition, the choice of file format is also crucial. The PDF/A format (PDF for Archiving) is the recommended standard choice because it is designed for long-term storage, ensuring documents can be opened and read accurately in the future, regardless of the software or operating system used. This differs from ordinary PDFs, which may have interactive features or font dependencies that can change over time.

Regulatory compliance is also a main pillar. In Indonesia, PMK No. 24 of 2022 concerning Medical Records emphasizes the importance of integrated electronic medical records (RME). This means that scanning results must be able to be integrated into the existing Hospital Management Information System (SIMRS), or at least managed in a separate but connected E-Archive system. Thus, the migration process is not only about digitalization, but also about creating an integrated and secure data ecosystem.

Details of Scanning Workflow Implementation

Implementing an effective scanning workflow requires detailed planning and selection of the right technology. The first step is document assessment: identify document types, volume, physical condition, and digitization priority level. After that, establish consistent file naming standards and folder structure. For example, `[NoRM]_[NamaPasien]_[JenisDokumen]_[TanggalDokumen].pdf` or `[NoRM]/[Tahun]/[JenisDokumen].pdf`.

1. Document Preparation: This is the most time-consuming but crucial stage. Staff must clean documents of staples, paper clips, tape, or other foreign objects. Torn or fragile documents need temporary restoration with archival-specific tape so they are not damaged during scanning. Group documents by predetermined categories (e.g., per patient, per visit, per document type) to speed up the scanning process. For medical records, separate by Medical Record Number (NoRM) and arrange chronologically.

2. Hardware and Software Selection:

  • Production Scanner: Invest in a high-speed scanner with an automatic document feeder (ADF) feature and duplex scanning capability (scanning both sides at once). Popular examples include the Fujitsu fi-7700 series (100 ppm capacity, 300-sheet ADF) or Kodak Alaris i5000 Series (capacity up to 210 ppm). These scanners are designed for high volume and minimize manual intervention.
  • Scanning & Document Management Software: For complex workflows, software such as Kofax Capture 11.2 or ReadSoft Process Director can automate many stages, including batch scanning, data extraction, and integration. For simpler needs, NAPS2 (Not Another PDF Scanner 2) or Adobe Acrobat Pro DC is sufficient for scanning and managing PDFs. Ensure the software supports output to PDF/A format and has reliable OCR (Optical Character Recognition) features. Tesseract OCR Engine 5.x is a strong open-source option for text extraction.

3. Scanning Process: Scan documents at a minimum resolution of 300 DPI (dots per inch) for black-and-white text and 200 DPI for color or image documents. This resolution ensures good image quality for reading and OCR accuracy. Save the scanning results in PDF/A format to ensure the sustainability of the digital archive. Enable the blank page detection feature on the scanner to automatically remove blank pages.

4. Indexing and Metadata: After documents are scanned, the next stage is indexing. This involves adding metadata (descriptive information) to each document. Essential metadata for medical records includes NoRM, patient name, date of birth, visit/document date, document type (for example, discharge summary, lab results, SOAP note), and doctor's name. This metadata is very important for quick search and integration with SIMRS. Metadata extraction can be done manually, semi-automatically (using OCR to read certain areas on the document), or fully automatically with templates and machine learning.

5. Quality Control (QC) and Validation: Every document that has been scanned and indexed must go through the QC process. This includes visual verification to ensure all pages have been scanned correctly, no pages have been missed or cut off, and the image quality is clear. Metadata data validation must also be carried out to ensure the indexed information is accurate and matches the document contents. For example, the NoRM entered must match the NoRM on the physical document. Errors at this stage can cause serious problems in the future.

6. Storage and Integration: Validated digital documents are then stored in the E-Arsip system or directly integrated into the existing SIMRS. Integration can be done via API (Application Programming Interface), for example using the FHIR R4 (Fast Healthcare Interoperability Resources Release 4) or HL7 v2.5.1 standards for clinical data exchange. If using HAPI FHIR 6.8 as middleware, documents can be stored as a DocumentReference or Binary resource. Ensure the storage system has access control, audit trail, and routine backup features, ideally in a database such as PostgreSQL 16, which is known for its stability and security.

Example Configuration and Automation Script

Automation is the key to efficiency in the scanning workflow. We can use a simple script to manage scanned files, such as renaming, moving, or extracting initial metadata from filenames or folder structures. The following is an example of a Python 3.9+ script to organize scanned PDF files based on standardized filenames and create initial metadata entries.

Suppose we have a folder raw_scans containing PDF files with the filename format RM12345_JOHN_DOE_20231026_RESUME_PULANG.pdf. We want to move these files to the processed_scans folder and save basic metadata into a CSV file.

import osimport shutilimport csvfrom datetime import datetimedef process_scanned_files(raw_dir, processed_dir, metadata_file):    if not os.path.exists(processed_dir):        os.makedirs(processed_dir)    metadata_records = []    for filename in os.listdir(raw_dir):        if filename.endswith('.pdf'):            parts = filename.replace('.pdf', '').split('_')            if len(parts) >= 5: # Expecting RM, NAME, DATE, TYPE            try:                norm = parts[0]                patient_name = parts[1] + ' ' + parts[2] # Assuming two-word name                doc_date_str = parts[3]                doc_date = datetime.strptime(doc_date_str, '%Y%m%d').strftime('%Y-%m-%d')                doc_type = '_'.join(parts[4:]) # Handle multi-word doc types                original_path = os.path.join(raw_dir, filename)                new_filename = f"{norm}_{patient_name.replace(' ', '_')}_{doc_type}_{doc_date_str}.pdf"                new_path = os.path.join(processed_dir, new_filename)                shutil.move(original_path, new_path)                metadata_records.append({                    'NoRM': norm,                    'NamaPasien': patient_name,                    'TanggalDokumen': doc_date,                    'JenisDokumen': doc_type,                    'NamaFile': new_filename,                    'LokasiFile': new_path                })            except IndexError:                print(f"Skipping malformed filename: {filename}")            except ValueError:                print(f"Skipping filename with invalid date format: {filename}")    if metadata_records:        with open(metadata_file, 'w', newline='', encoding='utf-8') as csvfile:            fieldnames = ['NoRM', 'NamaPasien', 'TanggalDokumen', 'JenisDokumen', 'NamaFile', 'LokasiFile']            writer = csv.DictWriter(csvfile, fieldnames=fieldnames)            writer.writeheader()            writer.writerows(metadata_records)    print(f"Processed {len(metadata_records)} files and updated metadata to {metadata_file}")# Usage Example:raw_scans_directory = 'raw_scans'processed_scans_directory = 'processed_scans'metadata_csv_file = 'scan_metadata.csv'process_scanned_files(raw_scans_directory, processed_scans_directory, metadata_csv_file)

The script above will scan the raw_scans folder, extract information from filenames (Medical Record Number, Patient Name, Document Date, Document Type), then move the files to the processed_scans folder with more consistent filenames, and record this metadata into a CSV file. This is the foundation for a more complex indexing system. Make sure you have installed Python 3.9 or a newer version for best compatibility.

Additionally, for further integration, you may need to interact with the SIMRS API or E-Arsip system. The following is a simple example of how you can send metadata and file location to an API endpoint using the requests library in Python. Assume there is an API at http://localhost:8000/api/document-upload that accepts document data.

import requestsimport jsondef upload_document_metadata(metadata_record, api_url):    try:        response = requests.post(api_url, json=metadata_record)        response.raise_for_status() # Raise HTTPError for bad responses (4xx or 5xx)        print(f"Successfully uploaded metadata for {metadata_record['NamaFile']}. Response: {response.json()}")        return True    except requests.exceptions.HTTPError as http_err:        print(f"HTTP error occurred: {http_err} - {response.text}")    except requests.exceptions.ConnectionError as conn_err:        print(f"Connection error occurred: {conn_err}")    except requests.exceptions.Timeout as timeout_err:        print(f"Timeout error occurred: {timeout_err}")    except requests.exceptions.RequestException as req_err:        print(f"An error occurred: {req_err}")    return False# Example metadata record (from the previous script's output)sample_metadata = {    'NoRM': 'RM12345',    'NamaPasien': 'JOHN DOE',    'TanggalDokumen': '2023-10-26',    'JenisDokumen': 'RESUME_PULANG',    'NamaFile': 'RM12345_JOHN_DOE_RESUME_PULANG_20231026.pdf',    'LokasiFile': '/path/to/processed_scans/RM12345_JOHN_DOE_RESUME_PULANG_20231026.pdf'}api_endpoint = 'http://localhost:8000/api/document-upload' # Ganti dengan URL API SIMRS/E-Arsip Andaupload_document_metadata(sample_metadata, api_endpoint)

This script demonstrates how extracted data can be sent to another system. It is important to adjust the structure of metadata_record and api_url according to your SIMRS API specifications. For integration with systems that support FHIR, you may need to use an FHIR client library such as fhirclient in Python to create and send a DocumentReference resource.

Data and Error Handling

In the digital archive migration process, data and error handling are crucial aspects that are often overlooked. Data integrity must be the main priority. Every digital document produced must have accurate and complete metadata so that it is easy to find and access. The following is an example JSON payload structure for medical record document metadata that can be used when sending data to SIMRS or an E-Arsip system:

{  "documentId": "DOC-RM-20231026-001",  "patient": {    "norm": "RM12345",    "name": "JOHN DOE",    "dateOfBirth": "1980-05-15"  },  "documentType": {    "code": "RESUME_PULANG",    "display": "Resume Pulang",    "system": "http://terminology.example.org/CodeSystem/DocumentType"  },  "clinicalContext": {    "encounterId": "ENC-20231025-001",    "encounterType": "Rawat Inap"  },  "author": {    "practitionerId": "DR1001",    "name": "Dr. BUDI SANTOSO"  },  "creationDate": "2023-10-26T10:30:00+07:00",  "fileDetails": {    "fileName": "RM12345_JOHN_DOE_RESUME_PULANG_20231026.pdf",    "filePath": "/archive/processed_scans/RM12345_JOHN_DOE_RESUME_PULANG_20231026.pdf",    "fileSizeKB": 512,    "checksumMD5": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6"  },  "status": "final",  "tags": ["rekam medis", "rawat inap", "resume"]}

The payload above includes important information such as document ID, patient details, document type, clinical context, author, creation date, file details (name, location, size, checksum), status, and tags. The use of an MD5 or SHA256 checksum is highly recommended to verify file integrity after scanning and moving. This helps detect whether a file has been corrupted or modified during the process.

Example Error Messages and Their Handling:

During the scanning or indexing process, various types of errors can occur. One common one is:

ERROR: Metadata Mismatch for RM12345. Document 'RESUME_PULANG' expected on '2023-10-26' but actual document content indicates '2023-10-25'. File: RM12345_JOHN_DOE_20231026_RESUME_PULANG.pdf

This error indicates a mismatch between the extracted metadata (for example, from the file name) and the information actually contained in the document (for example, the date read by OCR from the document content). Handling this kind of error requires the following steps:

  1. Error Logging: Every error must be recorded in a centralized log file, including timestamp, error details, the name of the affected file, and the user processing it. This is important for audit and root cause analysis.
  2. Quarantine Problematic Files: Files that experience errors must be moved automatically to a 'quarantine' or 'error_review' folder. This prevents incorrect files from entering the production system and allows the QC team to review them manually.
  3. Notification: Send automatic notifications (for example via email or an internal messaging system) to the QC team or operations manager about errors that need to be addressed.
  4. Manual Review and Correction: The QC team will inspect the files in the quarantine folder, compare incorrect metadata with document contents, and perform manual corrections on metadata or even rescan documents if necessary.
  5. Validation Automation: Implement stricter validation rules in the indexing software. For example, use regular expressions to validate the format of NoRM or dates, and perform cross-checks between data extracted from various sources (file name, OCR, manual input).
  6. Versioning and Audit Trail: Ensure the E-Arsip or SIMRS system has versioning and audit trail capabilities, so that every change to metadata or documents is recorded, enabling tracking and recovery if errors occur.

By implementing a comprehensive error handling strategy, the risk of inaccurate or lost data can be significantly minimized, maintaining the integrity of your digital archive.

Best Practices

  1. Standardization of Nomenclature and Processes: Establish strict standards for file naming, folder structure, and metadata categories from the outset. For example, all NoRM must begin with 'RM' followed by 5 numeric digits. Documents must be sorted chronologically. This will minimize confusion and inconsistency, and facilitate automation and searching later on.
  2. Selection of Appropriate Technology: Don't rush to buy the most expensive scanner. Match hardware (production scanners such as Fujitsu fi-7700 or Kodak Alaris i5000) and software (Kofax Capture 11.2, NAPS2, Tesseract OCR 5.x) to your document volume, budget, and workflow complexity. Also consider integration capabilities with existing SIMRS.
  3. Comprehensive Staff Training: Provide in-depth training to all staff involved in the scanning and indexing process. They must understand the importance of each step, how to operate equipment, and error handling procedures. Regular training and clear SOP documentation are essential.
  4. Gradual Trial (Pilot Project): Do not directly scan the entire archive. Start with a pilot project for a small group of documents. Evaluate the workflow, identify obstacles, and improve the process before full-scale migration. This allows adjustments without major risk.
  5. Layered Data Security: Ensure your digital archive is protected with strong security measures. This includes data encryption at rest (at rest) and in transit (in transit), role-based access control (Role-Based Access Control), firewalls, and intrusion detection systems. Compliance with ISO 27001 standards is highly recommended.
  6. Backup and Disaster Recovery Plan: Create a solid data backup plan, including daily, weekly, and monthly backups, as well as off-site storage. Also develop a disaster recovery plan (Disaster Recovery Plan) to ensure operational continuity in the event of system failure or natural disaster. Test this plan regularly.
  7. Regulatory and Legal Compliance: Ensure the entire migration and digital archive storage process complies with applicable regulations, such as PMK No. 24 of 2022 concerning Medical Records in Indonesia. Also pay attention to the legality aspects of electronic signatures or patient consent that may need to be recorded in digital format.
  8. Routine Audit and Evaluation: Conduct internal audits regularly to evaluate the effectiveness of the scanning workflow, the quality of data produced, and compliance with standards. Use performance metrics such as the number of documents scanned per hour, error rate, and document retrieval time to identify areas needing improvement.

FAQ

  1. What is the estimated cost for migrating physical archives to digital?

    Migration costs vary greatly depending on document volume, physical condition of archives, desired level of automation, and choice of hardware/software. For a medium-sized hospital scale, initial investment can range from tens to hundreds of millions of rupiah, covering production scanners (for example Fujitsu fi-7700 around Rp 100-150 million), software licenses, training costs, and potential server infrastructure costs. However, these costs will be offset by long-term efficiency, storage space savings, and improved data security.

  2. How long does the overall process of migrating physical archives to digital take?

    The duration of the migration process depends on archive volume and allocated resources. For a volume of tens of thousands of medical records, the process can take 6 months to 1 year. Hospitals with hundreds of thousands to millions of medical records may require 2-3 years or more. It is important to conduct a pilot project first to obtain a more accurate time estimate and identify potential obstacles.

  3. What about the legality of scanned digital archives? Are they legally recognized?

    In Indonesia, the legality of scanned digital archives has been recognized, especially with the existence of UU ITE and its implementing regulations. PMK No. 24 Tahun 2022 explicitly supports the use of Rekam Medis Elektronik (RME). However, ensure that the scanning process is carried out according to standards, has a clear audit trail, and that its data integrity is maintained (for example, with checksum and digital signatures) to ensure its legal validity.

  4. What should be done if there are physical documents that are damaged or not legible?

    Damaged or illegible documents require special handling. If possible, perform temporary restoration (for example, with archival-specific tape) before scanning. If it is too damaged to be scanned, the document may need to be stored separately as an exception or a special note made in its digital metadata. It is important to document each case of a damaged document and the reason why it cannot be scanned perfectly.

  5. Is it better to carry out migration in-house or use outsourcing services?

    The decision between in-house and outsourcing depends on internal capacity, budget, and project urgency. In-house provides full control over the process and data, but requires investment in equipment, staff training, and time. Outsourcing can speed up the process and reduce internal burden, but requires selecting a trusted vendor and a strict data confidentiality agreement. For healthcare facilities, consider the sensitivity of medical record data when choosing this option.

  6. How can scanned digital archives be integrated with the existing Sistem Informasi Manajemen Rumah Sakit (SIMRS)?

    Integration can be done through various methods. The best way is to use the API (Application Programming Interface) provided by your SIMRS. If SIMRS supports interoperability standards such as FHIR R4 or HL7 v2.5.1, you can develop a connector that sends metadata and links to digital document files. If not, integration may involve structured file exchange (CSV/XML) or a direct connection to the SIMRS database, although the latter option must be done very carefully and with the approval of the SIMRS vendor.

Migrating physical archives to digital is not merely an IT project, but a strategic investment that will shape the future of your healthcare facility's operations. With careful planning, selection of the right technology, and implementation of an efficient and structured scanning workflow, you can transform piles of archives into digital assets that are easily accessible, secure, and support better clinical decision-making. This process is indeed challenging, but its long-term benefits, from increased efficiency and cost reduction to regulatory compliance, far outweigh the initial investment. If you need assistance in designing, developing, or implementing a digital archive migration solution integrated with your SIMRS or E-Office system, do not hesitate to contact us at Nugroho Setiawan for consultation and technology solutions tailored to the specific needs of your healthcare facility.

This article is part of the educational content of Nugroho Setiawan, an IT consultant in Jogja. Related solutions: SIMRS Integrator Bridging SatuSehat E-Office. Need free consultation?

Terakhir diperbarui 18 Oct 2026

Komentar

Komentar ditinjau sebelum tampil.

Belum ada komentar. Jadilah yang pertama!

Butuh bantuan implementasi?

Saya membantu konsultasi IT & pengembangan aplikasi untuk rumah sakit, klinik, dan bisnis di Yogyakarta (DIY), Magelang, dan sekitarnya.

Produk & Solusi SIMRS ERP Portfolio Konsultasi Gratis