Hello all,

I am trying to run the GNUHealth FHIR server by following the instructions 
given here:
    https://pypi.org/project/gnuhealth-fhir-server/

When I start it, it terminates with an error:

Traceback (most recent call last):
File 
"/home/gnuhealth/.local/lib/python3.11/site-packages/fhir_server/gnuhealth_fhir_server.py",
 line 130, in <module>
   create_app().run(debug=True)
File 
"/home/gnuhealth/.local/lib/python3.11/site-packages/fhir_server/gnuhealth_fhir_server.py",
 line 80, in create_app
   from resources.system import Conformance
File 
"/home/gnuhealth/.local/lib/python3.11/site-packages/fhir_server/resources/__init__.py",
 line 1, in <module>
   from .mappings import *
File 
"/home/gnuhealth/.local/lib/python3.11/site-packages/fhir_server/resources/mappings.py",
 line 24, in <module>
   tryton.pool.get('gnuhealth.patient'),
File "/home/gnuhealth/gnuhealth/tryton/server/trytond-6.0.51/trytond/pool.py", 
line 187, in get
   return self._pool[self.database_name][type][name]
KeyError: 'gnuhealth.patient'

Things I have already checked:
-  I have a working GNUHealth server v4.4.1 in the directory 
"/home/gnuhealth/gnuhealth"
-  I have set the configuration variable TRYTON_CONFIG to 
"/home/gnuhealth/gnuhealth/tryton/server/conf/trytond.conf" in config.py
-  I have set the configuration variable TRYTON_DATABASE in config.py and the 
environment variable TRYTOND_DATABASE_URI. I think I have set them correctly 
because the FHIR server shows a database error if I don't put the right values 
there.

Do you know what else I have to do to make it work?

Best regards
Wei




Reply via email to