SDES2 GET CLINIC BY STOP CODE

TITLEVALUE
NAMESDES2 GET CLINIC BY STOP CODE
DESCRIPTIONRPC to return clinic details by Primary Stop Code and Credit Stop Code.
Also, a Boolean flag is included and if set to 1 then active and
inactive clinics are returned.

Can only be invoked by Acheron
TAGGETCLIN
ROUTINESDES2GETCLINST
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 in the calling application.
SDCONTEXT("USER SECID")
- The SECID of the user taking action in the calling application.
SDCONTEXT("PATIENT DFN")
- The DFN/IEN of the target patient from the calling application.
SDCONTEXT("PATIENT ICN")
- The ICN of the target patient from the calling application.
PARAMETER TYPELIST
REQUIREDYES
MAXIMUM DATA LENGTH32000

INPUT PARAMETERSSEQUENCE NUMBER2
INPUT PARAMETERSDINPUT
DESCRIPTIONSDINPUT("PRIMARY STOP CODE",#)={Stop Code} (Req)
SDINPUT("CREDIT STOP CODE",#)={Credit Stop Code} (Opt)
from the HOSPITAL LOCATION file (#44)
SDINPUT("RETURN INACTIVE")=0|1 (Opt) Flag to include inactive clinics,
default is 0 if not passed,
0 - Only active clinics returned
1 - Both active and inactive clinics returned
PARAMETER TYPELIST
REQUIREDYES
MAXIMUM DATA LENGTH32000

RETURN VALUE TYPEARRAY
RETURN PARAMETER DESCRIPTIONClinic information from HOSPITAL LOCATION (#44) File.
Return Data is in JSON format.

{
"Clinic": {
"Abbreviation": "",
"AdminInpatientMeds": "",
"AllowPatScheduling": "NO",
"AllowableConsecutiveNoShows": 5,
"ApptCancelLetter": "",
"CHAR4": "",
"CancelLetter": "",
"CheckinCheckoutTime": "",
"ClinicIEN": 5230,
"ClinicName": "TEST CLINIC 1",
"ClinicStatus": "ACTIVE",
"CreditStopCodeAMISNum": "",
"CreditStopCodeName": "",
"CreditStopCodeNum": "",
"DefaultApptType": "",
"DefaultToPCPractitioner": "",
"Diagnosis": [
{
"Code":""
"DefaultForClinic":""
}
],
"DisplayClinicAppt": "YES",
"DivisionIEN": 1,
"DivisionName": "CHEYENNE VAMROC",
"ECheckinAllowed": "NO",
"Hash": "3EDECDD21A492679EEB982CEA559FC2E5AFD0EDE",
"HolidaySchedule": "",
"HourClinicDisplayBegins": 8,
"InactivateDate": "",
"IncrementsPerHr": "20-MIN ",
"LastHashTimestamp": "2025-01-09T07:51:20-0500",
"LengthOfAppt": 20,
"MaxDaysForFutureBooking": 30,
"MeetsAtThisFacility": "",
"NoShowLetter": "",
"NoShowLetterIEN": "",
"NonCountClinic": "NO",
"OverbooksPerDayMax": 4,
"PatientFriendlyName": "",
"PbspID": 45678990,
"PhysicalLocation": "",
"PreApptLetter": "",
"PreCheckinAllowed": "NO",
"Principal": "",
"PrivilegedUser": [
{
"Name":"",
"IEN":""
}
],
"ProhibitAccessToClinic": "",
"Provider": [
{
"DefaultForClinic": "NO",
"IEN": 520849928,
"Name": "TESTER,MAY RN",
"Title": "REGISTERED NURSE"
}
],
"ReactivateDate": "",
"ReqActionProfiles": "YES",
"ReqXrayFilms": "",
"Resource IEN": 3598,
"Service": "MEDICINE",
"SpecialInstructions": "",
"StationNumber": 442,
"StopCodeAMISNum": 303,
"StopCodeName": "CARDIOLOGY",
"StopCodeNum": 147,
"Subspecialty": [
""
],
"Telephone": "",
"TelephoneExtension": "",
"Timezone": "EASTERN",
"TimezoneException": 0,
"VariableApptLength": "",
"VeteranSelfCancel": "YES",
"WorkloadValidationCheckout": ""
}
}
"InstructionID": 1
},
{
"Instruction": "THIS IS A SPECIAL INSTRUCTION",
"InstructionID": 2
}
],
"StationNumber": 442,
"StopCodeAMISNum": 323,
"StopCodeName": "PRIMARY CARE/MEDICINE",
"StopCodeNum": 296,
"Subspecialty": [
{
"ID": 1,
"Name": "SUBSPECIALTY TEST 1",
"Tier": "SECONDARY",
"Parent": ""
},
{
"ID": 2,
"Name": "SUBSPECIALTY TEST 2",
"Tier": "TERTIARY",
"Parent": 1
}
],
"Telephone": "",
"TelephoneExtension": "",
"Timezone": "EASTERN",
"TimezoneException": 0,
"VariableApptLength": "YES, VARIABLE LENGTH",
"VeteranSelfCancel": "YES",
"WorkloadValidationCheckout": "YES"
}
}
AVAILABILITYRESTRICTED
INACTIVE
CLIENT MANAGER
WORD WRAP ON
VERSION
SUPPRESS RDV USER SETUP
APP PROXY ALLOWEDYes