No, it's not the same thing. No, a FHIR based system would not automatically be 21731 compliant. FHIR has not yet been brought to ISO - it will be a number of years before it becomes time to do that
If all you're looking for is a tick in the box to meet legal requirements, you might get away with claiming that a FHIR based system is 21731 compliant