fhirbase / fhirbase-plv8

[DEPRECATED] Fhirbase 2.0 is an FHIR relational storage
https://health-samurai.io/fhirbase
Other
105 stars 39 forks source link

require is not defined #103

Closed gasperr closed 8 years ago

gasperr commented 8 years ago

I am getting the error below when trying to call any function from pgadmin. Any idea why?

ERROR: ReferenceError: require is not defined DETAIL: fhir_read_resource() LINE 2: var mod = require("/fhirbase/src/fhir/crud.coffee") \ Error **

niquola commented 8 years ago

https://github.com/fhirbase/fhirbase-plv8/blob/master/README.md#postgresql-config-for-plv8 u have to set plv8 init function on fresh connection (or this could be done in postgresql config)