SDES2 INACTIVATE CLINIC

TITLEVALUE
NAMESDES2 INACTIVATE CLINIC
DESCRIPTIONThis RPC inactivates a clinic from HOSPITAL LOCATION File #44 IEN. It will
mark an associated SDEC RESOURCE File 409.831 entry as inactive if there is
a link to the resource.

Please note that the clinic must not have any future appointments.

Can only be invoked by Acheron
TAGSDINACTCLN
ROUTINESDES2INACTCLIN
INPUT PARAMETERSSEQUENCE NUMBER1
INPUT PARAMETERSDCONTEXT
DESCRIPTION SDCONTEXT("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 PARAMETERSDPARAM
DESCRIPTIONSDPARAM("CLINIC IEN")= IEN of the clinic in file 44 Hospital location
(required)
SDPARAM("INACTIVATION DATE")= ISO DATE to inactivate the clinic, the date
should be today or in the future.
If the value is not provided then
the default value of today will be
used as the inactivation date.
Inactivation date is limited to 180 days
in the future.
SDPARAM("DELETE INACTIVATION")= Only passed if the inactivation date is
being deleted. It must be "Y" if deleting a
previous inactivation. If it is passed in
with any other value including the empty
string it will cause an error.
PARAMETER TYPELIST
REQUIREDYES
MAXIMUM DATA LENGTH32000

RETURN VALUE TYPEARRAY
RETURN PARAMETER DESCRIPTIONSuccessful Return:

{
"ClinicInactivate":[
"Clinic is successfully inactivated."
]
}

Success message for successful delete inactivation date
{
"ClinicInactivate":[
{
"DeleteInactivate":"Inactivate Date successfully
removed from clinic: 5924."
}
]
}

Error message for an invalid value for delete inactivation date

{
"ClinicInactivate":[
""""
],
"Error":[
"Error: Incorrect value for 'DELETE INACTIVATION' parameter,
must be 'Y' or not provided."
]
AVAILABILITYRESTRICTED
INACTIVE
CLIENT MANAGER
WORD WRAP ON
VERSION1
SUPPRESS RDV USER SETUP
APP PROXY ALLOWEDYes