using OI.Service.HangfireTask.CheckPrescriptionChangeTask;
var checkPrescriptionChangeTask = Activate<CheckPrescriptionChangeTask>();
await checkPrescriptionChangeTask.CheckPrescriptionChange(
"6731735508efed074c96023b",
FromJson<Prescription>("{\"PackType\":0,\"Dose\":[1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0],\"ShortCourseTimeslot\":[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"],\"PatientId\":\"67451c7a08d92307a8b7aa74\",\"Direction\":\"1 x bd\",\"FoilId\":\"67451c7a08d92307a8b7aab8\",\"FoilLabel\":\"Foil 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-22T05:33:56.8083301Z\",\"Frequency\":0,\"PackedWeekDay\":[],\"FreqXDay\":0,\"OnDays\":0,\"OffDays\":0,\"IsDoNotCrush\":true,\"FontColor\":\"\",\"SameAs\":\"\",\"PrintIt\":true,\"State\":2,\"DateCeased\":\"2026-04-22T05:33:56.8083301Z\",\"TempSubstitution\":false,\"Note\":\"\",\"IsHandPacked\":false,\"IsNoEndDate\":false,\"Indication\":\"\",\"Unit\":\"\",\"PharmacyId\":\"6731735508efed074c96023b\",\"SyncDate\":\"0001-01-01T00:00:00\",\"IsSyncImported\":false,\"Drug\":{\"DrugName\":\"TRAMADOL (APO) 100mg SR-TAB\",\"DrugCode\":\"APOT1\",\"Austr\":\"154393\",\"Supplier\":\"APOTEX PTY LTD\",\"Type\":\"SR-Tablet\",\"Color\":\"off-white\",\"Shape\":\"round\",\"Marking\":\"\",\"Warning\":\"*May cause drowsiness and increase effects of alcohol. If affected do not drive a motor vehicle or operate machinery.*Maximum of 400mg per day**Ask your Doctor or Pharmacist before using other medicines including over-the-counter or any health productsswallowed wholeUse of this medicine has the risks of overdose and dependenceHIC-Incr Qty/Rpts specific conditionsS8 Reporting - Tasmania Only\",\"Direction\":\"\",\"GenericCode\":\"TRAM10\",\"GenericName\":\"TRAMADOL HYDROCHLORIDE\",\"Presentation\":\"Used to help relieve moderate to moderately severe pain.\",\"ImageId\":\"5f3a2dbea0ba5d7c50796d99\",\"ImageSmallSizeId\":\"68f598c45a506b941b5c8373\",\"ImageName\":\"154393-C01-01-BL600.jpg\",\"AltBrand\":\"TRAMAL, ZYDOL, TRAMAHEXAL (NOW SANDOZ), TRAMAHEXAL (NOW SANDOZ), TRAMEDO SR 100, TRAMADOL (APO), TRAMADOL (CHEM-MART), TRAMADOL (TW), LODAM SR 100, TRAMADOL (GA), TRAMADOL (SANDOZ), TRAMADOL (GEN HLTH), TRAMADOL (AN), TRAMEDO SR, TRAMADOL (WGR)\",\"DoNotCrush\":true,\"TradeName\":\"TRAMADOL (APO)\",\"Formulation\":\"SR-TAB\",\"Strength\":\"100mg\",\"Schedule\":\"4N\",\"PackSize\":20,\"IsCytotoxic\":false,\"Authorized\":0,\"TSAuthorized\":\"0001-01-01T00:00:00Z\",\"ShelfLife\":0,\"Description\":\"off-white round\",\"UsePrintingDrugName\":false,\"PrintingDrugName\":\"\",\"PharmacyId\":\"6731735508efed074c96023b\",\"Usage\":1,\"DrugFullName\":\"TRAMADOL (APO) 100mg SR-TAB\",\"MedicationFullDetails\":\"TRAMADOL (APO) 100mg SR-TAB - TRAMADOL HYDROCHLORIDE (APOT1)\",\"Id\":\"5f0e69e0a0ba5db368a1630a\",\"CreatedDate\":\"2020-07-15T02:28:42.933Z\",\"CreatedUserId\":\"5e7457052a22160c3cf31edb\",\"LastUpdateUserId\":\"\",\"LastUpdateDate\":\"2025-10-11T15:27:56.008Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false},\"IsPreventBrandswap\":false,\"Swapped\":false,\"FreqXWeek\":0,\"PatientDocumentIds\":[],\"Id\":\"69dc91fa6e1fc3f34ca99b1c\",\"CreatedDate\":\"2026-04-13T06:49:30.354Z\",\"CreatedUserName\":\"JCT\",\"CreatedUserId\":\"68ad0c7484204a6b27f77992\",\"LastUpdateUserId\":\"674516be08efed008c59e811\",\"LastUpdateDate\":\"2026-04-22T05:33:56.8083301Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false}"),
"67451c7a08d92307a8b7aa74",
"");