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

BDGLOC1.m

Go to the documentation of this file.
  1. BDGLOC1 ; IHS/ANMC/LJF - LOCATOR CARD - print ;
  1. ;;5.3;PIMS;**1007**;FEB 27, 2007
  1. ;
  1. ;cmi/anch/maw 2/22/2007 added code to print attending provider PATCH 1007 item 1007.42
  1. ;
  1. EN ;EP; entry point from queuing
  1. Q:'$G(DFN) Q:'$G(BDGN)
  1. S BDGN=$P($G(^DGPM(BDGN,0)),U,14) Q:'BDGN ;make sure is admission ien
  1. ;
  1. ; -- patient demographics
  1. U IO W !!!?8,"***Confidential Patient Data***",!
  1. W ?5,$E($$GET1^DIQ(2,DFN,.01),1,25)
  1. W ?29,"Chart #: ",$$HRCN^BDGF2(DFN,DUZ(2))
  1. W !?5,"Age: ",$$GET1^DIQ(9000001,DFN,1102.98)
  1. W ?23,"Date of Birth: ",$$GET1^DIQ(2,DFN,.03)
  1. W !?5,"Sex: ",$$GET1^DIQ(2,DFN,.02,"I")
  1. W ?28,"Religion: ",$$GET1^DIQ(2,DFN,.08)
  1. ;
  1. ; -- mailing address
  1. S X=$$GET1^DIQ(2,DFN,.111)
  1. W !!?5,"Patient's Address: ",!
  1. W ?5,$$GET1^DIQ(2,DFN,.111)," ",$$GET1^DIQ(2,DFN,.114)
  1. W ", ",$$GET1^DIQ(5,+$$GET1^DIQ(2,DFN,.115,"I"),1) ;state abbrev
  1. W " ",$$GET1^DIQ(2,DFN,.116)
  1. ;
  1. ; -- next of kin
  1. W !!?5,"Next of Kin:"
  1. W !?5,$$GET1^DIQ(2,DFN,.211),?37,$$GET1^DIQ(2,DFN,.212)
  1. W !?5,$$GET1^DIQ(2,DFN,.213)," ",$$GET1^DIQ(2,DFN,.216)
  1. W $$GET1^DIQ(2,DFN,.217)
  1. W " ",$$GET1^DIQ(5,+$$GET1^DIQ(2,DFN,.218,"I"),1) ;state abbrev
  1. S X=$$GET1^DIQ(2,DFN,.219) I X]"" W !?5,"Phone: ",X
  1. ;
  1. ; -- admission info
  1. W !!?5,"Admission Date: "
  1. W ?20,$$FMTE^XLFDT(+$$GET1^DIQ(405,BDGN,.01,"I"),"P")
  1. I $G(^DPT(DFN,.105))=BDGN D
  1. . W !?8,"Ward/Room-Bed: ",$G(^DPT(DFN,.1))," / ",$G(^DPT(DFN,.101))
  1. ;cmi/anch/maw 2/22/2007 add attending provider if there PATCH 1007 item 1007.42
  1. W !,?5,"Attending Provider: "
  1. W ?25,$$LASTPRV^BDGF1(BDGN,DFN)
  1. ;cmi/anch/maw 2/22/2007 end of additions
  1. ;
  1. D ^%ZISC K DFN,BDGN
  1. D KILL^AUPNPAT
  1. Q
  1. ;