{
  "resourceType": "Bundle",
  "id": "3a0707d3-549e-4467-b8b8-5a2ab3800efe",
  "identifier": {
    "system": "urn:example-org:receiver.identifiers",
    "value": "35f23e97-328c-4eb7-8e94-34f478983e89"
  },
  "type": "message",
  "timestamp": "2015-07-14T11:15:33+10:00",
  "entry": [
    {
      "fullUrl": "urn:uuid:d9d296d8-5afd-42e1-a0ce-3344e0e003ed",
      "resource": {
        "resourceType": "MessageHeader",
        "id": "d9d296d8-5afd-42e1-a0ce-3344e0e003ed",
        "text": {
          "status": "generated",
          "div": "\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003e\n             \n            \u003cp\u003eThis message is a response to the request to link Patient records 654321 (Patient Donald DUCK @ Acme Healthcare, Inc) and 123456 (Patient Donald D DUCK @ Acme Healthcare, Inc)\u003c/p\u003e\n           \n          \u003c/div\u003e"
        },
        "eventCoding": {
          "system": "http://example.org/fhir/message-events",
          "code": "patient-link"
        },
        "source": {
          "endpointUrl": "http://acme.com/ehr/fhir"
        },
        "response": {
          "identifier": {
            "system": "urn:example-org:sender.identifiers",
            "value": "efdd254b-0e09-4164-883e-35cf3871715f"
          },
          "code": "ok",
          "details": {
            "reference": "urn:uuid:03f9aa7d-b395-47b9-84e0-053678b6e4e3"
          }
        },
        "focus": [
          {
            "reference": "http://acme.com/ehr/fhir/Patient/pat1"
          },
          {
            "reference": "http://acme.com/ehr/fhir/Patient/pat2"
          }
        ]
      }
    },
    {
      "fullUrl": "urn:uuid:03f9aa7d-b395-47b9-84e0-053678b6e4e3",
      "resource": {
        "resourceType": "OperationOutcome",
        "id": "03f9aa7d-b395-47b9-84e0-053678b6e4e3",
        "text": {
          "status": "generated",
          "div": "\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003e\n            MPI approval rating: 80%\n          \u003c/div\u003e"
        },
        "issue": [
          {
            "severity": "information",
            "code": "informational",
            "details": {
              "text": "MPI approval rating: 80%"
            }
          }
        ]
      }
    },
    {
      "fullUrl": "http://acme.com/ehr/fhir/Patient/pat1",
      "resource": {
        "resourceType": "Patient",
        "id": "pat1",
        "text": {
          "status": "generated",
          "div": "\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003e\n            \n            \u003cp\u003ePatient Donald DUCK @ Acme Healthcare, Inc. MR \u003d 654321\u003c/p\u003e\n          \n          \u003c/div\u003e"
        },
        "identifier": [
          {
            "use": "usual",
            "type": {
              "coding": [
                {
                  "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                  "code": "MR"
                }
              ]
            },
            "system": "urn:oid:0.1.2.3.4.5.6.7",
            "value": "654321"
          }
        ],
        "active": true,
        "name": [
          {
            "use": "official",
            "family": "Donald",
            "given": [
              "Duck"
            ]
          }
        ],
        "gender": "male",
        "contact": [
          {
            "relationship": [
              {
                "coding": [
                  {
                    "system": "http://example.org/fhir/CodeSystem/patient-contact-relationship",
                    "code": "E"
                  }
                ]
              }
            ],
            "organization": {
              "reference": "Organization/1",
              "display": "Walt Disney Corporation"
            }
          }
        ],
        "managingOrganization": {
          "reference": "Organization/1",
          "display": "ACME Healthcare, Inc"
        },
        "link": [
          {
            "other": {
              "reference": "Patient/pat2"
            },
            "type": "seealso"
          }
        ]
      }
    },
    {
      "fullUrl": "http://acme.com/ehr/fhir/Patient/pat2",
      "resource": {
        "resourceType": "Patient",
        "id": "pat2",
        "text": {
          "status": "generated",
          "div": "\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003e\n            \n            \u003cp\u003ePatient Donald D DUCK @ Acme Healthcare, Inc. MR \u003d 123456\u003c/p\u003e\n          \n          \u003c/div\u003e"
        },
        "identifier": [
          {
            "use": "usual",
            "type": {
              "coding": [
                {
                  "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                  "code": "MR"
                }
              ]
            },
            "system": "urn:oid:0.1.2.3.4.5.6.7",
            "value": "123456"
          }
        ],
        "active": true,
        "name": [
          {
            "use": "official",
            "family": "Donald",
            "given": [
              "Duck",
              "D"
            ]
          }
        ],
        "gender": "other",
        "_gender": {
          "extension": [
            {
              "url": "http://example.org/Profile/administrative-status",
              "valueCodeableConcept": {
                "coding": [
                  {
                    "system": "http://terminology.hl7.org/CodeSystem/v2-0001",
                    "code": "A",
                    "display": "Ambiguous"
                  }
                ]
              }
            }
          ]
        },
        "managingOrganization": {
          "reference": "Organization/1",
          "display": "ACME Healthcare, Inc"
        },
        "link": [
          {
            "other": {
              "reference": "Patient/pat1"
            },
            "type": "seealso"
          }
        ]
      }
    }
  ],
  "meta": {
    "tag": [
      {
        "system": "http://terminology.hl7.org/CodeSystem/v3-ActReason",
        "code": "HTEST",
        "display": "test health data"
      }
    ]
  }
}