2nd DSTU Draft For Comment

This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2

5.7.5 Resource Contract - Examples

Example Index:

General Contract ExampleXMLJSON

5.7.5.1 General-Contract

XML

General Contract Example (id = "C-123")

Raw XML

<Contract xmlns="http://hl7.org/fhir">
  <id value="C-123"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
  </text>
  <subject>
    <reference value="http://www.somewhere.org/patient/12345"/>
  </subject>
  <type>
    <coding>
      <system value="http://hl7.org/fhir/contracttypecodes"/>
      <code value="disclosure"/>
    </coding>
  </type>
  <subtype>
    <coding>
      <system value="http://hl7.org/fhir/contractsubtypecodes"/>
      <code value="disclosure-US"/>
    </coding>
  </subtype>
  <issued value="2014-08-17"/>
</Contract>

JSON

General Contract Example

Raw JSON (Canonical)

{
  "resourceType": "Contract",
  "id": "C-123",
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "subject": [
    {
      "reference": "http://www.somewhere.org/patient/12345"
    }
  ],
  "type": {
    "coding": [
      {
        "system": "http://hl7.org/fhir/contracttypecodes",
        "code": "disclosure"
      }
    ]
  },
  "subtype": [
    {
      "coding": [
        {
          "system": "http://hl7.org/fhir/contractsubtypecodes",
          "code": "disclosure-US"
        }
      ]
    }
  ],
  "issued": "2014-08-17"
}

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.