† case_action_list ()
Definitively removed in API Version 2.8.1
DEPRECATED IN API VERSION 2.7.8 (replaced by action_list_case ())
Function prototype | case_action_list (session, case, [program = NULL], [team = NULL] , action, [path = NULL], [parameter = “TODAY”]) |
---|---|
API Version | ALL |
This function returns a list of possible actions that a PROFESSIONAL can execute for a CASE. The difference between this function and patient_action_list() is that this function is called from the PROFESSIONAL point of view, while patient_action_list() is called from the PATIENT point of view (a professional can execute actions on a patient that are not allowed to the patient itself). The input parameter “action” describes the type of action | |
Input parameters: |
|
Output parameters: |
|
Request sample: | case_action_list ( “LCAAAAAAAAAAAA”, "232", , ,"MNG" ); |
Response sample: |
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<result>
<actions>
<description>Select an action</description>
<action>
<ref>action_token</ref>
<name>short_name</name>
<description>desc</description>
<class>ACTION</class>
</action>
<action>...</action>
</actions>
</result>
<ErrorMsg></ErrorMsg>
<ErrorCode></ErrorCode>
|
Notes: |
|
Return Error codes
ERROR CODE |
|
---|---|
INVALID_TOKEN | The session token provided is not valid |
INSUFFICIENT_PRIVILEGES | The session user does not have the necessary privileges to create an ADMISSION in the SUBSCRIPTION or the TEAM reference provided is not a member of the SUBSCRIPTION |
CASE.NOT_FOUND | The CASE reference provided does not correspond to an existing CASE |
TEAM.NOT_FOUND | The TEAM reference provided does not correspond to a valid TEAM |
PROGRAM.NOT_FOUND | The PROGRAM reference provided does not correspond to a valid PROGRAM |
WRONG_PARAMS | Any of the parameters passed to the function has an invalid value |