using OI.Service.HangfireTask.CheckPrescriptionChangeTask;
var checkPrescriptionChangeTask = Activate<CheckPrescriptionChangeTask>();
await checkPrescriptionChangeTask.CheckPrescriptionChange(
"6840d2a408efed0f0c610cb4",
FromJson<Prescription>("{\"PackType\":0,\"Description\":\"\",\"Dose\":[0.0,0.0,0.0,2.0,0.0,0.0,0.0,0.0],\"ShortCourseTimeslot\":[],\"PatientId\":\"684a6b3c2e39a313a08b25af\",\"Direction\":\"2 at night\",\"FoilId\":\"684a6b3c2e39a313a08b25b0\",\"FoilLabel\":\"Foil 1\",\"DateDispensed\":\"0001-01-01T00:00:00\",\"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\":\"2023-08-17T00:00:00Z\",\"EndDate\":\"0001-01-01T00:00:00Z\",\"Frequency\":0,\"PackedWeekDay\":[],\"FreqXDay\":0,\"OnDays\":0,\"OffDays\":0,\"IsDoNotCrush\":false,\"FontColor\":\"\",\"SameAs\":\"\",\"PrintIt\":true,\"State\":1,\"DateCeased\":\"0001-01-01T00:00:00Z\",\"TempSubstitution\":false,\"Note\":\"\",\"IsHandPacked\":false,\"IsNoEndDate\":true,\"Unit\":\"\",\"PharmacyId\":\"6840d2a408efed0f0c610cb4\",\"SyncId\":\"4a8d8970-d52b-4804-a303-72d2cf29e25b-1333\",\"SyncDate\":\"2025-06-12T05:53:00.394Z\",\"IsSyncImported\":true,\"Drug\":{\"DrugName\":\"MELOTIN MR 2mg MR-TAB\",\"DrugCode\":\"MELO42\",\"Austr\":\"250295\",\"Supplier\":\"APOTEX PTY LTD\",\"Type\":\"MR-Tablet\",\"Color\":\"\",\"Shape\":\"\",\"Marking\":\"\",\"Warning\":\"*Do not take alcohol while being treated with this medicine**May affect alertness and/or co-ordination. If affected, do not drive or operate machineryswallowed whole*Ask your pharmacist about the storage conditions for this medicine\",\"Direction\":\"\",\"GenericCode\":\"MELA2\",\"GenericName\":\"MELATONIN\",\"Presentation\":\"\",\"AltBrand\":\"CIRCADIN, MELOTIN MR, CHEMISTS OWN MELATONIN SLP AID, MELATONIN SLEEP AID (SANDOZ), MELATONIN SLEEP AID (APH), MELATONIN (VIATRIS), RESTIN, MELATONIN (TWCM), MELATONIN (PRICELINE)\",\"DoNotCrush\":true,\"TradeName\":\"MELOTIN MR\",\"Formulation\":\"MR-TAB\",\"Strength\":\"2mg\",\"Schedule\":\"3\",\"PackSize\":30,\"IsCytotoxic\":false,\"Authorized\":2,\"TSAuthorized\":\"0001-01-01T00:00:00Z\",\"ShelfLife\":1,\"Description\":\"\",\"UsePrintingDrugName\":false,\"PrintingDrugName\":\"\",\"PharmacyId\":\"6840d2a408efed0f0c610cb4\",\"Route\":{\"Code\":\"PO\",\"Description\":\"Oral\"},\"OriginValues\":\"{\\"Authorized\\":0,\\"ShelfLife\\":0,\\"Route\\":null}\",\"Usage\":6,\"DrugFullName\":\"MELOTIN MR 2mg MR-TAB\",\"MedicationFullDetails\":\"MELOTIN MR 2mg MR-TAB - MELATONIN (MELO42)\",\"Id\":\"5f0e69e0a0ba5db368a17b29\",\"CreatedDate\":\"2020-07-15T02:28:48.139Z\",\"CreatedUserId\":\"5e7457052a22160c3cf31edb\",\"LastUpdateUserId\":\"684645e0af648e0d7c18cb9c\",\"LastUpdateDate\":\"2026-04-16T06:57:26.255Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false},\"IsPreventBrandswap\":false,\"Swapped\":false,\"FreqXWeek\":0,\"PatientDocumentIds\":[],\"Id\":\"684a6b3c2e39a313a08b25b5\",\"CreatedDate\":\"2025-06-12T05:53:00.394Z\",\"LastUpdateUserId\":\"6840f90da7ab95045cbe6ee6\",\"LastUpdateUserName\":\"chau\",\"LastUpdateDate\":\"2026-04-30T02:43:13.0951483Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false}"),
"684a6b3c2e39a313a08b25af",
"");