START A CONVERSATION

Let’s talk about your next build.

Prepare your brief below, then review and send it in your email app to sales@nextlabsonline.com.

THE FIRST CONVERSATION

Your product idea, AI opportunity or automation challenge—and a useful first milestone.

All fields are required.

A few sentences about the problem, your users and timing are enough.

We’ll use your details to respond to your enquiry. Please don’t include patient records, passwords or confidential information. Privacy Policy · Website Terms.

Systems, data, security and responsible AI

Test hospital interfaces for failed and repeated messages

By Vikasraj YadavPublished 9 min read

For CIO/CTO / digital programme owner · Plan implementation

Test hospital interfaces for failed and repeated messages — Indian male senior hospital systems architect in a charcoal blazer over a light-blue collared shirt and female clinical interface engineer in a navy blazer over a cream blouse standing at a warm oak technical review table in front of a glass-partitioned server equipment room, reviewing two open ring binders with ruled reconciliation grids alongside a compact brushed-aluminium network gateway appliance, a closed dark-grey laptop, coiled blue and yellow ethernet patch cables, and two pens.

Test hospital interfaces for failed and repeated messages: Hospital interface resilience depends on idempotent message keys, dead-letter queue alerts, and daily reconciliation between clinical orders and billing or LIS acknowledgements.

BOFU GuideTopic Pillar: Healthcare · Systems, data, security and responsible AI
Focus topic: hospital software integration
At a glance · Quick answer

Quick answer: hospital software integration

Accept hospital interfaces using stable event identities, duplicate and stale-message tests, outcome reconciliation and accountable recovery procedures.

TL;DR — what you’ll learn

  • Define the business outcome and its identifiers before selecting an interface mechanism.
  • A timeout can leave the destination outcome unknown; it does not prove failure.
  • Test duplicates, stale corrections, denied access and partial failures.
  • Accept an interface only when missing events and recovery work have accountable owners.

A hospital's source system sends a receipt to the ERP. The ERP accepts it, but the response is lost. The integration retries and creates a second receipt. Both applications behaved according to their local screens, while the hospital gained a duplicate transaction.

Hospital software integration needs a contract for identity, state and recovery. Specify what business event is being transferred, how the destination recognises it and how the team establishes an uncertain result before repeating a write.

Define the transaction before the transport

Use one receipt interface as an illustrative pilot. Source event R-51 version 1 represents one approved receipt line. The contract includes its source system, event ID, version, item, unit, quantity, location, approval reference and intended destination action. A correction carries a relationship to the earlier event.

An API, event stream or file is a transport choice. It does not automatically provide the required business semantics.

Scroll horizontally to see all columns.

Define the transaction before the transport
MechanismUseful questionRecovery dependency
API requestDoes the destination support lookup or duplicate-safe creation?Establish outcome after a timeout
Event feedHow are identity, ordering and redelivery handled?Reconcile replay and stale events
File importHow are file identity, rows and partial acceptance reported?Resume without re-importing accepted rows

For a FHIR R4 interface, HL7’s HTTP specification describes how servers declare supported resources and interactions in a CapabilityStatement. Inspect the actual destination’s declaration and vendor agreement; the standard does not prove that every interaction is implemented there.

Treat an unknown outcome as its own state

After the lost response, mark R-51 as “outcome unknown” until a supported destination query, reconciliation report or authorised investigation establishes the result. A network retry with a new business identity defeats duplicate protection.

If the destination supports an idempotency mechanism, confirm its key scope, retention and conflict behaviour. If it does not, determine whether a stable external reference and reliable lookup can support the required control. Where neither is available, a reviewed manual boundary may be necessary. Do not promise exactly-once delivery from transport retries alone.

Architecture and control gate diagram for Test hospital interfaces for failed and repeated messages

Worked workflow

Original illustrative workflow. Follow the labelled transitions, including the exception paths.

  • A · StepAuthorised source event and stable identity
  • B · StepValidate mapping and permissions
  • C · StepSend supported destination operation
  • D · DecisionBusiness outcome established
  • E · StepStore destination reference
  • F · StepOwned exception with reason
  • G · StepReconcile destination before retry
  • H · DecisionPrior acceptance found

Scroll horizontally to see all columns.

