-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ed34ff2
commit f3c5eb1
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
|
||
|