C# Class gov.va.medora.mdo.dao.vista.VistaSchedulingDao

Inheritance: ISchedulingDao
Mostrar archivo Open project: OSEHRA/mdo Class Usage Examples

Public Methods

Method Description
VistaSchedulingDao ( gov.va.medora.mdo.dao.AbstractConnection cxn ) : System
buildCancelAppointmentRequest ( Appointment appointment, string cancellationReason, string remarks ) : MdoQuery
cancelAppointment ( Appointment appointment, string cancellationReason, string remarks ) : Appointment
checkInAppointment ( Appointment appointment ) : Appointment
getAppointmentCheck ( string clinicIen, string startDate, string apptLength ) : bool
getAppointmentRequestTypes ( ) : string>.Dictionary
getAppointmentTypeDetails ( string apptTypeIen ) : AppointmentType
getAppointmentTypes ( string start ) : IList
getCancellationReasons ( ) : string>.Dictionary
getClinicSchedulingDetails ( string clinicId ) : HospitalLocation
getEligibilityDetails ( string eligibilityIen ) : string
getEwl ( string pid, string status, string startDate, string stopDate ) : IList
getPendingAppointments ( string startDate ) : IList
hasClinicAccess ( string clinicId ) : bool

Verify logged on user has scheduling access to clinic

hasValidStopCode ( string clinicId ) : bool
isValidStopCode ( string stopCodeId ) : bool
makeAppointment ( Appointment appointment ) : Appointment
toCanceledAppointment ( Appointment originalAppt, string response ) : Appointment

Private Methods

Method Description
buildCheckInAppointmentRequest ( Appointment appointment ) : MdoQuery
buildGetAppointmentCheckRequest ( string dfn, string clinicIen, string startDate, string apptLength ) : MdoQuery
buildGetAppointmentRequestTypesQuery ( ) : MdoQuery
buildGetAppointmentTypeDetailsRequest ( string apptTypeIen ) : MdoQuery
buildGetAppointmentTypesRequest ( string search, string start, string number ) : MdoQuery
buildGetCancellationReasonsRequest ( ) : MdoQuery
buildGetClinicAvailabilityRequest ( string clinicIen ) : MdoQuery
buildGetClinicAvailabilityRequestDdr ( string clinicIen ) : DdrLister
buildGetClinicSchedulingDetailsQuery ( string clinicId ) : DdrGetsEntry
buildGetEligibilityRequest ( string eligibilityIen ) : MdoQuery
buildGetEwlQuery ( string pid, string status, string startDate, string stopDate ) : MdoQuery
buildGetPendingAppointmentsRequest ( string pid, string startDate ) : MdoQuery
buildHasClinicAccessRequest ( string clinicId ) : MdoQuery
buildHasValidStopCodeRequest ( string clinicId ) : MdoQuery
buildIsValidStopCodeRequest ( string stopCodeId ) : MdoQuery
buildMakeAppointmentRequest ( Appointment appointment ) : MdoQuery
convertVistaDate ( string vistaDate ) : System.DateTime
getClinicAvailability ( string clinicIen, int clinicStartTime, int apptLength ) : IList
getIndexShiftForApptLength ( int apptLength ) : int
getPendingAppointments ( string pid, string startDate ) : IList
parseAvailabilitString ( string availability, int clinicStartTime, int apptLengthMins ) : IList
parseBoolResponse ( string response ) : bool

Helper method for parsing scheduling responses that adhere to format for boolean type responses

toAppointmentCheck ( string response ) : bool
toAppointmentRequestTypes ( string response ) : string>.Dictionary

RESULT(0)=7 RESULT(1)=N^'NEXT AVAILABLE' APPT. RESULT(2)=C^OTHER THAN 'NEXT AVA.' (CLINICIAN REQ.) RESULT(3)=P^OTHER THAN 'NEXT AVA.' (PATIENT REQ.) RESULT(4)=W^WALKIN APPT. RESULT(5)=M^MULTIPLE APPT. BOOKING RESULT(6)=A^AUTO REBOOK RESULT(7)=O^OTHER THAN 'NEXT AVA.' APPT.

