Skip to content

Commit

Permalink
add: connector writing
Browse files Browse the repository at this point in the history
  • Loading branch information
mharthoorn committed Feb 24, 2016
1 parent ed34ff2 commit f3c5eb1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs_simplifier/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Contents:
simplifierPersonalContent
simplifierGithub
simplifierConnectors
simplifierWriteConnector
simplifierPricing
simplifierContact

Expand Down
29 changes: 29 additions & 0 deletions docs_simplifier/simplifierWriteConnector.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# 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("spark.furore.com/fhir/Patient/1").succes(function()
{

});

To redirect to a different page:

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

## {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}
This placeholder will contain the url of the page from where your connector script is executed.


0 comments on commit f3c5eb1

Please sign in to comment.