Exporting and importing maps
Running maps saved in FUME Playground locally
Install FUME Community edition from the GitHub repository and configure it to work with your FHIR server.
Create test and save a FUME map in the FUME Playground.
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.
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}
Make sure the server returns the status HTTP 201 and then restart the FUME process.
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