All FHIR calls are based on retrieving resources. There are many different types of resources for data you would like to retrieve, including patient information, orders, reports, results, and more.
- SIIM Hackathon API key
- (Optional) Postman
When making requests against the end points below, ensure you include an HTTP header like so:
apikey: [your API key]
If you don't have a SIIM Hackathon API key, see Hackathon Server.
A simple Hello World type query for FHIR, would look as follows, to query for all patients with the last name of SIIM:
http://hackathon.siim.org/fhir/Patient?name=SIIM
Once you've picked a patient to download, extract the patient ID by using the ID field from the response and you can download available studies by making a subsequent ImagingStudy query:
http://hackathon.siim.org/fhir/ImagingStudy?patient=siimandy
If you want to control the format of the server response, add an Accept
header with application/json
for JSON or text/xml
for XML.
Who wouldn't? Right?!? Have a look at https://replit.com/@mohannadhussain/fhir-example