--- title: "MPI API Sample" slug: "mpi-api-sample" updated: 2026-05-28T20:40:07Z published: 2026-05-28T20:40:07Z canonical: "docs.imat.io/mpi-api-sample" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.imat.io/llms.txt > Use this file to discover all available pages before exploring further. # MPI API Sample ## MPI IMAT Solutions uses FHIR as a means of exchanging electronic healthcare records and is used to link patient data across various systems. Queries can be constructed with inbound facility name and MRN; first, middle, and last name; and optionally date of birth and SSN. The MPI API call below is to retrieve an MRN for a specified facility. The interface will return an XML document with a series of "hit" elements, each containing the raw FHIR record associated with each patient. All of the parameters below should look familiar with the exception of `caller=mpi`. Use this each time when performing an MPI query. See [query parameters](/v1/docs//query-syntax#basic-query-parameters) for more information. #### Example: ``` https:///search?caller=mpi&store=mpi-persona&report=exacttotal&limit=25&fields=uri,rawrecord&q=()first_name:"Ricky" family_name:"Ramsay" ``` #### Response: ``` 2016-05-17 15:40:32 mpi/persona/12.MPI
...
()first_name:"Ricky" family_name:"Ramsay" 0.000032 0.000064 0.000152 0.000306 0.000490 ``` Integrated Medical Analytics Technology The Fast Healthcare Interoperability Resources is an HL7 standard that defines how healthcare information can be exchanged between computer systems regardless of how it is stored in those systems. A Medical Record Number is a unique identifier assigned to a patient for tracking and lookup purposes. This number is assigned by the facility. It can also be called a FMRN, Facility Medical Record Number.