extract details from unordered prescription