CPT code 99374(Home Health Certification)

We have a claim that denied because the pt was seen in the ER and as well as the PCP on the same day for home health certification. I was wondering if anyone can tell me how we can get paid for our claim.

We billed CPT code 99374...