问题
Michael Lei · 四月 27

来自海外社区的问题:如何以流形式获取FHIR资源内容

你好,

我正在寻找一种从FHIR资源检索流数据的方法。在我的情况下,resourceType是“ DocumentReference”,并且与FHIR R4规范中一样存储Base64内容

  “resource” :{
         “ id” “ 66bd8775-68ef-4710-a3a1-03114341a61a”
         “ resourceType” “ DocumentReference”
         “meta” :{
           “profile” :[
]
},
         “ status” “current”
         “content” :[
{
             “attachment” :{
               “ contentType” “ application / pdf”
               “data” “ JVBERi0xLjQKJdPr6 ...

我对数据字段感兴趣,但无法找到合适的方法以流方式访问字段数据的内容。

在向上的步骤中,我使用HS.FHIR.DTL.vR4.Model.Resource.Bundle转换了接收到的FHIR Bundle,以检索bundle对象模型。这样,我就可以使用bundle的内容,现在就可以使用该文档了。但是,使用“数据”的内容都将需要流来检索以进行进一步处理。可以使用任何方法来完成此框架吗?

此致,
塞巴斯蒂安

Get FHIR resource content as stream

Hi,

I am looking for a way to retrieve stream data from a FHIR resource. In my case the resourceType is "DocumentReference" and the the Base64 content is stored just as in the FHIR R4 specification

 "resource": {
        "id""66bd8775-68ef-4710-a3a1-03114341a61a",
        "resourceType""DocumentReference",
        "meta": {
          "profile": [
          ]
        },
        "status""current",
        "content": [
          {
            "attachment": {
              "contentType""application/pdf",
              "data""JVBERi0xLjQKJdPr6...

I am interested in the data field but was not able to find a suitable method yet to access the contents of field data as a stream.

In an upward process step I´ve transformed the received FHIR bundle using HS.FHIR.DTL.vR4.Model.Resource.Bundle to retrieve a bundle object model. That way I was able to work with the contents of the bundle and am now at the point to use the document. Anyway using the contents of "data" would require a stream to retrieve for further processing. Is there any way the framework can be used to accomplish this?

best regards,
sebastian

00
1 0 0 16
Log in or sign up to continue