STU 3 Candidate

This page is part of the FHIR Specification (v1.4.0: STU 3 Ballot 3). 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",
  "entry": [
    {
      "fullUrl": "urn:uuid:3fdc72f4-a11d-4a9d-9260-a9f745779e1d",
      "resource": {
        "resourceType": "DocumentReference",
        "meta": {
          "lastUpdated": "2013-07-01T13:11:33Z"
        },
        "text": {
          "status": "generated",
          "div": "<div>\n\n            <a href=\"http://localhost:9556/svc/fhir/Binary/1e404af3-077f-4bee-b7a6-a9be97e1ce32\">Document: urn:oid:129.6.58.92.88336</a>undefined, created 24/12/2005\n          </div>"
        },
        "masterIdentifier": {
          "system": "urn:ietf:rfc:3986",
          "value": "urn:oid:129.6.58.92.88336"
        },
        "subject": {
          "reference": "Patient/a2"
        },
        "type": {
          "coding": [
            {
              "system": "http://ihe.net/connectathon/classCodes",
              "code": "History and Physical",
              "display": "History and Physical"
            }
          ]
        },
        "class": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "47039-3",
              "display": "Inpatient Admission history and physical note"
            }
          ]
        },
        "author": [
          {
            "reference": "Practitioner/a3"
          },
          {
            "reference": "Practitioner/a4"
          }
        ],
        "created": "2005-12-24",
        "indexed": "2013-07-01T23:11:33+10:00",
        "status": "current",
        "description": "Physical",
        "securityLabel": [
          {
            "coding": [
              {
                "system": "http://hl7.org/fhir/v3/Confidentiality",
                "code": "N",
                "display": "normal"
              }
            ]
          }
        ],
        "content": [
          {
            "attachment": {
              "contentType": "text/plain",
              "language": "en-us",
              "url": "http://localhost:9556/svc/fhir/Binary/1e404af3-077f-4bee-b7a6-a9be97e1ce32"
            },
            "format": [
              {
                "system": "urn:oid:1.3.6.1.4.1.19376.1.2.3",
                "code": "urn:ihe:pcc:handp:2008"
              }
            ]
          }
        ],
        "context": {
          "period": {
            "start": "2004-12-23T08:00:00+10:00",
            "end": "2004-12-23T08:01:00+10:00"
          },
          "practiceSetting": {
            "coding": [
              {
                "system": "http://ihe.net/connectathon/practiceSettingCodes",
                "code": "General Medicine",
                "display": "General Medicine"
              }
            ]
          }
        }
      },
      "request": {
        "method": "POST",
        "url": "DocumentReference"
      }
    },
    {
      "fullUrl": "http://localhost:9556/svc/fhir/Patient/a2",
      "resource": {
        "resourceType": "Patient",
        "id": "a2",
        "meta": {
          "lastUpdated": "2013-07-01T13:11:33Z"
        },
        "text": {
          "status": "generated",
          "div": "<div>Person DOE, John, M, dob: 27/05/1956</div>"
        },
        "identifier": [
          {
            "use": "usual",
            "value": "MRN"
          }
        ],
        "name": [
          {
            "use": "usual",
            "text": "DOE, John",
            "family": [
              "Doe"
            ],
            "given": [
              "John"
            ]
          }
        ],
        "birthDate": "1956-05-27"
      },
      "request": {
        "method": "POST",
        "url": "Patient",
        "ifNoneExist": "Patient?identifier=http://acme.org/xds/patients!89765a87b"
      }
    },
    {
      "fullUrl": "http://localhost:9556/svc/fhir/Practitioner/a3",
      "resource": {
        "resourceType": "Practitioner",
        "id": "a3",
        "meta": {
          "lastUpdated": "2013-07-01T13:11:33Z"
        },
        "text": {
          "status": "generated",
          "div": "<div>Author Gerald Smitty @ Cleveland Clinic</div>"
        },
        "name": [
          {
            "use": "usual",
            "family": [
              "Smitty"
            ],
            "given": [
              "Gerald"
            ]
          }
        ],
        "practitionerRole": [
          {
            "organization": {
              "display": "Cleveland Clinic"
            },
            "role": {
              "coding": [
                {
                  "code": "Attending"
                }
              ]
            },
            "specialty": [
              {
                "coding": [
                  {
                    "code": "Orthopedic"
                  }
                ]
              }
            ]
          },
          {
            "organization": {
              "display": "Parma Community"
            }
          }
        ]
      },
      "request": {
        "method": "POST",
        "url": "Practitioner"
      }
    },
    {
      "fullUrl": "http://localhost:9556/svc/fhir/Practitioner/a4",
      "resource": {
        "resourceType": "Practitioner",
        "id": "a4",
        "meta": {
          "fhir_comments": [
            "   cid:51b578b4-3ccb-4e67-b0dc-ef519d82ef2d@healthintersections.com.au   "
          ],
          "lastUpdated": "2013-07-01T13:11:33Z"
        },
        "text": {
          "status": "generated",
          "div": "<div>Author Person @ Cleveland Clinic</div>"
        },
        "name": [
          {
            "use": "usual",
            "family": [
              "Dopplemeyer"
            ],
            "given": [
              "Sherry"
            ]
          }
        ],
        "practitionerRole": [
          {
            "organization": {
              "display": "Cleveland Clinic"
            },
            "role": {
              "coding": [
                {
                  "code": "Primary Surgon"
                }
              ]
            },
            "specialty": [
              {
                "coding": [
                  {
                    "code": "Orthopedic"
                  }
                ]
              }
            ]
          },
          {
            "organization": {
              "display": "Berea Community"
            }
          }
        ]
      },
      "request": {
        "method": "POST",
        "url": "Practitioner"
      }
    },
    {
      "fullUrl": "http://localhost:9556/svc/fhir/Binary/1e404af3-077f-4bee-b7a6-a9be97e1ce32",
      "resource": {
        "resourceType": "Binary",
        "id": "1e404af3-077f-4bee-b7a6-a9be97e1ce32",
        "meta": {
          "lastUpdated": "2013-07-01T13:11:33Z"
        },
        "contentType": "text/plain",
        "content": "YXNkYXNkYXNkYXNkYXNk"
      },
      "request": {
        "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.