[英]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.