GENERAL DESCRIPTION |
This RPC can be used to add or edit a Mental Health
file entry. The subscripted YS array is passed to the RPC containing all of
the values needed to create or update the entry.
Input: YS("FILEN")=File Number (e.g., the file # for administrations
would be 601.84)
YS("IEN")=the internal number of the record you want to edit.
Leave blank if creating a new record. If creating a
new record you must send ".01^NEW" for those MH files
using the New input transform.
YS(1)=FIELD #^Value^[3rd piece is 1 if you need to bypass
validation (use only if approved by developer)
YS(n)=FIELD #^Value^[3rd piece]
Output: YSDATA(1)=[DATA] or [ERROR]
YSDATA(2)=error message
Example: Adding a new entry to the MH ADMINISTRATION (#601.84) file.
S YS(1)=".01^NEW^1"
S YS(2)="1^`134"
S YS(3)="2^5"
S YS(4)="3^3111017.0945"
S YS(5)="4^NOW"
S YS(6)="5^`547"
S YS(7)="6^`547"
S YS(8)="7^NO"
S YS(9)="8^NO"
S YS(10)="9^0"
S YS(11)="13^`87"
S YS("FILEN")=601.84
|