using OI.Service.HangfireTask.CheckPrescriptionChangeTask;
var checkPrescriptionChangeTask = Activate<CheckPrescriptionChangeTask>();
await checkPrescriptionChangeTask.CheckPrescriptionChange(
"6993ee946f072bc22746cf88",
FromJson<Prescription>("{\"PackType\":0,\"Dose\":[0.0,0.0,0.0,1.0],\"ShortCourseTimeslot\":[],\"PatientId\":\"69e07396871c912beb60d926\",\"Direction\":\"Take ONE tablet at bedtime (Total dose = 60mg)\",\"FoilId\":\"69e07396871c912beb60d927\",\"FoilLabel\":\"Blister Pack 1\",\"DateDispensed\":\"2026-04-01T13:00:00Z\",\"ScriptNum\":\"2241921\",\"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\":\"2026-04-16T02:00:00Z\",\"EndDate\":\"0001-01-01T00:00:00Z\",\"Frequency\":0,\"PackedWeekDay\":[],\"FreqXDay\":0,\"OnDays\":0,\"OffDays\":0,\"IsDoNotCrush\":false,\"FontColor\":\"\",\"PrintIt\":true,\"OwnBag\":{},\"State\":1,\"DateCeased\":\"0001-01-01T00:00:00Z\",\"OriginDrugId\":\"633aa512f65a8810882e57bb\",\"TempSubstitution\":false,\"IsHandPacked\":false,\"IsNoEndDate\":true,\"Unit\":\"\",\"PharmacyId\":\"6993ee946f072bc22746cf88\",\"SyncDate\":\"0001-01-01T00:00:00\",\"IsSyncImported\":false,\"Drug\":{\"DrugName\":\"AMITRIPTYLINE (ALPHAPHARM) 50mg TAB\",\"DrugCode\":\"AMIT14\",\"Austr\":\"232798\",\"Supplier\":\"ALPHAPHARM PTY LTD\",\"Type\":\"Tablet\",\"Color\":\"tan\",\"Shape\":\"six-sided\",\"Marking\":\"tan six-sided AP 50\",\"Warning\":\"*May cause drowsiness and increase effects of alcohol. If affected do not drive a motor vehicle or operate machinery.*Ask your Doctor or Pharmacist before using other medicines including over-the-counter or any health products*Do NOT stop taking this medication abruptly*Ask your pharmacist about the storage conditions for this medicine*May cause dizziness when standing up quicklyPDL Warn: Potential Confusion*Avoid combination with St John's wort\",\"Direction\":\"\",\"GenericCode\":\"AM12\",\"GenericName\":\"AMITRIPTYLINE\",\"Presentation\":\"Used to treat depression, bipolar disorder, anxiety, obsessive-compulsive disorder and other mood disorders. They are also effective as analgesics so are used to treat chronic pain and used for migraine prophylaxis.\",\"ImageId\":\"5f3a2f17a0ba5d7c50796f70\",\"ImageSmallSizeId\":\"68f599685a506b941b5c911d\",\"ImageName\":\"232798-C01-01-BL600.jpg\",\"AltBrand\":\"ENDEP, AMITRIPTYLINE (APO), AMITRIPTYLINE (CHEM-MART), AMITRIPTYLINE (TW), AMITRIPTYLINE (ALPHAPHARM), ENTRIP, AMITRIPTYLINE (LUPIN), AMITRIPTYLINE (APX), AMITRIPTYLINE (VIATRIS)\",\"DoNotCrush\":false,\"TradeName\":\"AMITRIPTYLINE (ALPHAPHARM)\",\"Formulation\":\"TAB\",\"Strength\":\"50mg\",\"Schedule\":\"4\",\"PackSize\":50,\"IsCytotoxic\":false,\"Authorized\":2,\"TSAuthorized\":\"0001-01-01T00:00:00Z\",\"ShelfLife\":0,\"Description\":\"tan six-sided AP 50\",\"UsePrintingDrugName\":false,\"PrintingDrugName\":\"\",\"PharmacyId\":\"6993ee946f072bc22746cf88\",\"Usage\":3,\"DrugFullName\":\"AMITRIPTYLINE (ALPHAPHARM) 50mg TAB\",\"MedicationFullDetails\":\"AMITRIPTYLINE (ALPHAPHARM) 50mg TAB - AMITRIPTYLINE (AMIT14)\",\"Id\":\"5f0e69e0a0ba5db368a17303\",\"CreatedDate\":\"2020-07-15T02:28:46.395Z\",\"CreatedUserId\":\"5e7457052a22160c3cf31edb\",\"LastUpdateUserId\":\"69c21352af217b9ed91eb5cb\",\"LastUpdateDate\":\"2026-04-16T05:35:08.04Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false},\"IsPreventBrandswap\":false,\"Swapped\":false,\"FreqXWeek\":0,\"PatientDocumentIds\":[],\"Id\":\"69e0750b871c912beb664b86\",\"CreatedDate\":\"2026-04-16T05:35:07.961Z\",\"CreatedUserName\":\"scott\",\"CreatedUserId\":\"69c21352af217b9ed91eb5cb\",\"LastUpdateUserId\":\"69c21352af217b9ed91eb5cb\",\"LastUpdateUserName\":\"scott\",\"LastUpdateDate\":\"2026-04-21T04:33:25.1000281Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false}"),
"69e07396871c912beb60d926",
"");