<?xml version="1.0" encoding="UTF-8"?>
<article article-type="Research Article">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher">journal-of-discrete-mathematical-sciences-and-cryptography</journal-id>
      <journal-title-group>
        <journal-title>Journal of Discrete Mathematical Sciences and Cryptography</journal-title>
      </journal-title-group>
      <issn publication-format="electronic">2169-0065</issn>
      <issn publication-format="print">0972-0529</issn>
      <publisher>
        <publisher-name>Taru Publications</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.47974/JDMSC-2631</article-id>
      <title-group>
        <article-title>AI-based electronic health record architecture for secure patient data and its analytics</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author" corresp="yes">
          <name>
            <surname>Goyal</surname>
            <given-names>Dinesh</given-names>
          </name>
          <aff>Department of Creative Technologies and Product Design, School of Innovative Design and Management, National Taipei University of Business, New Taipei City, Taiwan (R.O.C.)</aff>
          <aff>Department of Computer Science &amp; Engineering &amp; Technology, Poornima Institute of Engineering &amp; Technology, Jaipur, Rajasthan, India</aff>
        </contrib>
        <contrib contrib-type="author">
          <name>
            <surname>Peng</surname>
            <given-names>Sheng-Lung</given-names>
          </name>
          <aff>Department of Creative Technologies and Product Design, School of Innovative Design and Management, National Taipei University of Business, New Taipei City, Taiwan (R.O.C.)</aff>
        </contrib>
      </contrib-group>
      <volume>29</volume>
      <issue>3</issue>
      <fpage>1521</fpage>
      <lpage>1540</lpage>
      <pub-date date-type="pub">
        <day>11</day>
        <month>03</month>
        <year>2026</year>
      </pub-date>
      <abstract>
        <p>Electronic Health Records (EHRs) are critical components of modern healthcare systems, but ensuring data security, privacy, and real-time clinical decision-making remains a significant challenge. This study proposes an advanced AI-based EHR architecture that prioritizes secure patient data while delivering intelligent clinical analytics. Homomorphic Encryption (CKKS), Attribute-Based Encryption (ABE) for fine-grained access control, and Hyperledger Fabric for blockchain-based audit records are some of the security features that are built into the system. Differential Privacy (DP-SGD) is used to make privacy even stronger when AI models are being trained. It uses an AI engine that can analyse medical transcripts using Convolutional Neural Networks (CNNs) for image-based detection (X-ray, MRI) and advanced signal processing models for reading ECG and EEG data. This AI-powered system works with different types of data and uses models like ClinicalBERT, GatorTron, GRU-D, and LightGBM to handle medical pictures, bodily signs, time-series vitals, and clinical notes. Experimental results demonstrate that the proposed architecture achieves low encryption latency (920 ms), zero access control breaches, and excellent predictive accuracy (AUC-ROC up to 0.96). This comprehensive approach demonstrates that integrating AI with robust security protocols, and multimodal medical analysis can deliver a scalable, privacy-preserving EHR solution suitable for real-world healthcare environments. The framework can further be extended with use of more safe APIs to collect real-time data from Internet of Medical Things (IoMT) devices and Digital Twin-based monitoring systems. That will help healthcare practitioners to keep an eye on patients all the time and treat accordingly, with use of our AI-Engines and secure Data of patients using blockchain will become a EHR where health data that is 100% tracked and analysed for better healthcare services, across multiple institutions. </p>
      </abstract>
      <kwd-group>
        <kwd>AI in healthcare</kwd>
        <kwd>Electronic health records</kwd>
        <kwd>Homomorphic encryption</kwd>
        <kwd>Clinical decision support</kwd>
        <kwd>Blockchain</kwd>
        <kwd>Patient privacy</kwd>
        <kwd>AI in security</kwd>
      </kwd-group>
      <custom-meta-group>
        <custom-meta>
          <meta-name>access</meta-name>
          <meta-value>open</meta-value>
        </custom-meta>
        <custom-meta>
          <meta-name>retracted</meta-name>
          <meta-value>no</meta-value>
        </custom-meta>
      </custom-meta-group>
    </article-meta>
  </front>
</article>
