using OI.Service.HangfireTask.CheckPrescriptionChangeTask;
var checkPrescriptionChangeTask = Activate<CheckPrescriptionChangeTask>();
await checkPrescriptionChangeTask.CheckPrescriptionChange(
"69c20bf14418e29c2f1a39cc",
FromJson<Prescription>("{\"PackType\":0,\"Dose\":[0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0],\"ShortCourseTimeslot\":[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"],\"PatientId\":\"69cb3e3d593b387e50f9599c\",\"Direction\":\"1 BEFORE BED\",\"FoilId\":\"69eac0b1747aca488ffb275b\",\"FoilLabel\":\"Blister Pack 2\",\"DateDispensed\":\"0001-01-01T00:00:00\",\"QtyDispense\":0.0,\"DateExpiry\":\"0001-01-01T00:00:00\",\"Route\":{\"Code\":\"PO\"},\"IsStandard\":true,\"IsShortCourse\":false,\"IsSinemet\":false,\"IsWarfarin\":false,\"IsInsulin\":false,\"IsS8Drug\":false,\"IsCytotoxic\":false,\"IsS4N\":false,\"StartDate\":\"2026-04-24T02:00:00Z\",\"EndDate\":\"2026-04-29T02:00:00Z\",\"Frequency\":0,\"PackedWeekDay\":[],\"FreqXDay\":0,\"OnDays\":0,\"OffDays\":0,\"IsDoNotCrush\":true,\"FontColor\":\"\",\"SameAs\":\"\",\"PrintIt\":true,\"State\":0,\"DateCeased\":\"0001-01-01T00:00:00\",\"TempSubstitution\":false,\"Note\":\"\",\"IsHandPacked\":false,\"IsNoEndDate\":false,\"Indication\":\"\",\"Unit\":\"\",\"PharmacyId\":\"69c20bf14418e29c2f1a39cc\",\"SyncDate\":\"0001-01-01T00:00:00\",\"IsSyncImported\":false,\"Drug\":{\"DrugName\":\"MELATONIN SLEEP AID (APH) 2mg MR-TAB\",\"DrugCode\":\"MELA13\",\"Austr\":\"250293\",\"Supplier\":\"APOTEX PTY LTD\",\"Type\":\"MR-Tablet\",\"Color\":\"\",\"Shape\":\"\",\"Marking\":\"\",\"Warning\":\"*Do not take alcohol while being treated with this medicine**May affect alertness and/or co-ordination. If affected, do not drive or operate machineryswallowed whole*Ask your pharmacist about the storage conditions for this medicine\",\"Direction\":\"\",\"GenericCode\":\"MELA2\",\"GenericName\":\"MELATONIN\",\"Presentation\":\"\",\"AltBrand\":\"CIRCADIN, MELOTIN MR, CHEMISTS OWN MELATONIN SLP AID, MELATONIN SLEEP AID (SANDOZ), MELATONIN SLEEP AID (APH), MELATONIN (VIATRIS), RESTIN, MELATONIN (TWCM), MELATONIN (PRICELINE)\",\"DoNotCrush\":true,\"TradeName\":\"MELATONIN SLEEP AID (APH)\",\"Formulation\":\"MR-TAB\",\"Strength\":\"2mg\",\"Schedule\":\"3\",\"PackSize\":30,\"IsCytotoxic\":false,\"Authorized\":2,\"TSAuthorized\":\"0001-01-01T00:00:00Z\",\"ShelfLife\":0,\"Description\":\"\",\"UsePrintingDrugName\":false,\"PrintingDrugName\":\"\",\"PharmacyId\":\"69c20bf14418e29c2f1a39cc\",\"Usage\":13,\"DrugFullName\":\"MELATONIN SLEEP AID (APH) 2mg MR-TAB\",\"MedicationFullDetails\":\"MELATONIN SLEEP AID (APH) 2mg MR-TAB - MELATONIN (MELA13)\",\"Id\":\"65f243255236fa08e03208dc\",\"CreatedDate\":\"2024-03-14T00:21:57.876Z\",\"CreatedUserId\":\"\",\"LastUpdateUserId\":\"\",\"LastUpdateDate\":\"2025-10-10T23:37:31.654Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false},\"IsPreventBrandswap\":false,\"Swapped\":false,\"FreqXWeek\":0,\"PatientDocumentIds\":[],\"Id\":\"69eac0cbfe71d5d94b490497\",\"CreatedDate\":\"2026-04-24T01:00:59.3725286Z\",\"CreatedUserName\":\"andrew\",\"CreatedUserId\":\"69c2136bea461ed9a5ba765a\",\"LastUpdateDate\":\"2026-04-24T01:00:59.3725286Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false}"),
"69cb3e3d593b387e50f9599c",
"");