Skip to content

Instantly share code, notes, and snippets.

View grahamegrieve's full-sized avatar

Grahame Grieve grahamegrieve

View GitHub Profile
# FHIR Transformer Specification
## Introduction
This document describes a portable transformation engine
that can be used to convert different kinds of source
material into a FHIR repository.
## Components
Use cases
This document describes a way of granting an application access to data on a set of patients.
The application can request a copy of all pertinent (clinical) access to the patients in a
single download. Note: We expect that this data will be pretty large.
Authorizing Access
Access to the data is granted by using the SMART backend services spec
(url: http://docs.smarthealthit.org/authorization/backend-services/).
@grahamegrieve
grahamegrieve / sample.jsonld
Last active March 8, 2016 22:31
Possible json-ld representation for FHIR
{
"@context" : "http://hl7.org/fhir/Patient.jsonld",
"id": { "@context" : "http://hl7.org/fhir/id.jsonld", "value" : "example" } ,
"text": {
"@context" : "http://hl7.org/fhir/narrative.jsonld",
"status": { "@context" : "http://hl7.org/fhir/code.jsonld", "value" : "generated" },
"div": "<div>Severe burn of left ear (Date: 24-May 2012)</div>"
},
"patient": {
"@context" : "http://hl7.org/fhir/Reference.jsonld",
<!-- transaction test case
This is intended to be aplied to a database that just contains a set of resources from the spec
In this transaction
- 1 create a resource (provenance, with both version and version independent references)
- 2 create a resource if nothing already exists (where nothing does)
- 3 create a resource if nothing already exists (where something does)
- 4 update an exising resource
- 4a delete a resource that doesn't exist