Commit Graph

368 Commits

Author SHA1 Message Date
0ebf8d2a8a ABDM: enforce PDF-backed report submit and improve gateway tracking 2026-05-31 04:17:39 +05:30
7253fa0cca Improve radiology template workflow and editor stability 2026-05-30 18:01:20 +05:30
78c23af7e5 Checkpoint: pathology panel modal workflow, gateway component search, and ABDM-style component/print editors 2026-05-30 06:32:30 +05:30
e449af8137 fix(pharmacy): make packing numeric in product form 2026-05-26 13:25:55 +05:30
218d7f7e50 fix(pharmacy): calculate invoice unit rate from mrp and packing 2026-05-26 13:21:36 +05:30
298647b80b fix(pharmacy): finalize product page panel toggle and GST selector behavior 2026-05-26 13:07:46 +05:30
032ff4f1ab fix(ui): disable ajax cache for dynamic panel loads 2026-05-26 13:07:03 +05:30
c341d60ba8 chore: commit all currently staged changes 2026-05-26 13:00:54 +05:30
89a4053ede fix(drug-master): keep search shell visible with nested sub panel 2026-05-26 06:20:56 +05:30
fc2ccc91c2 fix(drug-master): keep add edit flow in medical-main container 2026-05-26 06:15:14 +05:30
4ed366ccb2 feat: commit all pending page and ABDM gateway updates 2026-05-26 06:04:34 +05:30
c97db078a9 fix(product-edit): use short formulation master and manufacturer payload name 2026-05-26 06:02:26 +05:30
e5899e59ac Fix drug autocomplete to show medicine name over identifiers 2026-05-25 14:38:06 +05:30
e3290625cc Pharmacy autocomplete: Tab key selects highlighted medicine 2026-05-25 14:14:51 +05:30
2941fadcac Pharmacy product edit: suggestion keyboard nav + immediate parsed autofill 2026-05-25 14:12:33 +05:30
e221581578 Pharmacy product edit: smarter medicine autofill from ABDM label/detail 2026-05-25 14:07:11 +05:30
0558ac5a2e Pharmacy: add ABDM drug terminology autocomplete + canonical mapping 2026-05-25 13:57:56 +05:30
12cacc3a9c Pharmacy drug master: switch to AJAX DataTable search 2026-05-25 12:47:14 +05:30
e15d876a3f Fix ABDM OPD HMS patient profile link route to person_record 2026-05-25 12:14:23 +05:30
34ff92f685 fix(abdm-opd): open pdf print links directly instead of ajax modal load 2026-05-24 07:36:20 +05:30
fcc7ef50e6 fix(abdm-opd): make addopd/showfee workflow functional inside modal 2026-05-24 07:32:49 +05:30
d6c94a0972 feat(abdm-opd): open add OPD visit in modal iframe 2026-05-24 07:26:38 +05:30
8a5624264c feat(abdm-opd): open OPD registration inside modal iframe 2026-05-24 07:25:52 +05:30
c590087a60 feat(abdm-opd): editable pre-save patient form for Register OPD 2026-05-24 07:16:32 +05:30
8a7b4440c5 fix(abdm-opd): prevent inline payload parsing error in Register OPD modal 2026-05-24 07:08:33 +05:30
b352073ec6 feat(abdm-opd): duplicate-aware Register OPD flow with existing/new patient confirmation 2026-05-24 07:04:42 +05:30
fc50158418 fix(abdm-opd-queue): keep called token visible after call action 2026-05-24 06:56:25 +05:30
23cca1f9ba feat(abdm): proper FHIR bundles for lab reports and IPD discharge
- FhirR4Builder: rewrite buildLabReportBundle() with DiagnosticReportLab
  profile, structured Observation valueQuantity/valueString, reference
  ranges, interpretation codes, Binary+DocumentReference for HTML report,
  Encounter resource, HFR-based bundle identifier system

- FhirR4Builder: rewrite buildDischargeSummaryBundle() with optional
  Practitioner/Organization params, structured ABDM sections (chief
  complaints 422843007, medical history 1003642006, investigations
  721981007, procedures 1003640003, medications 721912009, follow-up
  736271009), HFR-based bundle identifier system

- AbdmGateway: shareIpdDischargeBundle() now builds a real
  DischargeSummaryRecord FHIR bundle and posts via pushRecord()
  (POST /v3/records/push) instead of the stale shareIpdDischargeBundle()

- AbdmGateway: shareDiagnosisReportBundle() now builds a real
  DiagnosticReportRecord FHIR bundle and posts via pushRecord()
  instead of the stale shareDiagnosisReportBundle()

- AbdmGateway: add getHospitalProfileForFhir() and mapLabTypeToTitle()
  helpers; fix pre-existing undefined \ bug in
  getActiveConsentRecord()

- Add ABDM_FHIR reference package, AbdmBridgeLog controller/view,
  bridge record migration, debug scripts and misc UI/settings updates
2026-05-23 04:41:59 +05:30
1b6f2c2db7 feat: Add Submit to ABDM button on FHIR bundle preview
- POST Opd_prescription/fhir_bundle_submit endpoint:
  loads stored FHIR bundle, fetches patient/OPD/doctor context,
  calls EAtriaBridgeConnector::pushRecord to push to bridge
