简体   繁体   English

将现有资源映射到hl7-fhir响应

[英]Mapping existing resource to hl7-fhir response

Trying to understand the concept of the code datatype in hl7-fhir. 试图了解hl7-fhir中的code数据类型的概念。 Looking at the appointment ( https://www.hl7.org/fhir/appointment.html ) resource as an example it has a status parameter with suggested values of "proposed | pending | booked" etc. 以约会( https://www.hl7.org/fhir/appointment.html )资源为例,它的status参数的建议值为“建议|待定|已预订”等。

Given an existing database with it's own custom status' (Attended, Confirmed, Attended but late) what is the correct way to handle a hl7-fhir response to a consumer? 给定具有自己的自定义状态的现有数据库”(参加,确认,参加但很晚),处理对消费者的hl7-fhir响应的正确方法是什么?

If the "code" data type is used, then the FHIR binding strength is always "required" - which means you are required to use the FHIR-defined list of codes and no others. 如果使用“代码”数据类型,则始终“需要” FHIR绑定强度-这意味着您需要使用FHIR定义的代码列表,而不能使用其他列表。

It appears that two of your statuses - "Attended" and "Attended but late" aren't actually statuses of the appointment - the booking, but are instead commentary about the resulting encounter. 看来,您的两个状态-“已参加”和“已参加但迟到”实际上不是约会的状态-预订,而是对结果相遇的评论。 So I would capture those as extensions. 因此,我将这些作为扩展。 "confirmed" sounds similar to "booked", though I'd need to know the definition to know for sure. “已确认”听起来类似于“已预订”,尽管我需要确定定义才能确定。 Do you have any appointment statuses for appointments that are not yet confirmed (let alone attended)? 您是否有尚未确认的约会的约会状态(更不用说参加了)?

To extend on Lloyds notes, you will want to put the extension under the status property, and map your existing values to the provided FHIR values, and put your local actual value in the extension underneath. 要扩展Lloyds注释,您需要将扩展​​名放在status属性下,并将现有值映射到提供的FHIR值,并将本地实际值放在扩展名下。

This way when other systems read the resource and don't know about your extension status values, they will still be able to act sensibly based on the core values. 这样,当其他系统读取资源并且不知道您的扩展状态值时,它们仍将能够根据核心值明智地采取行动。

<status value="fulfilled">
  <extension url="http://yourorg.com/fhir/.../ExtendedAppointmentStatuses">
    <valueCoding>
      <code value="abl" />
      <display value="Attended but late" />
    </valueCoding> 
  </extension>
</status>

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

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