Configure the submission flow of the enrollment request form
Use scripted extension points to decide what records are created or updated after an enrollment request form is submitted.
Before you begin
Important:
Starting with the Yokohama release, Patient Support Services is being prepared for future deprecation. It will be hidden and no longer activated on new instances but will continue to be supported.
For details, see the Deprecation Process [KB0867184] article in the Now Support knowledge base.
Set the application scope to Patient Support Services using the application picker. For more information, see Application picker.
Role required: admin
About this task
The Patient Support Services application installs the sn_patientservice.EnrollmentCaseUtilService script, the EnrollmentCaseUtilService script include, and the EnrollmentCaseServiceExtPoint extension point.
The sn_patientservice.EnrollmentCaseUtilService script is preconfigured for the enrollment request form available by default within the application. Before creating an enrollment case, the application runs the sn_patientservice.EnrollmentCaseUtilService script and uses the following submission workflow logic to create records and avoid duplication of records:
- Create a patient record if one doesn't exist.
- Create a consumer record if one doesn't exist.
- Create a practitioner record if one doesn't exist.
- Create a member plan if one doesn't exist.
Using extension points makes it easier to integrate customizations without actually altering the base code. You can extend standard base functionality using customized scripts. For more information, see Using extension points to extend application functionality.
An implementation is available in the base system for scripted extension points. You can modify the data and add additional fields.
Procedure
Navigate to All > System Extension Points > Scripted Extension Points.
In the API Name column, search for and click sn_patientservice.EnrollmentCaseServiceExtPoint.
On the Extension Point form, select a script include to use the
EnrollmentCaseServiceExtPointextension point.- Modify the existing script by going to the Implementations related list and clicking sn_patientservice.EnrollmentCaseServiceExtPoint.
- Create and register a custom script include.
- Customize the submission workflow logic of your enrollment form by adding the
createPatient,createMemberPlan, andcreatePractitionermethods to your script include that implements theEnrollmentCaseServiceExtPointextension point.
You can create multiple implementations for an extension point and provide an order number for each implementation. The implementation that has the lowest order number is executed first.
| Customization | Implementation |
|---|---|
| Create a patient record if none exist. | Include the `createPatient` method of the `EnrollmentCaseServiceExtPoint` extension point in the implementation. |
| Create a member plan if none exist. | Include the `createPatient` method of the `EnrollmentCaseServiceExtPoint` extension point in the implementation. |
| Create a practitioner record if none exist. | Include the `createPatient` method of the `EnrollmentCaseServiceExtPoint` extension point in the implementation. |
- On the Extension Point form, click Update.