Get patient encounter xml and json.