using OI.Service.HangfireTask.CheckPrescriptionChangeTask;
var checkPrescriptionChangeTask = Activate<CheckPrescriptionChangeTask>();
await checkPrescriptionChangeTask.CheckPrescriptionChange(
"6993ee946f072bc22746cf88",
FromJson<Prescription>("{\"PackType\":0,\"Dose\":[0.0,0.0,1.0],\"ShortCourseTimeslot\":[],\"PatientId\":\"69dd831a5952f0e4c25fdf73\",\"Direction\":\"Take ONE tablet at night on ALTERNATE evenings\",\"FoilId\":\"69dd831a5952f0e4c25fdfa3\",\"FoilLabel\":\"Blister Pack 1\",\"DateDispensed\":\"2026-03-05T13:00:00Z\",\"ScriptNum\":\"2241819\",\"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\":\"2026-04-15T02:00:00Z\",\"EndDate\":\"0001-01-01T00:00:00Z\",\"Frequency\":1,\"PackedWeekDay\":[],\"FreqXDay\":0,\"OnDays\":0,\"OffDays\":0,\"IsDoNotCrush\":true,\"FontColor\":\"\",\"PrintIt\":true,\"State\":1,\"DateCeased\":\"0001-01-01T00:00:00Z\",\"TempSubstitution\":false,\"IsHandPacked\":false,\"IsNoEndDate\":true,\"Unit\":\"\",\"PharmacyId\":\"6993ee946f072bc22746cf88\",\"SyncDate\":\"0001-01-01T00:00:00\",\"IsSyncImported\":false,\"Drug\":{\"DrugName\":\"TRAMAL 50mg SR-TAB\",\"DrugCode\":\"TRAM29\",\"Austr\":\"121845\",\"Supplier\":\"SEQIRUS (AUSTRALIA) PTY L\",\"Type\":\"SR-Tablet\",\"Color\":\"pale yellow\",\"Shape\":\"round\",\"Marking\":\"T0\",\"Warning\":\"*May cause drowsiness and increase effects of alcohol. If affected do not drive a motor vehicle or operate machinery.*Maximum of 400mg per day**Ask your Doctor or Pharmacist before using other medicines including over-the-counter or any health productsswallowed wholeUse of this medicine has the risks of overdose and dependenceHIC-Incr Qty/Rpts specific conditionsS8 Reporting - Tasmania Only\",\"Direction\":\"\",\"GenericCode\":\"TRAM32\",\"GenericName\":\"TRAMADOL HYDROCHLORIDE\",\"Presentation\":\"Used to help relieve moderate to moderately severe pain.\",\"ImageId\":\"5f3a2d8ca0ba5d7c507953aa\",\"ImageSmallSizeId\":\"68f598965a506b941b5c814d\",\"ImageName\":\"121845-C01-01-BL600.jpg\",\"AltBrand\":\"TRAMAL\",\"DoNotCrush\":true,\"TradeName\":\"TRAMAL\",\"Formulation\":\"SR-TAB\",\"Strength\":\"50mg\",\"Schedule\":\"4N\",\"PackSize\":20,\"IsCytotoxic\":false,\"Authorized\":0,\"TSAuthorized\":\"0001-01-01T00:00:00Z\",\"ShelfLife\":0,\"Description\":\"pale yellow round T0\",\"UsePrintingDrugName\":false,\"PrintingDrugName\":\"\",\"PharmacyId\":\"6993ee946f072bc22746cf88\",\"Usage\":0,\"DrugFullName\":\"TRAMAL 50mg SR-TAB\",\"MedicationFullDetails\":\"TRAMAL 50mg SR-TAB - TRAMADOL HYDROCHLORIDE (TRAM29)\",\"Id\":\"5f0e69e0a0ba5db368a15f4a\",\"CreatedDate\":\"2020-07-15T02:28:42.126Z\",\"CreatedUserId\":\"5e7457052a22160c3cf31edb\",\"LastUpdateUserId\":\"\",\"LastUpdateDate\":\"2025-10-11T16:36:35.289Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false},\"IsPreventBrandswap\":false,\"Swapped\":false,\"FreqXWeek\":0,\"PatientDocumentIds\":[],\"Id\":\"69dd831a5952f0e4c25fdfad\",\"CreatedDate\":\"2026-04-13T23:58:18.185Z\",\"CreatedUserId\":\"69c21352af217b9ed91eb5cb\",\"LastUpdateUserId\":\"69c21352af217b9ed91eb5cb\",\"LastUpdateUserName\":\"scott\",\"LastUpdateDate\":\"2026-04-21T01:59:14.8215333Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false}"),
"69dd831a5952f0e4c25fdf73",
"");