How to send Patient Photo?

Patient photo is very huge and base64 encoded string is very large. How do we transmit in FHIR ? What is the Resource I can use to expose it as an separate api instead of embedding in Patient api?

First, shouldn’t be “very large” - it should be a web-sized image sufficient to show as a medium-sized thumbnail on a screen to show identity, but it doesn’t need to be more than 20-30kb tops to meet the intended purpose. That said, if that size is too large, you have a few options. You can query using the _summary option, which will exclude the patient photo. You can also send the as a reference to a Binary resource. The system then has the option to decide whether they want to retrieve the binary or not. And if they do, they can retrieve it as a true binary, no need for base-64 encoding.