How to show different case ID prefix based on countries

We need to show diff case ID prefix based on countries say for Country =USA ;prefix=US-

And for country =CANADA;prefix=CA- how to do this.In pyDefaultDT we can give the respective conditions but will it be sufficient or do i need to make any other change as well?

You can set the value in the DT .pyWorkIDPrefix it will add the expected value before the case ID(USA-14325) & you can check first when condition for the country and you can set the country specific value for the .pyWorkIDPrefix

you may want to check out this - its old but I believe still works Case ID generation mechanism