Changeset 1108


Ignore:
Timestamp:
Mar 21, 2011, 3:41:06 AM (14 years ago)
Author:
Sam Habiel
Message:

BSDX02 now returns Sex, DOB and PID in appointment list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Scheduling/trunk/m/BSDX02.m

    r1100 r1108  
    1 BSDX02  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 7/15/10 12:25pm
     1BSDX02  ; IHS/OIT/HMW - WINDOWS SCHEDULING RPCS ; 3/21/11 9:44am
    22        ;;1.5V2;BSDX;;Mar 03, 2011
    3            ;
    4            ; Change Log
    5            ; July 15 2010: UJO/SMH - Pass FM dates in instead of US dates for i18n
     3    ;
     4    ; Change Log
     5    ; July 15 2010: UJO/SMH - Pass FM dates in instead of US dates for i18n
     6        ; March 21 2011: UJO/SMH (v 1.5) - Return new fields: Patient SEX, PID, and DOB
    67        ;
    78        ;
     
    2829        S BSDXERR=""
    2930        S BSDXY="^BSDXTMP("_$J_")"
    30         S ^BSDXTMP($J,0)="I00020APPOINTMENTID^D00030START_TIME^D00030END_TIME^D00030CHECKIN^D00030AUXTIME^I00020PATIENTID^T00030PATIENTNAME^T00030RESOURCENAME^I00005NOSHOW^T00020HRN^I00005ACCESSTYPEID^I00005WALKIN^T00250NOTE"_$C(30)
     31        S ^BSDXTMP($J,0)="I00020APPOINTMENTID^D00030START_TIME^D00030END_TIME^D00030CHECKIN^D00030AUXTIME^I00020PATIENTID^T00030PATIENTNAME^T00030RESOURCENAME^I00005NOSHOW^T00020HRN^I00005ACCESSTYPEID^I00005WALKIN^T00250NOTE^T00006SEX^T00040PID^D00030DOB"_$C(30)
    3132        D ^XBKVAR S X="ETRAP^BSDX02",@^%ZOSF("TRAP")
    3233        ;
     
    9091        . S BSDXI=BSDXI+1
    9192        . S ^BSDXTMP($J,BSDXI)=BSDXNOT
     93        S ^BSDXTMP($J,BSDXI)=^BSDXTMP($J,BSDXI)_U ; Add "^" to separate note from next fields.
    9294        S BSDXI=BSDXI+1
    93         S ^BSDXTMP($J,BSDXI)=$C(30)
     95        ; new code for V1.5. Extra fields to return.
     96        N SEX S SEX=$$GET1^DIQ(2,BSDXPATD,.02)  ; SEX
     97        N PID S PID=$$GET1^DIQ(2,BSDXPATD,.363) ; PRIMARY LONG ID
     98        N DOB S DOB=$$FMTE^XLFDT($$GET1^DIQ(2,BSDXPATD,.03,"I"))  ; DOB
     99        S ^BSDXTMP($J,BSDXI)=SEX_U_PID_U_DOB_$C(30)
     100        ; end new code
    94101        Q
    95102        ;
Note: See TracChangeset for help on using the changeset viewer.