{
  "resourceType": "Bundle",
  "id": "example-Bundle-patient-history",
  "type": "history",
  "total": 2,
  "link": [
    {
      "relation": "self",
      "url": "https://api.bpcs.exchange/rest/v1/dev/THP/BPCS_vs1/Patient/7382542665/_history"
    }
  ],
  "entry": [
    {
      "fullUrl": "https://api.bpcs.exchange/rest/v1/dev/THP/BPCS_vs1/Patient/7382542665",
      "resource": {
        "resourceType": "Patient",
        "id": "7382542665",
        "meta": {
          "extension": [
            {
              "url": "https://bpcs.exchange/fhir/StructureDefinition/ext-Meta-effectiveDate",
              "valueDate": "2021-08-01"
            }
          ],
          "versionId": "202205041442145265",
          "lastUpdated": "2022-05-04T18:42:14.5265+00:00"
        },
        "contained": [
          {
            "resourceType": "Provenance",
            "id": "1",
            "target": [
              {
                "reference": "#"
              }
            ],
            "occurredDateTime": "2023-10-10T07:08:31.526504+00:00",
            "activity": {
              "coding": [
                {
                  "system": "http://terminology.hl7.org/CodeSystem/v3-DataOperation",
                  "code": "CREATE"
                }
              ]
            },
            "agent": [
              {
                "who": {
                  "identifier": {
                    "system": "https://bpcs.exchange/fhir/NamingSystem/userids",
                    "value": "M_MBPCS"
                  }
                }
              }
            ]
          },
          {
            "resourceType": "Provenance",
            "id": "2",
            "target": [
              {
                "reference": "#"
              }
            ],
            "occurredDateTime": "2023-10-10T07:08:31.526504+00:00",
            "activity": {
              "coding": [
                {
                  "system": "http://terminology.hl7.org/CodeSystem/v3-DataOperation",
                  "code": "UPDATE"
                }
              ]
            },
            "agent": [
              {
                "who": {
                  "identifier": {
                    "system": "https://bpcs.exchange/fhir/NamingSystem/userids",
                    "value": "M_MBPCS"
                  }
                }
              }
            ]
          }
        ],
        "extension": [
          {
            "url": "https://bpcs.exchange/fhir/StructureDefinition/ext-Patient-SeniorFlag",
            "valueBoolean": false
          },
          {
            "url": "https://bpcs.exchange/fhir/StructureDefinition/ext-Patient-ApplicationMemberFlag",
            "valueBoolean": false
          },
          {
            "url": "https://bpcs.exchange/fhir/StructureDefinition/ext-Patient-ContactApplicationMemberFlag",
            "valueBoolean": false
          }
        ],
        "identifier": [
          {
            "extension": [
              {
                "url": "http://hl7canada.ca/ig/baseline/StructureDefinition/ext-identifierversion",
                "valueString": "02"
              }
            ],
            "use": "official",
            "system": "https://fhir.infoway-inforroute.ca/namingsystem/ca-on-patient-hcn",
            "value": "7382542665"
          }
        ],
        "name": [
          {
            "family": "LILE",
            "given": [
              "GORD"
            ]
          }
        ],
        "gender": "male",
        "birthDate": "1958-05-30",
        "address": [
          {
            "extension": [
              {
                "url": "https://bpcs.exchange/fhir/StructureDefinition/ext-Address-MunicipalityCode",
                "valueCoding": {
                  "system": "https://bpcs.exchange/fhir/CodeSystem/cs-Municipality",
                  "code": "1811"
                }
              }
            ],
            "type": "postal",
            "line": [
              "RTS - FAKE TEST ADDRESS"
            ],
            "city": "NORTH YORK",
            "state": "ON",
            "postalCode": "M2M 4K5",
            "country": "CAN"
          }
        ],
        "communication": [
          {
            "language": {
              "coding": [
                {
                  "system": "urn:ietf:bcp:47",
                  "code": "en-CA"
                }
              ]
            }
          }
        ]
      },
      "request": {
        "method": "PUT",
        "url": "Patient/7382542665"
      },
      "response": {
        "status": "200",
        "etag": "202205041442145265",
        "lastModified": "2022-05-04T18:42:14.5265+00:00"
      }
    },
    {
      "fullUrl": "https://api.bpcs.exchange/rest/v1/dev/THP/BPCS_vs1/Patient/7382542665",
      "resource": {
        "resourceType": "Patient",
        "id": "7382542665",
        "meta": {
          "extension": [
            {
              "url": "https://bpcs.exchange/fhir/StructureDefinition/ext-Meta-effectiveDate",
              "valueDate": "2021-08-01"
            }
          ],
          "versionId": "202301181638438345",
          "lastUpdated": "2023-01-18T21:38:43.8345+00:00"
        },
        "contained": [
          {
            "resourceType": "Provenance",
            "id": "1",
            "target": [
              {
                "reference": "#"
              }
            ],
            "occurredDateTime": "2023-10-10T03:12:31.834515+00:00",
            "activity": {
              "coding": [
                {
                  "system": "http://terminology.hl7.org/CodeSystem/v3-DataOperation",
                  "code": "CREATE"
                }
              ]
            },
            "agent": [
              {
                "who": {
                  "identifier": {
                    "system": "https://bpcs.exchange/fhir/NamingSystem/userids",
                    "value": "TH_RANBH"
                  }
                }
              }
            ]
          }
        ],
        "extension": [
          {
            "url": "https://bpcs.exchange/fhir/StructureDefinition/ext-Patient-SeniorFlag",
            "valueBoolean": false
          },
          {
            "url": "https://bpcs.exchange/fhir/StructureDefinition/ext-Patient-ApplicationMemberFlag",
            "valueBoolean": false
          },
          {
            "url": "https://bpcs.exchange/fhir/StructureDefinition/ext-Patient-ContactApplicationMemberFlag",
            "valueBoolean": false
          }
        ],
        "identifier": [
          {
            "use": "official",
            "system": "https://fhir.infoway-inforroute.ca/namingsystem/ca-on-patient-hcn",
            "value": "7382542665"
          }
        ],
        "name": [
          {
            "family": "LILE",
            "given": [
              "GORD"
            ]
          }
        ],
        "gender": "male",
        "birthDate": "1958-05-30",
        "communication": [
          {
            "language": {
              "coding": [
                {
                  "system": "urn:ietf:bcp:47",
                  "code": "fr-CA"
                }
              ]
            }
          }
        ]
      },
      "request": {
        "method": "POST",
        "url": "Patient"
      },
      "response": {
        "status": "201",
        "etag": "202301181638438345",
        "lastModified": "2023-01-18T21:38:43.8345+00:00"
      }
    }
  ]
}