How to Solve NameError: name 'uri' is not defined -- fhir

Solution: Import the 'uri' module

To Solve the error, add the following line to the top of your code.

from fhir import uri

 

For more information:
Python fhir uri