using OI.Service.HangfireTask.CheckPrescriptionChangeTask;
var checkPrescriptionChangeTask = Activate<CheckPrescriptionChangeTask>();
await checkPrescriptionChangeTask.CheckPrescriptionChange(
"67e0a3ddaf648e0c0c2bcfd7",
FromJson<Prescription>("{\"PackType\":0,\"Dose\":[1.0,0.0,1.0,0.0,0.0,0.0,0.0,0.0],\"ShortCourseTimeslot\":[],\"PatientId\":\"6971a34b850f0343e11d65e5\",\"Direction\":\"1 2xDAILY\",\"FoilId\":\"6971a35e613ebb3912b0ed19\",\"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-05-01T06:28:35.0482137Z\",\"Frequency\":0,\"PackedWeekDay\":[],\"FreqXDay\":0,\"OnDays\":0,\"OffDays\":0,\"IsDoNotCrush\":false,\"FontColor\":\"\",\"SameAs\":\"\",\"PrintIt\":true,\"State\":2,\"DateCeased\":\"2026-05-01T06:28:35.0482137Z\",\"TempSubstitution\":false,\"Note\":\"\",\"IsHandPacked\":false,\"IsNoEndDate\":false,\"Indication\":\"\",\"Unit\":\"\",\"PharmacyId\":\"67e0a3ddaf648e0c0c2bcfd7\",\"SyncDate\":\"0001-01-01T00:00:00\",\"IsSyncImported\":false,\"Drug\":{\"DrugName\":\"AMITRIPTYLINE (APX) 10mg TAB\",\"DrugCode\":\"AMIT18\",\"Austr\":\"333508\",\"Supplier\":\"APOTEX PTY LTD\",\"Type\":\"Tablet\",\"Color\":\"blue\",\"Shape\":\"round\",\"Marking\":\"AM\",\"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\":\"AMT1\",\"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.\",\"AltBrand\":\"ENDEP, TRYPTANOL, TRYPTINE 10, AMITROL 10, AMITRIPTYLINE (APO), AMITRIPTYLINE (CHEM-MART), AMITRIPTYLINE (TW), AMITRIPTYLINE (ALPHAPHARM), ENTRIP, AMITRIPTYLINE (LUPIN), AMITRIPTYLINE (APX), AMITRIPTYLINE (VIATRIS), AMITRIPTYLINE (WGR)\",\"DoNotCrush\":false,\"TradeName\":\"AMITRIPTYLINE (APX)\",\"Formulation\":\"TAB\",\"Strength\":\"10mg\",\"Schedule\":\"4\",\"PackSize\":50,\"IsCytotoxic\":false,\"Authorized\":0,\"TSAuthorized\":\"0001-01-01T00:00:00Z\",\"ShelfLife\":0,\"Description\":\"\",\"UsePrintingDrugName\":false,\"PrintingDrugName\":\"\",\"PharmacyId\":\"67e0a3ddaf648e0c0c2bcfd7\",\"Usage\":7,\"DrugFullName\":\"AMITRIPTYLINE (APX) 10mg TAB\",\"MedicationFullDetails\":\"AMITRIPTYLINE (APX) 10mg TAB - AMITRIPTYLINE (AMIT18)\",\"Id\":\"6102d2b7a6b66b27b811037f\",\"CreatedDate\":\"2021-07-29T16:09:27.482Z\",\"CreatedUserId\":\"5fa24cab89e48b3a6ef44ad0\",\"LastUpdateUserId\":\"\",\"LastUpdateDate\":\"2025-10-10T19:41:19.367Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false},\"IsPreventBrandswap\":false,\"Swapped\":false,\"FreqXWeek\":0,\"PatientDocumentIds\":[],\"Id\":\"69b340b9c90798600ed28236\",\"CreatedDate\":\"2026-03-12T22:39:53.999Z\",\"CreatedUserName\":\"ashley3\",\"CreatedUserId\":\"695b36ac3b68e2bae07cbfa2\",\"LastUpdateUserId\":\"695b34ef375cd9bd82963442\",\"LastUpdateUserName\":\"kusu\",\"LastUpdateDate\":\"2026-05-01T06:28:35.0482137Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false}"),
"6971a34b850f0343e11d65e5",
"");