using OI.Service.HangfireTask.CheckPrescriptionChangeTask;
var checkPrescriptionChangeTask = Activate<CheckPrescriptionChangeTask>();
await checkPrescriptionChangeTask.CheckPrescriptionChange(
"6907eacc47138170276af795",
FromJson<Prescription>("{\"PackType\":2,\"Dose\":[1.0],\"ShortCourseTimeslot\":[\"\",\"\",\"\",\"\",\"\",\"\",\"\",\"\"],\"PatientId\":\"69e9ddcc2a33413720c84134\",\"Direction\":\"Take ONE tablet FOUR times a day when required\",\"FoilId\":\"69e9ddea747aca488fe74258\",\"FoilLabel\":\"PRN\",\"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\":\"2026-04-23T02:00:00Z\",\"EndDate\":\"0001-01-01T00:00:00Z\",\"Frequency\":0,\"PackedWeekDay\":[],\"FreqXDay\":0,\"OnDays\":0,\"OffDays\":0,\"IsDoNotCrush\":true,\"FontColor\":\"\",\"SameAs\":\"\",\"PrintIt\":true,\"State\":0,\"DateCeased\":\"0001-01-01T00:00:00\",\"TempSubstitution\":false,\"Note\":\"\",\"IsHandPacked\":false,\"IsNoEndDate\":true,\"Indication\":\"\",\"Unit\":\"tabs\",\"PharmacyId\":\"6907eacc47138170276af795\",\"SyncDate\":\"0001-01-01T00:00:00\",\"IsSyncImported\":false,\"Drug\":{\"DrugName\":\"OXYNDONE 5mg TAB\",\"DrugCode\":\"OXYC50\",\"Austr\":\"297760\",\"Supplier\":\"APOTEX PTY LTD\",\"Type\":\"Tablet\",\"Color\":\"\",\"Shape\":\"\",\"Marking\":\"\",\"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\":\"OXYNDONE\",\"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\":\"6907eacc47138170276af795\",\"Usage\":0,\"DrugFullName\":\"OXYNDONE 5mg TAB\",\"MedicationFullDetails\":\"OXYNDONE 5mg TAB - OXYCODONE (OXYC50)\",\"Id\":\"633aa511f65a8810882e5004\",\"CreatedDate\":\"2022-10-03T09:02:09.344Z\",\"CreatedUserId\":\"62060ea859ae850e30188ba8\",\"LastUpdateUserId\":\"\",\"LastUpdateDate\":\"2025-10-10T23:37:27.183Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false},\"IsPreventBrandswap\":false,\"Swapped\":false,\"FreqXWeek\":0,\"PatientDocumentIds\":[],\"Id\":\"69e9de3a905e1bd52745601a\",\"CreatedDate\":\"2026-04-23T08:54:18.1196059Z\",\"CreatedUserName\":\"lm2234\",\"CreatedUserId\":\"690ad254604813bf31947c7a\",\"LastUpdateDate\":\"2026-04-23T08:54:18.1196059Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false}"),
"69e9ddcc2a33413720c84134",
"");