[英]Uploading a resource to the FHIR server
我正在尝试将单个资源上传到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的服务器可以接受上传?
最好是我宁愿使用XML之上的JSON,但是如果我能工作的话,我会很高兴。
首先,从一个现有示例开始,例如以下示例: http : //hl7.org/implement/standards/fhir/ Patient-example.xml.html 。
您应该可以简单地将此xml发布到http://fhir.healthintersections.com.au/open/Patient ,尽管您必须正确设置内容类型:application / xml + fhir
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.