{
  "resourceType": "Bundle",
  "id": "3bbb062a-a103-4041-98b1-0f8f46a803sbn",
  "language": "en",
  "type": "batch",
  "timestamp": "2022-06-20T12:30:49.547+00:00",
  "entry": [
    {
      "fullUrl": "https://provider.pst.ehealthontario.ca/api2/fhir/MedicationDispense/93F05B0FF748525FE05400144FF9F54A",
      "resource": {
        "resourceType": "MedicationDispense",
        "id": "93F05B0FF748525FE05400144FF9F54A",
        "meta": {
          "source": "http://ehealthontario.ca/hns"
        },
        "contained": [
          {
            "resourceType": "Medication",
            "id": "Medication93F05B0FF748525FE05400144FF9F54A",
            "code": {
              "coding": [
                {
                  "system": "https://fhir.infoway-inforoute.ca/CodeSystem/canadianclinicaldrugdataset",
                  "code": "02267470",
                  "display": "Novo-Bisoprolol"
                }
              ]
            }
          },
          {
            "resourceType": "Patient",
            "id": "PatDisp93F05B0FF748525FE05400144FF9F54A",
            "identifier": [
              {
                "system": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-patient-hcn",
                "value": "5259156783"
              },
              {
                "system": "http://ehealthontario.ca/fhir/NamingSystem/id-pharmacy-mrn",
                "value": "ON00123456:987654321"
              }
            ],
            "name": [
              {
                "family": "Mock",
                "given": [
                  "One",
                  "TWO"
                ]
              }
            ],
            "telecom": [
              {
                "system": "phone",
                "value": "555-555-5555",
                "use": "work"
              }
            ],
            "gender": "female",
            "birthDate": "1961-01-01",
            "address": [
              {
                "use": "home",
                "type": "physical",
                "line": [
                  "13 Boring St"
                ],
                "city": "Toronto",
                "state": "ON",
                "postalCode": "M1M M2M",
                "country": "CAN"
              }
            ]
          },
          {
            "resourceType": "Practitioner",
            "id": "PractPrescr93F05B0FF748525FE05400144FF9F54A",
            "identifier": [
              {
                "system": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-license-physician",
                "value": "2355676"
              }
            ],
            "name": [
              {
                "family": "Newton",
                "given": [
                  "Isaac"
                ]
              }
            ],
            "telecom": [
              {
                "system": "phone",
                "value": "905-543-2314",
                "use": "work"
              },
              {
                "system": "fax",
                "value": "416-452-3963",
                "use": "work"
              }
            ]
          },
          {
            "resourceType": "Organization",
            "id": "OrgPharm93F05B0FF748525FE05400144FF9F54A",
            "identifier": [
              {
                "system": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-pharmacy-id-ocp",
                "value": "ON50533355"
              }
            ],
            "name": "Good Life Pharmacy",
            "telecom": [
              {
                "system": "phone",
                "value": "416-539-5532",
                "use": "work"
              },
              {
                "system": "fax",
                "value": "416-652-4553",
                "use": "work"
              }
            ],
            "address": [
              {
                "use": "work",
                "type": "physical",
                "line": [
                  "13 Boring St"
                ],
                "city": "Toronto",
                "state": "ON",
                "postalCode": "M1M M2M",
                "country": "CAN"
              }
            ]
          },
          {
            "resourceType": "Practitioner",
            "id": "PractDisp93F05B0FF748525FE05400144FF9F54A",
            "identifier": [
              {
                "system": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-license-pharmacist",
                "value": "200087"
              }
            ],
            "name": [
              {
                "family": "Sway",
                "given": [
                  "Ken"
                ]
              }
            ]
          },
          {
            "resourceType": "MedicationRequest",
            "id": "MedRequest93F05B0FF748525FE05400144FF9F54A",
            "identifier": [
              {
                "system": "http://ehealthontario.ca/fhir/NamingSystem/ca-on-pharmacy-ON50533355-rx-number",
                "value": "189787356"
              }
            ],
            "status": "unknown",
            "intent": "order",
            "medicationReference": {
              "reference": "#Medication93F05B0FF748525FE05400144FF9F54A"
            },
            "subject": {
              "reference": "#PatDisp93F05B0FF748525FE05400144FF9F54A"
            },
            "requester": {
              "reference": "#PractPrescr93F05B0FF748525FE05400144FF9F54A"
            },
            "reasonCode": [
              {
                "coding": [
                  {
                    "system": "http://snomed.info/sct",
                    "code": "48589009",
                    "display": "Minor depressive disorder"
                  },
                  {
                    "system": "http://snomed.info/sct",
                    "code": "46206005",
                    "display": "Mood disorder"
                  }
                ]
              }
            ]
          },
          {
            "resourceType": "PractitionerRole",
            "id": "practitionerRole87yssjw",
            "practitioner": {
              "reference": "#OrgPharm93F05B0FF748525FE05400144FF9F54A"
            },
            "organization": {
              "reference": "#PractDisp93F05B0FF748525FE05400144FF9F54A"
            }
          }
        ],
        "extension": [
          {
            "url": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-refills-remaining",
            "valueInteger": 5
          },
          {
            "url": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-quantity-remaining",
            "valueQuantity": {
              "value": 240,
              "unit": "Tablet",
              "system": "http://snomed.info/sct",
              "code": "428673006"
            }
          },
          {
            "url": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-medications-ext-paid-by",
            "valueCoding": {
              "system": "http://ehealthontario.ca/fhir/CodeSystem/medication-paid-by",
              "code": "PUBLICPOL",
              "display": "Ontario Drug Benefit Program"
            }
          }
        ],
        "identifier": [
          {
            "system": "http://ehealthontario.ca/fhir/NamingSystem/ca-on-pharmacy-ON01987654-rx-number",
            "value": "11111121"
          }
        ],
        "status": "completed",
        "category": {
          "coding": [
            {
              "system": "http://ehealthontario.ca/fhir/CodeSystem/medication-dispense-category",
              "code": "drug",
              "display": "Drug"
            }
          ]
        },
        "medicationReference": {
          "reference": "#Medication93F05B0FF748525FE05400144FF9F54A"
        },
        "subject": {
          "reference": "#PatDisp93F05B0FF748525FE05400144FF9F54A"
        },
        "performer": [
          {
            "actor": {
              "reference": "#practitionerRole87yssjw"
            }
          }
        ],
        "authorizingPrescription": [
          {
            "reference": "#MedRequest93F05B0FF748525FE05400144FF9F54A"
          }
        ],
        "quantity": {
          "value": 60,
          "unit": "Tablet",
          "system": "http://snomed.info/sct",
          "code": "428673006"
        },
        "daysSupply": {
          "value": 20
        },
        "whenPrepared": "2020-09-17",
        "whenHandedOver": "2020-09-23T20:13:58+00:00",
        "dosageInstruction": [
          {
            "text": "Take 2 tablets by mouth 3 times a day",
            "patientInstruction": "Take with food",
            "timing": {
              "repeat": {
                "frequency": 2,
                "period": 3,
                "periodMax": 12,
                "periodUnit": "d"
              }
            },
            "asNeededBoolean": false,
            "route": {
              "coding": [
                {
                  "system": "http://snomed.info/sct",
                  "code": "26643006",
                  "display": "Oral route"
                }
              ]
            },
            "doseAndRate": [
              {
                "doseQuantity": {
                  "value": 2,
                  "unit": "Tablet",
                  "system": "http://snomed.info/sct",
                  "code": "428673006"
                }
              }
            ]
          }
        ]
      },
      "request": {
        "method": "POST",
        "url": "MedicationDispense"
      }
    },
    {
      "fullUrl": "https://provider.pst.ehealthontario.ca/api2/fhir/MedicationDispense/93F05B0FF749525FE05400144FF9F54A",
      "resource": {
        "resourceType": "MedicationDispense",
        "id": "93F05B0FF749525FE05400144FF9F54A",
        "meta": {
          "lastUpdated": "2019-10-02T15:45:17+00:00",
          "source": "http://ehealthontario.ca/hns"
        },
        "text": {
          "status": "generated",
          "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">Narrative is not implemented in this release</div>"
        },
        "contained": [
          {
            "resourceType": "Medication",
            "id": "Medication93F05B0FF749525FE05400144FF9F54A",
            "code": {
              "text": "custom pill packaging"
            }
          },
          {
            "resourceType": "Patient",
            "id": "PatDisp93F05B0FF749525FE05400144FF9F54A",
            "identifier": [
              {
                "system": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-patient-hcn",
                "value": "5259156783"
              }
            ],
            "name": [
              {
                "family": "Mock",
                "given": [
                  "One"
                ]
              }
            ],
            "gender": "female",
            "birthDate": "1961-01-01"
          },
          {
            "resourceType": "Practitioner",
            "id": "PractPrescr93F05B0FF749525FE05400144FF9F54A",
            "identifier": [
              {
                "system": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-license-physician",
                "value": "9898789"
              }
            ],
            "name": [
              {
                "family": "Smith",
                "given": [
                  "John"
                ]
              }
            ],
            "telecom": [
              {
                "system": "phone",
                "value": "905-543-2314",
                "use": "work"
              },
              {
                "system": "fax",
                "value": "416-452-3963",
                "use": "work"
              }
            ]
          },
          {
            "resourceType": "Organization",
            "id": "OrgPharm93F05B0FF749525FE05400144FF9F54A",
            "identifier": [
              {
                "system": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-pharmacy-id-ocp",
                "value": "ON50533355"
              }
            ],
            "name": "Good Life Pharmacy",
            "telecom": [
              {
                "system": "phone",
                "value": "416-539-5532",
                "use": "work"
              },
              {
                "system": "fax",
                "value": "416-652-4553",
                "use": "work"
              }
            ],
            "address": [
              {
                "use": "work",
                "type": "physical",
                "line": [
                  "13 Boring St"
                ],
                "city": "Toronto",
                "state": "ON",
                "postalCode": "M1M M2M",
                "country": "CAN"
              }
            ]
          },
          {
            "resourceType": "Practitioner",
            "id": "PractDisp93F05B0FF749525FE05400144FF9F54A",
            "identifier": [
              {
                "system": "https://fhir.infoway-inforoute.ca/NamingSystem/ca-on-license-pharmacist",
                "value": "200087"
              }
            ],
            "name": [
              {
                "family": "Sway",
                "given": [
                  "Ken"
                ]
              }
            ]
          },
          {
            "resourceType": "MedicationRequest",
            "id": "MedRequest93F05B0FF749525FE05400144FF9F54A",
            "identifier": [
              {
                "system": "http://ehealthontario.ca/fhir/NamingSystem/ca-on-pharmacy-ON50533355-rx-number",
                "value": "888737369"
              }
            ],
            "status": "unknown",
            "intent": "order",
            "medicationReference": {
              "reference": "#Medication93F05B0FF749525FE05400144FF9F54A"
            },
            "subject": {
              "reference": "#PatDisp93F05B0FF749525FE05400144FF9F54A"
            },
            "requester": {
              "reference": "#PractPrescr93F05B0FF749525FE05400144FF9F54A"
            }
          },
          {
            "resourceType": "PractitionerRole",
            "id": "practitionerRole87yssjw333",
            "practitioner": {
              "reference": "#OrgPharm93F05B0FF748525FE05400144FF9F54A"
            },
            "organization": {
              "reference": "#PractDisp93F05B0FF748525FE05400144FF9F54A"
            }
          }
        ],
        "identifier": [
          {
            "system": "http://ehealthontario.ca/fhir/NamingSystem/ca-on-pharmacy-ON50533355-rx-number",
            "value": "309787731"
          }
        ],
        "status": "entered-in-error",
        "category": {
          "coding": [
            {
              "system": "http://ehealthontario.ca/fhir/CodeSystem/medication-dispense-category",
              "code": "service",
              "display": "Professional Service"
            }
          ]
        },
        "medicationReference": {
          "reference": "#Medication93F05B0FF749525FE05400144FF9F54A"
        },
        "subject": {
          "reference": "#PatDisp93F05B0FF749525FE05400144FF9F54A"
        },
        "performer": [
          {
            "actor": {
              "reference": "#practitionerRole87yssjw333"
            }
          }
        ],
        "authorizingPrescription": [
          {
            "reference": "#MedRequest93F05B0FF749525FE05400144FF9F54A"
          }
        ],
        "whenPrepared": "2020-09-17",
        "whenHandedOver": "2020-09-23T20:13:58+00:00",
        "dosageInstruction": [
          {
            "text": "Take 2 tablets by mouth 3 times a day"
          }
        ]
      },
      "request": {
        "method": "POST",
        "url": "MedicationDispense"
      }
    }
  ]
}