Not sure if i understand your question.
Hapi supports all FHIR Resources & the FHIR profiling mechanism.
So there is no need to "implement" mCOde.
You could add the IG Resources to enable Validation against mCode, but this is just a config, or some REST calls.