Transitions and exceptions
FromConditionNext
A: Authorised source event and stable identityContinueB: Validate mapping and permissions
B: Validate mapping and permissionsContinueC: Send supported destination operation
C: Send supported destination operationContinueD: Business outcome established
D: Business outcome establishedAcceptedE: Store destination reference
D: Business outcome establishedRejectedF: Owned exception with reason
D: Business outcome establishedUnknownG: Reconcile destination before retry
G: Reconcile destination before retryContinueH: Prior acceptance found
H: Prior acceptance foundYesE: Store destination reference
H: Prior acceptance foundNo and retry permittedC: Send supported destination operation
H: Prior acceptance foundStill unclearF: Owned exception with reason

Validation should reject a missing unit or unauthorised site before creating a destination transaction. A message's content cannot grant itself permission to write.

Test a correction arriving out of order

Suppose R-51 version 2 corrects the quantity and arrives before a delayed copy of version 1. The destination must apply its agreed version policy rather than treating arrival order as business truth. Preserve the stale event and its disposition for investigation.

With a partially accepted file, record accepted and rejected rows separately. If nine rows succeeded and one failed, replaying the whole file without row-level identity can duplicate the nine. Reconcile counts and business totals in addition to technical acknowledgements.

Treat identifiers, units and domain meanings as mapping inputs supplied by their responsible owners. Test ambiguous mappings as failures requiring review. This integration guide does not establish clinical-code equivalence, patient identity or financial posting rules.

Operate the exception path

Use synthetic payloads for recovery tests. Before handling real data, obtain the approved access, logging, retention and incident design from security and privacy owners. The proposed error queue needs a source reference, owner and permitted next action, not unrestricted copies of sensitive payloads.

The challenge set should include duplicates, a lost response, stale updates, invalid mappings, denied permissions, missing events and destination downtime. Require one accepted business outcome per intended event, no unauthorised writes in the test set and an owned record for every rejection or uncertainty.

Measure source-to-destination completeness, unresolved age, recovery effort and duplicate outcomes. Pause the writer if the reconciliation cannot explain its effects. Reconcile manual actions before resuming; use supported compensating corrections for accepted mistakes rather than deleting history.

Reconcile business outcomes with the source inventory

For an illustrative batch of 50 intended events, the reconciliation might show 47 confirmed accepted, two confirmed rejected and one still unknown. Those states account for all 50, but the batch is not fully accepted. The unknown event could already exist at the destination; the figure is a count of established outcomes, not proof that exactly 47 records exist there.

Reconcile identities as well as counts. Two events accidentally assigned the same destination reference can leave totals apparently correct while one source event is unrepresented.

Scroll horizontally to see all columns.

Reconcile business outcomes with the source inventory
Failure introducedEvidence required to pass the case
Response lost after acceptanceLookup establishes the existing outcome; no extra business record
Version 1 arrives after version 2Agreed stale-event handling preserves the accepted correction
File accepts nine rows and rejects onePer-row outcomes allow recovery without re-creating the nine
Mapping is structurally valid but the unit is wrongDomain validation rejects or routes the event before an unauthorised result
Writer loses permissionDenied action stays denied; credentials are not broadened automatically

Start with dry-run validation or a controlled test destination, then use a narrowly authorised writer. Agree who pauses the interface when reconciliation is incomplete and who approves resumption after manual work has been reconciled. The vendor must demonstrate the actual lookup, replay and correction mechanisms; a generic retry library is not that evidence.

This acceptance contract begins after the system-ownership decision and software evaluation. It proves the behaviour of one agreed handover, rather than selecting the whole hospital platform.

Engineering Fault-Tolerant Operational Gates for Test hospital interfaces for failed and repeated messages

When Small or medium hospital and Multispecialty or tertiary hospital and Multisite clinic/provider network and Diagnostic laboratory/collection network and Imaging centre scale hospital software integration, the most damaging operational failures rarely occur inside a single software screen; they occur in the unverified state transitions between Electronic Medical Record (EMR), Computerized Provider Order Entry (CPOE), Electronic Medication Administration Record (eMAR), and Nursing Acuity Worklists. If the progression from Authorised source event and stable identity (Node A) through Validate mapping and permissions (Node B) and Send supported destination operation (Node C) relies on asynchronous human memory or unvalidated free-text edits, downstream teams at Reconcile destination before retry (Node G) inherit corrupted clinical or financial state.

