Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: MBAAAPIE

MBAAAPIE.m

Go to the documentation of this file.
  1. MBAAAPIE ;OIT-PD/CBR - Scheduling Error provider ;02/10/2016
  1. ;;1.0;Scheduling Calendar View;**1**;Aug 27, 2014;Build 85
  1. ;
  1. ERRX(RETURN,ERRNO,TEXT,LVL) ; adds error to RETURN Called by RPC MBAA APPOINTMENT MAKE, MBAA RPC: MBAA CANCEL APPOINTMENT
  1. N ERRTXT,IND,ST,STR,TXT,I
  1. Q:'$D(RETURN)
  1. Q:'$D(ERRNO)
  1. S:$G(LVL)="" LVL=1
  1. S TEXT=$G(TEXT)
  1. F I=0:1 Q:$O(RETURN(I))=""!('+$O(RETURN(I)))
  1. I I=0,$D(RETURN(0)) S I=I+1
  1. E S:I>0 I=I+1
  1. S ERRTXT=$P($T(@ERRNO),";;",2)
  1. S IND=1,TXT=1,STR=""
  1. F Q:IND=0 D
  1. . S ST=$P(ERRTXT,"^",IND)
  1. . I ST=""&(IND>1) S IND=0 Q
  1. . I ST["$TXT" D S:$D(TEXT(TXT)) STR=STR_TEXT(TXT),TXT=TXT+1
  1. . E S STR=STR_ST
  1. . S IND=IND+1
  1. S RETURN(I)=ERRNO_U_STR_U_LVL
  1. Q
  1. ;
  1. ERRTXT(RETURN) ; MBAA RPC: used by multiple MBAA RPCS
  1. Q $P($G(RETURN(0)),U,2)
  1. ;
  1. ERRTABLE ; Error table
  1. INVPARAM ;;Invalid parameter value - ^$TXT1^.
  1. CLNINV ;;Invalid Clinic.
  1. CLNNFND ;;Clinic not found.
  1. CLNNDFN ;;Clinic not define or has no zero node.
  1. CLNSCIN ;;Invalid Clinic Stop Code ^$TXT1^.
  1. CLNSCRD ;;Clinic's Stop Code ^$TXT1^ cannot be used. Restriction date is ^$TXT2^ ^$TXT3^.
  1. CLNSCPS ;;Clinic's Stop Code ^$TXT1^ cannot be ^$TXT2^.
  1. CLNSCNR ;;Clinic's Stop Code ^$TXT1^ has no restriction type ^$TXT2^.
  1. CLNURGT ;;Access to ^$TXT1^ is prohibited!^$TXT2^Only users with a special code may access this clinic.
  1. CLNNOSL ;;No 'SL' node defined - cannot proceed with this clinic.
  1. PATDIED ;;PATIENT HAS DIED.
  1. PATNFND ;;Patient not found.
  1. PATSENS ;;Do you want to continue processing this patient record
  1. NOAVSLO ;;No available slots found on the same day in all the selected clinics for this date range
  1. APTCRGT ;;Appt. in ^$TXT1^ NOT CANCELLED^$TXT2^Access to this clinic is restricted to only privileged users!
  1. APTCCHO ;;>>> Appointment has a check out date and cannot be cancelled.
  1. APTCAND ;;Appointment already cancelled
  1. APTCNPE ;;You cannot cancel this appointment.
  1. APTCIPE ;;You cannot check in this appointment.
  1. APTCITS ;;It is too soon to check in this appointment.
  1. APTPPAB ;;That date is prior to the patient's date of birth.
  1. APTPCLA ;;That date is prior to the clinic's availability date.
  1. APTCLUV ;;There is no availability for this date/time.
  1. APTEXCD ;;EXCEEDS MAXIMUM DAYS FOR FUTURE APPOINTMENT!!
  1. APTSHOL ;;^$TXT1^??
  1. APTPAHA ;;PATIENT ALREADY HAS APPOINTMENT ^$TXT1^ THEN.
  1. APTPAHU ;;o Patient already has an appt on ^$TXT1^
  1. APTPHSD ;;PATIENT ALREADY HAS APPOINTMENT ON THE SAME DAY ^$TXT1^
  1. APTPPCP ;;THIS TIME WAS PREVIOUSLY CANCELLED BY THE PATIENT
  1. APTOVBK ;;OVERBOOK!
  1. APTOVOS ;;THAT TIME IS NOT WITHIN SCHEDULED PERIOD!
  1. APTOAPD ;;ONLY ^$TXT1^ OVERBOOK^$TXT2^ PER DAY!!
  1. APTCBCP ;;CAN'T BOOK WITHIN A CANCELLED TIME PERIOD
  1. APTNOST ;;NO OPEN SLOTS THEN
  1. APTEXOB ;;WILL EXCEED MAXIMUM ALLOWABLE OVERBOOKS,
  1. APTLOCK ;;Another user is editing this record. Trying again.
  1. APTCINV ;;*** Note: Clinic is scheduled to be inactivated on ^$TXT1^$TXT2^
  1. APTNSCE ;;You cannot execute no-show processing for this appointment.
  1. APTNSTS ;;It is too soon to no-show this appointment.
  1. APTNSAL ;;ALREADY RECORDED AS NO-SHOW... WANT TO ERASE
  1. APTNSAR ;;THIS APPOINTMENT ALREADY A NO-SHOW AND REBOOKED... ARE YOU SURE YOU WANT TO ERASE
  1. APTNSIA ;;Inpatient Appointments cannot reflect No-Show status!
  1. PATDARD ;;PATIENT ALREADY DISCHARGED FROM '^$TXT1^' CLINIC
  1. PATDNEN ;;>>> Patient not enrolled in '^$TXT1^' clinic.
  1. PATDHFA ;;PATIENT HAS FUTURE APPOINTMENTS, MUST BE CANCELLED PRIOR TO DISCHARGE !!
  1. APTDCOD ;;>>> The appointment must have a check out date/time to delete.
  1. APTDCOO ;;>>> Editing and deleting old encounters not allowed.
  1. APTCOCE ;;>>> You cannot check out this appointment.
  1. APTCOTS ;;>>> It is too soon to check out this appointment.
  1. APTCOCN ;;>>> You cannot check out this appointment.
  1. APTCOAC ;;Appointment already checked out
  1. APTCONW ;;Appointment new encounter
  1. APTCOSU ;;You must have the 'SD SUPERVISOR' key to delete an appointment check out.
  1. APTWHEN ;;WHEN??