2016-09-22 50 views
1

我想用Fhirbase API为我的项目,我指http://fhirbase.github.io/installation.html(本地)这个链接,安装fhirbase服务器,并按照该文件中给出的所有步骤,错误Fhirbase API

,但是当我尝试执行首先api SELECT fhir_create_storage('{“resourceType”:“Patient”}');它给我错误,如

ERROR: function fhir_create_storage(unknown) does not exist 
LINE 1: SELECT fhir_create_storage('{"resourceType": "Patient"}'); 
^ 
HINT: No function matches the given name and argument types. You might need to add explicit type casts. 

我怎么能解决它?

回答

1

您必须通过SET plv8.start_proc = 'plv8_init';初始化plv8机器。这应该在一个新的连接上完成,所以重新连接并执行这个语句作为第一个语句,或者把它放在postgresql.conf中。 http://pgxn.org/dist/plv8/doc/plv8.html#Start-up.procedure

+1

我使用http://fhirbase.github.io/installation.html(Local one)安装fhirbase。这已经过时了,根据你的建议,我使用https://github.com/fhirbase/fhirbase-plv8安装fhirbase,这对我很有用。谢谢。 –