;return children of parent
; Input - SDOE = ptr to 409.68
; Output- @SCKIDS@(kid ptr to 409.68) array
INSERT(INSTR,OUTSTR,COLUMN,LENGTH)
;Insert a string into another string
GETDTRNG(EARLIEST,LATEST,HELPBGN,HELPEND)
;Prompt user for a date range
PRIMPDX(SDPOE)
; return pointer to ICD9 for primary dx of parent encounter
; Note: Includes
; SDPOE - encounter (parent)
; return:
; if one: ptr to ICD DIAGNOSIS file (ICD9)^pointer to V POV file
; if none: no prim dx
; if two+: -1 (error)
DIAG(SDPOE,SCDXARRY)
;Get diagnoses from V POV file
; Note: Returns Dx from children (if any)