{
  "resourceType": "Bundle",
  "id": "27f407ef-0137-4ffc-8970-1d9e07a0179d",
  "meta": {
    "profile": [
      "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Bundle"
    ]
  },
  "identifier": {
    "system": "http://ex-erec-identifier-system.org",
    "value": "6929fbb8-9349-47b0-ae3e-446287c4b47c"
  },
  "type": "message",
  "timestamp": "2024-10-24T00:00:00+00:00",
  "entry": [
    {
      "fullUrl": "urn:uuid:926e2bbf-4bb3-4cfa-a14e-5e0fd0f7edf3",
      "resource": {
        "resourceType": "MessageHeader",
        "id": "926e2bbf-4bb3-4cfa-a14e-5e0fd0f7edf3",
        "meta": {
          "profile": [
            "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-MessageHeader"
          ]
        },
        "eventCoding": {
          "system": "https://fhir.infoway-inforoute.ca/CodeSystem/ca-messageeventcode",
          "code": "notify-data-correction",
          "display": "Notify Data Correction"
        },
        "destination": [
          {
            "endpoint": "https://performer-system-uri"
          }
        ],
        "author": {
          "reference": "urn:uuid:32f22305-2e70-4099-929c-5c0d5123168e"
        },
        "source": {
          "endpoint": "https://requester-system-uri"
        },
        "reason": {
          "text": "Updated patient phone number and home address."
        },
        "focus": [
          {
            "reference": "urn:uuid:7bab40d6-dca3-4e7f-bb9b-5e98902a4749"
          }
        ]
      }
    },
    {
      "fullUrl": "urn:uuid:7bab40d6-dca3-4e7f-bb9b-5e98902a4749",
      "resource": {
        "resourceType": "ServiceRequest",
        "id": "7bab40d6-dca3-4e7f-bb9b-5e98902a4749",
        "meta": {
          "profile": [
            "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-ServiceRequest"
          ]
        },
        "identifier": [
          {
            "use": "official",
            "system": "http://example-identifier-system-uri.ca",
            "value": "AD67B809"
          }
        ],
        "status": "active",
        "intent": "proposal",
        "category": [
          {
            "coding": [
              {
                "system": "http://snomed.info/sct",
                "code": "3457005",
                "display": "Patient referral"
              }
            ]
          },
          {
            "coding": [
              {
                "system": "http://snomed.info/sct",
                "code": "394802001",
                "display": "General medicine"
              }
            ]
          }
        ],
        "priority": "routine",
        "code": {
          "coding": [
            {
              "system": "http://snomed.info/sct",
              "code": "118155006",
              "display": "Gastrointestinal tract endoscopy (procedure)"
            }
          ]
        },
        "subject": {
          "reference": "urn:uuid:4e826c7d-3709-484f-9ff0-ed1d13d8353b"
        },
        "authoredOn": "2025-04-30",
        "requester": {
          "reference": "urn:uuid:32f22305-2e70-4099-929c-5c0d5123168e"
        },
        "performer": [
          {
            "reference": "urn:uuid:658593da-bbb2-4088-9141-4ea81c212803"
          }
        ],
        "reasonCode": [
          {
            "coding": [
              {
                "system": "http://snomed.info/sct",
                "code": "84642008",
                "display": "Chronic regurgitation (finding)"
              }
            ],
            "text": "Chronic regurgitation (finding)"
          }
        ],
        "supportingInfo": [
          {
            "reference": "urn:uuid:10f1e449-5f01-4983-b6ab-8e6593e94971",
            "type": "DocumentReference"
          }
        ],
        "note": [
          {
            "text": "Patient has a transportation risk factor that should be considered with booking"
          }
        ]
      }
    },
    {
      "fullUrl": "urn:uuid:4e826c7d-3709-484f-9ff0-ed1d13d8353b",
      "resource": {
        "resourceType": "Patient",
        "id": "4e826c7d-3709-484f-9ff0-ed1d13d8353b",
        "meta": {
          "profile": [
            "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Patient"
          ]
        },
        "identifier": [
          {
            "extension": [
              {
                "url": "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-HCNV-code-EXT",
                "valueString": "EX"
              }
            ],
            "use": "official",
            "type": {
              "coding": [
                {
                  "system": "http://terminology.hl7.org/CodeSystem/v2-0203",
                  "code": "JHN"
                }
              ]
            },
            "system": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-patient-hcn",
            "value": "9999999"
          }
        ],
        "name": [
          {
            "family": "Gray",
            "given": [
              "Clara"
            ]
          }
        ],
        "telecom": [
          {
            "system": "phone",
            "value": "222-888-9999",
            "use": "home"
          },
          {
            "system": "email",
            "value": "ClaraGray@example.com",
            "rank": 2
          }
        ],
        "gender": "female",
        "birthDate": "1980-10-01",
        "address": [
          {
            "text": "1171 King St S, Waterloo, ON, N2J 1P9, CAN",
            "use": "home",
            "type": "physical",
            "line": [
              "72 Water St"
            ],
            "city": "Waterloo",
            "state": "ON",
            "postalCode": "B5H 9H9",
            "country": "CAN"
          }
        ]
      }
    },
    {
      "fullUrl": "urn:uuid:32f22305-2e70-4099-929c-5c0d5123168e",
      "resource": {
        "resourceType": "PractitionerRole",
        "id": "32f22305-2e70-4099-929c-5c0d5123168e",
        "meta": {
          "profile": [
            "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-PractitionerRole"
          ]
        },
        "practitioner": {
          "reference": "urn:uuid:1505ac3a-9774-49cd-890b-ed12dbb0d4d6"
        },
        "organization": {
          "reference": "urn:uuid:f3315d20-22c4-4d02-a2f5-62a6c11a1ef0"
        },
        "code": [
          {
            "coding": [
              {
                "system": "http://snomed.info/sct",
                "code": "309343006",
                "display": "Physician"
              }
            ]
          }
        ],
        "specialty": [
          {
            "coding": [
              {
                "system": "http://snomed.info/sct",
                "code": "394802001",
                "display": "General medicine"
              }
            ]
          }
        ],
        "location": [
          {
            "reference": "urn:uuid:8d32678f-ef77-4247-89e3-4fdf4bd16e10"
          }
        ],
        "telecom": [
          {
            "system": "phone",
            "value": "555-555-3447",
            "use": "work",
            "rank": 1
          }
        ]
      }
    },
    {
      "fullUrl": "urn:uuid:1505ac3a-9774-49cd-890b-ed12dbb0d4d6",
      "resource": {
        "resourceType": "Practitioner",
        "id": "1505ac3a-9774-49cd-890b-ed12dbb0d4d6",
        "meta": {
          "profile": [
            "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Practitioner"
          ]
        },
        "identifier": [
          {
            "use": "official",
            "type": {
              "coding": [
                {
                  "system": "http://first-provider-system-uri.ca",
                  "code": "LN",
                  "display": "License Number"
                }
              ]
            },
            "system": "http://infoway-inforoute.ca/fhir/NamingSystem/ca-on-license-physician",
            "value": "1234"
          },
          {
            "system": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-ohip-billing-id",
            "value": "44444"
          }
        ],
        "name": [
          {
            "use": "official",
            "text": "Howard Allan",
            "family": "Allan",
            "given": [
              "Howard"
            ]
          }
        ]
      }
    },
    {
      "fullUrl": "urn:uuid:f3315d20-22c4-4d02-a2f5-62a6c11a1ef0",
      "resource": {
        "resourceType": "Organization",
        "id": "f3315d20-22c4-4d02-a2f5-62a6c11a1ef0",
        "meta": {
          "profile": [
            "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Organization"
          ]
        },
        "active": true,
        "type": [
          {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/organization-type",
                "code": "prov",
                "display": "Healthcare Provider"
              }
            ]
          }
        ],
        "name": "Fictional Custodian Organization",
        "telecom": [
          {
            "system": "phone",
            "value": "5555557777",
            "use": "work",
            "rank": 1
          },
          {
            "system": "fax",
            "value": "5559871234",
            "use": "work",
            "rank": 2
          }
        ],
        "address": [
          {
            "use": "work",
            "type": "physical",
            "line": [
              "500 Paisley St"
            ],
            "city": "Guelph",
            "state": "ON",
            "postalCode": "N1H 2P3",
            "country": "CAN"
          }
        ]
      }
    },
    {
      "fullUrl": "urn:uuid:8d32678f-ef77-4247-89e3-4fdf4bd16e10",
      "resource": {
        "resourceType": "Location",
        "id": "8d32678f-ef77-4247-89e3-4fdf4bd16e10",
        "meta": {
          "profile": [
            "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Location"
          ]
        },
        "identifier": [
          {
            "system": "http://third-system-uri.ca",
            "value": "location-id"
          }
        ],
        "status": "active",
        "name": "Fictional Custodian Organization",
        "description": "Description of location can go here",
        "type": [
          {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode",
                "code": "PC",
                "display": "Primary care clinic"
              }
            ],
            "text": "Primary care clinic"
          }
        ],
        "telecom": [
          {
            "system": "phone",
            "value": "555-555-1212"
          }
        ],
        "address": {
          "text": "500 Paisley St, Guelph, ON, N1H 2P3, CAN",
          "type": "physical",
          "line": [
            "500 Paisley St"
          ],
          "city": "Guelph",
          "state": "ON",
          "postalCode": "N1H 2P3",
          "country": "CAN"
        }
      }
    },
    {
      "fullUrl": "urn:uuid:10f1e449-5f01-4983-b6ab-8e6593e94971",
      "resource": {
        "resourceType": "DocumentReference",
        "id": "10f1e449-5f01-4983-b6ab-8e6593e94971",
        "meta": {
          "profile": [
            "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-DocumentReference"
          ]
        },
        "masterIdentifier": {
          "system": "urn:oid:2.16.840.1.113883.4.642",
          "value": "202412140500"
        },
        "identifier": [
          {
            "use": "official",
            "system": "http://ontariohealth.ca/fhir/NamingSystem/pccg-document-id",
            "value": "d16ff960-fe9f-4096-a69a-cb3e54c342e1"
          }
        ],
        "status": "current",
        "type": {
          "coding": [
            {
              "system": "http://loinc.org",
              "code": "60591-5",
              "display": "Patient summary Document"
            }
          ],
          "text": "Patient summary Document"
        },
        "subject": {
          "reference": "urn:uuid:4e826c7d-3709-484f-9ff0-ed1d13d8353b",
          "type": "Patient"
        },
        "date": "2024-10-27T00:00:00+00:00",
        "author": [
          {
            "reference": "urn:uuid:1505ac3a-9774-49cd-890b-ed12dbb0d4d6",
            "type": "Practitioner"
          }
        ],
        "content": [
          {
            "attachment": {
              "url": "https://api-sandbox.awsstagingotn.ca/hubapidocuments/files/ulKSRR49ZYLVR95W8B-B67l-Pf8xqOVCWpl4cWZRlejlZ44wOMqaJ9HL2_XUpphwA39ADMhUhEqsV0DwEyjVYacpKI-IAbgdqRJ_p5CxBaKAOJ7H9O0y4PYI6ScIrOwllbvBDC1-jxsqmryxA6RQ7w?hubtoken=eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJhdXRoMCIsImxhYmVscyI6IntcbiAgXCJsYWJlbE5hbWVcIjogXCJBRDY3QjgwOVwiLFxuICBcImxhYmVsQ3JlYXRvclwiOiBcInBjY2dcIlxufSIsImV4cCI6MTc3NTA2MTY1MH0.Nys9n6PoBOXe63BwgaeQynCIK7L3q1BssBkyZ4MKucxvrA-cPSR4o3wwqecSu8trSOXnSqdpKEfnKxk_01KgsA",
              "size": 244940,
              "title": "aoe.pdf",
              "creation": "2025-04-17T15:44:26Z"
            }
          }
        ],
        "context": {
          "related": [
            {
              "reference": "urn:uuid:7bab40d6-dca3-4e7f-bb9b-5e98902a4749",
              "type": "ServiceRequest"
            }
          ]
        }
      }
    },
    {
      "fullUrl": "urn:uuid:658593da-bbb2-4088-9141-4ea81c212803",
      "resource": {
        "resourceType": "PractitionerRole",
        "id": "658593da-bbb2-4088-9141-4ea81c212803",
        "meta": {
          "profile": [
            "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-PractitionerRole"
          ]
        },
        "practitioner": {
          "reference": "urn:uuid:114d5215-834c-4a28-801b-d24d4f2e4112"
        },
        "organization": {
          "reference": "urn:uuid:dfaf1a56-d918-470d-a964-709362d5febd"
        },
        "code": [
          {
            "coding": [
              {
                "system": "http://snomed.info/sct",
                "code": "309343006",
                "display": "Physician"
              }
            ]
          }
        ],
        "specialty": [
          {
            "coding": [
              {
                "system": "http://snomed.info/sct",
                "code": "394802001",
                "display": "General medicine"
              }
            ]
          }
        ],
        "location": [
          {
            "reference": "urn:uuid:acf3aa83-e990-44e5-92dd-3220f638d176"
          }
        ],
        "telecom": [
          {
            "system": "phone",
            "value": "555-555-3447",
            "use": "work",
            "rank": 1
          }
        ]
      }
    },
    {
      "fullUrl": "urn:uuid:114d5215-834c-4a28-801b-d24d4f2e4112",
      "resource": {
        "resourceType": "Practitioner",
        "id": "114d5215-834c-4a28-801b-d24d4f2e4112",
        "meta": {
          "profile": [
            "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Practitioner"
          ]
        },
        "identifier": [
          {
            "use": "official",
            "type": {
              "coding": [
                {
                  "system": "http://first-provider-system-uri.ca",
                  "code": "LN",
                  "display": "License Number"
                }
              ]
            },
            "system": "http://infoway-inforoute.ca/fhir/NamingSystem/ca-on-license-physician",
            "value": "1234"
          },
          {
            "system": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-ohip-billing-id",
            "value": "44444"
          }
        ],
        "name": [
          {
            "use": "official",
            "text": "Elizabeth Jones",
            "family": "Jones",
            "given": [
              "Elizabeth"
            ]
          }
        ]
      }
    },
    {
      "fullUrl": "urn:uuid:dfaf1a56-d918-470d-a964-709362d5febd",
      "resource": {
        "resourceType": "Organization",
        "id": "dfaf1a56-d918-470d-a964-709362d5febd",
        "meta": {
          "profile": [
            "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Organization"
          ]
        },
        "active": true,
        "type": [
          {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/organization-type",
                "code": "prov",
                "display": "Healthcare Provider"
              }
            ]
          }
        ],
        "name": "Another Fictional Custodian Organization",
        "telecom": [
          {
            "system": "phone",
            "value": "3334447777",
            "use": "work",
            "rank": 1
          },
          {
            "system": "fax",
            "value": "3335551234",
            "use": "work",
            "rank": 2
          }
        ],
        "address": [
          {
            "use": "work",
            "type": "physical",
            "line": [
              "62 York St"
            ],
            "city": "Toronto",
            "state": "ON",
            "postalCode": "N7N 1H3",
            "country": "CAN"
          }
        ]
      }
    },
    {
      "fullUrl": "urn:uuid:acf3aa83-e990-44e5-92dd-3220f638d176",
      "resource": {
        "resourceType": "Location",
        "id": "acf3aa83-e990-44e5-92dd-3220f638d176",
        "meta": {
          "profile": [
            "http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Location"
          ]
        },
        "identifier": [
          {
            "system": "http://third-system-uri.ca",
            "value": "location-id"
          }
        ],
        "status": "active",
        "name": "Another Fictional Custodian Organization",
        "description": "Description of location can go here",
        "type": [
          {
            "coding": [
              {
                "system": "http://terminology.hl7.org/CodeSystem/v3-RoleCode",
                "code": "HOSP",
                "display": "Hospital"
              }
            ],
            "text": "Hospital"
          }
        ],
        "telecom": [
          {
            "system": "phone",
            "value": "3334447777"
          }
        ],
        "address": {
          "text": "62 York St, ON, N7H 1H3, CAN",
          "type": "physical",
          "line": [
            "62 York St"
          ],
          "city": "Toronto",
          "state": "ON",
          "postalCode": "N7N 1H3",
          "country": "CAN"
        }
      }
    }
  ]
}