Ignore:
Timestamp:
May 8, 2011, 4:11:34 AM (13 years ago)
Author:
Sam Habiel
Message:

Merging Radiology Support branch back to trunk.

Location:
Scheduling/trunk/m
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/m

  • Scheduling/trunk/m/BSDX28.m

    r1161 r1172  
    2828        I '+$G(DUZ) S BSDXY=BSDXRET_$C(31) Q
    2929        I '$D(DUZ(2)) S BSDXY=BSDXRET_$C(31) Q
    30        
     30DFN ;If DFN is passed as `nnnn, just return that patient
     31        I $E(BSDXP)="`" DO  SET BSDXY=BSDXRET_$C(31) QUIT
     32        . N BSDXIEN S BSDXIEN=$E(BSDXP,2,99)
     33        . I BSDXIEN'=+BSDXIEN QUIT  ; BSDXIEN must be numeric
     34        . N NAME S NAME=$P(^DPT(BSDXIEN,0),U)
     35        . N HRN S HRN=$P($G(^AUPNPAT(BSDXIEN,41,DUZ(2),0)),U,2)
     36        . N PID S PID=$P(^DPT(BSDXIEN,.36),U,3)
     37        . N DOB S DOB=$$FMTE^XLFDT($P(^DPT(BSDXIEN,0),U,3))
     38        . S BSDXRET=BSDXRET_NAME_U_HRN_U_PID_U_DOB_U_BSDXIEN_$C(30)
    3139PID     ;PID Lookup
    3240           ; If this ID exists, go get it. If "UJOPID" index doesn't exist,
Note: See TracChangeset for help on using the changeset viewer.