20.5.12. API: update
支持制作者和消费者
更新 API 在语法中定义,如下所示:
fhir:update/methodName?[parameters]
fhir:update/methodName?[parameters]
下表中列出了 2 方法,后跟每种方法的详细语法。(API 方法可以有一个简写别名名称,可以在语法而不是名称中使用。)
方法 | 描述 |
---|---|
使用 id 更新服务器上的 IBaseResource | |
通过搜索 url 更新服务器上的 IBaseResource |
20.5.12.1. 方法资源 复制链接链接已复制到粘贴板!
签名:
- ca.uhn.fhir.rest.api.MethodOutcome resource (String resourceAsString, String stringId, ca.uhn.fhir.rest.api.api.PreferReturnEnum preferReturn, java.util.Map<org.camel.component.fhir.api.ExtraParameters, Object> extraParameters);
- ca.uhn.fhir.rest.api.MethodOutcome resource (String resourceAsString, org.hl7.fhir.instance.model.api.IIdType id, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, java.util.Map<org.camel.componentfel.componentfel.component.
- ca.uhn.fhir.rest.api.MethodOutcome resource (org.hl7.fhir.instance.model.api.IBaseResource 资源, String stringId, ca.uhn.fhir.rest.api.PreferReturnEnum preferReturn, java.util.Map<org.camel.componentfel.componentfel.componentfapi.api.PreferReturnEnum.
- ca.uhn.fhir.rest.api.MethodOutcome resource (org.hl7.fhir.instance.model.api.IBaseResource 资源, org.hl7.fhir.instance.api.api.IIdType id, ca.uhn.fhir.rest.api.api.PreferReturnEnumReturn, java.util.Map<org.apache.camel.component.fhir.api.ExtraParameters, Object> extraParameters);
fhir/resource API 方法包含下表中列出的参数:
参数 | 描述 | 类型 |
---|---|---|
extraParameters | 如需可以传递的参数的完整列表,请参阅 ExtraParameters。 | map |
id | 引用资源的 IIdType | IIdType |
preferReturn | 服务器是否包括或禁止资源正文作为结果的一部分 | PreferReturnEnum |
resource | 要更新的资源(例如 Patient) | IBaseResource |
resourceAsString | 要更新的资源正文 | 字符串 |
stringId | 引用资源的 ID | 字符串 |