SDES2 RESTORE CLIN AVAIL

TITLEVALUE
NAMESDES2 RESTORE CLIN AVAIL
DESCRIPTIONThis 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.
TAGRESTORE
ROUTINESDES2RSTCAVAIL
INPUT PARAMETERSSEQUENCE NUMBER1
INPUT PARAMETERSDCONTEXT
DESCRIPTIONSDCONTEXT("ACHERON AUDIT ID") = Up to 40 Character unique ID number.
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
calling application.
PARAMETER TYPELIST
REQUIREDYES
MAXIMUM DATA LENGTH32000

INPUT PARAMETERSSEQUENCE NUMBER2
INPUT PARAMETERSRESTORE
DESCRIPTIONSDRESTORE("CLINIC IEN")=5529
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
period.

Time should NOT be sent for FULL restore.
PARAMETER TYPELIST
REQUIREDYES
MAXIMUM DATA LENGTH32000

RETURN VALUE TYPEARRAY
RETURN PARAMETER DESCRIPTION{
"Restore": [
"Restore completed successfully"
]
}

Example errors:
Example 1:

{
"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": [
""
]
}


Example 2:


{
"Error": [
"Error: No time needed for Full restore."
],
"Restore": [
""
]
}
AVAILABILITYRESTRICTED
INACTIVE
CLIENT MANAGER
WORD WRAP ON
VERSION
SUPPRESS RDV USER SETUP
APP PROXY ALLOWEDYes