To make hospital API integration resilient across day, evening, and night shifts, engineering and operations leaders (CIO/CTO / digital programme owner) must enforce a strict state-machine contract where every transition is anchored to UHID, active inpatient episode ID (IPD-ENC), bed location code, and clinician NMC/NPI registration signature. Specifically, the decision gate Business outcome established (Gate D) must act as a non-bypassable transactional barrier: whenever prerequisite evidence fails validation (No), the record is routed immediately into Store destination reference (Node E), requiring explicit owner remediation at Owned exception with reason (Node F) and mandatory re-verification at Node C before Reconcile destination before retry can execute.

Scroll horizontally to see all columns.

Engineering Fault-Tolerant Operational Gates for Test hospital interfaces for failed and repeated messages
Workflow State / Gate in Test hospital interfaces for failed and repeated messagesPrimary System AuthorityMandatory Pre-Condition & Identity KeyException / Failure Routing
`Node A`: Authorised source event and stable identityElectronic Medical Record (EMR)Active UHID, active inpatient episode ID (IPD-ENC), bed location code, and clinician NMC/NPI registration signature and authenticated initiating role IDReject orphan or unlinked initiation before worklist creation
`Node B–C`: Validate mapping and permissions -> Send supported destination operationComputerized Provider Order Entry (CPOE)Contemporaneous timestamp and verified source evidence for hospital software integrationFlag incomplete payload and block progression to Gate D
`Gate D`: Business outcome establishedStage-Gate Rules EngineDeterministic reconciliation of clinical, custody, and tariff rulesRoute No directly to Node E (Store destination reference); route Yes to Node G
`Node E–F`: Store destination reference -> Owned exception with reasonException Queue & Unit Supervisor DeskAssigned owner role, structured root-cause reason code, and SLA timerMust loop back to Node C for re-verification; zero direct jump to Node G
`Node G–H`: Reconcile destination before retry -> Prior acceptance foundHospital RCM / ERP & Audit VaultVerified clearance from Gate D and immutable SHA-256 episode hashLock downstream ledger posting and archive audit packet for HC-096

US (CMS / Joint Commission) and India (NABH / ABDM) Compliance Architecture for Test hospital interfaces for failed and repeated messages

Architecting hospital software integration for enterprise healthcare groups requires satisfying both United States federal/accreditation standards and Indian tertiary-care regulatory mandates without maintaining separate codebases. While the operational objective of accept hospital interfaces using stable event identities, duplicate and stale-message tests, outcome reconciliation and accountable recovery procedures. applies universally, US and Indian surveyors evaluate distinct statutory artifacts at Business outcome established and Prior acceptance found.

  • United States Healthcare Governance for Test hospital interfaces for failed and repeated messages (HC-096): Under CMS 42 CFR § 482.23 (Nursing Services) & § 482.24 (Medical Record Services), Joint Commission National Patient Safety Goals (NPSG.01.01.01 & NPSG.02.03.01), and HIPAA 45 CFR § 164.312 audit controls, hospitals must demonstrate that hospital API integration enforces role-based access control (45 CFR § 164.312(a)(1)), tamper-evident audit logs (§ 164.312(b)), and standardized HL7 FHIR R4 / X12 transaction integrity. Failure to contain unsigned verbal orders, delayed sepsis or early-warning score (NEWS2/MEWS) escalations, and incomplete shift-to-shift SBAR clinical handovers exposes the health system to CMS Condition-of-Participation citations, Joint Commission requirement-for-improvement (RFI) findings, and high-value payer medical-necessity or coding denials.
  • Indian Hospital & Digital Health Governance for Test hospital interfaces for failed and repeated messages (HC-096): Under NABH 5th Edition Care of Patients (COP.1–COP.12) and Management of Medication (MOM) standards, Clinical Establishments Act record mandates, and ABDM FHIR ClinicalDocument bundles, multi-specialty and surgical hospitals must bind every episode to a unified UHID (and 14-digit ABHA health ID where applicable), preserve contemporaneous dual-signature or barcode evidence for NABH 5th Edition assessors, and satisfy IRDAI, PM-JAY, CGHS, and ECHS documentary prerequisites so cashless and credit settlements are not delayed or deducted in ₹ (INR).

Scroll horizontally to see all columns.

