Changeset 742 for Scheduling/trunk/m
- Timestamp:
- May 2, 2010, 4:55:04 PM (15 years ago)
- Location:
- Scheduling/trunk/m
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Scheduling/trunk/m/BSDX27.m
r614 r742 1 BSDX27 ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 1 BSDX27 ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 4/29/10 9:43pm 2 2 ;;2.0;IHS WINDOWS SCHEDULING;;NOV 01, 2007 3 3 ; … … 118 118 ;IHS/OIT/HMW 20050208 Added from BSDDPA 119 119 NEW TYP 120 S TYP=$$APPTYP^BSD U2(PAT,DATE) ;sched vs. walkin120 S TYP=$$APPTYP^BSDXAPI(PAT,DATE) ;sched vs. walkin 121 121 I $P(NODE,U,2)["C" Q TYP_" - CANCELLED" 122 122 I $P(NODE,U,2)'="NT",$P(NODE,U,2)["N" Q TYP_" - NO SHOW" 123 I $$CO^BSD U2(PAT,+NODE,DATE) Q TYP_" - CHECKED OUT"124 I $$CI^BSD U2(PAT,+NODE,DATE) Q TYP_" - CHECKED IN"123 I $$CO^BSDXAPI(PAT,+NODE,DATE) Q TYP_" - CHECKED OUT" 124 I $$CI^BSDXAPI(PAT,+NODE,DATE) Q TYP_" - CHECKED IN" 125 125 Q TYP 126 126 ; -
Scheduling/trunk/m/BSDXAPI.m
r614 r742 1 BSDXAPI ; IHS/ANMC/LJF - SCHEDULING APIs ; Fri Jul 24 22:45:37 PDT 20091 BSDXAPI ; IHS/ANMC/LJF - SCHEDULING APIs ; 4/29/10 9:42pm 2 2 ;;2.1;BSDX;;24JUL2009 3 3 ;Orignal routine is BSDAPI by IHS/LJF, HMW, and MAW … … 247 247 Q $G(IEN) 248 248 ; 249 APPTYP(PAT,DATE) ;PEP; -- returns type of appt (scheduled or walk-in) 250 NEW X S X=$P($G(^DPT(PAT,"S",DATE,0)),U,7) 251 Q $S(X=3:"SCHED",X=4:"WALK-IN",1:"??") 252 ; 253 CO(PAT,CLINIC,DATE,SDIEN) ;PEP; -- returns 1 if appt already checked-out 254 NEW X 255 S X=$G(SDIEN) ;ien sent in call 256 I 'X S X=$$SCIEN(PAT,CLINIC,DATE) I 'X Q 0 257 S X=$P($G(^SC(CLINIC,"S",DATE,1,X,"C")),U,3) 258 Q $S(X:1,1:0) 259 ; 260
Note:
See TracChangeset
for help on using the changeset viewer.