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

XU8P536.m

Go to the documentation of this file.
  1. XU8P536 ;BT/BP-OAK Person Class File APIs; 10/22/09
  1. ;;8.0;KERNEL;**536**; July 10, 1995;Build 7
  1. ;;Per VHA Directive 2004-038, this routine should not be modified
  1. Q
  1. ;
  1. POST ;
  1. D DEL
  1. D ADD
  1. D DEF
  1. Q
  1. ;
  1. ADD ; Add new entries from 1159 and 1160
  1. N XUI,XUDATA
  1. F XUI=1:1:2 S XUDATA=$T(DATA+XUI) Q:XUDATA=" ;;END" D
  1. . S XUDATA=$P(XUDATA,";;",2) Q:XUDATA="END"
  1. . D ADD1(XUDATA)
  1. Q
  1. ;
  1. ADD1(XUDATA) ; add single entry
  1. N FDA,FDAIEN,XUD
  1. S XUD=$G(XUDATA)
  1. S FDAIEN(1)=$P(XUD,"^")
  1. S FDA(8932.1,"+1,",.01)=$P(XUD,"^",2)
  1. S FDA(8932.1,"+1,",1)=$P(XUD,"^",3)
  1. S FDA(8932.1,"+1,",2)=$P(XUD,"^",4)
  1. S FDA(8932.1,"+1,",3)="a"
  1. S FDA(8932.1,"+1,",5)=$P(XUD,"^",5)
  1. S FDA(8932.1,"+1,",6)=$P(XUD,"^",6)
  1. S FDA(8932.1,"+1,",8)=$P(XUD,"^",7)
  1. S FDA(8932.1,"+1,",90002)=$P(XUD,"^",8)
  1. D UPDATE^DIE("","FDA","FDAIEN","ERR")
  1. Q
  1. ;
  1. DEL ; Delete entry
  1. N XUI F XUI=1159,1160 D
  1. . N DIK,DA S DIK="^USC(8932.1,",DA=XUI D ^DIK
  1. Q
  1. ;
  1. DATA ; information of entries from 1153-1156
  1. ;;1159^Pharmacy Service Providers^Pharmacist^Oncology^V090108^1835X0200X^87^I
  1. ;;1160^Pharmacy Service Providers^Pharmacist^Geriatric^V090107^1835G0303X^87^I
  1. ;;END
  1. ;;
  1. DEF ; Update definitions 1159 and 1160
  1. N XUI
  1. F XUI=1159,1160 D
  1. . D DEF1(XUI)
  1. Q
  1. ;
  1. DEF1(XUI) ; Update definition for single entry XUI
  1. N XUI1,XUDATA,XUY
  1. K ^TMP($J,"XUBA")
  1. F XUY=1:1:100 S XUDATA=$T(@XUI+XUY) Q:XUDATA=" ;;END" D
  1. . S ^TMP($J,"XUBA",XUI,XUY,0)=$P(XUDATA,";;",2)
  1. S XUI1=XUI_","
  1. D WP^DIE(8932.1,XUI1,11,"K","^TMP($J,""XUBA"",XUI)")
  1. K ^TMP($J,"XUBA")
  1. Q
  1. ; information of definitions
  1. 1159 ;
  1. ;;A licensed pharmacist who has demonstrated specialized knowledge and
  1. ;;skill in developing, recommending, implementing, monitoring, and
  1. ;;modifying pharmacotherapeutic plans to optimize outcomes in patients with
  1. ;;malignant diseases.
  1. ;;
  1. ;;Source: Specialty certification and recertification program administered
  1. ;;by Board of Pharmaceutical Specialties, www.bpsweb.org [7/1/2006: new]
  1. ;;END
  1. 1160 ;
  1. ;;A pharmacist who is certified in geriatric pharmacy practice is
  1. ;;designated as a "Certified Geriatric Pharmacist" (CGP). To become
  1. ;;certified, candidates are expected to be knowledgeable about principles
  1. ;;of geriatric pharmacotherapy and the provision of pharmaceutical care to
  1. ;;the elderly.
  1. ;;
  1. ;;Source: Commission for Certification in Geriatric Pharmacy (www.ccgp.org)
  1. ;;[7/1/2006: new]
  1. ;;END