Skip to content

MDMI Message Transformations Using Postman

Bill-MDIX edited this page Feb 29, 2024 · 4 revisions

API Test (Postman)

Postman is a popular tool for API development. It is a standalone application available at https://www.postman.com/

A set of Postman API requests is provided for ease of use. Download this zip file, MDMI_Demo.zip, and expand it. The resultant file is MDMI_Demo.json.

Using the Prepackaged Requests

After installing Postman, download and expand the zip file as described above. From within Postman, click the Import button at the top of the left pane and select this file. It will create a "collection" named MDIX Demonstration. This provides six requests:

  • GET Get
  • POST CDAtoFHIR
  • POST FHIR2CDA
  • POST V2toFHIR
  • POST SBHAtoFHIR
  • POST SBHAtoCDA

Running Postman

The POST requests are used for message transformation. For example, to transform a CDA message, click on POST CDAtoFHIR from the left pane.

In the right pane, click on Body as shown. In this example, {(test-url)} is a Postman variable set to http://localhost:8282/mdmi/transformation.

CDAtoFHIR

From there click the Select Files button and enter your message file.

At this point you can run by clicking the Send button in the upper right of the window. The resultant message will appear at the bottom of the right pane.