Indeed - so Medicare billing is supported by billing integrations - and basically you send your enounter documentation to the biller with the right fields and codes. Here's a sample:
https://github.com/medplum/medplum-demo-bots/tree/main/src/examples/candid-health
The documentation of the clearinghouse or billing service will refer to the requirements for CMS 1500 - and that's what's needed to bill Medicare