Fixed
- [EMR] Property persistence for examination findings and procedures — The prescription pad now carries the
propertiesmap through the local upsert path and the genie sync middleware for both examination findings and procedures. Previously the save pipeline only forwardedidandname(plussourcefor findings), so structured property-group values such as Since/Note on findings and Date/Note on procedures were silently dropped on save and never made it to the synced prescription. Both reducer paths now use the sharednormalizeExaminationEntities/normalizeProcedureEntitieshelpers and spread the full normalised entity, and the middleware emitspropertieswhen present.
Added
- [EMR] IPD dashboard and admit-patient drawer as remote web components — The IPD list and admit-patient flows now render through
<ipd-dashboard>and<ipd-admit-patient-drawer>custom elements loaded from a remotely-hosted IPD SDK (elixir-dr.eka.care/ipd/main/assets/index.js, with a matching dev URL). The host app injects Firestore,fetchWithRefresh, and a Firestore SDK adapter into the elements, and receives callbacks for profile mount, switch-workspace mount, admit/discharge, EMAR, IPD notes, medical history, medical document, billing payments, IPD slip print, and discharge summary. This decouples IPD shipping from the main app release cycle. - [EMR]
OPEN_GLOBAL_SEARCHbridge event — The IPD web component (and other embedded surfaces) can now request the host app to open global search by dispatching anOPEN_GLOBAL_SEARCHevent over theEKA_EVENTbus. The host respects route eligibility viacanOpenGlobalSearch(pathname)and emits aGLOBAL_SEARCHtrack withwhere: 'ipd'. - [EMR] Property groups on examination findings and procedures — The prescription pad’s examination findings and procedures rows now support the same structured property-group editor previously available only on symptoms and diagnoses. Examination findings expose a
Sinceprefix-suggest group (Hour/Day/Week/Month/Year) and aNoteopen-text group; procedures expose aDategroup and aNotegroup. Each row renders a more-options modal driven bySymDiaPropertyInput, with backward-compatible migration from the legacy top-levelnotesstring into the structured note property group on read. - [EMR]
sourcediscriminator on examination findings —ExaminationEntitynow carries an optionalsource: 'symptom' | 'diagnosis'field so the pad can track whether a finding was added from the symptoms or diagnoses path, enabling correct routing of property updates back into the originating entity. - [EMR] Context-scoped sym/dia properties endpoint —
GET /v1/sym-and-diag/propertiesaccepts three new optional query parameters:procedures(comma-separated procedure ids),resource(Observation|Condition|ServiceRequest), andcategory(e.g.symptom,encounter-diagnosis,exam). Callers pass aSymDiaPropertiesContextofsymptoms,diagnosis,examination_findings, orproceduresand the SDK maps it to the rightresource/categorypair. - [EMR] Capillary Blood Glucose (CBG) and Hip Circumference vitals — Prescription pad vitals catalogue adds two new server-backed vitals: Capillary Blood Glucose (CBG) and Hip Circumference. Both accept numeric values with decimal precision and render through the standard vitals input flow alongside existing vitals.
Improved
- [EMR] On-demand IPD SDK loading —
ensureIpdSdkScriptLoaded()lazily injects the IPD SDK<script type="module">only when an IPD surface is opened, dedupes parallel callers via a shared promise, and surfaces a clean error toast if the SDK fails to load. Subsequent navigations reuse the already-loadedwindow.IpdSDKand avoid re-fetching the bundle. - [EMR] Templar prescription rendering for examination findings and procedures — Templar templates now render the new structured
propertiesmap on examination findings and procedures alongside legacynotes, with PDF print-body config and local PDF generation pipelines updated to consume the merged shape. Existing templates that only usenotescontinue to render unchanged. - [EMR] Property-aware caching for sym/dia lookups — Property-group fetches are now cached per
context:id(e.g.examination_findings:<id>,procedures:<id>) so switching between symptoms, diagnoses, findings, and procedures no longer collides on a single cache key.
Fixed
- [EMR] Lab tests table search returns stale or empty results — The Lab Tests table built its Fuse fuzzy-search index once in the constructor and never refreshed it when the underlying lab data loaded or changed, so searches would miss entries or return nothing until the page was reopened. The index now rebuilds in
componentDidUpdatewheneverdatachanges, and any active search result is cleared to avoid showing matches against the stale index. - [EMR] Lab tests browse-panel search returning empty/stale results — The Fuse search index on the lab tests table was being built once in the constructor against the initial (often empty)
dataprop, so the first search after data finished loading returned no matches and later prop updates were ignored. The index now rebuilds whenever the underlyingdataprop changes, and any active search result is cleared on rebuild so users see fresh matches without having to reload the panel.
Changed
- [EMR]
ExaminationEntityshape —ExaminationEntitygains optionalproperties: { [k: string]: SymDiaProperty }andsourcefields and is exported fromprescription-types-bundle. The legacynotes: stringfield is preserved for read-compatibility but new writes route through thepg-5243973452note property group; consumers reading examination notes should prefer the property-group value and fall back tonotes. - [EMR]
Procedureshape —Proceduregains optionalproperties: { [k: string]: SymDiaProperty }. Date is now authored via the structuredDateproperty group (pg-31705165) rather than the freedatestring; thedatefield remains for back-compat reads.
Improved
- [EMR] Server-synchronized time in Health Records Android SDK —
TimeProvidernow tracks a server-time offset persisted viaSharedPreferences, withRecordsSyncparsing theDateheader from server responses to keep the offset current.FileEntity,FileStorageManagerImpl, andRecordsRepositoryImpluseTimeProvider.nowMillis()/nowSeconds()instead ofSystem.currentTimeMillis(), socreatedAt,updatedAt, andlastUsedstay consistent across devices with skewed clocks. - [EMR] Stale-analysing record reset in Health Records Android SDK —
RecordsDao.resetStaleAnalysingRecordsnow clears theis_analysingflag for documents that have been stuck in analysis past a cutoff, and the reset is triggered automatically when records are read — so a crashed or interrupted parse no longer leaves a document permanently in the analysing state. - [EMR] Analysing state consolidated into SmartTag — The
android-document-uirecords grid removes its centered analysis progress indicator and separate blur/background treatment;SmartTagnow drives both the “Smart” and “Analysing” states via anisAnalysingparameter (circular progress + “Analysing” text).
Added
- [EMR] Date on Templar pt attribute — The
ptattribute in Templar templates now carries adatefield, enabling richer rendering of patient-attached events with explicit dates on receipts and prescriptions.
Changed
- [EMR] Gson-based parameter parsing in AddRecordPreviewActivity —
android-document-uiswaps manualJSONObjectparsing forGson().fromJsonwhen reading the intent’s params payload, and removes explicitfinish()calls during initial validation — simpler initialization, fewer transient activity teardowns on malformed input.
Added
- [EMR] GST on Templar receipts — Templar receipt templates now print GST on receipts, surfacing tax breakdown alongside the line items.
Improved
- [EMR] Health Records Android → network 2.0.6 —
eka-health-records-androidbumps thenetworklibrary ingradle/libs.versions.tomlfrom 2.0.5 to 2.0.6, picking up upstream support for custom OkHttp interceptors at network init. - [EMR] android-document-ui → records 3.3.1 —
android-document-uibumps the records dependency from 3.3.0 to 3.3.1.
Changed
- [EMR] Templar OPD slip moved from string templates to JSX — Templar’s OPD slip is rewritten from string-concatenated templates to a JSX-rendered template, aligning it with the rest of the template engine and unlocking more structured composition for downstream changes.
Improved
- [EMR] AddRecordPreview stability and performance in android-document-ui — Image URI resolution and large-image validation in
AddRecordPreviewScreenmove to a background thread (LaunchedEffect+Dispatchers.IO); the preview list now handsFileobjects directly toAsyncImageinstead of decoding bitmaps and computing orientation on the UI thread. The “Add Details” bottom sheet is gated on PDF resolution.FileSharingswitches toMediaStorefor downloads on Android Q+, with stream-based copy to public Downloads and URI-segment-based PDF detection. Temporary files now live in a dedicatedrecords_tempcache sub-directory with better cleanup on failure.
Fixed
- [EMR] AddRecordPreviewActivity initialization on malformed params — Manual
JSONObjectparsing of intent params now runs inside proper try/catch withfinish()calls when params are missing or malformed, so the activity can no longer persist in an invalid state on bad input.
Fixed
- [EMR] Missing source files during record creation in Health Records Android —
RecordsRepositoryImplnow checks each source file’s existence before processing or compression, logs a sync event with the document, business, and owner IDs when a file is missing, and returnsnullearly so the broader record-creation path no longer surfaces a hard error when a single file has gone missing locally.
Added
- [EMR] examinationFindings property group in Templar — Templar adds a new
examinationFindingsproperty group with backward-compatible support for legacy notes, so prescriptions and clinical templates can render structured examination findings without breaking existing notes-only content.
Fixed
- [EMR] Text wrapping on Templar receipts — Fixed a Templar rendering bug where text was not breaking to the next line as expected; content now wraps correctly inside its container.
⚠️ Breaking
- [EMR] Templar receipt patient age field — The
TPdfObjecttype used bygetPatientIntroForReceiptreplaces the numericageInM?: numberfield with a stringage?: string. Callers must now pass a pre-formatted age (for example,"5 Years 3 Months") instead of months as an integer; the previous “compute years from months” behaviour has been removed in favour of richer year-and-month rendering. Update any caller that was passingageInMto passageinstead.
Improved
- [EMR] Patient age rendering on receipts —
getPatientIntroForReceiptnow prints the patient’s full age string (years and months) on receipts instead of computing only whole years from months, giving a more clinically meaningful age label.
Added
- [EMR] Analysing UI in Health Records Android and Document UI — The Eka Health Records Android SDK and
android-document-uimodule introduce an “analysing” state UI for documents under processing, surfacing parse-in-progress to end users instead of leaving the document in an ambiguous state. Internal core SDK contracts were adapted to drive the new UI cleanly. View docs
Improved
- [EMR] IPD billing print totals — The IPD billing print template (
getBodyForIpdBilling) now computes Total Amount asΣ(MRP × Qty), derives Total Discount from the difference with the line-item-discounted total, and renders an explicit Grand Total alongside Total Paid and amount due. The output replaces the previous Total MRP / Line Item Discount / Total Amount layout with a clearer Total Amount / Total Discount / Grand Total breakdown.
Added
- [EMR] pageBreakTableTr in Templar getHead — The
getHeadhelper in the Templar prescription engine now supportspageBreakTableTr, allowing template authors to declare table-row level page breaks for cleaner multi-page prescription rendering.
Improved
- [EMR] Diet chart authoring in Templar — Diet chart support in the Templar prescription engine has been extended with additional structure and rendering refinements, building on the diet chart sections introduced on April 22.
Improved
- [EMR] Doctor name on IPD receipts and bills — IPD receipt and bill print output now uses the doctor profile’s first-name and last-name fields directly instead of a single concatenated string, giving cleaner, more consistent doctor-name rendering across IPD billing artifacts.
Added
- [EMR] forceApiSearch flag in Patient Directory TS SDK — The Patient Directory TypeScript SDK now exposes a
forceApiSearchoption, letting integrators bypass the local cache and force a live API lookup for patient search — useful for high-confidence lookups where freshness must beat latency.
Fixed
- [EMR] Patient Directory TS SDK lookup correctness — Resolved an edge case in the Patient Directory TypeScript SDK where stale or partial cached state could surface incorrect patient search results; lookups now consistently reflect the live directory.
Improved
- [EMR] Clinic name on OPD slip — The Templar OPD slip print template now renders the clinic name in the slip header, improving identifiability of the issuing clinic on physical copies.
Added
- [EMR] Diet charts in prescription templates — The Templar prescription engine now supports diet chart sections, enabling structured diet plans to be authored and rendered alongside prescriptions.
Improved
- [EMR] Unit display name fallback in prescriptions — Prescription
rxandlabVitalssections now renderunit_display_namewhen available and fall back toname, producing cleaner unit labels on printed prescriptions.
Fixed
- [EMR] IPD admission TinyMCE preview — Fixed a rendering bug where the IPD admission rich-text preview was showing stale or malformed HTML in the prescription template engine.
Changed
- [EMR] Prescription QR placement — The QR code on prescription PDFs has been moved into the footer details block for a cleaner header and consistent placement across templates.
Added
- [EMR] IPD admission template upgrades — The prescription engine adds new fields and layout improvements to the IPD admission template, supporting richer admission notes.
Improved
-
[EMR] Prescription PDF asset loading — S3-hosted assets such as doctor signatures in prescription PDFs now include cache-busting query parameters, preventing stale cached versions from appearing. Signature display is also now controlled by a
show_signatureconfiguration flag for more flexible template rendering. View docs - [EMR] Eye exam ordering in prescription PDFs — Ophthalmology examination tables in prescription PDFs now render in the correct display order, ensuring eye-care data appears consistently across generated documents. View docs
-
[EMR] Patient Directory API extras field — The
extrasfield in the Update EMR User endpoint now documents restrictions: no nested lists, no dictionaries inside lists, only one level of nesting in dictionaries, keys must not exceed 16 characters, and keys starting with_are ignored. View docs
Improved
- [Client-Specific] Prescription PDF template engine — Added support for configurable prescription template styles, enabling custom PDF layouts that map clinical data (symptoms, history, vitals, medications, investigations, diagnosis, advices, review, and signature) to form-specific positions. A new
template_styleconfiguration option controls which layout is applied during PDF generation.
Improved
- IPD billing PDF layout — The pricing summary in IPD billing PDFs now displays Total Paid and Amount Due/Overpaid labels, replacing the previous single “Amount to be paid” line for clearer printed output. View docs
- OPD slip enhancements — OPD slips now print tags and additional data fields, and the token number font size has been increased for better readability at the front desk.
- Medical Records Android SDK — Oversized images are now validated before upload with a clear user alert, and PDF URI resolution has been moved to a background thread to prevent main-thread crashes.
Fixed
- Health Records Android SDK — Missing files during record processing are now handled gracefully instead of causing crashes, with improved error handling in MD5 checksum generation.

