{
  "resourceType" : "Bundle",
  "id" : "ex07",
  "meta" : {
    "profile" : ["https://www.ehealth.fgov.be/standards/fhir/mycarenet/StructureDefinition/be-eagreementdemandreply"]
  },
  "language" : "en",
  "type" : "message",
  "timestamp" : "2015-07-14T11:15:37+02:00",
  "entry" : [{
    "fullUrl" : "urn:uuid:667b18ce-3d37-4581-9baa-6fada338038c",
    "resource" : {
      "resourceType" : "MessageHeader",
      "id" : "667b18ce-3d37-4581-9baa-6fada338038c",
      "meta" : {
        "profile" : ["https://www.ehealth.fgov.be/standards/fhir/mycarenet/StructureDefinition/be-messageheader"]
      },
      "language" : "en",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"MessageHeader_667b18ce-3d37-4581-9baa-6fada338038c\"> </a><p class=\"res-header-id\"><b>Generated Narrative: MessageHeader 667b18ce-3d37-4581-9baa-6fada338038c</b></p><a name=\"667b18ce-3d37-4581-9baa-6fada338038c\"> </a><a name=\"hc667b18ce-3d37-4581-9baa-6fada338038c\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-be-messageheader.html\">MyCareNet MessageHeader BE profile</a></p></div><p><b>event</b>: <a href=\"CodeSystem-message-events.html#message-events-reject\">CodeSystem message events: reject</a> (reject)</p><h3>Destinations</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Endpoint</b></td><td><b>Receiver</b></td></tr><tr><td style=\"display: none\">*</td><td>urn:be:fgov:person:ssin:ehealth:1.0:physiotherapist:nihii11:54263481527</td><td><a href=\"Bundle-ex33.html#urn-uuid-1dc5d974-5447-4afe-a4ab-57081ca518c3\">PractitionerRole physician</a></td></tr></table><p><b>sender</b>: <a href=\"Bundle-ex36.html#urn-uuid-cfabb40d-a53f-4c56-bc19-725ea669b358\">Organization Union Nationale des Mutualités Socialistes - Nationaal Verbond van de Socialistische Mutualiteiten</a></p><h3>Sources</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Endpoint</b></td></tr><tr><td style=\"display: none\">*</td><td>urn:be:fgov:kbo-bce:organization:cbe-number:0411724220</td></tr></table><h3>Responses</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Identifier</b></td><td><b>Code</b></td></tr><tr><td style=\"display: none\">*</td><td>267b18ce-3d37-4581-9baa-6fada338038b</td><td>Fatal Error</td></tr></table><p><b>focus</b>: <a href=\"Bundle-ex34.html#urn-uuid-99613879-db9d-4bee-ad78-633cbf164800\">OperationOutcome</a></p></div>"
      },
      "eventCoding" : {
        "system" : "https://www.ehealth.fgov.be/standards/fhir/mycarenet/CodeSystem/message-events",
        "code" : "reject"
      },
      "destination" : [{
        "endpoint" : "urn:be:fgov:person:ssin:ehealth:1.0:physiotherapist:nihii11:54263481527",
        "receiver" : {
          "reference" : "urn:uuid:1dc5d974-5447-4afe-a4ab-57081ca518c3"
        }
      }],
      "sender" : {
        "reference" : "urn:uuid:cfabb40d-a53f-4c56-bc19-725ea669b358"
      },
      "source" : {
        "endpoint" : "urn:be:fgov:kbo-bce:organization:cbe-number:0411724220"
      },
      "response" : {
        "identifier" : "267b18ce-3d37-4581-9baa-6fada338038b",
        "code" : "fatal-error"
      },
      "focus" : [{
        "reference" : "urn:uuid:99613879-db9d-4bee-ad78-633cbf164800"
      }]
    }
  },
  {
    "fullUrl" : "urn:uuid:1dc5d974-5447-4afe-a4ab-57081ca518c3",
    "resource" : {
      "resourceType" : "PractitionerRole",
      "id" : "1dc5d974-5447-4afe-a4ab-57081ca518c3",
      "meta" : {
        "profile" : ["https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-practitionerrole"]
      },
      "language" : "en",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"PractitionerRole_1dc5d974-5447-4afe-a4ab-57081ca518c3\"> </a><p class=\"res-header-id\"><b>Generated Narrative: PractitionerRole 1dc5d974-5447-4afe-a4ab-57081ca518c3</b></p><a name=\"1dc5d974-5447-4afe-a4ab-57081ca518c3\"> </a><a name=\"hc1dc5d974-5447-4afe-a4ab-57081ca518c3\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"https://www.ehealth.fgov.be/standards/fhir/core/2.1.2/StructureDefinition-be-practitionerrole.html\">BePractitionerRole</a></p></div><p><b>practitioner</b>: <a href=\"Bundle-ex36.html#urn-uuid-03972cc4-d781-4285-8d79-0f05810e1931\">Practitioner John Smith </a></p><p><b>code</b>: <span title=\"Codes:{https://www.ehealth.fgov.be/standards/fhir/core/CodeSystem/cd-hcparty persphysiotherapist}\">physiotherapist</span></p></div>"
      },
      "practitioner" : {
        "reference" : "urn:uuid:03972cc4-d781-4285-8d79-0f05810e1931"
      },
      "code" : [{
        "coding" : [{
          "system" : "https://www.ehealth.fgov.be/standards/fhir/core/CodeSystem/cd-hcparty",
          "code" : "persphysiotherapist"
        }]
      }]
    }
  },
  {
    "fullUrl" : "urn:uuid:03972cc4-d781-4285-8d79-0f05810e1931",
    "resource" : {
      "resourceType" : "Practitioner",
      "id" : "03972cc4-d781-4285-8d79-0f05810e1931",
      "meta" : {
        "profile" : ["https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-practitioner"]
      },
      "language" : "en",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Practitioner_03972cc4-d781-4285-8d79-0f05810e1931\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Practitioner 03972cc4-d781-4285-8d79-0f05810e1931</b></p><a name=\"03972cc4-d781-4285-8d79-0f05810e1931\"> </a><a name=\"hc03972cc4-d781-4285-8d79-0f05810e1931\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"https://www.ehealth.fgov.be/standards/fhir/core/2.1.2/StructureDefinition-be-practitioner.html\">BePractitioner</a></p></div><p><b>identifier</b>: <a href=\"https://www.ehealth.fgov.be/standards/fhir/core/2.1.2/NamingSystem-be-nihdi.html\" title=\"RIZIV/INAMI\">BeNIHDINamingSystem</a>/54263481527</p><p><b>name</b>: John Smith </p></div>"
      },
      "identifier" : [{
        "system" : "https://www.ehealth.fgov.be/standards/fhir/core/NamingSystem/nihdi",
        "value" : "54263481527"
      }],
      "name" : [{
        "family" : "Smith",
        "given" : ["John"]
      }]
    }
  },
  {
    "fullUrl" : "urn:uuid:cfabb40d-a53f-4c56-bc19-725ea669b358",
    "resource" : {
      "resourceType" : "Organization",
      "id" : "cfabb40d-a53f-4c56-bc19-725ea669b358",
      "meta" : {
        "profile" : ["https://www.ehealth.fgov.be/standards/fhir/core/StructureDefinition/be-organization"]
      },
      "language" : "en",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"Organization_cfabb40d-a53f-4c56-bc19-725ea669b358\"> </a><p class=\"res-header-id\"><b>Generated Narrative: Organization cfabb40d-a53f-4c56-bc19-725ea669b358</b></p><a name=\"cfabb40d-a53f-4c56-bc19-725ea669b358\"> </a><a name=\"hccfabb40d-a53f-4c56-bc19-725ea669b358\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"https://www.ehealth.fgov.be/standards/fhir/core/2.1.2/StructureDefinition-be-organization.html\">BeOrganization</a></p></div><p><b>identifier</b>: <a href=\"https://www.ehealth.fgov.be/standards/fhir/core/2.1.2/NamingSystem-be-insurancenumber.html\" title=\"the identification number of a mutual insurance association (mutualité) as “a not-for-profit association, which, with foresight, assistance and solidarity aims to promote the physical, mental and social well-being of its members” (The Belgian law of 6 August 1990)\">BeInsuranceNumberNamingSystem</a>/300</p><p><b>name</b>: Union Nationale des Mutualités Socialistes - Nationaal Verbond van de Socialistische Mutualiteiten</p></div>"
      },
      "identifier" : [{
        "system" : "https://www.ehealth.fgov.be/standards/fhir/core/NamingSystem/insurancenumber",
        "value" : "300"
      }],
      "name" : "Union Nationale des Mutualités Socialistes - Nationaal Verbond van de Socialistische Mutualiteiten"
    }
  },
  {
    "fullUrl" : "urn:uuid:99613879-db9d-4bee-ad78-633cbf164800",
    "resource" : {
      "resourceType" : "OperationOutcome",
      "id" : "99613879-db9d-4bee-ad78-633cbf164800",
      "meta" : {
        "profile" : ["https://www.ehealth.fgov.be/standards/fhir/mycarenet/StructureDefinition/be-operationoutcome"]
      },
      "language" : "en",
      "text" : {
        "status" : "generated",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><a name=\"OperationOutcome_99613879-db9d-4bee-ad78-633cbf164800\"> </a><p class=\"res-header-id\"><b>Generated Narrative: OperationOutcome 99613879-db9d-4bee-ad78-633cbf164800</b></p><a name=\"99613879-db9d-4bee-ad78-633cbf164800\"> </a><a name=\"hc99613879-db9d-4bee-ad78-633cbf164800\"> </a><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\"/><p style=\"margin-bottom: 0px\">Profile: <a href=\"StructureDefinition-be-operationoutcome.html\">MyCareNet operation outcome BE profile</a></p></div><h3>Issues</h3><table class=\"grid\"><tr><td style=\"display: none\">-</td><td><b>Severity</b></td><td><b>Code</b></td><td><b>Details</b></td><td><b>Expression</b></td></tr><tr><td style=\"display: none\">*</td><td>Error</td><td>Structural Issue</td><td><span title=\"Codes:{https://www.ehealth.fgov.be/standards/fhir/mycarenet/CodeSystem/agreement-errors MISSING_PRACTITIONERROLE_PRACTITIONER_REFERENCE}\">MISSING_PRACTITIONERROLE_PRACTITIONER_REFERENCE</span></td><td>Bundle.entry[2].resource.ofType(PractitionerRole).practitioner</td></tr></table></div>"
      },
      "issue" : [{
        "severity" : "error",
        "code" : "structure",
        "details" : {
          "coding" : [{
            "system" : "https://www.ehealth.fgov.be/standards/fhir/mycarenet/CodeSystem/agreement-errors",
            "code" : "MISSING_PRACTITIONERROLE_PRACTITIONER_REFERENCE"
          }]
        },
        "expression" : ["Bundle.entry[2].resource.ofType(PractitionerRole).practitioner"]
      }]
    }
  }]
}