From 7f508688a7ea4db672cedbe803bd3e07d7d4dc25 Mon Sep 17 00:00:00 2001 From: sumancdey Date: Fri, 19 Jan 2024 18:30:47 +0530 Subject: [PATCH] EDRD-446 And EDRD-438 Stories --- .../flows/Create_EDRD_Case.flow-meta.xml | 704 ++++++++++++++++-- 1 file changed, 637 insertions(+), 67 deletions(-) diff --git a/force-app/main/default/flows/Create_EDRD_Case.flow-meta.xml b/force-app/main/default/flows/Create_EDRD_Case.flow-meta.xml index 578c9b0dc..65b6a2a83 100644 --- a/force-app/main/default/flows/Create_EDRD_Case.flow-meta.xml +++ b/force-app/main/default/flows/Create_EDRD_Case.flow-meta.xml @@ -33,8 +33,8 @@ Choose_case_option - 182 - 1430 + 248 + 1814 Get_Case_Record_Type_for_renewal @@ -55,6 +55,63 @@ + + Medication_details_New_Renewal_decision + + 446 + 1214 + + Renwal_Medication_details + + Show Renewal Medication details + + Show_Initial_Medication_details + and + + Case_Type + EqualTo + + New + + + + MedicationRequestDetails + + + + + + Other_Medication_Decision + + 248 + 1106 + + Medication_details_New_Renewal_decision + + Medication Details + + OtherMedicationDetail + and + + Medication.recordName + EqualTo + + Other + + + + Medication.recordId + IsNull + + false + + + + Other_Medication + + + + caseTypeSet Picklist @@ -72,6 +129,22 @@ Case Desc + + RequestedFrequencyUnits + Picklist + + + Requested_Frequency_Unit__c + MedicationRequest + + + RequestedFundingDurationUnit + Picklist + + + Requested_Funding_Duration_Unit__c + MedicationRequest + Default Create EDRD Case {!$Flow.CurrentDateTime} @@ -97,8 +170,8 @@ Create_Medication_request_with_New_Case - 50 - 1970 + 116 + 2354 MedicationRequestRec Sucees @@ -109,18 +182,60 @@ StoreNewCase.Id + + Dosage_Units__c + + Dosage_Units.recordId + + + + Dosage__c + + Dosage + + MedicationId Medication.recordId + + Other_Medication_Detail__c + + {!Medication_Name}, {!Other_Brand}, {!Other_Indication}, {!Supplier}, {!Dosing}, {!Dosage_Form} + + PatientId searchedPatientRecId.Id + + Requested_Frequency_Unit__c + + Requested_Frequency_Units + + + + Requested_Frequency__c + + Requested_Frequency + + + + Requested_Funding_Duration_Unit__c + + Requested_Funding_Duration_Units + + + + Requested_Funding_Duration__c + + Requested_Funding_Duration + + RequesterId @@ -144,8 +259,8 @@ Create_Medication_Request_with_New_Renewal_Case - 314 - 1970 + 380 + 2354 MedicationRequestRec Success @@ -156,18 +271,60 @@ StoreRenewalCase.Id + + Dosage_Units__c + + Renewal_Dosage_Units.recordId + + + + Dosage__c + + Renewal_Dosage + + MedicationId Medication.recordId + + Other_Medication_Detail__c + + {!Medication_Name}, {!Other_Brand}, {!Other_Indication}, {!Supplier}, {!Dosing}, {!Dosage_Form} + + PatientId searchedPatientRecId.Id + + Requested_Frequency_Unit__c + + Renewal_Requested_Frequency_Units + + + + Requested_Frequency__c + + Renewal_Requested_Frequency + + + + Requested_Funding_Duration_Unit__c + + Renewal_Requested_Funding_Duration_Units + + + + Requested_Funding_Duration__c + + Renewal_Requested_Funding_Duration + + RequesterId @@ -191,8 +348,8 @@ New_case_Creation_for_Rec_type_New - 50 - 1646 + 116 + 2030 Get_Newly_created_Case @@ -238,8 +395,8 @@ New_renewal_case_creation_for_RecType_Renew - 314 - 1646 + 380 + 2030 Get_newly_created_Renewal_Rec @@ -285,8 +442,8 @@ Get_Case_Record_Type - 50 - 1538 + 116 + 1922 false New_case_Creation_for_Rec_type_New @@ -315,8 +472,8 @@ Get_Case_Record_Type_for_renewal - 314 - 1538 + 380 + 1922 false New_renewal_case_creation_for_RecType_Renew @@ -345,11 +502,11 @@ Get_Medication - 182 + 248 998 true - Copy_1_of_Medication_Request + Other_Medication_Decision and @@ -368,12 +525,24 @@ Renewal_Recommended_Dosage__c Max_Initiation_Funding_Duration__c Max_Renewal_Funding_Duration__c + HC_Initial_Dosage__c + HC_Initial_Dosage_Units__c + HC_Initial_Funding_Duration__c + HC_Initial_Funding_Duration_Unit__c + HC_Initial_Frequency__c + HC_Initial_Frequency_Unit__c + HC_Renewal_Dosage__c + HC_Renewal_Dosage_Units__c + HC_Renewal_Funding_Duration__c + HC_Renewal_Funding_Duration_Unit__c + HC_Renewal_Frequency__c + HC_Renewal_Frequency_Unit__c Get_Newly_created_Case - 50 - 1754 + 116 + 2138 true Upload_Document @@ -399,8 +568,8 @@ Get_newly_created_Renewal_Rec - 314 - 1754 + 380 + 2138 false UploadDocument @@ -426,8 +595,8 @@ Get_Patient_Contact_rec - 182 - 1214 + 248 + 1598 false Get_Provider_Contact_Rec @@ -456,7 +625,7 @@ Get_Patient_Records - 182 + 248 566 true @@ -474,12 +643,13 @@ searchedPatientRecId Id Name + Patient_Identifier__pc PersonBirthdate Get_Patient_RecordTypeAccount - 182 + 248 242 false @@ -509,8 +679,8 @@ Get_Provider_Contact_Rec - 182 - 1322 + 248 + 1706 false Choose_case_option @@ -534,7 +704,7 @@ Get_Provider_Record_for_New_case - 182 + 248 782 true @@ -558,7 +728,7 @@ getProviderRecordType - 182 + 248 134 false @@ -585,34 +755,10 @@ Id - - Copy_1_of_Medication_Request - - 182 - 1106 - true - true - false - - Get_Patient_Contact_rec - - - MedicationInformation - <p><strong style="font-size: 14px;">Medication Details</strong></p> - DisplayText - - - ShowMedicationInformation - <p><strong style="font-size: 12px;">Medication Name : </strong><span style="font-size: 12px;">{!VarMedicationInformationRec.Name}</span></p><p><strong style="font-size: 12px;">Brand : </strong><span style="font-size: 12px;">{!VarMedicationInformationRec.BrandNameAlternative}</span></p><p><strong style="font-size: 12px;">Initial Recommended Dosage: </strong><span style="font-size: 12px;">{!VarMedicationInformationRec.Initial_Recommended_Dosage__c}</span></p><p><strong style="font-size: 12px;">Renewal Recommended Dosage: </strong><span style="font-size: 12px;">{!VarMedicationInformationRec.Renewal_Recommended_Dosage__c}</span></p><p><strong style="font-size: 12px; color: rgb(0, 0, 0);">Max Initiation Funding Duration: </strong><span style="font-size: 12px; color: rgb(68, 68, 68); background-color: rgb(255, 255, 255);">{!VarMedicationInformationRec.Max_Initiation_Funding_Duration__c}</span></p><p><strong style="font-size: 12px; color: rgb(0, 0, 0);">Max Renewal Funding Duration: </strong><span style="font-size: 12px; color: rgb(0, 0, 0);">{!VarMedicationInformationRec.Max_Renewal_Funding_Duration__c}</span></p> - DisplayText - - true - false - Medication_Request - 182 + 248 890 true true @@ -677,11 +823,150 @@ true false + + MedicationRequestDetails + + 314 + 1322 + true + true + false + + Get_Patient_Contact_rec + + + MedicationInformation + <p><strong style="font-size: 14px;">Medication Details</strong></p> + DisplayText + + + ShowMedicationInformation + <p><strong style="font-size: 12px;">Medication Name : </strong><span style="font-size: 12px;">{!VarMedicationInformationRec.Name}</span></p><p><strong style="font-size: 12px;">Brand : </strong><span style="font-size: 12px;">{!VarMedicationInformationRec.BrandNameAlternative}</span></p><p><strong style="font-size: 12px;">Initial Recommended Dosage: </strong><span style="font-size: 12px;">{!VarMedicationInformationRec.Initial_Recommended_Dosage__c}</span></p><p><strong style="font-size: 12px;">Renewal Recommended Dosage: </strong><span style="font-size: 12px;">{!VarMedicationInformationRec.Renewal_Recommended_Dosage__c}</span></p><p><strong style="color: rgb(0, 0, 0); font-size: 12px;">Max Initiation Funding Duration: </strong><span style="color: rgb(68, 68, 68); font-size: 12px; background-color: rgb(255, 255, 255);">{!VarMedicationInformationRec.Max_Initiation_Funding_Duration__c}</span></p><p><strong style="color: rgb(0, 0, 0); font-size: 12px;">Max Renewal Funding Duration: </strong><span style="color: rgb(0, 0, 0); font-size: 12px;">{!VarMedicationInformationRec.Max_Renewal_Funding_Duration__c}</span></p> + DisplayText + + + MedicationRequestDetails_Section1 + RegionContainer + + MedicationRequestDetails_Section1_Column1 + Region + + Dosage + Number + + VarMedicationInformationRec.HC_Initial_Dosage__c + + Dosage + InputField + false + 0 + + + Requested_Funding_Duration + Number + + VarMedicationInformationRec.HC_Initial_Funding_Duration__c + + Requested Funding Duration + InputField + false + 0 + + + Requested_Frequency + Number + + VarMedicationInformationRec.HC_Initial_Frequency__c + + Requested Frequency + InputField + false + 0 + + + width + + 6 + + + false + + + MedicationRequestDetails_Section1_Column2 + Region + + Dosage_Units + flowruntime:lookup + ComponentInstance + + fieldApiName + + HC_Initial_Dosage_Units__c + + + + label + + Dosage Units + + + + objectApiName + + Medication + + + + recordId + + VarMedicationInformationRec.HC_Initial_Dosage_Units__r.Id + + + UseStoredValues + true + true + + + Requested_Funding_Duration_Units + RequestedFundingDurationUnit + String + + VarMedicationInformationRec.HC_Initial_Funding_Duration_Unit__c + + Requested Funding Duration Units + DropdownBox + false + + + Requested_Frequency_Units + RequestedFrequencyUnits + String + + VarMedicationInformationRec.HC_Initial_Frequency_Unit__c + + Requested Frequency Units + DropdownBox + false + + + width + + 6 + + + false + + false + SectionWithoutHeader + + true + false + New Case New_Cases - 182 + 248 350 true true @@ -711,10 +996,265 @@ true false + + Other_Medication + + 50 + 1214 + true + true + true + + Other_Medication_details + + + DisplayOtherMedicine + <p><strong>Other Medication Details</strong></p> + DisplayText + + + Other_Medication_Section1 + RegionContainer + + Other_Medication_Section1_Column1 + Region + + Other_Medication_Name + String + + Medication_Name + + Medication Name + InputField + false + + + width + + 6 + + + false + + + Other_Medication_Section1_Column2 + Region + + Other_Brand + String + Brand + InputField + false + + + width + + 6 + + + false + + false + SectionWithoutHeader + + + Other_Indication + String + Indication + InputField + false + + + Supplier + String + Supplier + InputField + false + + + Dosing + String + Dosing + InputField + false + + + Dosage_Form + String + Dosage Form + InputField + false + + true + false + + + Other_Medication_details + + 50 + 1322 + true + true + false + + Get_Patient_Contact_rec + + + Other_MedicationInformation + <p><strong style="font-size: 14px;">Medication Details</strong></p> + DisplayText + + + Copy_1_of_ShowMedicationInformation + <p><strong>Medication Name</strong> <strong>:</strong> {!Medication_Name}</p><p><strong>Brand</strong> <strong>:</strong> {!Other_Brand}</p><p><strong>Indication:</strong> {!Other_Indication}</p><p><strong>Supplier:</strong>&nbsp;{!Supplier}</p><p><strong>Dosing:</strong> {!Dosing}</p><p><strong>Dosage Form:</strong> {!Dosage_Form}</p> + DisplayText + + true + false + + + Renwal_Medication_details + + 578 + 1322 + true + true + false + + Get_Patient_Contact_rec + + + Copy_1_of_MedicationInformation + <p><strong style="font-size: 14px;">Medication Details</strong></p> + DisplayText + + + ShowMedicationInformation_Renewal + <p><strong style="font-size: 12px;">Medication Name : </strong><span style="font-size: 12px;">{!VarMedicationInformationRec.Name}</span></p><p><strong style="font-size: 12px;">Brand : </strong><span style="font-size: 12px;">{!VarMedicationInformationRec.BrandNameAlternative}</span></p><p><strong style="font-size: 12px;">Initial Recommended Dosage: </strong><span style="font-size: 12px;">{!VarMedicationInformationRec.Initial_Recommended_Dosage__c}</span></p><p><strong style="font-size: 12px;">Renewal Recommended Dosage: </strong><span style="font-size: 12px;">{!VarMedicationInformationRec.Renewal_Recommended_Dosage__c}</span></p><p><strong style="color: rgb(0, 0, 0); font-size: 12px;">Max Initiation Funding Duration: </strong><span style="color: rgb(68, 68, 68); font-size: 12px; background-color: rgb(255, 255, 255);">{!VarMedicationInformationRec.Max_Initiation_Funding_Duration__c}</span></p><p><strong style="color: rgb(0, 0, 0); font-size: 12px;">Max Renewal Funding Duration: </strong><span style="color: rgb(0, 0, 0); font-size: 12px;">{!VarMedicationInformationRec.Max_Renewal_Funding_Duration__c}</span></p> + DisplayText + + + Renwal_Medication_details_Section1 + RegionContainer + + Renwal_Medication_details_Section1_Column1 + Region + + Renewal_Dosage + Number + + VarMedicationInformationRec.HC_Renewal_Dosage__c + + Dosage + InputField + false + 0 + + + Renewal_Requested_Funding_Duration + Number + + VarMedicationInformationRec.HC_Renewal_Funding_Duration__c + + Requested Funding Duration + InputField + false + 0 + + + Renewal_Requested_Frequency + Number + + VarMedicationInformationRec.HC_Renewal_Frequency__c + + Requested Frequency + InputField + false + 0 + + + width + + 6 + + + false + + + Renwal_Medication_details_Section1_Column2 + Region + + Renewal_Dosage_Units + flowruntime:lookup + ComponentInstance + + fieldApiName + + HC_Renewal_Dosage_Units__c + + + + label + + Dosage Units + + + + objectApiName + + Medication + + + + recordId + + VarMedicationInformationRec.HC_Renewal_Dosage_Units__r.Id + + + UseStoredValues + true + true + + + Renewal_Requested_Funding_Duration_Units + RequestedFundingDurationUnit + String + + VarMedicationInformationRec.HC_Renewal_Funding_Duration_Unit__c + + Requested Funding Duration Units + DropdownBox + false + + + Renewal_Requested_Frequency_Units + RequestedFrequencyUnits + String + + VarMedicationInformationRec.HC_Renewal_Frequency_Unit__c + + Requested Frequency Units + DropdownBox + false + + + width + + 6 + + + false + + false + SectionWithoutHeader + + true + false + Search_Patient - 182 + 248 458 true true @@ -735,13 +1275,14 @@ true true + Next false false Search_Provider_for_New_Case - 182 + 248 674 true true @@ -768,8 +1309,8 @@ Success - 314 - 2078 + 380 + 2462 false true false @@ -809,7 +1350,7 @@ Copy_1_of_SuccessfulMessage - <p style="text-align: center;"><strong style="color: rgb(29, 31, 29);">EDRD Case #</strong><a href="/{!StoreNewCase.Id} " rel="noopener noreferrer" target="_blank" style="color: rgb(29, 31, 29);"><strong>{!StoreRenewalCase.CaseNumber}</strong></a><strong style="color: rgb(29, 31, 29);"> has been created successfully.</strong></p> + <p style="text-align: center;"><strong style="color: rgb(29, 31, 29);">EDRD Case #</strong><a href="https://bchealth--edrddev.sandbox.lightning.force.com/lightning/r/Case/{!StoreRenewalCase.Id}/view" rel="noopener noreferrer" target="_blank" style="color: rgb(72, 121, 244);"><strong>{!StoreRenewalCase.CaseNumber}</strong></a><strong style="color: rgb(29, 31, 29);"> has been created successfully.</strong></p> DisplayText @@ -852,8 +1393,8 @@ Sucees - 50 - 2078 + 116 + 2462 false true false @@ -893,7 +1434,7 @@ SuccessfulMessage - <p style="text-align: center;"><strong style="color: rgb(42, 44, 41);">EDRD Case #</strong><a href="/{!StoreNewCase.Id} " rel="noopener noreferrer" target="_blank"><strong>{!StoreNewCase.CaseNumber}</strong></a><a href="/{!StoreNewCase.Id}" rel="noopener noreferrer" target="_blank"><strong> </strong></a><strong>ha</strong><strong style="color: rgb(42, 44, 41);">s been created successfully. </strong></p> + <p style="text-align: center;"><strong style="color: rgb(42, 44, 41);">EDRD Case #</strong><a href="/{!StoreNewCase.Id}" rel="noopener noreferrer" target="_blank" style="color: rgb(72, 121, 244);"><strong>{!StoreNewCase.CaseNumber}</strong></a><strong> ha</strong><strong style="color: rgb(42, 44, 41);">s been created successfully. </strong></p> DisplayText @@ -936,8 +1477,8 @@ Upload_Document - 50 - 1862 + 116 + 2246 true true false @@ -965,6 +1506,12 @@ New_case_Creation_for_Rec_type_New + + multiple + + true + + UseStoredValues true true @@ -975,8 +1522,8 @@ UploadDocument - 314 - 1862 + 380 + 2246 true true false @@ -1004,6 +1551,12 @@ New_renewal_case_creation_for_RecType_Renew + + multiple + + true + + UseStoredValues true true @@ -1012,7 +1565,7 @@ false - 56 + 122 0 getProviderRecordType @@ -1063,6 +1616,23 @@ true false + + Other + String + false + true + true + + Other + + + + OtherMedDetail + String + true + true + true + patientContactRec SObject