SDES2 CREATE CLINIC (4909)    REMOTE PROCEDURE (8994)

Name Value
NAME SDES2 CREATE CLINIC
TAG CREATECLINIC
ROUTINE SDES2CREATECLIN
RETURN VALUE TYPE ARRAY
AVAILABILITY RESTRICTED
APP PROXY ALLOWED Yes
DESCRIPTION
This RPC will add and define a new clinic in the HOSPITAL LOCATION
file (#44).
INPUT PARAMETER
  • SDCONTEXT
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    SEQUENCE NUMBER:   1
    DESCRIPTION:   
    This array contains the needed audit information as defined by the 
    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.
    Acheron system.
     
    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.
    
  • SDCLINIC
    PARAMETER TYPE:   LIST
    MAXIMUM DATA LENGTH:   32000
    REQUIRED:   YES
    SEQUENCE NUMBER:   2
    DESCRIPTION:   
    The SDCLINIC array contains all the input parameters needed to add and 
    SDCLINIC("DIVISION")
    SDCLINIC("E-CHECKIN ALLOWED")
    SDCLINIC("LENGTH OF APPOINTMENT")
    SDCLINIC("MAX DAYS FUTURE BOOKING")
    SDCLINIC("MEETS AT FACILITY")
    SDCLINIC("NAME")
    SDCLINIC("NON-COUNT")
    SDCLINIC("OVERBOOKS/DAY MAX")
    SDCLINIC("PRE-CHECKIN ALLOWED")
    SDCLINIC("PRIMARY AMIS")
    configure a clinic in the HOSPITAL LOCATION (#44) file.
    SDCLINIC("REQUIRE ACTION PROFILES")
    SDCLINIC("SERVICE")
     
    Optional Variables:
    ===================
    SDCLINIC("PBSPID")
    SDCLINIC("ABBREVIATION")
    SDCLINIC("ADMIN INPATIENT MEDS")
    SDCLINIC("APPOINTMENT CANCELLATION LETTER")
    SDCLINIC("ASK CHECK IN/OUT")
     
    SDCLINIC("CLINIC CANCELLATION LETTER")
    SDCLINIC("CREDIT AMIS")
    SDCLINIC("DEFAULT APPOINTMENT TYPE")
    SDCLINIC("DEFAULT TO PC PRACTITIONER")
     SDCLINIC("DIAGNOSIS",DIAGNOSISCODE)="" - To Add
     SDCLINIC("DIAGNOSIS",DIAGNOSISCODE,"DEFAULT")="" - DEFAULT DIAGNOSIS
    SDCLINIC("HOUR CLINIC DISPLAY BEGINS")
    SDCLINIC("NO-SHOW LETTER")
    SDCLINIC("PATIENT FRIENDLY NAME")=
    SDCLINIC("PHYSICAL LOCATION")
    Required Variables:
    SDCLINIC("PRE-APPOINTMENT LETTER")
    SDCLINIC("PRINCIPAL CLINIC")
     SDCLINIC("PRIVILEGED USER",USERIEN)="" - To Add
    SDCLINIC("PROHIBIT ACCESS TO CLINIC")
     SDCLINIC("PROVIDER",PROVIDERIEN)="" - To Add
     SDCLINIC("PROVIDER",PROVIDERIEN,"DEFAULT")="" - DEFAULT PROVIDER
    SDCLINIC("REQUIRE X-RAY")
    SDCLINIC("SCHEDULE ON HOLIDAYS")
     SDCLINIC("SPECIAL INSTRUCTIONS",NUMBER)=
       "(null value)|SPECIAL INSTRUCTION TEXT UP TO 80 CHARACTERS"
    ===================
          FOR ADDITION
       "INSTRUCTION ID|SPECIAL INSTRUCTION TEXT UP TO 80 CHARACTERS"
          FOR EDIT
    SDCLINIC("TELEPHONE")
    SDCLINIC("TELEPHONE EXTENSION")
    SDCLINIC("VARIABLE APPOINTMENT LENGTH")
    SDCLINIC("WORKLOAD VALIDATION")
    SDCLINIC("VETERAN SELF-CANCEL")
    SDCLINIC("ALLOWABLE CONSECUTIVE NO-SHOWS")
    SDCLINIC("DIRECT PATIENT SCHEDULING")
    SDCLINIC("DISPLAY APPOINTMENTS")
    SDCLINIC("DISPLAY INCREMENTS PER HOUR")
    
RETURN PARAMETER DESCRIPTION
This RPC will either return an error message noting an issue with either 
the SDECONTEXT or SDCLINIC array or the IEN of the newly added clinic in 
the HOSPITAL LOCATION (#44) file.
 
A corresponding entry will be added to the SDEC RESOURCE (#409.831) file 
to keep the HOSPITAL LOCATION (#44) file and the SDEC RESOURCE (#409.831) 
file in sync.