using OI.Service.HangfireTask.CheckPrescriptionChangeTask;
var checkPrescriptionChangeTask = Activate<CheckPrescriptionChangeTask>();
await checkPrescriptionChangeTask.CheckPrescriptionChange(
"67d9ef0308efed0494a88adc",
FromJson<Prescription>("{\"PackType\":0,\"Dose\":[0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0],\"ShortCourseTimeslot\":[],\"PatientId\":\"67fdd0c9a7ab950ccc376e1f\",\"Direction\":\"one tablet before bed\",\"FoilId\":\"67fdd0c9a7ab950ccc376e2d\",\"FoilLabel\":\"Blister Pack 1\",\"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-23T02:00:00Z\",\"EndDate\":\"0001-01-01T00:00:00Z\",\"Frequency\":0,\"PackedWeekDay\":[],\"FreqXDay\":0,\"OnDays\":0,\"OffDays\":0,\"IsDoNotCrush\":true,\"FontColor\":\"\",\"SameAs\":\"\",\"PrintIt\":true,\"State\":1,\"DateCeased\":\"2026-04-22T23:42:42.72Z\",\"TempSubstitution\":false,\"Note\":\"\",\"IsHandPacked\":false,\"IsNoEndDate\":true,\"Indication\":\"\",\"Unit\":\"\",\"PharmacyId\":\"67d9ef0308efed0494a88adc\",\"SyncDate\":\"0001-01-01T00:00:00\",\"IsSyncImported\":false,\"Drug\":{\"DrugName\":\"MELATONIN (TWCM) 2mg MR-TAB\",\"DrugCode\":\"METW01\",\"Austr\":\"440555\",\"Supplier\":\"\",\"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 (TWCM)\",\"Formulation\":\"MR-TAB\",\"Strength\":\"2mg\",\"Schedule\":\"3\",\"PackSize\":30,\"IsCytotoxic\":false,\"Authorized\":0,\"TSAuthorized\":\"0001-01-01T00:00:00Z\",\"ShelfLife\":0,\"Description\":\"\",\"UsePrintingDrugName\":false,\"PrintingDrugName\":\"\",\"PharmacyId\":\"67d9ef0308efed0494a88adc\",\"Usage\":6,\"DrugFullName\":\"MELATONIN (TWCM) 2mg MR-TAB\",\"MedicationFullDetails\":\"MELATONIN (TWCM) 2mg MR-TAB - MELATONIN (METW01)\",\"Id\":\"670c6e5dd8c50209781d2ad6\",\"CreatedDate\":\"2024-10-14T01:05:33.162Z\",\"CreatedUserId\":\"\",\"LastUpdateDate\":\"2025-10-10T19:44:59.437Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false},\"IsPreventBrandswap\":false,\"Swapped\":false,\"FreqXWeek\":0,\"PatientDocumentIds\":[],\"Id\":\"69d8a8666c24e95c9a9cc917\",\"CreatedDate\":\"2026-04-10T07:36:06.093Z\",\"CreatedUserName\":\"JMorfoot\",\"CreatedUserId\":\"67e0a61f08efed133445a9e8\",\"LastUpdateUserId\":\"67e0a61f08efed133445a9e8\",\"LastUpdateUserName\":\"JMorfoot\",\"LastUpdateDate\":\"2026-04-23T04:15:31.1218906Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false}"),
"67fdd0c9a7ab950ccc376e1f",
"");