Hi @Nikhitha karanth ,
Thank you for posting your query on Microsoft Q&A. I am Saiteja from Q&A will be assisting you with your query.
Based on the error message, I found the issue is happening because of the permissions you have provided while retrieving the token.
You have tried to retrieve the token using patient.write
as scope. As per the document specified, the scope should always be patient.all.read
in the following format: https://testb2c.onmicrosoft.com/fhir/patient.all.read
Ensure you check each and every step one final time and run the query and check for the results.
I hope this information is helpful. Please feel free to reach out if you have any further questions.
If the answer is helpful, please click "Accept Answer" and kindly "upvote it". If you have extra questions about this answer, please click "Comment".