using OI.Service.HangfireTask.CheckPrescriptionChangeTask;
var checkPrescriptionChangeTask = Activate<CheckPrescriptionChangeTask>();
await checkPrescriptionChangeTask.CheckPrescriptionChange(
"682d10cda7ab9508f4722ab0",
FromJson<Prescription>("{\"PackType\":0,\"Dose\":[0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0],\"ShortCourseTimeslot\":[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"],\"PatientId\":\"696d673fb008ca42aac6f47f\",\"Direction\":\"1 NIGHT\",\"FoilId\":\"696d67638530ce37b220766c\",\"FoilLabel\":\"Regular 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\":\"0001-01-01T00:00:00\",\"EndDate\":\"2026-04-23T22:50:52.1639262Z\",\"Frequency\":0,\"PackedWeekDay\":[],\"FreqXDay\":0,\"OnDays\":0,\"OffDays\":0,\"IsDoNotCrush\":true,\"FontColor\":\"\",\"SameAs\":\"\",\"PrintIt\":true,\"State\":2,\"DateCeased\":\"2026-04-23T22:50:52.1639262Z\",\"TempSubstitution\":false,\"Note\":\"\",\"IsHandPacked\":false,\"IsNoEndDate\":false,\"Indication\":\"\",\"Unit\":\"\",\"PharmacyId\":\"682d10cda7ab9508f4722ab0\",\"SyncDate\":\"0001-01-01T00:00:00\",\"IsSyncImported\":false,\"Drug\":{\"DrugName\":\"SLENYTO 5mg PR-TAB\",\"DrugCode\":\"SLEN2\",\"Austr\":\"\",\"Supplier\":\"ASPEN PHARMACARE AUSTRALI\",\"Type\":\"PR-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*NO INCREASE IN RPTS WILL BE AUTHORISED\",\"Direction\":\"\",\"GenericCode\":\"MELA4\",\"GenericName\":\"MELATONIN\",\"Presentation\":\"\",\"AltBrand\":\"SLENYTO\",\"DoNotCrush\":true,\"TradeName\":\"SLENYTO\",\"Formulation\":\"PR-TAB\",\"Strength\":\"5mg\",\"Schedule\":\"4\",\"PackSize\":30,\"IsCytotoxic\":false,\"Authorized\":0,\"TSAuthorized\":\"0001-01-01T00:00:00Z\",\"ShelfLife\":0,\"Description\":\"\",\"UsePrintingDrugName\":false,\"PrintingDrugName\":\"\",\"PharmacyId\":\"682d10cda7ab9508f4722ab0\",\"Usage\":1,\"DrugFullName\":\"SLENYTO 5mg PR-TAB\",\"MedicationFullDetails\":\"SLENYTO 5mg PR-TAB - MELATONIN (SLEN2)\",\"Id\":\"6102d2b5a6b66b27b8110374\",\"CreatedDate\":\"2021-07-29T16:09:25.135Z\",\"CreatedUserId\":\"5fa24cab89e48b3a6ef44ad0\",\"LastUpdateUserId\":\"\",\"LastUpdateDate\":\"2025-10-10T20:21:49.317Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false},\"IsPreventBrandswap\":false,\"Swapped\":false,\"FreqXWeek\":0,\"PatientDocumentIds\":[],\"Id\":\"696d679bb008ca42aac7d2a2\",\"CreatedDate\":\"2026-01-18T23:07:07.709Z\",\"CreatedUserName\":\"ag92\",\"CreatedUserId\":\"682d1340a7ab9508f475349a\",\"LastUpdateUserId\":\"682d1340a7ab9508f475349a\",\"LastUpdateDate\":\"2026-04-23T22:50:52.1639262Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false}"),
"696d673fb008ca42aac6f47f",
"");