-
Notifications
You must be signed in to change notification settings - Fork 3
MDMI Message Transformations Using 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.
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
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.
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.