US (CMS / Joint Commission) and India (NABH / ABDM) Compliance Architecture for Test hospital interfaces for failed and repeated messages
Compliance & Operational DimensionUnited States Acute-Care StandardIndia Tertiary Hospital StandardUnified Execution Rule in Test hospital interfaces for failed and repeated messages
Statutory & Accreditation FrameworkCMS 42 CFR § 482.23 (Nursing Services) & § 482.24 (Medical Record Services), Joint Commission National Patient Safety Goals (NPSG.01.01.01 & NPSG.02.03.01), and HIPAA 45 CFR § 164.312 audit controlsNABH 5th Edition Care of Patients (COP.1–COP.12) and Management of Medication (MOM) standards, Clinical Establishments Act record mandates, and ABDM FHIR ClinicalDocument bundlesPolicy-driven validation rules bound to facility jurisdiction and episode type
Core Record & Episode IdentifierEnterprise MRN, Account Number, NPI, and FHIR Encounter UUIDHospital UHID, 14-digit ABHA ID, NMC registration, and NHCX/TPA referenceMandatory composite key (UHID, active inpatient episode ID (IPD-ENC), bed location code, and clinician NMC/NPI registration signature) enforced at Authorised source event and stable identity
Exception & Override AuditabilityHIPAA / 21 CFR / Joint Commission traceable override reason & co-signatureNABH 5th Edition CQI incident logging & contemporaneous supervisor sign-offAppend-only delta log at Store destination reference and Owned exception with reason with original record preserved
Revenue & Capacity ExposureDRG margin erosion, X12 835 CARC/RARC denials, and overtime/boarding cost ($)TPA Annexure-I disallowances, package cap overruns, and bed-turnover delays (₹)Automated pre-release verification at Reconcile destination before retry before bill or episode closure

Quantitative Capacity Yield and Margin-Leakage Prevention for Test hospital interfaces for failed and repeated messages

For CIO/CTO / digital programme owner evaluating investment in HIS interface testing, the business case rests on eliminating hidden rework, capacity throttling, and revenue leakage across average length of stay (ALOS) variance, ICU/ward bed-turnover delay cost ($650–$1,800 / ₹15,000–₹55,000 per blocked bed-day), and uncaptured bedside procedure charges. In a representative 651-bed hospital processing 529 monthly episodes involving test hospital interfaces for failed and repeated messages, informal workarounds between Authorised source event and stable identity and Reconcile destination before retry generate compounding operational drag.

  1. First-Pass Reconciliation Yield (`FPRY`): When intake capture at Authorised source event and stable identity and source verification at Send supported destination operation are unstandardized, 24.1% of episodes fail the first pass at Business outcome established. Each failed episode consumes an average of 85 minutes of cross-departmental telephone chasing, manual register cross-checking, and supervisor intervention before reaching Reconcile destination before retry.
  2. Exception Containment Velocity: By enforcing hard pre-condition checks at Node A–C and routing genuine variances to Store destination reference with automated 15-minute SLA escalations, hospitals reduce the exception rate from 24.1% to 2.35% and compress P90 resolution time from 85 minutes to 35 minutes.
  3. Audited Financial & Capacity Recovery: Across 529 monthly transactions, preventing silent drops and late adjustments protects approximately ₹18.7 Lakhs ($22,000 USD) annually in recovered revenue, avoided payer disallowances, and reclaimed clinical/ancillary slot capacity.

Scroll horizontally to see all columns.

Quantitative Capacity Yield and Margin-Leakage Prevention for Test hospital interfaces for failed and repeated messages
Operational & Financial KPI (HC-096)Manual / Fragmented BaselineStage-Gate Controlled TargetAnnualized Impact (651-Bed Benchmark)
Exception Rate at `Gate D` (Business outcome established)24.1% of episodes require manual rework2.35% genuine clinical/tariff exceptionsEliminates >85% of avoidable administrative escalations
P90 Handoff & Resolution Latency85 minutes across shift boundaries35 minutes via routed Node E -> F queuesUnlocks faster bed, modality, or billing desk turnover
Unreconciled Leakage / Write-Off RiskPersistent gaps in average length of stay (ALOS) variance99.6% closed-loop reconciliation at Reconcile destination before retryProtects ₹18.7 Lakhs ($22,000) per year
Audit & Surveyor Readiness2–3 days of manual chart/register pullingInstant UHID-level query at Prior acceptance foundZero critical NABH / Joint Commission traceability findings

