简体   繁体   English

如何使用HL7 FHIR自定义标签?

[英]How do I use a HL7 FHIR custom tag?

Idea: I would like to store the change action on each version of my FHIR Patient resource. 想法:我想将更改操作存储在我的FHIR患者资源的每个版本上。 For example, when it is created, the action is 'Created'. 例如,创建后,操作为“已创建”。 By similar token, if the subsequent actions on the same resource are 'updated', 'deleted' and 'restored from deleted', the action of each version of the same resource will be 'Updated', 'Deleted' and 'Restored'. 同样,如果对同一资源的后续操作被“更新”,“删除”和“从删除还原”,则同一资源的每个版本的操作将被“更新”,“删除”和“恢复”。

Implementation: We are thinking to put the 'Action' into a customer defined resource.meta.tag. 实施:我们正在考虑将“操作”放入客户定义的resource.meta.tag中。 An example is shown below. 一个例子如下所示。

"tag" : [ 
        {
            "system" : "hxxp://mydomain/fhir/custom_tag/SystemActionStatus",
            "code" : "Updated"
        }
    ]

Questions: 问题:

  1. Is this the right usage and approach to use meta.tag for the system action idea? 这是将meta.tag用于系统操作构想的正确用法和方法吗? If not, what should I use? 如果没有,我应该怎么用?
  2. Does FHIR allow custom meta.tag? FHIR是否允许自定义meta.tag?
  3. I tried to implement the above, but we got error when testing with a testing tool. 我尝试实现上述方法,但是使用测试工具进行测试时出现错误。 Do I need to provide the code definition under hxxp://mydomain/fhir/custom_tag/SystemActionStatus such that a system can access the custom tag to find the definition of each code (created, updated, deleted and restored)? 我是否需要在hxxp:// mydomain / fhir / custom_tag / SystemActionStatus下提供代码定义,以便系统可以访问自定义标签以查找每个代码的定义(创建,更新,删除和还原)?

Any suggestions or links are high appreciated. 任何建议或链接,高度赞赏。

  1. No, I think there are better approaches. 不,我认为有更好的方法。

    • If you need to communicate this data to other systems the FHIR way, you can use the AuditEvent resource to capture this data. 如果需要以FHIR方式将此数据传达给其他系统,则可以使用AuditEvent资源来捕获此数据。
    • If it's just for internal storage, you could use an extra database table, and store it outside of the resources. 如果仅用于内部存储,则可以使用额外的数据库表,并将其存储在资源之外。
  2. Yes

  3. No, you don't have to do that. 不,您不必这样做。 Check the error from server you sent this to, to see why you couldn't put the tag on the resource. 检查您将其发送到的服务器中的错误,以了解为什么无法将标签放在资源上。

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

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