简体   繁体   English

将资源上载到FHIR服务器

[英]Uploading a resource to the FHIR server

I am trying to upload a single resource to Grahame's server: http://hl7connect.healthintersections.com.au/open/ 我正在尝试将单个资源上传到Grahame的服务器: http : //hl7connect.healthintersections.com.au/open/

But I am unsure how to do so. 但是我不确定该怎么做。 I've been trying with something like this: 我一直在尝试这样的事情:

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

But I keep getting error messages like: 但是我不断收到错误消息,例如:

error - resource is nil

Does anyone know how this should be formatted so that Grahame's server will accept the upload? 有谁知道应如何格式化,以便Grahame的服务器可以接受上传?

Preferably I'd rather use JSON over XML, but if I could get either working I'd be happy. 最好是我宁愿使用XML之上的JSON,但是如果我能工作的话,我会很高兴。

First of all, start with one of the existing examples, such as this one: http://hl7.org/implement/standards/fhir/patient-example.xml.html . 首先,从一个现有示例开始,例如以下示例: http : //hl7.org/implement/standards/fhir/ Patient-example.xml.html

You should be able to simply post this xml to http://fhir.healthintersections.com.au/open/Patient , though you have to get the content type correct: application/xml+fhir 您应该可以简单地将此xml发布到http://fhir.healthintersections.com.au/open/Patient ,尽管您必须正确设置内容类型:application / xml + fhir

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM