Does anyone know where I might find coding rules on Emergency vs Inpatient visits. My question is if a person comes in to the ER and has an xray for example but then is Inpatient. Do you bill this particular visit as ER or Inpatient? I would like to see something in writing explaining this.