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

MCPOS06.m

Go to the documentation of this file.
  1. MCPOS06 ;HIRMFO/DAD-FIX SUBDD NUMBER IN DATA NODES ;4/25/96 10:55
  1. ;;2.3;Medicine;;09/13/1996
  1. ;
  1. ; Change subDD number to 699.501
  1. N MCD0,MCDATA,MCSUBDD
  1. S MCDATA(1)=""
  1. S MCDATA(2)="Checking the sub-DD numbers in the Generalized"
  1. S MCDATA(3)="Procedure/Consult file (#699.5)."
  1. D MES^XPDUTL(.MCDATA)
  1. ;
  1. S MCD0=0
  1. F S MCD0=$O(^MCAR(699.5,MCD0)) Q:MCD0'>0 D
  1. . S MCDATA=$G(^MCAR(699.5,MCD0,2,0))
  1. . I MCDATA="",$O(^MCAR(699.5,MCD0,2,0))'>0 Q
  1. . S MCSUBDD=$P(MCDATA,U,2)
  1. . I +MCSUBDD'=699.501 D
  1. .. S $P(MCDATA,U,2)="699.501"_$TR(MCSUBDD,"1234567890.")
  1. .. S ^MCAR(699.5,MCD0,2,0)=MCDATA
  1. .. Q
  1. . Q
  1. Q