Skip to main content

Provider overview

A provider system is the hospital's side of the exchange. It takes a patient from the front desk to a settled claim without anyone leaving the HMIS. It does that by making a fixed set of calls to the exchange and hosting a fixed set of callbacks for the payer's answers.

This section assumes the base framework from Getting Started is working: you have a token, a participant record, your own key, and a callback endpoint that opens messages. Everything here is what goes on top.

Registration and Eligibility, Insurance Plan, Preauthorisation, Discharge and Claim, and Payment and Communication describe the flow as NHCX defines it for any payer. PMJAY runs the same endpoints with different rules around them; those rules are collected in PMJAY Provider so the generic flow stays readable and the scheme's additions are in one place, and Biometric Authentication covers the scheme's proof that the beneficiary was present. UI Guide turns all of it into screens, for whoever is designing the hospital's interface rather than its integration. Provider Checklist is the checklist you have to demonstrate to leave the sandbox.

What the hospital sees

The user-facing shape is a handful of screens that map one-to-one onto exchange calls. The mapping is worth fixing early, because it decides where each API is called from.

ScreenWhat the user doesExchange call behind it
Patient searchFinds the beneficiary by ABHA, member ID or mobile; picks the payerParticipant list, policy lookup
RegistrationConfirms cover and sees the remaining limitCoverage eligibility, purpose validation
Treatment planPicks the service or package, sees what is covered and what documents are requiredInsurance plan (cached), eligibility with purpose benefits and auth-requirements
PreauthorisationFills clinical and financial sections, attaches documents, submitsPreauthorisation submit
EnhancementAdds procedures or days against an approved casePreauthorisation submit, enhancement code
Query inboxReads a payer request for more, attaches what was asked, repliesCommunication request and response
DischargeRecords discharge and sends a provisional claim before the patient leavesClaim submit, discharge code
ClaimConfirms the final bill, submitsClaim submit
ReprocessAppeals a rejection or a reduced approvalTask submit
PaymentsSees notices, UTR and deductions; acknowledgesPayment notice callback, acknowledgement
Case statusOne line per case with its current stateDriven by callbacks and status check

What the system calls

From the Overview's use-case catalogue, a provider calls the B-series and the shared A-series, and hosts the callbacks for each. In sequence for one admission:

  1. /fetch/participants/list and /participant/get/policies, to find the payer and the policy.
  2. /v1/insuranceplan/request, once per policy, refreshed on a schedule.
  3. /v1/coverageeligibility/check, at registration and again before each submission.
  4. /v1/preauth/submit, for the first request and every follow-up on it.
  5. /v1/claim/submit, for the provisional discharge submission, the final claim, and query answers.
  6. /v1/task/submit, to cancel a preauthorisation or appeal a claim.
  7. /v1/status, whenever a case has gone quiet.

And hosts on_check, on_request, on_submit for each of those, plus /v1/communication/request, /v1/paymentnotice/request, /v1/on_status and /v1/error.

What the system must keep

A provider integration is as much a data model as an API client. Persist, per case:

  • The payer's participant code, the processor code, member ID, product and policy number from the lookups.
  • Every correlation ID sent, with the workflow code and what it was for, so callbacks can be matched.
  • Every raw callback as received, before it is interpreted.
  • The case state, derived from callbacks. The handbook's mapping is a good starting point: approved, partially approved, pending on a query, rejected, cancelled, and then settled once payment code 33 arrives.
  • The insurance plan, versioned, with the version used on each submission.

Build it in this order

The exchanges depend on each other, and building them out of order means testing against answers you cannot yet get.

OrderBuildBecause
1The base framework from Getting StartedNothing below works without a token, a key, a participant record and a callback that answers
2Participant list and policy lookupThey produce the processor code every later message is addressed to
3Coverage eligibility, purpose validationThe cheapest exchange to get right, and the one that proves the whole round trip
4Insurance plan, cachedThe treatment screen is built from it, and preauthorisation validation depends on it
5Preauthorisation, then its query answerThe first bundle with clinical content, and the one payers scrutinise hardest
6Claim, then its query answerReuses the preauthorisation bundle with one field changed
7Payment notice and acknowledgementCloses the case, and under PMJAY gates the shortfall
8Task: cancel and reprocessNeeded for sandbox exit, rarely needed on day one

Provider Checklist is the checklist you demonstrate to leave the sandbox, and it names all thirteen use cases NHA asks for.

Error families, and which desk they belong to

Errors arrive from two places and they go to two different people.

FamilyWhere it arrivesWho acts
PAYR-10xx, PAYR-11xxInside the sealed responseThe desk. Show the payer's own sentence
PAYR-102x structural blockInside the sealed responseThe integration team. It means an id or sequence is missing, not a wrong value
ClaimError-n, PreauthError-nInside the sealed response, on a denialThe desk, on the appeal screen, so the user sees why before deciding to appeal
ERR-PYR-CLM-007Inside the sealed responseThe integration team. The claim was sent under the wrong case number
Protocol response, response.errorOn the callback, in the clearThe integration team. The message could not be opened
NHCX-1010From the exchangeThe integration team. A verdict was sent after the correlation was retired

A protocol response is never a claims-desk problem. Route it away from the queue and toward whoever owns the integration.

Where the rules live

Two rulebooks shape what a provider may send, consulted in this order:

  1. The insurance plan says what the policy covers, at what limits, with which documents required.
  2. The eligibility response says whether this patient is covered right now, how much remains, and which of the plan's requirements apply to the services chosen.

A scheme adds a third: its own rules for how a case is built. For PMJAY those are in PMJAY Provider.