CalMHSA has created letter templates for state required items, such as NOABDs. However, counties may need to create their own letter templates to suit their needs. Create a letter template in SmartCare is a multi-step process. Weâll break out these steps in different sections.
First: Create a Letter Template
- Click on the Search Icon
- Type in âLetter Templatesâ in the search bar
- Select âLetter Templates (Administration)â from the search results.
- This will bring up the Letter Templates list page. To create a new template, click the New icon.
- This brings you to the Letter Template Detail screen. Enter the Template Name. This is also what youâll name the corresponding document and corresponding screen. NOTE: When naming your template, ensure you donât use any special characters except a hyphen (-). CalMHSA recommends the following Naming Convention: “{CountyName} Letters â Letter Name”. Example: “Imperial Letters â Notice of Concern”
- Leave the Template Category blank for general letters.
- Write your letter. You can use the following tags for populating pertinent information dynamically.
- Client Information â Will pull data from the Client Information screen for the client youâre creating the letter for.
- If the client has more than one address, {{ClientAddress}} will pull the Mailing address first (if available), Home address next, and Billing address third.
- {{ClientPreferredName}} will pull from the Aliases tab in Client Information for the alias thatâs marked as âPreferred Nameâ.
- Appointment Information â Will pull data from the next service appointment the client has.
- Type: Will pull the procedure code name. NOTE: this is not the display name, but rather than actual procedure code thatâs in the Billing Manual
- Duration: Will pull the data from the Total Duration field
- With: Will pull the data from the Clinician field
- Mode of Delivery: Will pull the data from the Mode of Delivery field
- Selected Program Information â Will pull data from the Program Details screen, based on the program thatâs associated with this letter (whatâs selected from the CDAG dropdown by the user when creating the letter)
- County Information â Will pull data from the County Information screen
- Current User â Will pull data from the Staff Details screen for the user who is creating the letter
- Current User: Will pull the username thatâs used to log into SmartCare
- Current User Signature: Will pull the signature thatâs used when signing documents
- Client Information â Will pull data from the Client Information screen for the client youâre creating the letter for.
ï»żClient Information | Insert Statement | Format |
---|---|---|
Last Name | {{ClientLastName}} | Last |
First Name | {{ClientFirstName}} | First |
First/Last Name | {{ClientName}} | First Last |
Preferred Name | {{ClientPreferredName}} | First Last |
Client ID | {{ClientID}} | Number |
Prefix | {{ClientPrefix}} | Text |
Date of Birth | {{ClientDOB}} | m/d/yy |
Client Address | {{ClientAddress}} | 000 Street City, CA 00000 |
ï»żAppointment Information | Insert Statement | Format |
---|---|---|
Type | {{TypeOfAppnt}} | Text |
Duration | {{AppntDuration}} | Integer |
Day and Date | {{AppntDayAndDate}} | Friday, mm/dd/yyyy |
Time | {{AppntTime}} | 8:00AM |
With | {{AppntWith}} | First Last |
Mode of Delivery | {{ModeofDelivery}} | Text |
ï»żSelected Program Information | Insert Statement | Format |
---|---|---|
Address | {{SelectedProgramAddress}} | Text |
Manager | {{SelectedProgramManager}} | Text |
Phone | {{SelectedProgramPhone}} | (555) 555-5555 |
ï»żCounty Information | Insert Statement | Format |
---|---|---|
County Code | {{CountyCode}} | Integer |
County Name | {{County}} | Text |
Behavioral Health Department Name | {{CountyBHDeptName}} | Text |
Hours of Operation | {{CountyHours}} | Text |
County Address | {{CountyAddress}} | Text |
County City | {{CountyCity}} | Text |
County Zip | {{CountyZip}} | 55555 |
Main Phone Number | {{CountyPhoneNumber}} | 555-555-5555 |
TTY Phone Number | {{CountyTTYPhoneNumber}} | 555-555-5555 |
Accessibility Phone Number | {{CountyAccessPhoneNumber}} | 555-555-5555 |
Member Services 24/7 Phone Number | {{CountyMemberServicesPhoneNumber}} | 555-555-5555 |
Crisis Line Name | {{CrisisLineName}} | Text |
Crisis Line Phone | {{CrisisLineNumber}} | 555-555-5555 |
ï»żCurrent User | Insert Statement | Format |
---|---|---|
Current User | {{CurrentUser}} | Text |
Current Date | {{CurrentDate}} | Mmm dd, yyyy |
Current Date & Time | {{CurrentDateTime}} | Mmm d yyyy h:mmAM/PM |
Current User Signature | {{CurrentUserSignature}} | Text |
Use the âCounty Generic Letterâ to see an example of the formatting. This letter template is maintained by CalMHSA and is a demonstration of all the different insert statements.
To create a County Generic Letter, have a client open. Use the Search icon to find the screen âCounty Generic Letterâ. If needed, click New. This will show you want the end user will see when creating a letter with these insert statements. Signing the test letter will show you what these insert statements will look like in PDF format.
- Once youâve finished writing the letter, click Save and close.
- This takes you back to the list page. Note the Template ID for your letter template, as this will be used later.
Second: Create a Corresponding Document
- Click on the Search icon.
- Type in âDocument Managementâ in the search bar.
- Select âDocument Management (Administration)â from the search results.
- This brings up the Document Management list page. Click the New icon.
- This brings up the Document Codes Detail screen. In the Details section, set the fields below to the following values:
- Document Name: use the same name as the Letter Template Name in step 5 above
- View Document URL: CountyRDLGenericLetter
- View Document RDL: CountyRDLGenericLetter
- Table List: TextDocuments
- Document Type: Letters
- Service Note: No
- Active: Yes
- Requires Signature: Yes
- Only Available Online: No
- Editable After Signature: Yes
- Regenerate RDL on CoSignature: Yes
- Item k will result in a pop-up window alert. Click OK
- In the Stored Procedure section, set the fields below to the following values:
- Stored Procedure: csp_CalMHSACountyGenericLetter_Get
- Initialization: csp_CalMHSACountyGenericLetter_Init
- Click Save and close.
Third: Create a Corresponding Screen
- Click on the Search icon.
- Type in âScreensâ in the search bar.
- Select âScreens (Administration)â from the search results.
- This brings you to the Screens list page. Click on the New icon.
- This brings you to the Screen Details page. Set the fields below to their corresponding values:
- Screen URL: \ActivityPages\Client\Detail\Documents\DocumentLetters.ascx
- Document: select the corresponding document name from above.
- Screen Name: use the same name as the document and letter template
- Click Yes on Refresh Permission
- Screen Parameters: LetterTemplateId=xx instead of xx, use the template id you noted above
- Screen Type: Document Page
- Navigtion Context: Client
- Active: Yes
- Initialization: csp_CalMHSACountyGenericLetter_Init
- Click Save and close.
Fourth: Make the Screen Searchable
CalMHSA will have to complete this step for you. Put in a Help Desk ticket with the name of the screen (from 5c in step 3 above) and request that this screen be made searchable by end users.
Fifth (optional): Create a Corresponding QuickLink
- Click on the Search icon.
- Type in âQuickLinksâ in the search bar.
- Select âQuickLinks (Administration)â from the search results.
- This takes you to the QuickLinks list page. Click the New Icon.
- This takes you to the QuickLink Detail page. Set the fields below to their corresponding values:
- QuickLink: use the same name as your letter, document, and screen from steps above
- Display As: use the same name as your letter, document, and screen from steps aboveNavigation Context: Client
- Navigation Context: Client
- Parent QuickLink: Documents
- Screen: select the corresponding screen name from above
- Active: Yes
- Custom: No
- Click Save and close
Sixth: Add Permissions to Appropriate User Roles
- Click on the Search icon.
- Type in âRole Definitionâ in the search bar.
- Select âRole Definition (Administration)â from the search results.
- This takes you to the Role Definition page. Follow the instructions on how to edit permissions: see How to Modify Permissions in a Role. Please note that youâll have to do this for each role you want to give access to. Youâll also need to grant the following permissions in order for someone to fully access your new letter. If you did not create a QuickLink, you can ignore this permission type, as it will not be available for you.
Permission Type | Parent |
---|---|
Screens | Client |
Document Codes (Edit) * | N/A |
Document Codes (View) | N/A |
QuickLinks (optional) | Client |
*Note: If you do NOT want a user role to be able to create this letter, you can forgo the Document Codes (Edit).
Updated 3/21/24