SDES2 RESTORE CLIN AVAIL (4962)    REMOTE PROCEDURE (8994)

Name Value
NAME SDES2 RESTORE CLIN AVAIL
TAG RESTORE
ROUTINE SDES2RSTCAVAIL
RETURN VALUE TYPE ARRAY
AVAILABILITY RESTRICTED
APP PROXY ALLOWED Yes
DESCRIPTION
This RPC will allow the restore of clinic availability.  If the day was a 
full day cancel, will restore full day.  If time periods (partial) day 
cancellation were cancelled, then the RPC will restore a partial day for 
the time period start time sent in.
INPUT PARAMETER
  • SDCONTEXT
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    SDCONTEXT("ACHERON ID") = Up to 40 Character unique ID number.
                              calling application.
                              Ex: 11d9dcc6-c6a2-4785-8031-8261576fca37
    SDCONTEXT("USER DUZ")   = The DUZ of the user taking action on the
                              calling application. 
    SDCONTEXT("USER SECID") = The SECID of the user taking action in the
                              calling application.
    SDCONTEXT("PATIENT DFN")= The name of the patient taking action on the
                              calling application.
    SDCONTEXT("PATIENT ICN")= The ICN of the patient taking action on the
    
  • SRESTORE
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    SDRESTORE("CLINIC IEN")=5529
    period.
     
    Time should NOT be sent for FULL restore.
    SDRESTORE("DATE OR DATETIME")="2023-10-23"
    SDRESTORE("RESTORE TYPE")="F"
    - or - 
    SDRESTORE("CLINIC IEN")=5529
    SDRESTORE("DATE OR DATETIME")="2023-10-23T08:00-0400"
    SDRESTORE("RESTORE TYPE")="P"
     
    Time is required for Partial restore.  Time will be the start time of the 
    
RETURN PARAMETER DESCRIPTION
{
{
 "Error": [
  "Error: Not a cancelled period.  Must send defined cancelled period.",
  {
   "Restore Periods": [
    "2023-09-27T08:00-0400  (to restore: 2023-09-27T08:00-0400 to 
2023-09-27T10:00-0400)",
    "2023-09-27T15:00-0400  (to restore: 2023-09-27T15:00-0400 to 
2023-09-27T16:00-0400)"
   ]
 "Restore": [
  }
 ],
 "Restore": [
  ""
 ]
}
 
 
Example 2:
 
  "Restore completed successfully"
 
{
 "Error": [
  "Error: No time needed for Full restore."
 ],
 "Restore": [
  ""
 ]
}
 ]
}
 
Example errors:
Example 1: