【发布时间】:2016-08-31 15:05:26
【问题描述】:
所以我有一个来自“$everything”操作的 FHIR 患者包 json: https://www.hl7.org/fhir/operation-patient-everything.html
我现在有兴趣在 FHIR Python 客户端模型上使用 Smart 来更轻松地处理 json 文件。给出的示例如下:
import json
import fhirclient.models.patient as p
with open('path/to/patient.json', 'r') as h:
pjs = json.load(h)
patient = p.Patient(pjs)
patient.name[0].given
# prints patient's given name array in the first `name` property
是否有可能只用一个通用的包对象类来实例化一些东西,以便能够访问包内的不同资源?
【问题讨论】:
-
您好,您有从 FHIR 将数据导入 python 的完整示例吗?您可以分享一下吗?我想了解如何将 FHIR 数据导入 R