Skip to content

Commit

Permalink
Align structure map logical IDs with persist option (#169)
Browse files Browse the repository at this point in the history
* Update mappingfile.rst

* Update runningtransforms.rst
  • Loading branch information
vadi2 committed Apr 19, 2021
1 parent 573eea1 commit 965bb6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mappingengine/runningtransforms/runningtransforms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Once your transforms are setup (:ref:`setup_transforms`), you can run your data

To do so, ``POST http(s)://<firely-server-endpoint>/administration/StructureMap/<logical id>/$transform`` with content to transform as the resource body. Make sure to set the ``Content-Type`` to either ``application/json`` or ``application/xml`` accordingly.

For the example we've been working with so far, ``POST http://localhost:4080/administration/StructureMap/tutorial/$transform`` with a `sample resource <https://simplifier.net/fhirmapper/FakeInpatientDrugChart-example/~json>`_ as the body.
For the example we've been working with so far, ``POST http://localhost:4080/administration/StructureMap/FHIRMapperTutorial/$transform`` with a `sample resource <https://simplifier.net/fhirmapper/FakeInpatientDrugChart-example/~json>`_ as the body.

Simplified sample call:

Expand Down
2 changes: 1 addition & 1 deletion mappingengine/transformsetup/mappingfile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The FHIR Mapper operates on a StructureMap resource, so let's convert the mappin

2. ``POST http(s)://<firely-server-endpoint>/administration/StructureMap`` with the resulting ``StructureMap``, or ``PUT`` to a unique ID. Make sure you don't make duplicates of the StructureMap on the server - so always use ``PUT`` to update the existing one afterwards. Note down logical ID of your map.

2.1. In our example, add ``"id": "tutorial",`` to the StructureMap received in step 1 and upload it to ``http://localhost:4080/administration/StructureMap/tutorial``. Thus ``tutorial`` is the logical ID we're working with.
2.1. In our example, add ``"id": "tutorial",`` to the StructureMap received in step 1 and upload it to ``http://localhost:4080/administration/StructureMap/FHIRMapperTutorial``. Thus ``FHIRMapperTutorial`` is the logical ID we're working with.

.. note::

Expand Down

0 comments on commit 965bb6b

Please sign in to comment.