Atlassian uses cookies to improve your browsing experience, perform analytics and research, and conduct advertising. Accept all cookies to indicate that you agree to our use of cookies on your device. Atlassian cookies and tracking notice, (opens new window)
If the activation is completed successfully, then a new session is created automatically and returned in the reponse (thus it is not necessary to perform a session_init() )
Post Sign-In actions
Since API version 2.7.28, when a patient signs-in for the first time, the system will enroll him in a default PROGRAM if the platform is configured to do so. See the $GLOBALS['CASE_DEFAULT_TEAM'] configuration parameter in WEB SERVICES CONFIGURATION form more detais about the configuration of the default PROGRAM.
Input parameters:
shared_key: an encrypted string that contains information about the communication channel used to create the account (email, phone...). This shared_key can be obtained from:
account_create(): returns the shared key after creating a new account that needs to be activated, and also after trying to create an account that already exists but needs to be activated.
session_init(): returns the shared key if the account exists but needs to be activated
An invitation sent by a other user in the system. In this scenario the shared key is sent by email/sms embedded in an URL that redirects to LC2 interface (to the "activate account" page)
code: value of the code that was sent by mail, sms... to activate the account
language: language code ('EN', 'ES', ...). If no language is provided, 'EN' will be used as default. This language will be used for the error description (if any)
Output parameters:
result: Additional information about the activation process:
session: This node is only included when no error happens. In this situation, a new session is created that can be used by the client (so that it is not necessary to do a session_init ())
account: Introduced in AP Version 2.7.20. If an error happens when trying to activate an account, the function will return an error code, and the node <account> will contain information about the account:
account: email or phone number used to do the activation
type: type of contact channel (email / phone)
ErrorMsg: In case of error, the description of the error in the language provided in the lang parameter
ErrorCode: In case of error, one of the possible ERROR CODES