On-line medical command in theory and practice