using OI.Service.HangfireTask.CheckPrescriptionChangeTask;
var checkPrescriptionChangeTask = Activate<CheckPrescriptionChangeTask>();
await checkPrescriptionChangeTask.CheckPrescriptionChange(
"683f82a5af648e0e90b91535",
FromJson<Prescription>("{\"PackType\":0,\"Dose\":[1.0,1.0,1.0,1.0,0.0,0.0,0.0,0.0],\"ShortCourseTimeslot\":[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"],\"PatientId\":\"6848dab208d9230e38abdc36\",\"Direction\":\"1 4x daily\",\"FoilId\":\"69f2ce0b2b4a013b974f570e\",\"FoilLabel\":\"short term\",\"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-30T05:17:28.5621301Z\",\"Frequency\":0,\"PackedWeekDay\":[],\"FreqXDay\":0,\"OnDays\":0,\"OffDays\":0,\"IsDoNotCrush\":true,\"FontColor\":\"\",\"SameAs\":\"\",\"PrintIt\":true,\"State\":2,\"DateCeased\":\"2026-04-30T05:17:28.5621301Z\",\"TempSubstitution\":false,\"Note\":\"\",\"IsHandPacked\":false,\"IsNoEndDate\":false,\"Indication\":\"\",\"Unit\":\"\",\"PharmacyId\":\"683f82a5af648e0e90b91535\",\"SyncDate\":\"0001-01-01T00:00:00\",\"IsSyncImported\":false,\"Drug\":{\"DrugName\":\"OXYCODONE (VIATRIS) 5mg TAB\",\"DrugCode\":\"OXYC61\",\"Austr\":\"224758\",\"Supplier\":\"ALPHAPHARM PTY LTD\",\"Type\":\"Tablet\",\"Color\":\"white\",\"Shape\":\"round\",\"Marking\":\"O 5\",\"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*Certain foods and fruit juices should be avoided while being treated with this medicineUse of this medicine has the risks of overdose and dependence*Avoid combination with St John's wortswallowed whole*Do not crush or chew*\",\"Direction\":\"\",\"GenericCode\":\"OXY6\",\"GenericName\":\"OXYCODONE\",\"Presentation\":\"\",\"AltBrand\":\"ENDONE, OXYCODONE (ASPEN), OXYCODONE IR (MAYNE), OXYCODONE (MYLAN), OXYNDONE, OXYCODONE (VIATRIS)\",\"DoNotCrush\":true,\"TradeName\":\"OXYCODONE (VIATRIS)\",\"Formulation\":\"TAB\",\"Strength\":\"5mg\",\"Schedule\":\"8\",\"PackSize\":20,\"IsCytotoxic\":false,\"Authorized\":0,\"TSAuthorized\":\"0001-01-01T00:00:00Z\",\"ShelfLife\":0,\"Description\":\"\",\"UsePrintingDrugName\":false,\"PrintingDrugName\":\"\",\"PharmacyId\":\"683f82a5af648e0e90b91535\",\"Usage\":0,\"DrugFullName\":\"OXYCODONE (VIATRIS) 5mg TAB\",\"MedicationFullDetails\":\"OXYCODONE (VIATRIS) 5mg TAB - OXYCODONE (OXYC61)\",\"Id\":\"640fba9ff65a8804a024fa78\",\"CreatedDate\":\"2023-03-14T00:06:55.712Z\",\"CreatedUserId\":\"\",\"LastUpdateUserId\":\"\",\"LastUpdateDate\":\"2025-10-10T20:40:58.607Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false},\"IsPreventBrandswap\":false,\"Swapped\":false,\"FreqXWeek\":0,\"PatientDocumentIds\":[],\"Id\":\"69f2ce38e64dcafcf844d0f5\",\"CreatedDate\":\"2026-04-30T03:36:24.802Z\",\"CreatedUserName\":\"siewyl\",\"CreatedUserId\":\"6848f41da7ab95028cac29df\",\"LastUpdateUserId\":\"6848f41da7ab95028cac29df\",\"LastUpdateDate\":\"2026-04-30T05:17:28.5621301Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false}"),
"6848dab208d9230e38abdc36",
"");