toAppointmentTypeDetails ( string response ) : AppointmentType

RESULT(\"DEFAULT ELIGIBILITY\")=4^COLLATERAL OF VET. RESULT(\"DESCRIPTION\")=REC(409.1,\"7,\",\"DESCRIPTION\")^REC(409.1,\"7,\",\"DESCRIPTION\") RESULT(\"DUAL ELIGIBILITY ALLOWED\")=1^YES RESULT(\"IGNORE MEANS TEST BILLING\")=1^IGNORE RESULT(\"INACTIVE\")= RESULT(\"NAME\")=COLLATERAL OF VET.^COLLATERAL OF VET. RESULT(\"NUMBER\")=7^7 RESULT(\"SYNONYM\")=COV^COV

toAppointmentTypes ( string response ) : IList
toCancellationReasons ( string response ) : string>.Dictionary
toCheckInAppointment ( string response ) : Appointment
toClinicAvailability ( string response, int clinicStartTime, int apptLength ) : IList
toClinicAvailabilityDdr ( string response ) : IList
toClinicSchedulingDetails ( string response ) : HospitalLocation
toEligibility ( string response ) : string
toEwl ( string response ) : IList
toHasClinicAccess ( string response ) : bool
toIsValidStopCode ( string response ) : bool
toPendingAppointments ( string response ) : IList
toValidStopCode ( string response ) : bool

Method Details

VistaSchedulingDao() public method

public VistaSchedulingDao ( gov.va.medora.mdo.dao.AbstractConnection cxn ) : System
cxn gov.va.medora.mdo.dao.AbstractConnection
return System

buildCancelAppointmentRequest() public method

public buildCancelAppointmentRequest ( Appointment appointment, string cancellationReason, string remarks ) : MdoQuery
appointment Appointment
cancellationReason string
remarks string
return MdoQuery

cancelAppointment() public method

public cancelAppointment ( Appointment appointment, string cancellationReason, string remarks ) : Appointment
appointment Appointment
cancellationReason string
remarks string
return Appointment

checkInAppointment() public method

public checkInAppointment ( Appointment appointment ) : Appointment
appointment Appointment
return Appointment

getAppointmentCheck() public method

public getAppointmentCheck ( string clinicIen, string startDate, string apptLength ) : bool
clinicIen string
startDate string
apptLength string
return bool

getAppointmentRequestTypes() public method

public getAppointmentRequestTypes ( ) : string>.Dictionary
return string>.Dictionary

getAppointmentTypeDetails() public method

public getAppointmentTypeDetails ( string apptTypeIen ) : AppointmentType
apptTypeIen string
return AppointmentType

getAppointmentTypes() public method

public getAppointmentTypes ( string start ) : IList
start string
return IList

getCancellationReasons() public method

public getCancellationReasons ( ) : string>.Dictionary
return string>.Dictionary

getClinicSchedulingDetails() public method

public getClinicSchedulingDetails ( string clinicId ) : HospitalLocation
clinicId string
return HospitalLocation

getEligibilityDetails() public method

public getEligibilityDetails ( string eligibilityIen ) : string
eligibilityIen string
return string

getEwl() public method

public getEwl ( string pid, string status, string startDate, string stopDate ) : IList
pid string
status string
startDate string
stopDate string
return IList

getPendingAppointments() public method

public getPendingAppointments ( string startDate ) : IList
startDate string
return IList

hasClinicAccess() public method

Verify logged on user has scheduling access to clinic
public hasClinicAccess ( string clinicId ) : bool
clinicId string Clinic IEN
return bool

hasValidStopCode() public method

public hasValidStopCode ( string clinicId ) : bool
clinicId string
return bool

isValidStopCode() public method

public isValidStopCode ( string stopCodeId ) : bool
stopCodeId string
return bool

makeAppointment() public method

public makeAppointment ( Appointment appointment ) : Appointment
appointment Appointment
return Appointment

toCanceledAppointment() public method

public toCanceledAppointment ( Appointment originalAppt, string response ) : Appointment
originalAppt Appointment
response string
return Appointment