We met such cases in some hoslitalization related projects. Usually we treat these patients as special inpatients category. If not appropriate for the analytic objective, we would give such patients a LOS=half day or avg( all patients hours in hospitals). They are inpatients, can’t be treated as outpatients in financial perspective either.
This a very good question coming from thorough analysis of your source data. These are “Outpatient” visits. Sometimes the EHR or hospital “admits” the Person to the hospital for a surgery or other Procedure and then the Person leaves later the same day.
From the OMOP perspective, all visits less than one day are Outpatient Visits regardless of the label a hospital gives the visit.
Just as an addition to Melanie’s thoughtful comment, it may be a little tricky with ‘Emergency room and inpatient visit’, which can qualify as IP. But similarly to what she said, we usually distinguish them based on duration. If less than a day - not inpatient.