I made a 12-slide deck in April 2025. Slide 8 asked “What Can We Do” and showed an iceberg. Above the surface were records of healthcare and drug payments. Below it were clinical notes, lab results, and drug doses. Slide 9 changed the question to “Where can We Start” and, surprisingly, showed a screenshot of a programming language syntax manual.1
I remember wanting to persuade management to support building applications on the hospital systems we already had and adding AI features to them. The gap between those slides captured what I wanted to explain: hospitals had accumulated a wealth of material, potentially useful for clinical care and research. Where should we start as developers?
Why spend several slides on Epic in a presentation about Donghua’s system?
I called the deck “The technology behind DongHua HIS --- a survey”. HIS means hospital information system. While looking into the Caché database used by Donghua Software, I found a more specific product example: Donghua iMedical HO R8.5.0 used InterSystems IRIS for Health. Epic, the US electronic health record vendor, also used the company’s technology. InterSystems announced in 2020 that Epic would adopt IRIS starting with the EHR release that August. Together those two facts gave me a reason to look at Epic.23 IRIS lists transaction processing, analytics, and system integration as platform capabilities. In a hospital, those might mean recording one encounter, aggregating encounters that meet certain criteria, and obtaining data from other operational systems.4
Knowing two companies chose the same database didn’t get us very far toward “what can we do?” Slide 6 showed Epic’s app marketplace. Slide 7 showed an analytics dashboard with an age-distribution bar chart, a trend line, and a regional map. Management could picture an actual application: doctors enter individual encounters into operational systems while researchers may want to see how particular records change over time. Epic let me discuss both kinds of work together. Which data we could access still depended on the local hospital’s system version, interfaces, and authorization. FHIR, mentioned on slide 4, is a healthcare data exchange standard. IRIS for Health provides tools for building applications using it.15
Revisiting the deck, I found an example that would go well alongside that marketplace screenshot. Some discharged patients move to another care facility. Referral staff have to send their medical records there. In 2020, Itirra described its referral application AIDA. After logging into Epic, staff could open AIDA within the EHR interface. Itirra built it as a FHIR app and transmitted referral materials via an API, removing manual uploads and faxes. To explain the potential savings to management, I’d first ask referral colleagues how many records they have to transmit twice each day.6
Who did I want to build for, and what could we give them?
InterSystems’ healthcare analytics overview discusses clinicians and researchers separately. Clinicians need useful information in the current encounter. Researchers seek evidence across many people’s records.7 Both appeared in my outline. For doctors, I wondered whether we could find noteworthy information in existing medical histories and surface it when needed. That evening I looked at Averbis and Amazon Comprehend Medical and filed them under “medical history analysis”. The latter’s API, for instance, extracts drug names and doses from English clinical text and identifies where each result appears in the source. That makes the idea more concrete: show the clinician both the extracted result and its source sentence. Whether an item warrants a clinical alert is a separate question requiring validation.8
The other user was a researcher. Their question might be “How many patients met these criteria during this period?” Define the population, dates, and fields first, and a query someone can review is already valuable. I cited a review of research uses of Epic EHRs in the deck that evening. It covered 206 papers spanning clinical care, health services research, and clinical decision support. The authors also described practical issues such as inaccurate coding and missing records. “How many people had a test?” and “How many people had the test recorded in their chart?” can mean very different things even when queried from the same database. Helping researchers understand what a report actually counted is itself worth building.9
The last slide listed a FHIR paper I read that evening. Ayaz and colleagues prototyped counting what tests a particular physician ordered and how many of each during a period. They fetched test orders (ServiceRequest), diagnostic reports (DiagnosticReport), and other records through FHIR, organized them into relational tables, and used SQL to aggregate by ordering clinician and year. Their wording was “tests ordered by a physician”. If management wanted the number of tests with completed reports, we’d also have to verify that orders and reports could be matched.10
Researchers’ selection criteria sometimes live in a few sentences of a progress note. Slide 10 listed Amazon Comprehend Medical. Later I read an application AWS described in 2018. Fred Hutchinson Cancer Research Center wanted to identify potential candidates for clinical trials. It used the service to extract diseases, medications, and treatment information from clinical notes and indexed the results. For a medication history, a researcher could first find records mentioning a particular drug, then return to the source to check what happened when the patient took it.111
What data would the application need from the hospital?
Suppose we start with a pathology report for researchers covering outpatient and emergency cases. First identify the encounter type associated with each record. With a FHIR R4 interface, the program can read class from an Encounter. With operational tables, someone familiar with registration must confirm which field distinguishes outpatient, emergency, and inpatient visits before the indicator can mean the same thing.12
Beijing Friendship Hospital also faced difficulties aligning field meanings while localizing FHIR. During earlier HL7 v3 work, vendors had interpreted the same standard differently. This time the hospital and its partners started with four scenarios. From patient, department, and encounter information to the department issuing a test order, they agreed field by field on what to send and what values were permitted, then developed and tested the interfaces in the hospital.13 With such an interface, the pathology report developer can tell which field to read and which values count as outpatient and emergency.
My assessment checklist also listed MRI, radiology, and ultrasound. Counts could be queried by order subtype or receiving department. An application that lets a doctor click a test and see the original image needs the corresponding study in the imaging system and retrieves images using the DICOM standard. When discussing “access to imaging data”, first ask whether the goal is counting tests or viewing images. That tells you which system’s team to involve.14
Was I already thinking about RAG?
Before preparing the deck, I did retrieval-related work at PuppyAgent: flattening nested JSON into indexable records while preserving field relationships so a retrieved passage could lead back to its context. In February I also looked at how Microsoft GraphRAG answers cross-document questions. By April I had some hands-on experience with RAG, retrieval-augmented generation: first find relevant material, then give it to the model to generate an answer. Notes on handling the JSON
Why did the first code example just open a patient by ID?
Slide 4 had a dozen or so lines of code on the right. The class was named MyApp.Patient. It had a name, a birth date, a save method, and a method to open an object by ID. I wrote it as a teaching example, small enough to read on a slide yet able to answer two different questions. How does business code retrieve a record? How does an analyst query the same data in familiar SQL? That felt closer to day one of development than a general claim about a healthcare platform’s AI potential. I wrote up the code and how to read its colons in Reading Caché ObjectScript.

