using OI.Service.HangfireTask.CheckPrescriptionChangeTask;
var checkPrescriptionChangeTask = Activate<CheckPrescriptionChangeTask>();
await checkPrescriptionChangeTask.CheckPrescriptionChange(
"66c563c98222d312085e5f33",
FromJson<Prescription>("{\"PackType\":3,\"Description\":\"light orange round D 2\",\"Dose\":[0.5],\"ShortCourseTimeslot\":[],\"PatientId\":\"6705e23a27976e0e9c2ed2ee\",\"Direction\":\"0.5-1 Q4-6H PRN \",\"FoilId\":\"6705e23a27976e0e9c2ed31d\",\"FoilLabel\":\"foil 1\",\"DateDispensed\":\"0001-01-01T00:00:00\",\"QtyDispense\":0.0,\"DateExpiry\":\"0001-01-01T00:00:00\",\"Route\":{\"Code\":\"PO\",\"Description\":\"Oral\"},\"IsStandard\":true,\"IsShortCourse\":false,\"IsSinemet\":false,\"IsWarfarin\":false,\"IsInsulin\":false,\"IsS8Drug\":false,\"IsCytotoxic\":false,\"IsS4N\":false,\"StartDate\":\"0001-01-01T00:00:00\",\"EndDate\":\"2026-04-21T06:01:01.2525685Z\",\"Frequency\":0,\"PackedWeekDay\":[],\"FreqXDay\":0,\"OnDays\":0,\"OffDays\":0,\"IsDoNotCrush\":false,\"FontColor\":\"\",\"SameAs\":\"\",\"PrintIt\":true,\"State\":2,\"DateCeased\":\"2026-04-21T06:01:01.2525685Z\",\"TempSubstitution\":false,\"Note\":\"\",\"IsHandPacked\":false,\"IsNoEndDate\":false,\"Unit\":\"tablet\",\"PharmacyId\":\"66c563c98222d312085e5f33\",\"SyncId\":\"a6de7216-ee59-4866-9de7-c7a379638d1d-4163\",\"SyncDate\":\"2024-10-09T01:54:02.64Z\",\"IsSyncImported\":true,\"Drug\":{\"DrugName\":\"DILAUDID 2mg TAB\",\"DrugCode\":\"DILA13\",\"Austr\":\"67353\",\"Supplier\":\"MUNDIPHARMA PTY LIMITED\",\"Type\":\"Tablet\",\"Color\":\"light orange\",\"Shape\":\"round\",\"Marking\":\"D\",\"Warning\":\"*May cause drowsiness and increase effects of alcohol. If affected do not drive a motor vehicle or operate machinery.Use of this medicine has the risks of overdose and dependenceS/Care - Driving & MedicationS/Care - Pain RelieversSome states disallow dental prescribing\",\"Direction\":\"\",\"GenericCode\":\"HYDR32\",\"GenericName\":\"HYDROMORPHONE HCL\",\"Presentation\":\"\",\"ImageId\":\"5f3a2daca0ba5d7c50796539\",\"ImageName\":\"67353-C01-01-BL600.jpg\",\"AltBrand\":\"DILAUDID\",\"DoNotCrush\":false,\"TradeName\":\"DILAUDID\",\"Formulation\":\"TAB\",\"Strength\":\"2mg\",\"Schedule\":\"8\",\"PackSize\":20,\"IsCytotoxic\":false,\"Authorized\":0,\"TSAuthorized\":\"0001-01-01T00:00:00Z\",\"ShelfLife\":0,\"Description\":\"light orange round D\",\"UsePrintingDrugName\":false,\"PrintingDrugName\":\"\",\"PharmacyId\":\"66c563c98222d312085e5f33\",\"Usage\":0,\"DrugFullName\":\"DILAUDID 2mg TAB\",\"MedicationFullDetails\":\"DILAUDID 2mg TAB - HYDROMORPHONE HCL (DILA13)\",\"Id\":\"5f0e69e0a0ba5db368a15863\",\"CreatedDate\":\"2020-07-15T02:28:40.668Z\",\"CreatedUserId\":\"5e7457052a22160c3cf31edb\",\"LastUpdateUserId\":\"\",\"LastUpdateDate\":\"2025-10-11T15:18:11.175Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false},\"IsPreventBrandswap\":false,\"Swapped\":false,\"FreqXWeek\":0,\"PatientDocumentIds\":[],\"Id\":\"6705e23a27976e0e9c2ed328\",\"CreatedDate\":\"2024-10-09T01:54:02.64Z\",\"LastUpdateUserId\":\"6705e4e6af648e0e40c251fd\",\"LastUpdateUserName\":\"simone\",\"LastUpdateDate\":\"2026-04-21T06:01:01.2525685Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false}"),
"6705e23a27976e0e9c2ed2ee",
"");