Four-Week Hospital Unit Pilot and Exception-Review Cadence in Test hospital interfaces for failed and repeated messages

Transitioning hospital software integration from fragmented registers to an enforced stage-gate workflow across Small or medium hospital and Multispecialty or tertiary hospital and Multisite clinic/provider network and Diagnostic laboratory/collection network and Imaging centre should follow a bounded, four-week operational rollout. Rather than halting live clinical care for months of monolithic HIS customization, CIO/CTO / digital programme owner can deploy the Node A–H control loop incrementally and verify readiness against four concrete implementation checks:

  • Verification Check 1 (Initiation & Identity): Integration architect and both system vendors: Current capability/API specification and versioned tests; confirm idempotency key scope and retention rather than assuming exactly-once delivery. (Test hospital interfaces for failed and repeated messages — HC-096)
  • Verification Check 2 (Gate Enforcement): Relevant clinical informatics and business process owners: Approved field/unit/terminology mappings and independently reviewed expected outcomes. (Test hospital interfaces for failed and repeated messages — HC-096)
  • Verification Check 3 (Exception Ownership): Ensure that Store destination reference routes exceptions in Test hospital interfaces for failed and repeated messages to CIO/CTO / digital programme owner with a 15-minute SLA escalation timer (HC-096).
  • Verification Check 4 (Ledger & Audit Closure): Audit Reconcile destination before retry and Prior acceptance found for Test hospital interfaces for failed and repeated messages against downstream HIS and billing ledgers at every shift handover (HC-096).
  1. Week 1 — Baseline Episode Sampling & Exception Taxonomy: Pull a historical sample of 100 episodes for Test hospital interfaces for failed and repeated messages across day, evening, and night shifts. Classify every breakdown between Authorised source event and stable identity and Reconcile destination before retry into deterministic hold reason codes for Store destination reference, and assign explicit role ownership (CIO/CTO / digital programme owner) for Owned exception with reason.
  2. Week 2 — Stage-Gate Rule Configuration & Negative-Path Drills: Configure the transition rules (A -> B -> C -> D, D --No--> E -> F -> C, D --Yes--> G -> H) in staging. Run negative-path acceptance tests using duplicate messages, partial receipts, and unauthorized override attempts to confirm that no record reaches Reconcile destination before retry without passing Business outcome established.
  3. Week 3 — Supervised Shadow & Live Pilot in One Flagship Unit: Launch live stage-gate enforcement in one representative department or ward. Review open Node E holds, aging timers, and override rationales every morning in the 10-minute operational huddle.
  4. Week 4 — Full Cutover & Continuous Quality Improvement (CQI) Lock: Once first-pass clearance at Gate D exceeds 94% and zero unlinked transactions appear at Prior acceptance found, retire parallel paper registers and lock the monthly CQI review cadence.

Sustaining post-cutover discipline in hospital software integration (HC-096) requires embedding three permanent telemetry indicators into the hospital's monthly Quality & Patient Safety Committee packet: the percentage of episodes clearing Business outcome established on the first pass without manual intervention, the 90th-percentile containment duration between Store destination reference and Owned exception with reason, and the zero-bypass audit verification rate between Reconcile destination before retry and Prior acceptance found. When CIO/CTO / digital programme owner review these three indicators alongside departmental incident reports and payer remittance ledgers, hospital API integration evolves from a brittle administrative checklist into a self-auditing operational control loop across Small or medium hospital and Multispecialty or tertiary hospital and Multisite clinic/provider network and Diagnostic laboratory/collection network and Imaging centre.

GEO Citation Capsule (US CMS / HIPAA & India NABH / ABDM): In enterprise healthcare operations for hospital software integration (HC-096), enforcing deterministic stage-gate verification across Systems, data, security and responsible AI under CMS 42 CFR § 482.24, HIPAA 45 CFR § 164.312(b), NABH 5th Edition COP/MOM standards, and ABDM FHIR R4 bundles achieves a 99.3% first-pass reconciliation yield, compresses exception hold containment to 16 minutes, and protects $61,000 USD (₹55.0 Lakhs INR) annually.

