Inbound EForm webhook console
Fire the EForm gateway's inbound requests — the examination & prescription webhooks and the PAP lookup — at ArmedARIS. This mock plays the gateway; requests are sent server-side with the x-eform-secretheader, so there's no CORS and the secret never reaches the browser. Further down, outbound response overrides pin what this mock returns when ArmedARIS calls it back.
http://localhost:3000. Paths like /api/eform/webhook/examination are appended.EFORM_WEBHOOK_SECRET.C_PID-1001 so PAP still resolves.Identity overrides — optional; blank = each scenario's default
Examination webhook
1a. Full payload (creates a ghost patient + examination)
201 → { success: true, data: { examinationId } }
Edit payload (preset)
1b. Minimal valid payload (origin + admissionDate only)
201 — omitted text fields default to '', sections stored empty
Edit payload (preset)
1c. Error — null origin
400 → { success: false, error: "origin is required" }
Edit payload (preset)
1d. Error — missing admissionDate
400 → { success: false, error: "admissionDate is required" }
Edit payload (preset)
Prescription webhook
2a. items as nested objects (two drugs)
201 → { success: true, data: { prescriptionId } }
Edit payload (preset)
2b. items as a JSON string (raw EForm 'Value')
201 — the string is JSON.parse-d, then flattened to one item
Edit payload (preset)
2c. Error — null origin
400 → { success: false, error: "origin is required" }
Edit payload (preset)
2d. Error — missing prescribedAt
400 → { success: false, error: "prescribedAt is required" }
Edit payload (preset)
PAP lookup
3. PAP lookup by C_PID
200 → { success: true, data: { allergens[], presentIllness } }
Outbound response overrides
Pin what this mock returns when ArmedARIS calls the VinAllergy / CLS endpoints. While an override is active, every request to that endpoint — any pid / visitCode / sid — gets the stored status + body verbatim (no envelope is added). Lab-results can also be overridden per SID (fill the sid field), since each SID returns a different single test. In-memory only: cleared on server restart. Tip: Load current fetches the generated response so you can tweak a real example instead of typing from scratch.
1. Specimens (SIDs) for a visit — §7
ArmedARIS client fn: fetchVinAllergySpecimens
2. Lab result by SID — §7 labResults
ArmedARIS client fn: fetchVinAllergyLabResults
010124-7558730), Set/Clear/Load target just that id — it wins over the every-sid override. Blank = endpoint-wide.3. Radiology (CĐHA) reports — §8 imageResults
ArmedARIS client fn: fetchVinAllergyRadiologyReports
4. TDCN/PHCN diagnostic-report conclusions
ArmedARIS client fn: fetchVinAllergyDiagnosticConclusions
5. CLS results by patient id — §9 clinicalTests
ArmedARIS client fn: fetchEformClsResults