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

YTQAPI5A.m

Go to the documentation of this file.
  1. YTQAPI5A ;DXC/ART - Save MH Administration Record API ;10/23/2017
  1. ;;5.01;MENTAL HEALTH;**132,221**;Dec 30, 1994;Build 11
  1. ;
  1. QUIT
  1. ;
  1. SAVEADM(YSDATA,YS) ; Create a new or update an existing administration
  1. ; RPC: YTQ SAVE ADMIN, replaces call to YTQ SAVE which is too open ended
  1. ;Input: YS("IEN")= the internal number of the record to edit.
  1. ; Leave blank if creating a new record. If creating a new record you must
  1. ; send .01^NEW in YS(1).
  1. ; YS(1)=FIELD #^Value^[3rd piece]
  1. ; YS(x)=FIELD #^Value^[3rd piece]
  1. ; [3rd piece] = 1 to bypass validation
  1. ; Data values must be external format - or `IEN
  1. ;Output: YSDATA(1)=[DATA] or [ERROR]
  1. ;
  1. SET YS("FILEN")=601.84 ; force to MH ADMINISTRATION
  1. N I S I=0
  1. F S I=$O(YS(I)) Q:'I I $P(YS(I),U)="15" S YS(I)="15^`"_$$SRC^YTQAPI1($P(YS(I),U,2))
  1. DO EDAD^YTQAPI1(.YSDATA,.YS) ; then call previous entry point
  1. QUIT