using OI.Service.HangfireTask.CheckPrescriptionChangeTask;
var checkPrescriptionChangeTask = Activate<CheckPrescriptionChangeTask>();
await checkPrescriptionChangeTask.CheckPrescriptionChange(
"645334def65a88089ce58676",
FromJson<Prescription>("{\"PackType\":0,\"Dose\":[0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0],\"ShortCourseTimeslot\":[],\"PatientId\":\"646189f7f65a880754ebde0d\",\"Direction\":\"1 BEDTIME\",\"FoilId\":\"646189f7f65a880754ebde21\",\"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\":\"0001-01-01T00:00:00\",\"EndDate\":\"2026-04-21T02:24:23.4355911Z\",\"Frequency\":0,\"PackedWeekDay\":[],\"FreqXDay\":0,\"OnDays\":0,\"OffDays\":0,\"IsDoNotCrush\":true,\"FontColor\":\"\",\"SameAs\":\"\",\"PrintIt\":true,\"State\":2,\"DateCeased\":\"2026-04-21T02:24:23.4355911Z\",\"TempSubstitution\":false,\"Note\":\"\",\"IsHandPacked\":false,\"IsNoEndDate\":false,\"Indication\":\"\",\"Unit\":\"\",\"PharmacyId\":\"645334def65a88089ce58676\",\"SyncDate\":\"0001-01-01T00:00:00Z\",\"IsSyncImported\":false,\"Drug\":{\"DrugName\":\"ROSUVASTATIN (APX) 10mg TAB\",\"DrugCode\":\"ROSU82\",\"Austr\":\"333452\",\"Supplier\":\"APOTEX PTY LTD\",\"Type\":\"Tablet\",\"Color\":\"\",\"Shape\":\"\",\"Marking\":\"\",\"Warning\":\"Special handling and disposal required - ask your Pharmacist\",\"Direction\":\"\",\"GenericCode\":\"ROSU2\",\"GenericName\":\"ROSUVASTATIN\",\"Presentation\":\"\",\"AltBrand\":\"CRESTOR, CAVSTAT, ROSUVASTATIN (ACTAVIS) 10, ROSUVASTATIN (APO), ROSUVASTATIN (CHEM-MART), ROSUVASTATIN (GH), ROSUVASTATIN (RBX), ROSUVASTATIN (SANDOZ), ROSUVASTATIN (TW), ROSTOR 10, CROSUVA 10, ROSUVASTATIN-DRLA, ROSUVASTATIN (AN), ROSUVASTATIN (APO), ROSUVASTATIN (BLOOMS-IB), ROSUVASTATIN (AMNEAL), ROSUVASTATIN (GN HLTH), ROSUVASTATIN (PHARMACOR), ROSUVASTATIN (APOTEX), ROSUVASTATIN (BTC), ROSUVASTATIN (APOTEX), ROSUVASTATIN (NOUMED), ROSUVASTATIN (LUPIN), ROSUVASTATIN (APX), ROSUVASTATIN (BLOOMS-BG), ROS\",\"DoNotCrush\":false,\"TradeName\":\"ROSUVASTATIN (APX)\",\"Formulation\":\"TAB\",\"Strength\":\"10mg\",\"Schedule\":\"4\",\"PackSize\":30,\"IsCytotoxic\":false,\"Authorized\":0,\"TSAuthorized\":\"0001-01-01T00:00:00Z\",\"ShelfLife\":0,\"Description\":\"\",\"UsePrintingDrugName\":false,\"PrintingDrugName\":\"\",\"PharmacyId\":\"645334def65a88089ce58676\",\"Usage\":16,\"DrugFullName\":\"ROSUVASTATIN (APX) 10mg TAB\",\"MedicationFullDetails\":\"ROSUVASTATIN (APX) 10mg TAB - ROSUVASTATIN (ROSU82)\",\"Id\":\"6102d2c7a6b66b27b81103d6\",\"CreatedDate\":\"2021-07-29T16:09:43.008Z\",\"CreatedUserId\":\"5fa24cab89e48b3a6ef44ad0\",\"LastUpdateUserId\":\"\",\"LastUpdateDate\":\"2025-10-10T15:50:05.723Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false},\"IsPreventBrandswap\":false,\"Swapped\":false,\"FreqXWeek\":0,\"PatientDocumentIds\":[],\"Id\":\"647345f0f65a880700ff6968\",\"CreatedDate\":\"2023-05-28T12:15:44.767Z\",\"CreatedUserName\":\"khanh\",\"CreatedUserId\":\"64546e81f65a8808c4c38822\",\"LastUpdateUserId\":\"64546ef2f65a8808c4c390a0\",\"LastUpdateUserName\":\"Thomas\",\"LastUpdateDate\":\"2026-04-21T02:24:23.4355911Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false}"),
"646189f7f65a880754ebde0d",
"");