using OI.Service.HangfireTask.CheckPrescriptionChangeTask;
var checkPrescriptionChangeTask = Activate<CheckPrescriptionChangeTask>();
await checkPrescriptionChangeTask.CheckPrescriptionChange(
"68807129bf3f4c53c7e8b55c",
FromJson<Prescription>("{\"PackType\":0,\"Description\":\"blue round AP 10 a\",\"Dose\":[0.0,0.0,0.0,1.0,0.0,0.0,0.0,0.0],\"ShortCourseTimeslot\":[\"Morning\",\"Noon\",\"Evening\",\"Bedtime\",\"\",\"\",\"\",\"\"],\"PatientId\":\"68d0dd83f0274c08c13cea35\",\"Direction\":\"1 DAILY\",\"FoilId\":\"68d0dd83f0274c08c13cea36\",\"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-22T03:04:10.7104565Z\",\"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-22T03:04:10.7104565Z\",\"TempSubstitution\":false,\"Note\":\"\",\"IsHandPacked\":false,\"IsNoEndDate\":false,\"Unit\":\"\",\"PharmacyId\":\"68807129bf3f4c53c7e8b55c\",\"SyncId\":\"47f395e4-a7ab-4198-a810-ac7826814c6f-2400\",\"SyncDate\":\"2025-09-22T05:24:19.908Z\",\"IsSyncImported\":true,\"Drug\":{\"DrugName\":\"AMITRIPTYLINE (VIATRIS) 10mg TAB\",\"DrugCode\":\"AMIT21\",\"Austr\":\"232796\",\"Supplier\":\"ALPHAPHARM PTY LTD\",\"Type\":\"Tablet\",\"Color\":\"blue\",\"Shape\":\"round\",\"Marking\":\"AP 10\",\"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.\",\"ImageId\":\"5f3a2f17a0ba5d7c50796f71\",\"ImageName\":\"232796-C01-01-BL600.jpg\",\"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 (VIATRIS)\",\"Formulation\":\"TAB\",\"Strength\":\"10mg\",\"Schedule\":\"4\",\"PackSize\":50,\"IsCytotoxic\":false,\"Authorized\":0,\"TSAuthorized\":\"0001-01-01T00:00:00Z\",\"ShelfLife\":0,\"Description\":\"blue round AP 10\",\"UsePrintingDrugName\":false,\"PrintingDrugName\":\"\",\"PharmacyId\":\"68807129bf3f4c53c7e8b55c\",\"Usage\":0,\"DrugFullName\":\"AMITRIPTYLINE (VIATRIS) 10mg TAB\",\"MedicationFullDetails\":\"AMITRIPTYLINE (VIATRIS) 10mg TAB - AMITRIPTYLINE (AMIT21)\",\"Id\":\"633aa512f65a8810882e57b7\",\"CreatedDate\":\"2022-10-03T09:02:10.079Z\",\"CreatedUserId\":\"62060ea859ae850e30188ba8\",\"LastUpdateUserId\":\"\",\"LastUpdateDate\":\"2025-10-11T16:15:13.132Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false},\"IsPreventBrandswap\":false,\"Swapped\":false,\"FreqXWeek\":0,\"PatientDocumentIds\":[],\"Id\":\"68d0dd83f0274c08c13cea37\",\"CreatedDate\":\"2025-09-22T05:24:19.908Z\",\"LastUpdateUserId\":\"68e58ec133012e4d24d578d2\",\"LastUpdateDate\":\"2026-04-22T03:04:10.7104565Z\",\"UpdateDeletedDate\":\"1900-01-01T00:00:00Z\",\"IsDeleted\":false}"),
"68d0dd83f0274c08c13cea35",
"");