SDES2 INACTIVATE CLINIC (4967)    REMOTE PROCEDURE (8994)

Name Value
NAME SDES2 INACTIVATE CLINIC
TAG SDINACTCLN
ROUTINE SDES2INACTCLIN
RETURN VALUE TYPE ARRAY
AVAILABILITY RESTRICTED
VERSION 1
APP PROXY ALLOWED Yes
DESCRIPTION
This 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
INPUT PARAMETER
  • SDCONTEXT
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
     SDCONTEXT("ACHERON AUDIT 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
    
  • SDPARAM
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    SDPARAM("CLINIC IEN")=       IEN of the clinic in file 44 Hospital location
    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.
                                  (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.
    
RETURN PARAMETER DESCRIPTION
Successful Return:
{
  "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."
          ]
{
   "ClinicInactivate":[
                       "Clinic is successfully inactivated."
                      ]
}   
 
Success message for successful delete inactivation date