† admission_list_case ()

† admission_list_case ()

Definitively removed in API Version 2.8.1

DEPRECATED IN API VERSION 2.7.11. Use case_admission_list () instead

Function prototype

admission_list_case ( session, case, {get}, {event}, {subscription})

API Version

ALL

Deprecated in 2.7.11

 

Is a function to list all the admissions of a case and the Health principal diagnose

Input

parameters:

  • session: is the session id obtained in the session_init call

  • case: is a case reference ID obtained by the URL or with the calls: case_list(), case_search() or case_get(). ( can be an external ID like SOURCE/ID/NNNN )

  • get: is an optional value. When true, admission_list retrieves the full admission data. When false, it retrieves only the admission ref. The default value is true.

  • event: not used

  • subscription: (default = null) If a subscription reference is provided, only the ADMISSIONS of that particular SUBSCRIPTION will be returned

Output

parameters:

result: is an XML that contains the admission list

admissions: admission objects with all fields in the XML

status: status of the admission
ACTIVE: An active admission
ENROLLED: An admission not assigned to a PROTOCOL
PREADMISSION: An admission assigned to a protocol with open admission forms
PAUSED: An admission temporarily PAUSED
REJECTED: An admission
DISCHARGED: A discharged admission

ErrorMsg: any fault in the call, either in the validation of input parameters, errors in the connection to the database or any other error, this parameter returns the error message produced

Request

sample:

admission_list_case( “LCAAAAAAAAAAAAAAAAAAA”, “{label:}case_id{@source}”, “true”);

Response

sample:

<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<result>

<admissions> <admission> <ref>{source/id/}16205</ref> <locked>true</locked> <refs> <next> <ref>{source/id/}16206</ref> </next> <prev> <ref /> </prev> </refs> <data> <case> <ref>{source/id/}10504</ref> </case> <subscription> <ref>111</ref> <version>12</version> <team> <ref>{source/id/}13</ref> <!-- MANDATORY. IF NOT REPORTED "1" IS DEFAULT VALUE --> <insignia>{source/id/}n</insignia> <!--- IF NOT REPORTED THE DEFAULT BADGE IS THE LINKCARE LOGO --> <name>CAP1</name> </team> <program> <id>15</id> <name>Seguimiento Post-Alta Hospitalaria (2012)</name> <description>Renewing Health Random</description> <prog_code>RENHEAL</prog_code> <image_info>{"resource_ref":14324,"description":"","mimeType":"jpg","code":"","scope":"PROGRAM"}</image_info> </program> </subscription> <enrol_date>2012-10-22 13:32:40</enrol_date> <admission_date>2012-10-22 13:33:52</admission_date> <discharge_request_date /> <discharge_date /> <suspended_date /> <rejected_date>2012-10-22 13:34:38</rejected_date> <notes /> <status>REJECTED</status> <date_to_display>2012-10-22 13:34:38</date_to_display> <age_to_display>31</age_to_display> <his_episode_ref /> <protocol> <id>1205</id> <name>Grupo de Intervención 3</name> <description>IG3. Renewing Health. Random</description> </protocol> </data> </admission> </admissions>

</result>

<ErrorMsg></ErrorMsg>

Notes:

Replaces admission_list ().

If the TEAM of the admissions have other TEAMS as members ( with Staff, Case Manager or Coordinator roles); Those TEAMS can see the admissions too.