using OI.Service.HangfireTask.CheckPrescriptionChangeTask;
var checkPrescriptionChangeTask = Activate<CheckPrescriptionChangeTask>();
await checkPrescriptionChangeTask.CheckPrescriptionChange(
"681aa7a7a7ab950ad4f2f882",
FromJson<Prescription>("{\"PackType\":0,\"Dose\":[0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0],\"ShortCourseTimeslot\":[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"],\"PatientId\":\"689e76ecf90e7dd06f65d99c\",\"Direction\":\"Swallow whole one tablet before bed\",\"FoilId\":\"689e76fcf90e7dd06f65e413\",\"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\":\"2025-08-24T02:00:00Z\",\"EndDate\":\"0001-01-01T00: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\":true,\"Indication\":\"\",\"Unit\":\"\",\"PharmacyId\":\"681aa7a7a7ab950ad4f2f882\",\"SyncDate\":\"0001-01-01T00:00:00\",\"IsSyncImported\":false,\"Drug\":{\"DrugName\":\"RESTIN 2mg MR-TAB\",\"DrugCode\":\"REST10\",\"Austr\":\"\",\"Supplier\":\"NOVA PHARMACEUTICALS AUST\",\"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*Do NOT remove from original packaging until dose is required\",\"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)\",\"DoNotCrush\":true,\"TradeName\":\"RESTIN\",\"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\":\"681aa7a7a7ab950ad4f2f882\",\"Usage\":1,\"DrugFullName\":\"RESTIN 2mg MR-TAB\",\"MedicationFullDetails\":\"RESTIN 2mg MR-TAB - MELATONIN (REST10)\",\"Id\":\"66e4d7e327976e0dd0ef9c68\",\"CreatedDate\":\"2024-09-14T00:25:07.137Z\",\"CreatedUserId\":\"\",\"LastUpdateUserId\":\"\",\"LastUpdateDate\":\"2025-02-07T20:09:37.351Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false},\"IsPreventBrandswap\":false,\"Swapped\":false,\"FreqXWeek\":0,\"PatientDocumentIds\":[],\"Id\":\"689e772bf90e7dd06f661fc7\",\"CreatedDate\":\"2025-08-14T23:54:19.3017018Z\",\"CreatedUserName\":\"twcmgreenway\",\"CreatedUserId\":\"681aa982a7ab950ad4f64935\",\"LastUpdateDate\":\"2025-08-14T23:54:19.3017018Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false}"),
"689e76ecf90e7dd06f65d99c",
"");