Patient Registration Desk
The Patient Registration Desk is for the people who register patients from scanned request forms, for example the registration or finance staff of a hospital, a clinic, a laboratory or a blood service. An AI agent reads each scanned form; SAP checks what was read and creates or updates the patient as a business partner. The desk shows what was read, what SAP checked, what changes in the patient master data, and every case that needs a person. It runs on SAP ECC 6.0 and SAP S/4HANA, with SAP business partners and SAP DMS.

What you can do
Section titled “What you can do”- Follow the process from scan to patient in SAP: received, read by the AI agent, and in SAP, with what stopped at each stage: not read yet, waiting for a person (with the age of the oldest), ready to post, rejected. Every number, bar and dot opens its scans in the work list.
- Choose the period: today, the last 3, 7 or 30 days, all, or between two dates.
- Work the list with search and status filters.
- Analyze: the time from scan to SAP, straight through against after review; new, updated and unchanged patient records; arrivals by day and hour; the confidence of the readings against the posting limit; why a person was needed; and where the forms come from.
- Review a document: the scan next to the form with what was read, with zoom and enhanced contrast; what SAP checked; what changes in SAP; the patient in SAP; the patient’s other scans; and the DMS status history.
- See the patient: a timeline of the patient’s scans, the person, address and phones, identifications, and what each scan changed in SAP.
- Act: read one scan or all new scans with AI, save corrections, post to SAP, reject, reset or add a note.
- Upload scans: one DMS document per file.
- Ask the assistant about the scan, the patient or the scans of the period.

What changes in SAP
Section titled “What changes in SAP”| What you do | Interface |
|---|---|
| Save what was read or corrected, post to SAP, reject, reset, add a note | process_document_capture |
| Upload scans as DMS documents | dms_document_create |
Every change goes through process_document_capture, with a test run first where the tool offers one. SAP checks what
was read, for example the check digit of an identification number and the match with existing patients, in the
handler of the document capture profile. A person reviews every document unless the capture profile lets clean
documents above the posting limit go straight through.
AI assistant and reading
Section titled “AI assistant and reading”- Reading the scans: what reads a scan is set in
ai.readerand in LibreChat as the document reader: the AI model itself, an image model, or an OCR model whose text the AI model turns into the form’s data. A text-only AI model is enough with an OCR model. Without a reader, Read with AI is greyed out and the page says why. Reading one scan never posts it on its own: it waits for a person or for the capture profile’s straight-through rule. - The assistant: a side panel about what is on the screen. It can search and read patients in SAP and proposes corrections, which the person puts into the form and saves. It never changes SAP.
See Choose the AI Models.
Data protection
Section titled “Data protection”- The scans stay in SAP DMS, and the patients are SAP business partners; the desk keeps no data of its own.
- You choose the model that reads the scans. An OCR or image model on your own servers keeps the scans in your network.
- SAP checks what was read before anything is posted, and a person reviews every document that does not pass the capture profile’s checks and posting limit.
- The agent ledger and the DMS status history keep the trail of every reading and change.
- Every call runs under the user’s own SAP user and authorizations.
For your institution
Section titled “For your institution”The delivered app is a foundation. What a hospital, clinic, laboratory or blood service sets for its own forms:
| What | Where |
|---|---|
| The form, its fields and the reading instructions for the AI | The document capture profile in SAP |
| Labels of the fields and texts of coded values | defaults.fieldTexts, defaults.valueTexts in app.env.js |
| Identification types and their checks, for example per country | defaults.idTypes and the profile’s handler in SAP |
| Business partner grouping and roles of patients | The profile’s handler in SAP |
| Which documents post without a person | The posting limit of the capture profile |
| Where forms come from, for the analysis | defaults.facets |
Changes beyond these, such as another form layout or other checks, are made by a development agent in the profile’s handler and the page. See Adapting Apps.
Launchpad
Section titled “Launchpad”App ID BP_PATIENT_REGISTRATION_DESK. No delivered process has a registration step, so give the app a collection of
its own, for example Patient management with the steps Received, Read by AI, Review and In SAP.
| Figure | What it counts | Watch / critical |
|---|---|---|
| Review | Scans waiting for a person, with the age of the oldest | Watch from 1; critical when the oldest waits 4 hours or more |
| New | New scans the AI agent has not read yet | Watch from 1 |
| Ready | Scans read and checked, ready to post | Watch from 1 |
| Posted | Scans registered in SAP in the last 7 days, with the share posted without a person | – |
| Failed | Postings that failed in SAP | Always critical |
Set the parameter variable /SKYBFR/LP_BP_CAPTURE_PROFILE to the capture profile the desk works on, equal to
defaults.profile. Without it, the Launchpad uses the only capture profile of the system; with several, it shows the
app without figures.
Setting it up
Section titled “Setting it up”The app calls the MCP server of your SAP ECC 6.0 or SAP S/4HANA system, named SAP ERD in the package (see
Connect SAP):
| Interface | Used for | Changes SAP |
|---|---|---|
get_document_capture_inbox |
Work list, process picture and analysis of the capture profile in the chosen period | No |
get_document_capture_detail |
One document: reading instructions, originals, what was read, findings, changes, DMS status history | No |
process_document_capture |
Saves what was read, posts, rejects, resets, notes | Yes |
dms_document_create |
Uploads scans as DMS documents | Yes |
dms_get_original_binary |
The original scan, for the viewer and for reading | No |
manage_person_business_partner |
Reads and searches patients in SAP | No |
get_agent_actions |
The agent activity from the agent ledger | No |
In SAP, the document capture profile named in defaults.profile has to exist, with its DMS document type, statuses,
handler and reading instructions. defaults.documentType is the DMS type for uploads. defaults.upkeepTool names a
demo upkeep tool for demonstration and test systems only; leave it empty in every other system.
“Document in SAP” and “Patient in SAP” open SAP GUI for HTML at defaults.sapGuiUrl; set it for your system or leave
it empty to hide the links.
Limitations
Section titled “Limitations”- The scan viewer loads its PDF component from cdnjs.cloudflare.com when a PDF is opened. If your network blocks it, the viewer says it could not be loaded; the component can be put into the package instead.
- An OCR model passes on text, not its doubts: a misread digit reaches the AI model as plain text. SAP’s checks and the review catch part of this; test the reader on your own forms before relying on it.
- “Document in SAP” and “Patient in SAP” open a new window, which needs the app frame to allow pop-ups.
- The period, the contrast setting of the viewer and the recent reading times are kept per browser where LibreChat allows it.