Ignore:
Timestamp:
Apr 13, 2011, 2:38:19 AM (13 years ago)
Author:
Sam Habiel
Message:

BSDX32: Hospital Location has extra column IS_RADIOLOGY_LOCATION to link if that HL is tied to the Radiology Package
BDDX01: GETRADEX: Get Radiology Exams for a Patient in a specific HL;
BSDX01: SCHRAEX: Schedule Radiology Exam
BSDX01: HOLDRAEX: Hold Radiology Exam
BSDX02: Added Radiology Exam Field, to retrieve Radiology Exam associated with appt
BSDX07: Support for adding Radiology Exams to Appointment. BSDX APPOINTMENT file now has a Radiology Exam that points to file 75.1 (RAD/NUC MED ORDERS)
BSDX28: Added support for searching by DFN from Scheduling GUI by accent grave notation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/branches/Radiology-Support/m/BSDX07.m

    r1116 r1141  
    1 BSDX07  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS  ; 3/15/11 11:50am
    2            ;;1.5V3;BSDX;;Mar 16, 2011
     1BSDX07  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS  ; 4/11/11 12:12pm
     2           ;;1.6;BSDX;;Mar 16, 2011
    33           ;
    44           ; Change Log:
     
    1010           ; v1.5  Mar 15 2011 - End time does not have to have time anymore.
    1111           ;      It could be midnight of the next day
     12           ; v1.6 Apr 11 2011 - Support for Scheduling Radiology Exams...
    1213           ;
    1314           ; Error Reference:
     
    7879           QUIT
    7980           ;
    80 APPADD(BSDXY,BSDXSTART,BSDXEND,BSDXPATID,BSDXRES,BSDXLEN,BSDXNOTE,BSDXATID)     ;EP
     81APPADD(BSDXY,BSDXSTART,BSDXEND,BSDXPATID,BSDXRES,BSDXLEN,BSDXNOTE,BSDXATID,BSDXRADEXAM) ;EP
     82           ;
    8183           ;Called by RPC: BSDX ADD NEW APPOINTMENT
    8284           ;
     
    9799           ; if BSDXATID = "WALKIN" then BSDAPI is called to create a walkin appt.
    98100           ; if BSDXATID = a number, then it is the access type id (used for rebooking)
     101           ;BSDXRADEXAM is used to store the Radiology Exam to which this appointment is tied to (optional)
    99102           ;
    100103           ;Return:
     
    105108           ;BSDX ADD NEW APPOINTMENT^3091122.0930^3091122.1000^370^Dr Office^30^EXAM^WALKIN
    106109           ;
     110           ; Deal with optional arguments
     111           S BSDXRADEXAM=$G(BSDXRADEXAM)
    107112           ; Return Array; set Return and clear array
    108113           S BSDXY=$NA(^BSDXTMP($J))
     
    172177           ; Done with all checks, let's make appointment in BSDX APPOINTMENT
    173178           N BSDXAPPTID
    174            S BSDXAPPTID=$$BSDXADD(BSDXSTART,BSDXEND,BSDXPATID,BSDXRESD,BSDXATID)
     179           S BSDXAPPTID=$$BSDXADD(BSDXSTART,BSDXEND,BSDXPATID,BSDXRESD,BSDXATID,BSDXRADEXAM)
    175180           I 'BSDXAPPTID D ERR(BSDXI,"-9~BSDX07 Error: Unable to add appointment to BSDX APPOINTMENT file.") Q
    176181           I BSDXNOTE]"" D BSDXWP(BSDXAPPTID,BSDXNOTE)
     
    216221           Q BSDXZ
    217222           ;
    218 BSDXADD(BSDXSTART,BSDXEND,BSDXPATID,BSDXRESD,BSDXATID)   ;ADD BSDX APPOINTMENT ENTRY
     223BSDXADD(BSDXSTART,BSDXEND,BSDXPATID,BSDXRESD,BSDXATID,BSDXRADEXAM)       ;ADD BSDX APPOINTMENT ENTRY
    219224           ;Returns ien in BSDXAPPT or 0 if failed
    220225           ;Create entry in BSDX APPOINTMENT
     
    228233           S:BSDXATID="WALKIN" BSDXFDA(9002018.4,"+1,",.13)="y"
    229234           S:BSDXATID?.N BSDXFDA(9002018.4,"+1,",.06)=BSDXATID
     235           S BSDXFDA(9002018.4,"+1,",.14)=BSDXRADEXAM
    230236           N BSDXIEN,BSDXMSG
    231237           D UPDATE^DIE("","BSDXFDA","BSDXIEN","BSDXMSG")
Note: See TracChangeset for help on using the changeset viewer.