adding parsing to get codes for patients