将资源上载到FHIR服务器

时间:2013-12-30 12:14:50

标签: xml json hl7-fhir

我正在尝试将单个资源上传到Grahame的服务器:http://hl7connect.healthintersections.com.au/open/

但我不确定该怎么做。我一直在尝试这样的事情:

<Patient xmlns="http://hl7.org/fhir">
 <identifier>400</identifier>
 <name>Adam Everyman</name>
 <telecom>555555</telecom>
 <gender>M</gender>
 <address>Address</address>
</Patient>

但我不断收到错误消息,如:

error - resource is nil

有谁知道应如何格式化,以便Grahame的服务器接受上传?

最好我宁愿使用JSON而不是XML,但如果我能够工作,我会很开心。

1 个答案:

答案 0 :(得分:1)

首先,从一个现有示例开始,例如:http://hl7.org/implement/standards/fhir/patient-example.xml.html

你应该能够简单地将这个xml发布到http://fhir.healthintersections.com.au/open/Patient,尽管你必须得到正确的内容类型:application / xml + fhir