Clone the open source medplum repo and just tell your model to search through that repo when it needs a reference. All of the docs are in the repo as markdown, as are the provider app and main react apps. Also, if you're confused as to how something works, your LLM can scrub through the core app and see how the requests are mutating in app code and what's going to/from postgres on Medplum's side.
The only thing that isn't open source is the source code to some of the integration bots. In those cases you need to point your LLM at the markdown docs for the bots.