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

Xds-example.json

Raw JSON (canonical form)

XDS example

{
  "resourceType": "Bundle",
  "id": "xds",
  "meta": {
    "lastUpdated": "2013-07-01T13:11:33Z"
  },
  "type": "transaction",
  "base": "cid:123@healthintersections.com.au",
  "entry": [
    {
      "resource": {
        "resourceType": "DocumentReference",
        "id": "a1",
        "meta": {
          "lastUpdated": "2013-07-01T13:11:33Z"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/xds-profile#practiceSettingCode",
            "valueCodeableConcept": {
              "coding": [
                {
                  "system": "http://ihe.net/connectathon/practiceSettingCodes",
                  "code": "General Medicine",
                  "display": "General Medicine"
                }
              ]
            }
          }
        ],
        "masterIdentifier": {
          "system": "urn:ietf:rfc:3986",
          "value": "urn:oid:129.6.58.92.88336"
        },
        "subject": {
          "reference": "cid:123@healthintersections.com.au/Patient/a2"
        },
        "type": {
          "coding": [
            {
              "system": "http://ihe.net/connectathon/classCodes",
              "code": "History and Physical",
              "display": "History and Physical"
            }
          ]
        },
        "format": [
          "urn:oid:1.3.6.1.4.1.19376.1.5.3.1.1.16.1.4"
        ],
        "author": [
          {
            "reference": "cid:123@healthintersections.com.au/Practitioner/a3"
          },
          {
            "reference": "cid:123@healthintersections.com.au/Practitioner/a4"
          }
        ],
        "created": "2005-12-24",
        "indexed": "2013-07-01T23:11:33+10:00",
        "status": "current",
        "description": "Physical",
        "content": [
          {
            "contentType": "text/plain",
            "language": "en-us",
            "url": "http://localhost:9556/svc/fhir/Binary/1e404af3-077f-4bee-b7a6-a9be97e1ce32"
          }
        ],
        "context": {
          "period": {
            "start": "2004-12-23T08:00:00",
            "end": "2004-12-23T08:01:00"
          }
        }
      },
      "transaction": {
        "method": "POST",
        "url": "DocumentReference"
      }
    },
    {
      "resource": {
        "resourceType": "Patient",
        "id": "a2",
        "meta": {
          "lastUpdated": "2013-07-01T13:11:33Z"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "identifier": [
          {
            "system": "usual",
            "value": "MRN"
          }
        ],
        "name": [
          {
            "use": "usual",
            "text": "DOE, John",
            "family": [
              "Doe"
            ],
            "given": [
              "John"
            ]
          }
        ],
        "birthDate": "1956-05-27"
      },
      "transaction": {
        "method": "POST",
        "url": "Patient",
        "ifNoneExist": "Patient?identifier=http://acme.org/xds/patients!89765a87b"
      }
    },
    {
      "resource": {
        "resourceType": "Practitioner",
        "id": "a3",
        "meta": {
          "lastUpdated": "2013-07-01T13:11:33Z"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/xds-profile#author-institution-repeats",
            "valueReference": {
              "display": "Parma Community"
            }
          }
        ],
        "identifier": [
          {
            "label": "usual"
          }
        ],
        "name": {
          "use": "usual",
          "family": [
            "Smitty"
          ],
          "given": [
            "Gerald"
          ]
        },
        "practitionerRole": [
          {
            "managingOrganization": {
              "display": "Cleveland Clinic"
            },
            "role": {
              "coding": [
                {
                  "code": "Attending"
                }
              ]
            },
            "specialty": [
              {
                "coding": [
                  {
                    "code": "Orthopedic"
                  }
                ]
              }
            ]
          }
        ]
      },
      "transaction": {
        "method": "POST",
        "url": "Practitioner"
      }
    },
    {
      "resource": {
        "resourceType": "Practitioner",
        "id": "a4",
        "meta": {
          "lastUpdated": "2013-07-01T13:11:33Z"
        },
        "text": {
          "status": "generated",
          "div": "<div>!-- Snipped for Brevity --></div>"
        },
        "extension": [
          {
            "url": "http://hl7.org/fhir/Profile/xds-profile#author-institution-repeats",
            "valueReference": {
              "display": "Berea Community"
            }
          }
        ],
        "identifier": [
          {
            "system": "usual"
          }
        ],
        "name": {
          "use": "usual",
          "family": [
            "Dopplemeyer"
          ],
          "given": [
            "Sherry"
          ]
        },
        "practitionerRole": [
          {
            "managingOrganization": {
              "display": "Cleveland Clinic"
            },
            "role": {
              "coding": [
                {
                  "code": "Primary Surgon"
                }
              ]
            },
            "specialty": [
              {
                "coding": [
                  {
                    "code": "Orthopedic"
                  }
                ]
              }
            ]
          }
        ]
      },
      "transaction": {
        "method": "POST",
        "url": "Practitioner"
      }
    },
    {
      "resource": {
        "resourceType": "Binary",
        "id": "1e404af3-077f-4bee-b7a6-a9be97e1ce32",
        "meta": {
          "lastUpdated": "2013-07-01T13:11:33Z"
        },
        "contentType": "text/plain",
        "content": "YXNkYXNkYXNkYXNkYXNk"
      },
      "transaction": {
        "method": "POST",
        "url": "Binary"
      }
    }
  ]
}

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.