- Standalone preview page (/Opd_prescription/fhir_bundle_preview/N):
  added Submit to ABDM Bridge button with CSRF-safe AJAX + inline
  success/error alert
- FHIR modal in task_board.php: added Submit to ABDM button next
  to Copy JSON; JS reads _fhirOpdId/_fhirSessionId and posts to
  fhir_bundle_submit with CSRF token refresh
2026-05-22 15:54:13 +05:30
6d851f0e9e ABDM compliance: fix OPConsult bundle to match NRCES IG v6.5.0
- Use UUID v4 for all resources + urn:uuid: references (not Patient/123)
- Add fullUrl on every entry (required by FHIR Document bundle spec)
- Fix Composition.type: LOINC 34133-9 -> SNOMED CT 371530004
  (Clinical consultation report)
- Add meta.profile to Bundle, Composition, Patient, Practitioner,
  Organization, Encounter, Condition, Observation, AllergyIntolerance,
  MedicationRequest, ServiceRequest, Appointment
- Bundle identifier system: urn:ietf:rfc:3986 -> http://hip.in
- Bundle meta.security: add V (very restricted) confidentiality
- All timestamps: ISO 8601 with +05:30 offset (new isoTimestamp())
- Add generateUuid() private helper using random_bytes
- Composition: add language en-IN, identifier (ndhm.in/phr), custodian,
  author fallback, encounter reference
- Section SNOMED codes: Chief complaints 422843007, Allergies 722446000,
  Physical Examination 425044008, Diagnoses 439401001,
  Medications 721912009, Investigation Advice 721963009, Follow Up 736271009
- Separate Chief Complaints from Diagnoses sections
- Encounter.diagnosis.use: SNOMED 39154008 (confirmed) / 148006 (preliminary)
- Practitioner identifier: doctor.ndhm.gov.in system with MD type code
- Organization identifier: facility.ndhm.gov.in system with PRN type code
- Patient identifier: healthid.ndhm.gov.in (was abdm.gov.in) + MR type code
- ServiceRequest/MedicationRequest: add requester from Practitioner
2026-05-20 03:40:40 +05:30
ba6b479da6 fix: add arrow-key/Enter/Escape navigation for SNOMED dropdown in FHIR form 2026-05-20 03:21:06 +05:30
0fe556f37e fix: preserve doctor original text in FHIR form; add live complaint/diagnosis terms to preview 2026-05-20 03:14:17 +05:30
78060d03c8 feat: FHIR form view — inline diagnosis SNOMED edit + show doctor's original text 2026-05-20 03:02:03 +05:30
70bc85ae0c fix: restore advice_search() method declaration lost in prior commit 2026-05-20 02:53:48 +05:30
4250000d43 feat: FHIR form view — inline complaint SNOMED edit with live search and save 2026-05-20 02:49:36 +05:30
a0989d3a4b feat: FHIR preview modal — Form View tab with patient/complaints/diagnosis/vitals/medications cards 2026-05-20 02:34:00 +05:30
44fbd5d1cc feat: FHIR preview modal — Update Codes dropdown + code quality badges 2026-05-20 02:17:23 +05:30
cd18551ce2 feat: FHIR bundle — use complaint_snomed_json for coded complaints (SNOMED + severity + duration) 2026-05-20 02:08:01 +05:30
0dd6a18167 feat: Clinical Master — inline table style with expand-in-place SNOMED assignment 2026-05-20 01:49:00 +05:30
32c1dc20e1 feat: Clinical Master workspace — Complaints + Diagnosis edit with SNOMED CT search 2026-05-20 01:25:01 +05:30
e33b0809a0 fix: fhir_bundle_preview returns JSON for AJAX (modal) requests, HTML for direct browser 2026-05-20 00:56:56 +05:30
e9ccc40685 fix: remove orphaned JS listeners for deleted Quick FHIR Preview elements (null getElementById error) 2026-05-20 00:52:21 +05:30
e5ec25dfd3 feat: OPD Consult Publish - Preview FHIR opens in modal dialog 2026-05-20 00:48:33 +05:30
fd7b9df3f4 ui: remove Quick FHIR Preview and Today Credit OPD cards from task board 2026-05-20 00:31:56 +05:30
ed4e7c1fe4 feat: ABDM task board — remove All, rename ABHA Update, add OPD Book + OPD Consult Publish sections 2026-05-20 00:29:00 +05:30
368c0b831d ui: ABDM task board — full-width layout (remove max-width 1280px) 2026-05-20 00:14:23 +05:30
e5624f16a2 config: enable CSNOtk SNOMED lookup with base URL and 8s timeout 2026-05-19 23:48:39 +05:30
02ec0034d7 fix: stop injecting Diagnosis SNOMED lines into Prescription textarea — data is in diagnosis_json; strip legacy lines on save 2026-05-19 23:46:44 +05:30
e81ca3d238 fix: Enter adds typed free text in complaint/diagnosis — no auto-pick of first dropdown item 2026-05-19 23:35:39 +05:30
77f5946cf5 feat: Healthplix-style diagnosis table — inline tfoot input, remove Code col, fix delete idx=0, Duration->lookup flow 2026-05-19 23:25:36 +05:30