; New GETREC.
; Code rewritten from the old GETREC^TIUEDI1.
; GETREC^TIUEDI1 now calls this code.
; New parameters: Left out TIUCREAT since we always used it as 1.
; Added PERSON and EDIT.
; Can be called directly, or via GETREC^TIUEDI1 for
GETNWX
;
CREXIT
CREATREC(DFN,TIU,TIUTYP1)
; Create document record - Returns DA
; Receives array TIU as in GETRECNW
; Needs var TIUTYP1 as in GETRECNW
INQUIRE()
; Ask user whether to create a new note anyway
EXISTEX
;
LOOP
; -- Find existing docmt for given patient, title, & visit:--