This page is part of the FHIR Specification (v0.0.82: DSTU 1). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions

7.11.5 Resource SupportingDocumentation - Examples

Example Index:

General Documentation Submission ExampleXMLJSON

7.11.5.1 General-Primary

XML

General Documentation Submission Example (id = "654789")

Raw XML

<SupportingDocumentation xmlns="http://hl7.org/fhir">
  <id value="654789"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
  </text>
  <identifier>
    <system value="http://happyvalley.com/elegibility"/>
    <value value="52345"/>
  </identifier>
  <created value="2014-09-21"/>
  <target>
    <reference value="Organization/2"/>
  </target>
  <subject>
    <reference value="Patient/1"/>
  </subject>
  <detail>
    <linkId value="1"/>
    <contentAttachment>
      <contentType value="application/pdf"/>
      <data value="SGVsbG8="/>
      <title value="accident notes 20100201.pdf"/>
    </contentAttachment>
    <dateTime value="2010-02-01"/>
  </detail>
  <detail>
    <linkId value="2"/>
    <contentAttachment>
      <contentType value="application/pdf"/>
      <url value="http://happyvalley.com/docs/AB12345"/>
      <size value="104274"/>
      <hash value="SGVsbG8gdGhlcmU="/>
    </contentAttachment>
    <dateTime value="2010-02-01T10:57:34+01:00"/>
  </detail>
</SupportingDocumentation>

JSON

General Documentation Submission Example

Raw JSON (Canonical)

{
  "resourceType": "SupportingDocumentation",
  "id": "654789",
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "identifier": [
    {
      "system": "http://happyvalley.com/elegibility",
      "value": "52345"
    }
  ],
  "created": "2014-09-21",
  "target": {
    "reference": "Organization/2"
  },
  "subject": {
    "reference": "Patient/1"
  },
  "detail": [
    {
      "linkId": 1,
      "contentAttachment": {
        "contentType": "application/pdf",
        "data": "SGVsbG8=",
        "title": "accident notes 20100201.pdf"
      },
      "dateTime": "2010-02-01"
    },
    {
      "linkId": 2,
      "contentAttachment": {
        "contentType": "application/pdf",
        "url": "http://happyvalley.com/docs/AB12345",
        "size": 104274,
        "hash": "SGVsbG8gdGhlcmU="
      },
      "dateTime": "2010-02-01T10:57:34+01:00"
    }
  ]
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.