【问题标题】:How to set request field of a BundleEntry of FHIR Model如何设置 FHIR 模型的 BundleEntry 的请求字段
【发布时间】:2021-04-22 17:59:39
【问题描述】:

我正在使用https://pypi.org/project/fhir.resources/,我的目标是设置请求,即:

new_bundle_entry = BundleEntry()
patient_bundle_entry.resource = new_patient.sh_patient // as Patient
patient_bundle_entry.request = xxx

xxx 应该在哪里编码:

"request": {
   "method": "POST",
}

我应该使用什么类来实例化上述内容并设置属性请求?

拜托,任何帮助将不胜感激。

【问题讨论】:

    标签: python-3.x hl7-fhir


    【解决方案1】:
    identif ="identifier=http://hl7.eu/fhir/ig/gk/identifier/"+pilot_id+"/patient|"+user_id
                    method_description = {
                            "method": "POST",
                             "url": "Patient",
                            "ifNoneExist": identif
                    }
                    req = BundleEntryRequest(**method_description)
                    p_bundle_entry.request = req
    

    【讨论】:

      猜你喜欢
      • 2020-11-25
      • 1970-01-01
      • 2019-04-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-18
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多