Skip to main content
POST
Infer

Authorizations

Authorization
string
header
required

MedListIQ API key (format: ml_...). Create one at Dashboard → API Keys.

Body

application/json
resources
Resources · object[]
bundle
Bundle · object | null
as_of
string<date-time> | null
format
enum<string>
default:inferred_list

Response envelope shape.

  • inferred_list (default): our proprietary JSON with medications, optional provenance dict, and meta in the body. Ergonomic for dashboards and CDS engines.
  • fhir_bundle: a FHIR R4 Bundle (type: searchset) of MedicationRequest resources, plus Provenance resources at verbosity=full. Meta moves to response headers.
  • fhir_array: a flat array of FHIR resources. MedicationRequest only at minimal/standard; mixed MedicationRequest + Provenance at full. Pipeline-friendly. Meta in response headers.
Available options:
inferred_list,
fhir_bundle,
fhir_array
verbosity
enum<string>
default:minimal
Available options:
minimal,
standard,
full
statuses
enum<string>[] | null

Optional status filter. When present, only medications with an inferred status in this list are returned. When omitted, all statuses are returned.

Available options:
active,
completed,
stopped,
cancelled,
unknown

Response

Inferred medication list. Default shape (format=inferred_list) is shown below — pick from the union by request verbosity: InferResponseMinimal (verbosity=minimal), InferResponseStandard (verbosity=standard), or InferResponseFull (verbosity=full, adds provenance dict). When format=fhir_bundle the body is a FHIR R4 Bundle of MedicationRequest (+ Provenance at full verbosity). When format=fhir_array it's a flat array of FHIR resources. See https://docs.medlistiq.com/guides/output-formats for examples and the response-header reference.

medications
InferredMedicationStandard · object[]
required
provenance
Provenance · object
required
meta
InferMeta · object
required