using OI.Service.HangfireTask.CheckPrescriptionChangeTask;
var checkPrescriptionChangeTask = Activate<CheckPrescriptionChangeTask>();
await checkPrescriptionChangeTask.CheckPrescriptionChange(
"68478ffcaf648e0c7c94d408",
FromJson<Prescription>("{\"PackType\":0,\"Dose\":[0.0,1.0,0.0,1.0],\"ShortCourseTimeslot\":[],\"PatientId\":\"6882dfb73e5f1b9fd34b4d84\",\"Direction\":\"1 twice daily\",\"FoilId\":\"6882dfb73e5f1b9fd34b4d88\",\"FoilLabel\":\"Blister Pack 1\",\"DateDispensed\":\"2025-06-25T01:25:48Z\",\"ScriptNum\":\"1465005\",\"QtyDispense\":0.0,\"DateExpiry\":\"0001-01-01T00:00:00\",\"Route\":{\"Code\":\"PO\",\"Description\":\"Oral\"},\"IsStandard\":true,\"IsShortCourse\":false,\"IsSinemet\":false,\"IsWarfarin\":false,\"IsInsulin\":false,\"IsS8Drug\":false,\"IsCytotoxic\":false,\"IsS4N\":false,\"StartDate\":\"2025-07-25T02:00:00Z\",\"EndDate\":\"0001-01-01T00:00:00Z\",\"Frequency\":0,\"PackedWeekDay\":[],\"FreqXDay\":0,\"OnDays\":0,\"OffDays\":0,\"IsDoNotCrush\":false,\"FontColor\":\"\",\"PrintIt\":true,\"State\":1,\"DateCeased\":\"0001-01-01T00:00:00Z\",\"TempSubstitution\":false,\"IsHandPacked\":false,\"IsNoEndDate\":true,\"Unit\":\"\",\"PharmacyId\":\"68478ffcaf648e0c7c94d408\",\"SyncDate\":\"0001-01-01T00:00:00Z\",\"IsSyncImported\":false,\"Drug\":{\"DrugName\":\"ATIVAN 1mg TAB\",\"DrugCode\":\"ATV1\",\"Austr\":\"10387\",\"Supplier\":\"ASPEN PHARMA PTY LTD\",\"Type\":\"Tablet\",\"Color\":\"\",\"Shape\":\"\",\"Marking\":\"\",\"Warning\":\"This preparation is to aid sleep. Drowsiness may continue - if affected do not drive or operate machinery Avoid alcohol*May cause drowsiness and increase effects of alcohol. If affected do not drive a motor vehicle or operate machinery.*Do NOT stop taking this medication abruptlyS/Care - Relaxation TechniquesS/Care - Sleeping BadlyS/Care - Driving & MedicationPcy Board Warn: Similar Names\",\"Direction\":\"\",\"GenericCode\":\"LOR2\",\"GenericName\":\"LORAZEPAM\",\"Presentation\":\"Used to treat anxiety, insomnia, and a range of other conditions.\",\"AltBrand\":\"ATIVAN, EMOTEN, LORAZEPAM (APO), ATIVAN, LORAZEPAM (MYLAN), LORAZEPAM (LUPIN), LORAZEPAM (VIATRIS), LORAZEPAM (WGR)\",\"DoNotCrush\":false,\"TradeName\":\"ATIVAN\",\"Formulation\":\"TAB\",\"Strength\":\"1mg\",\"Schedule\":\"4N\",\"PackSize\":50,\"IsCytotoxic\":false,\"Authorized\":0,\"TSAuthorized\":\"0001-01-01T00:00:00Z\",\"ShelfLife\":0,\"Description\":\"\",\"UsePrintingDrugName\":false,\"PrintingDrugName\":\"\",\"PharmacyId\":\"68478ffcaf648e0c7c94d408\",\"Usage\":4,\"DrugFullName\":\"ATIVAN 1mg TAB\",\"MedicationFullDetails\":\"ATIVAN 1mg TAB - LORAZEPAM (ATV1)\",\"Id\":\"5f0e69e0a0ba5db368a140e4\",\"CreatedDate\":\"2020-07-15T02:28:35.184Z\",\"CreatedUserId\":\"5e7457052a22160c3cf31edb\",\"LastUpdateUserId\":\"\",\"LastUpdateDate\":\"2025-10-10T20:48:33.844Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false},\"IsPreventBrandswap\":false,\"Swapped\":false,\"FreqXWeek\":0,\"PatientDocumentIds\":[],\"Id\":\"6882dfb73e5f1b9fd34b4d9d\",\"CreatedDate\":\"2025-07-25T01:36:55.444Z\",\"CreatedUserId\":\"6847971c08efed091046d0eb\",\"LastUpdateUserId\":\"6847971c08efed091046d0eb\",\"LastUpdateUserName\":\"ck\",\"LastUpdateDate\":\"2026-04-20T00:31:16.0422032Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false}"),
"6882dfb73e5f1b9fd34b4d84",
"");