Skip to main content

Exporting and importing maps

Running maps saved in FUME Playground locally

  1. Install FUME Community edition from the GitHub repository and configure it to work with your FHIR server.

  2. Create test and save a FUME map in the FUME Playground.

  3. Once the FUME mapping is saved within the FUME Playground, fetch the StructureMap resource representing it using the following command in the top right pane: (<Map ID> = Mapping saved name).

    $resolve("StructureMap/<Map ID>")

    Copy the returned StructureMap for use in the next step.

  4. Populate your FHIR server configured as a FUME Community backend with the StructureMap obtained in the previous article using PUT operation.

PUT <FHIR Server URL>/StructureMap/<Map ID> 
Content-Type: application/fhir+json

Body:
{StructureMap}
  1. Make sure the server returns the status HTTP 201 and then restart the FUME process.

  2. Perform test: Invoke the desired map using the FUME engine API

POST <FUME engine base>/Mapping/<Map ID> 
Content-Type: {according to body content type}

Body: Mapping input – Source message to convert by previously stored map