Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mharthoorn committed Feb 24, 2016
1 parent 2224d22 commit f9c46e6
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs_simplifier/simplifierWriteConnector.rst
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
# Writing a connector script
Writing a connector script
--------------------------

There are several things that you will likely do when you write a connector script. And to make this as easy as possible, your script will have access to the following Javascript libraries:
- JQuery 1.7
- JQuery.Redirect 1.0.1
- Fhir.js

If you wish to fetch data from a server

.. code-block:: Javascript
$.get(url).succes(function()
{
Expand All @@ -22,15 +24,15 @@ To redirect to a different page, with a POST body payload:
.. code-block:: Javascript
$.redirect(url, body);

Place holders
-------------
## Place holders

Your script may contain place holders, that will be filled in before your connector script is executed:

## {endpoint}
### {endpoint}
When your connector is executed by a user, he will do that from the page that shows a resource.
The {endpoint} placeholder contain the url of the FHIR endpoint of that resource.

## {returnurl}
### {returnurl}
This placeholder will contain the url of the page from where your connector script is executed.


0 comments on commit f9c46e6

Please sign in to comment.