Wires Epic Infobuttons to external clinical knowledge resources over the HL7 Infobutton (URL-Based Implementation Guide) standard, brokering patient- and order-contextual reference requests from Hyperdrive through MuleSoft to vetted content vendors and returning ranked, deep-linked answers.
Tags: healthcare, epic, interoperability, api-led, system-api, process-api, loinc
Clinical Knowledge Set Apps
Objective: Clinicians lose minutes hunting reference material in a second browser, and generic search ignores the patient in front of them. Epic emits an HL7 Infobutton request when a user clicks the info icon beside a medication, lab, or problem, carrying the coded concept, patient age and sex, and the task at hand. The goal is to accept that request, normalize the context, fan out to the right licensed knowledge vendors, and return ranked deep links inline in Hyperdrive in under two seconds. Done looks like a clinician clicking the Infobutton on a potassium result and landing on the exact monograph section for hyperkalemia in an elderly patient, with no manual searching. This accelerator packages the Clinical Knowledge Set Apps Epic Data Sharing Playbook as a MuleSoft-anchored solution plan.
What's Getting Built
- Knowledge Broker (Experience API) — accepts the Infobutton URL request from Hyperdrive and returns the ranked, deep-linked Atom knowledge response ·
GET /knowledge?mainSearchCriteria.v.c&knowledgeResponseType=application/atom+xml, RETURN ranked deep links to Hyperdrive
- Context Normalize (Process API) — normalizes the code-system OID and patient context, selects vendors from a rules table, then fans out and assembles the Atom feed ·
NORMALIZE code-system OID to vocabulary, SELECT vendors from rules table, FAN-OUT vendors in parallel, RANK and transform to Atom feed
- Vendor Connectors (System API) — calls entitled knowledge vendors such as UpToDate, Lexicomp, or MedlinePlus with per-vendor timeouts and demographic filters ·
GET /vendor/{name}/content, TIMEOUT per-vendor below budget
- Resource registry and crosswalk (Object Store) — caches concept-to-vendor-URL mappings and vocabulary crosswalks with a short TTL ·
GET /{concept}, PUT /{concept} TTL
- Dead-letter queue (target) — captures failed or timed-out vendor calls with the ingress correlation ID for triage ·
PUBLISH dlq with correlation ID
- Cogito analytics (target) — receives a structured utilization event per response for click-through reporting ·
EMIT utilization event
Prerequisites
- Epic Infobutton configured in Hyperdrive/Hyperspace with the external knowledge base URL pointed at the Anypoint Experience API endpoint
- HL7 Context-Aware Knowledge Retrieval (Infobutton) URL-Based Implementation Guide reviewed for the mainSearchCriteria, patientPerson, and taskContext parameters
- Licensed subscriptions and API credentials for the target knowledge vendors such as UpToDate, Lexicomp, IBM Micromedex, or MedlinePlus Connect
- Anypoint Platform environment with API Manager, a client-credentials policy, and Anypoint MQ for the dead-letter queue
- Concept vocabulary crosswalks available: RxNorm for medications, LOINC for labs, ICD-10-CM and SNOMED CT for problems
- TLS certificates and allowlisted egress from CloudHub to each vendor domain
1. Epic interfaces and standards
This accelerator implements the Clinical Knowledge Set Apps Epic Data Sharing Playbook. Register the connecting app on Epic on FHIR and confirm the customer has the relevant Epic modules licensed before building.
- Hyperdrive and Hyperspace Infobutton launch points
- HL7 Infobutton URL-Based Implementation Guide
- Infobutton knowledge response Atom feed
- OpenInfobutton concept vocabularies RxNorm LOINC SNOMED CT ICD-10-CM
- Cogito for click-through and utilization analytics
Architecture
2. Business requirements
- Resolve an Infobutton click to relevant reference content inline, so clinicians never leave the chart to search a second tab.
- Honor context: the same drug concept must return dosing content for a prescriber and administration content for a nurse based on taskContext.
- Return within two seconds at the 95th percentile, because a slow Infobutton is worse than no Infobutton and gets disabled by users.
- Respect licensing: only query vendors the organization is entitled to, and never leak PHI to a vendor that is not covered.
- Degrade gracefully to a single always-available resource such as MedlinePlus when premium vendors time out.
3. Accepting and parsing the Infobutton request
- Expose the Experience API as a GET endpoint matching the Infobutton URL-Based IG so Epic can call it as the configured knowledge base.
- Parse the flattened HL7 parameters: mainSearchCriteria.v.c and .cs for the concept code and code system, patientPerson.administrativeGenderCode, and the age observation.
- Read informationRecipient and performer role codes to derive the clinical task, defaulting to a generic view when absent.
- Reject requests missing a resolvable concept with a 400 and a human-readable message, not a silent empty feed.
- Attach a correlation ID at ingress and propagate it to every downstream vendor call for end-to-end tracing.
4. Concept normalization and vendor routing
- Normalize the incoming code system OID to a canonical vocabulary name, mapping RxNorm, LOINC, SNOMED CT, and ICD-10-CM OIDs explicitly.
- Crosswalk the concept to each vendor's expected identifier using the resource registry, since UpToDate and Lexicomp key on different vocabularies.
- Select target vendors from a rules table keyed on concept type and task, not a hardcoded fan-out to everyone.
- Translate patient age and sex into vendor-specific query parameters where the vendor supports demographic filtering.
- Cache the concept-to-vendor-URL mapping with a short TTL, since registry lookups dominate latency for repeat concepts.
5. Orchestration and response assembly
- Fan out to selected vendors in parallel with a strict per-vendor timeout, and assemble whatever returns before the deadline.
- Rank results by task relevance and vendor priority, then transform to the Infobutton Atom knowledge response feed with DataWeave.
- Deduplicate near-identical monograph links so the clinician does not see the same content twice from two vendors.
- Return partial results rather than failing the whole request when one vendor is slow or down.
- Emit a structured utilization event per response for Cogito so leaders can see which resources actually get clicked.
6. Security and compliance
- Encrypt PHI in transit and at rest.
- Audit-log every access to and modification of patient data, and carry a correlation ID end to end.
- Enforce minimum-necessary access for integration operators and support users.
- Send only the minimum context each vendor needs; strip patient age and sex from calls to vendors that do not use them and never send name, MRN, or date of birth.
- Treat vendor API keys as environment secrets in Anypoint secure properties, rotated on a schedule and scoped per environment.
- Enforce a per-vendor egress allowlist so a misconfigured registry entry cannot exfiltrate context to an unapproved domain.
- Log the concept code and task but redact any demographic values from correlation traces retained beyond the request.
Sample payload — Infobutton URL request from Hyperdrive for a serum potassium result
GET /knowledge?knowledgeResponseType=application/atom+xml&mainSearchCriteria.v.c=2823-3&mainSearchCriteria.v.cs=2.16.840.1.113883.6.1&mainSearchCriteria.v.dn=Potassium%20SerPl-sCnc&patientPerson.administrativeGenderCode.c=F&age.v.v=78&age.v.u=a&informationRecipient=PROV&taskContext.c.c=LABRREV HTTP/1.1
Host: knowledge-broker.example-hospital.org
X-Correlation-ID: 6f1c2a9e-infobtn-4b2d
Testing and validation
- Assert the parser extracts code, code system OID, gender, and age from the flattened Infobutton query string and maps LOINC 2.16.840.1.113883.6.1 correctly.
- Verify taskContext LABRREV routes to lab-interpretation content while a MEDDOSE task on an RxNorm code routes to dosing content.
- Simulate a vendor timeout and confirm the response returns partial ranked results plus the MedlinePlus fallback rather than a 500.
- Confirm the Atom knowledge response feed validates against the Infobutton IG schema and renders as clickable links in a Hyperdrive test environment.
- Send a request with no resolvable concept and confirm a 400 with a diagnostic message, not an empty 200 feed.
- Load-test at expected peak Infobutton click volume and confirm 95th-percentile latency stays under two seconds with caching warm.
Phased rollout
Phase 1 — Connect
- Stand up the Experience API in a non-production environment and point one Epic test department's Infobutton at it.
- Wire a single always-available vendor such as MedlinePlus Connect to prove the request-response round trip end to end.
Phase 2 — Map and test
- Build the resource registry and concept crosswalks for the top drug, lab, and problem concepts by click volume.
- Add premium vendor connectors with per-vendor timeouts and validate ranking against clinician-reviewed expected results.
Phase 3 — Production
- Enable the Infobutton for a pilot specialty, monitor click-through and latency in Cogito, then widen by department.
- Set alerting on vendor error rates and on the absence of expected Infobutton traffic before enterprise rollout.
Success metrics
- 95th-percentile end-to-end response latency under two seconds
- Infobutton click-through rate: fraction of returned feeds with at least one clicked link
- Concept resolution rate: share of requests with a resolvable, crosswalked concept
- Per-vendor timeout and error rate
- Fallback invocation rate when premium vendors miss the deadline
Troubleshooting
- Infobutton returns an empty result list in Hyperdrive despite a valid click. — Likely cause: The incoming code system OID was not in the normalization table so the concept never crosswalked to any vendor identifier. Fix: Add the unmapped OID to the vocabulary normalization map and log unmapped OIDs so the registry gap is visible instead of silent.
- Responses intermittently take five to ten seconds and clinicians stop using the icon. — Likely cause: One slow vendor has no per-call timeout so the parallel fan-out waits on the slowest responder. Fix: Set a strict per-vendor timeout below the two-second budget and assemble partial results from whatever returned in time.
- A vendor rejects calls with an authorization error after working for weeks. — Likely cause: The vendor API key expired or was rotated without updating Anypoint secure properties. Fix: Rotate the key in the environment secrets, redeploy the property set, and add an auth-failure alert distinct from generic 5xx alerts.
Deliverable: A deployable Anypoint blueprint: an Infobutton URL-request System API, a context-normalization Process API, and a knowledge-broker Experience API that returns ranked reference links to Hyperdrive Infobuttons, packaged with DataWeave mappings, a curated resource registry, and CloudHub runtime configuration.