Slide 9 of the April 15, 2025 presentation, from the PDF saved that evening. The InterSystems documentation screenshot retains its original version label.1
Look again at the syntax manual and the first two visible sections cover operator precedence and case sensitivity. That afternoon I was still looking up what a colon meant in ObjectScript. Putting this page on screen was an honest statement about where I was: I could name applications I wanted to build and had found a language and examples to learn from. Next I had to understand the system in front of me.
That’s why I still want to keep the syntax manual screenshot. When I remember the support I was trying to win, what I could show management was a handful of concrete things: applications other people had already built, one or two clinical and research questions we cared about, and a piece of code I was ready to start reading.
Footnotes
-
Cai, B. (2025, April 15). The technology behind DongHua HIS --- a survey [演示稿]。两处英文标题分别引自第 8、9 页;上图为第 9 页。另见第 4 页的患者类、第 6–7 页的应用示例和第 10 页的临床与科研设想。 ↩ ↩2 ↩3 ↩4
-
InterSystems. (2022, April 18). 东华医为采用最新版 InterSystems IRIS 医疗版数据平台,获得显著高性能、可扩展性和架构灵活性. InterSystems 新闻中心,iMedical HO R8.5.0 公告首段。 ↩
-
InterSystems. (2020, October 13). InterSystems IRIS data platform adopted by Epic for its new generation of high performance, scalability, and architecture flexibility. InterSystems News,Epic 采用 IRIS 的版本说明。 ↩
-
InterSystems. (n.d.). InterSystems IRIS data platform. InterSystems,Database Management、Machine Learning & Analytics 和 Interoperability 产品概览。 ↩
-
InterSystems. (n.d.). InterSystems IRIS for Health. InterSystems,基于 FHIR 开发医疗应用。 ↩
-
Itirra. (2020, July 23). Optimizing hospital discharge with a FHIR app in Epic. Itirra Case Studies. 见 AIDA app for App Orchard 第 1–2 段,出院转介、单点登录和资料传递。 ↩
-
InterSystems. (n.d.). Make better decisions with actionable healthcare data analytics. InterSystems,Delivering the Insights and Answers You Need 中的临床医生与研究人员。 ↩
-
Amazon Web Services. (n.d.). DetectEntitiesV2. Amazon Comprehend Medical API Reference,输入文本与结果中实体的位置、类别和属性。 ↩
-
Chishtie, J., Sapiro, N., Wiebe, N., Rabatach, L., Lorenzetti, D., Leung, A. A., Rabi, D., Quan, H., & Eastwood, C. A. (2023, December 15). Use of Epic electronic health record system for health care research: Scoping review. Journal of Medical Internet Research, 25, e51003. 摘要与研究结果。 ↩
-
Ayaz, M., Pasha, M. F., Alahmadi, T. J., Abdullah, N. N. B., & Alkahtani, H. K. (2023, June 13). Transforming healthcare analytics with FHIR: A framework for standardizing and analyzing clinical data. Healthcare, 11(12), 1729. 见表 1 第 4–5 项的原文、表 2 的资源清单及表 7 的按年统计。 ↩
-
Wood, M. (2018, November 27). Introducing medical language processing with Amazon Comprehend Medical. AWS Machine Learning Blog. 见 From Hours To Seconds In Cancer Care 第 1 段,Fred Hutch 从临床记录中提取信息并建立索引。 ↩
-
Health Level Seven International. (2019). Encounter: Detailed descriptions. FHIR Release 4, v4.0.1. 见 Encounter.class,就诊分类。 ↩
-
InterSystems. (2019). 共推互联互通标准,加速 FHIR 本地化进程,InterSystems 携手合作伙伴共同助力北京友谊医院开展专项课题研究. InterSystems 客户案例,第 2–3 页,值集定义、四个场景及开发测试。 ↩
-
National Electrical Manufacturers Association. (2024). Digital Imaging and Communications in Medicine (DICOM), Part 1: Introduction and overview. 见 §1.1 Scope of DICOM,影像与相关资料的通信和管理。 ↩