using OI.Service.HangfireTask.CheckPrescriptionChangeTask;
var checkPrescriptionChangeTask = Activate<CheckPrescriptionChangeTask>();
await checkPrescriptionChangeTask.CheckPrescriptionChange(
"687444deb9160169ef93ca2c",
FromJson<Prescription>("{\"PackType\":0,\"Description\":\"green capsule-shaped\",\"Dose\":[0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0],\"ShortCourseTimeslot\":[\"Morning\",\"Noon\",\"Evening\",\"Bedtime\",\"\",\"\",\"\",\"\"],\"PatientId\":\"6889bb8b066b97f21690bd25\",\"Direction\":\"1 po night \",\"FoilId\":\"6889bb8b066b97f21690bd27\",\"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\":\"0001-01-01T00:00:00\",\"EndDate\":\"2026-04-23T23:12:59.2107272Z\",\"Frequency\":0,\"PackedWeekDay\":[true,true,true,true,true,true,true],\"FreqXDay\":0,\"OnDays\":0,\"OffDays\":0,\"IsDoNotCrush\":false,\"SameAs\":\"\",\"PrintIt\":true,\"State\":2,\"DateCeased\":\"2026-04-23T23:12:59.2107272Z\",\"TempSubstitution\":false,\"Note\":\"\",\"IsHandPacked\":false,\"IsNoEndDate\":false,\"Unit\":\"\",\"PharmacyId\":\"687444deb9160169ef93ca2c\",\"SyncId\":\"cb3a9c09-076e-4a41-bf91-6befd69c6ad1-9432\",\"SyncDate\":\"2025-07-30T06:28:27.039Z\",\"IsSyncImported\":true,\"Drug\":{\"DrugName\":\"RISPERIDONE (APO) 4mg TAB\",\"DrugCode\":\"RISP38\",\"Austr\":\"304254\",\"Supplier\":\"APOTEX PTY LTD\",\"Type\":\"Tablet\",\"Color\":\"light green\",\"Shape\":\"capsule-shaped\",\"Marking\":\"RI 4\",\"Warning\":\"*May cause drowsiness and increase effects of alcohol. If affected do not drive a motor vehicle or operate machinery.*May cause dizziness when standing up quicklySpecial handling and disposal required - ask your Pharmacistswallowed whole*Do not crush or chew*\",\"Direction\":\"\",\"GenericCode\":\"RIS8\",\"GenericName\":\"RISPERIDONE\",\"Presentation\":\"Antipsychotics\",\"ImageId\":\"636083076f6fd84664477edc\",\"ImageName\":\"304254-C01-01-BL600.jpg\",\"AltBrand\":\"RISPERDAL, RIXADONE, RISPERIDONE (APO), RISPA, RISPERIDONE (GA), RISPERIDONE (GEN HLTH), OZIDAL, RESDONE, RISPERIDONE (DRLA), RISPERIDONE (SANDOZ), RISPERIDONE (PFIZER), RISPERIDONE (ACTAVIS), RISPERICOR 4, RISPERNIA, RISPERIDONE (AN), RISPERIDONE (AMNEAL), RISPERIDONE (NOUMED)\",\"DoNotCrush\":true,\"TradeName\":\"RISPERIDONE (APO)\",\"Formulation\":\"TAB\",\"Strength\":\"4mg\",\"Schedule\":\"4\",\"PackSize\":60,\"IsCytotoxic\":false,\"Authorized\":0,\"TSAuthorized\":\"0001-01-01T00:00:00Z\",\"ShelfLife\":0,\"Description\":\"green capsule-shaped\",\"UsePrintingDrugName\":false,\"PrintingDrugName\":\"\",\"PharmacyId\":\"687444deb9160169ef93ca2c\",\"Usage\":1,\"DrugFullName\":\"RISPERIDONE (APO) 4mg TAB\",\"MedicationFullDetails\":\"RISPERIDONE (APO) 4mg TAB - RISPERIDONE (RISP38)\",\"Id\":\"5f0e69e0a0ba5db368a16246\",\"CreatedDate\":\"2020-07-15T02:28:42.777Z\",\"CreatedUserId\":\"5e7457052a22160c3cf31edb\",\"LastUpdateUserId\":\"\",\"LastUpdateDate\":\"2025-10-11T16:09:17.082Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false},\"IsPreventBrandswap\":false,\"Swapped\":false,\"FreqXWeek\":0,\"PatientDocumentIds\":[],\"Id\":\"6889bb8b066b97f21690bd2e\",\"CreatedDate\":\"2025-07-30T06:28:27.039Z\",\"LastUpdateUserId\":\"688aa1d5b6488b834dcb49cb\",\"LastUpdateDate\":\"2026-04-23T23:12:59.2107272Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false}"),
"6889bb8b066b97f21690bd25",
"");