Fixed an issue of the 1st dose up-front, 2nd dose later flow
|
Using 1st dose up-front, 2nd dose later flow, the already completed Job 1 was moved from Complete back to Pending Allocation in SFDC when dose 2 was booked.
|
Self-Service Eligibility UI
|
New UI to set up Eligibility rules, Vaccines rules, and Location rules.
Steps to add the new UI to the Location Setting page layout:
- Open a Location Setting -> Click Setup icon -> Edit Page
- Create Rules tab next to the Setup tab -> Add a Visualforce component -> select skedRules VF page -> set Height = 700 -> Save
|
Wrapper function for Per interaction API
|
Sample code
- Walk-Ins flow - bypass OTP, landing page, eligibility check
skedbg.VaxModel.FlowBuilder builder = new skedbg.VaxModel.FlowBuilder();
builder.workflow('initial-booking').enableOTP(false).landingPage(false).checkEligibility(false);
builder.location(
builder.newLocation().id('LOCATION_ID_HERE')
);
builder.patient(
new Map<String, skedbg.VaxModel.DataEntry>{
'q.patient.firstname' => builder.newDataEntry().value('J').editable(false).hidden(true),
'q.patient.lastname' => builder.newDataEntry().value('Doe').editable(false).hidden(true)
}
);
skedbg.skedRemoteResultModel result = skedbg.skedService.bookingRedirect(builder.build());
if (result.success == true) {
String bookingUrl = builder.parse(result.data).url;
}
- 2nd dose/next booking flow
skedbg.VaxModel.FlowBuilder builder = new skedbg.VaxModel.FlowBuilder();
builder.workflow('next-booking');
builder.confirmationCode('CONFIRMATION_CODE_HERE');
skedbg.skedRemoteResultModel result = skedbg.skedService.bookingRedirect(builder.build());
if (result.success == true) {
String bookingUrl = builder.parse(result.data).url;
}
NOTES: The AWS Token must have a booking: redirect scope so it may require to re-generate the AWS token.
|
LWC button for Walk-Ins
|
An LWC button that can be added to the Location page layout to support Walk-ins scenario (bypass OTP, landing page, eligibility check).
See demo video.
If the button is not added on the Location page layout then the location id is not populated automatically. In this case, Skedulo provides two APIs which can be overridden in the subscriber org to set the configuration of the flow.
global class skedGlobalHandlerExt extends skedbg.skedGlobalHandler{
/**
* @description Set the configuration for the flow
**/
global override Map<String,String> customizeInput(Map<String, String> inputMap){
// This method can be used when it is required to search for location by the current user, then use the location for the Walk-In booking, below is a sample code
String locationId = getLocationByUser();
inputMap.put(‘workflow’,’initial-booking’);
inputMap.put(‘locationId’, locationId);
//In case of 2nd dose/next booking flow
inputMap.put(‘workflow’,’next-booking’);
inputMap.put(‘confirmationCode’, ‘’);
}
/**
* @description Customize a flow using the wrapper function
**/
global override void customizeFlow(Map<String, String> inputMap, skedbg.VaxModel.FlowBuilder builder){
}
}
|
Comments
0 comments
Please sign in to leave a comment.