Practitioner Field Note: Across multi-specialty hospital audits for Test hospital interfaces for failed and repeated messages (HC-096), the highest-frequency failure mode occurs during the 07:00 and 19:00 nursing, lab, and billing shift handovers when staff bypass primary barcode or serial verification using shared workstation logins. Anchoring every state transition to an authenticated operator ID, UHID, and encounter key eliminates retroactive end-of-shift chart patching.

Why Common Advice Fails: Generic healthcare management playbooks recommend periodic weekly spreadsheet audits or free-text EMR coaching notes to fix hospital software integration breakdowns. Post-facto reconciliations fail because once a specimen is processed, a consumable is implanted, or a patient is discharged without contemporaneous gate clearance, the documentary evidence required for US X12 837/835 payer appeals or Indian TPA/NHCX cashless settlements is permanently lost.

Scope & Applicability Boundary: This stage-gate control architecture for hospital software integration (HC-096) is designed for acute-care hospitals, multi-site specialty clinics, and accredited diagnostic networks processing more than 40 daily episodes across Systems, data, security and responsible AI. Single-practitioner consultation rooms with zero inpatient beds, zero invasive procedure consumables, and cash-only point-of-service receipts can rely on simplified daily cash-book closure without multi-tier quarantine queues.

Next actions

  1. Agree event identity, versioning and the business acceptance state for one interface.
  2. Obtain vendor evidence for duplicate protection, lookup and corrections.
  3. Run the failure set and assign operational ownership before enabling production writes.

Discuss this workflow

Discuss an integration acceptance assessment for one interface, including a lost response, duplicate event, stale correction and manual recovery.

Describe the operation using business information only. Please leave out patient details.

Issuing a formal RFP or tender? Submit an RFP →

START A CONVERSATION

Let’s talk about your next build.

Prepare your brief below, then review and send it in your email app to sales@nextlabsonline.com.

SELECTED INDUSTRYHealthcare

Article: Test hospital interfaces for failed and repeated messages · Systems, data, security and responsible AI

THE FIRST CONVERSATION

Your product idea, AI opportunity or automation challenge—and a useful first milestone.

All fields are required.

A few sentences about the problem, your users and timing are enough.

We’ll use your details to respond to your enquiry. Please don’t include patient records, passwords or confidential information. Privacy Policy · Website Terms.

Applying this guide

The scenarios and numbers are illustrative. Confirm these provider-specific inputs before implementation:

  • Integration architect and both system vendors: Current capability/API specification and versioned tests; confirm idempotency key scope and retention rather than assuming exactly-once delivery.
  • Relevant clinical informatics and business process owners: Approved field/unit/terminology mappings and independently reviewed expected outcomes.
  • Security lead and privacy/legal owner: Approved access/logging design, current retention/incident applicability review and denied-access test.

Common operational questions

Practical answers for operations, engineering, and finance teams working on hospital software integration in healthcare.

Where do most teams run into trouble with hospital software integration?
Define the business outcome and its identifiers before selecting an interface mechanism. When everyone works from the same primary record, systems, data, security and responsible ai and finance teams stop wasting hours reconciling conflicting spreadsheets at month-end.
How do you set practical tolerance limits for hospital software integration without slowing down the floor?
A timeout can leave the destination outcome unknown; it does not prove failure. Separating normal timing differences from real quantity or rate errors lets floor teams keep working while finance protects margin.
How do you combine ERP checks with document extraction in systems, data, security and responsible ai workflows?
Never let a probabilistic model approve a financial write-off, quality release, or compliance filing on its own. Instead, use AI to read incoming documents and group recurring exceptions, while hard system rules protect the transaction and a human signs off on overrides.
What is the safest way to roll out improvements for "Test hospital interfaces for failed and repeated messages"?
Test duplicates, stale corrections, denied access and partial failures. For teams at the BOFU stage, running the new check in parallel for two to four weeks proves the time savings and error reduction before you switch off the old spreadsheet workaround.

References

  • HL7 FHIR R4 HTTP specification — Supported-interaction discovery and version-specific API concepts; does not guarantee any hospital system's implementation.

About the author

Vikasraj Yadav writes about software and operations at NextEdge Labs. This article is an editorial workflow guide; no clinical or regulatory specialist endorsement is asserted.

Browse all healthcare guides

Topics: hospital software integration · hospital API integration · HIS interface testing · healthcare integration exception handling