{
  "resourceType": "DocumentReference",
  "id": "spark1",
  "meta": {
    "versionId": "spark1",
    "lastUpdated": "2015-10-22T11:30:02.554+00:00"
  },
  "contained": [
    {
      "resourceType": "Encounter",
      "id": "#enc",
      "identifier": [
        {
          "system": "http://fhir.jorvik.nhs.uk/Encounter/HSI/",
          "value": "9066683-1"
        }
      ],
      "status": "finished",
      "class": "outpatient",
      "period": {
        "start": "2012-12-19T00:00:00+00:00"
      }
    },
    {
      "resourceType": "Patient",
      "id": "#pat",
      "identifier": [
        {
          "use": "official",
          "system": "urn:fhir.nhs.uk:id/NHSNumber",
          "value": "9123456#pat"
        },
        {
          "use": "official",
          "system": "http://fhir.nhs.scot.uk/Patient/CHINumber",
          "value": "3312316#pat"
        },
        {
          "use": "usual",
          "system": "http://fhir.jorvik.nhs.uk/FHIR/Patient/hospitalNumber/",
          "value": "#pat"
        }
      ],
      "name": [
        {
          "family": [
            "Spidimus"
          ],
          "given": [
            "Horatio"
          ],
          "prefix": [
            "Mr"
          ]
        }
      ],
      "telecom": [
        {
          "system": "phone",
          "value": "01634631628",
          "use": "mobile"
        }
      ],
      "gender": "male",
      "birthDate": "1916-12-05",
      "address": [
        {
          "line": [
            "6 Gertrude Reed Avenue",
            "Barnbow"
          ],
          "city": "Leeds",
          "postalCode": "LS15 0RF"
        }
      ],
      "careProvider": [
        {
          "reference": "Organization/urn:oid:2.16.840.1.113883.2.1.4.3|B86016",
          "display": "Churchview Surgery"
        }
      ]
    }
  ],
  "masterIdentifier": {
    "system": "http://fhir.jorvik.nhs.uk/FHIR/DocumentReference/Registry/",
    "value": "12345"
  },
  "identifier": [
    {
      "system": "http://fhir.jorvik.nhs.uk/FHIR/DocumentReference/EDMS/",
      "value": "67890"
    }
  ],
  "subject": {
    "reference": "#pat"
  },
  "type": {
    "coding": [
      {
        "system": "http://snomed.info/sct",
        "code": "823681000000100",
        "display": "Outpatient letter"
      }
    ]
  },
  "class": {
    "coding": [
      {
        "system": "urn:oid:2.16.840.1.113883.2.1.6.8",
        "code": "110",
        "display": "ORTHOPAEDICS"
      }
    ]
  },
  "created": "2012-12-21T00:00:00+00:00",
  "content": [
    {
      "attachment": {
        "contentType": "application/msword",
        "url": "http://edms.jorvik.nhs.uk:8083/Binary/612898_A00387543-9051675"
      }
    }
  ],
  "context": {
    "encounter": {
      "reference": "#enc"
    }
  }
}