admission_set ()

admission_set ()

Function prototype

admission_set ( session, admission xml )

API VersionAll

Updates information about an exist admission

Input

parameters:

  • session: is the session id obtained in the session_init call
  • admission: An XML with all the information about an admission (admission object)
    • ref: is the reference to the ID and the center of the admission. It can be an external center or an internal admission in the Linkcare System.
    • data: Information about the ADMISSION
      • case/ref: case reference
      • program/ref: reference to the PROGRAM for which this ADMISSION was created
      • protocol/ref: reference to the PROTOCOL of the PROGRAM
      • subscription/ref: reference to the SUBSCRIPTION in which the ADMISSION was created
      • enrol_date
      • admission_date: date of the admission join
      • discharge_request_date
      • discharge_date: the date of the discharge if it exists
      • suspended_date: the date of suspend
      • rejected_date: the date of reject
      • notes: notes about the discharged date or rejected date or suspended date
      • status: status of the admission
      • referral: (introduced in API Version 2.7.12) information about the PROFESSIONAL/TEAM assigned as referral of the ADMISSION
        • professional/ref: reference to the PROFESSIONAL assigned as referral of the ADMISSION
        • team/ref: reference to the TEAM assigned as referral of the ADMISSION. Since API Version 2.7.27 it is also possible to indicate a TEAM CODE

Output

parameters:

  • ErrorMsg: If any error occurs, then this value contains a description of the error translated to the current language
  • ErrorCode: If any error occurs, then this value contains any of the standard ERROR CODES

Request

sample:

admission_set( “LCAAAAAAAAAAAAAA”, “

<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<admission>
  <ref>16205</ref>
  <data>
    <case>
       <ref>73723</ref>
    </case>
    <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>
   	<subscription>
       	<ref>12</ref>
   	</subscription>
    <referral>
       <professional>
          <ref>542</ref>
       </professional>
       <team>
          <ref>1</ref>
       </team>
    </referral>
  </data>
</admission>

Response

sample:

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

Notes:


Related content