using OI.Service.HangfireTask.CheckPrescriptionChangeTask;
var checkPrescriptionChangeTask = Activate<CheckPrescriptionChangeTask>();
await checkPrescriptionChangeTask.CheckPrescriptionChange(
"6704ca558222d30be89b256b",
FromJson<Prescription>("{\"PackType\":0,\"Dose\":[],\"PatientId\":\"69f313772b4a013b972efb6e\",\"Direction\":\"Take ONE tablet before bed as directed by your physician\",\"FoilId\":\"69f313772b4a013b972efb82\",\"FoilLabel\":\"Blister Pack 1\",\"DateDispensed\":\"2026-04-17T02:07:15Z\",\"ScriptNum\":\"1464392\",\"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\":\"0001-01-01T00:00:00\",\"EndDate\":\"2026-04-30T08:37:25.4310955Z\",\"Frequency\":0,\"PackedWeekDay\":[true,true,true,true,true,true,true],\"FreqXDay\":0,\"OnDays\":0,\"OffDays\":0,\"IsDoNotCrush\":false,\"PrintIt\":true,\"State\":2,\"DateCeased\":\"2026-04-30T08:37:25.4310955Z\",\"TempSubstitution\":false,\"IsHandPacked\":false,\"IsNoEndDate\":false,\"PharmacyId\":\"6704ca558222d30be89b256b\",\"SyncDate\":\"0001-01-01T00:00:00\",\"IsSyncImported\":false,\"Drug\":{\"DrugName\":\"AMITRIPTYLINE (VIATRIS) 50mg TAB\",\"DrugCode\":\"AMIT23\",\"Austr\":\"232798\",\"Supplier\":\"ALPHAPHARM PTY LTD\",\"Type\":\"Tablet\",\"Color\":\"tan\",\"Shape\":\"six-sided\",\"Marking\":\"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\":\"68f599ac5a506b941b5c9480\",\"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 (VIATRIS)\",\"Formulation\":\"TAB\",\"Strength\":\"50mg\",\"Schedule\":\"4\",\"PackSize\":50,\"IsCytotoxic\":false,\"Authorized\":0,\"TSAuthorized\":\"0001-01-01T00:00:00Z\",\"ShelfLife\":0,\"Description\":\"tan six-sided AP 50\",\"UsePrintingDrugName\":false,\"PrintingDrugName\":\"\",\"PharmacyId\":\"6704ca558222d30be89b256b\",\"Usage\":3,\"DrugFullName\":\"AMITRIPTYLINE (VIATRIS) 50mg TAB\",\"MedicationFullDetails\":\"AMITRIPTYLINE (VIATRIS) 50mg TAB - AMITRIPTYLINE (AMIT23)\",\"Id\":\"633aa512f65a8810882e57bb\",\"CreatedDate\":\"2022-10-03T09:02:10.079Z\",\"CreatedUserId\":\"62060ea859ae850e30188ba8\",\"LastUpdateUserId\":\"\",\"LastUpdateDate\":\"2025-10-11T15:23:41.157Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false},\"IsPreventBrandswap\":false,\"Swapped\":false,\"FreqXWeek\":0,\"PatientDocumentIds\":[],\"Id\":\"69f313772b4a013b972efb84\",\"CreatedDate\":\"2026-04-30T08:31:51.585Z\",\"CreatedUserId\":\"6710815b08efed03acb60afa\",\"LastUpdateUserId\":\"6710815b08efed03acb60afa\",\"LastUpdateDate\":\"2026-04-30T08:37:25.4310955Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false}"),
"69f313772b4a013b972efb6e",
"");