19.5.9. API: read
支持制作者和消费者
读取 API 在语法中定义,如下所示:
fhir:read/methodName?[parameters]
下表中列出了 2 方法,后面列出了每种方法的详细语法。(API 方法可以有一个简写的别名名称,可在语法中使用,而不是名称。)
方法 | Alias | 描述 |
---|---|---|
19.5.9.1. 方法 resourceById
签名:
- org.hl7.fhir.instance.model.api.IBaseResource resourceById(Class<org.hl7.fhir.instance.model.api.IBaseResource> resource, Long longId, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.BaseResource> resource, returnResource boolean throwError, java.util.Map<org.apache.camel.component.fhir.api.ExtraParameters, Object> extraParameters);
- org.hl7.fhir.instance.model.api.IBaseResource resourceById(Class<org.hl7.hl7.fhir.instance.model.api.IBaseResource> resource, String stringId, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.api.BaseResource> resource, return boolean throwError, java.util.Map<org.apache.camel.component.fhir.api.ExtraParameters, Object> extraParameters);
- org.hl7.fhir.instance.model.api.IBaseResource resourceById(Class<org.hl7.fhir.instance.model.api.IBaseResource> 资源, org.hl7.fhir.instance.model.api.IIdType id, String ifVersionMatches, 布尔值 returnNull,org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, java.util.Map<org.apache.camel.component.fhir.api.ExtraParameters, Object> extraParameters);
- org.hl7.fhir.instance.model.api.IBaseResource resourceById(String resourceClass, Long longId, Long longId, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, Boolean throwError, java.util.Map<org.apache.camelf.h.api.hir>, extraParamer>, extraParam
- org.hl7.fhir.model.api.IBaseResource resourceById(String resourceClass, String stringId, String ifVersionMatches, String version, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource returnResource, throw throwError, java.util.Map<org.apache.camel.component.fhir.api.ExtraParameters, Object> extraParameters);
- org.hl7.fhir.instance.model.api.IBaseResource resourceById(String resourceClass, org.hl7.fhir.instance.model.api.IIdType id, String ifVersionMatches, Boolean returnNull, org.hl7.fhir.instance.model.api.IBaseResource, returnResource boolean throwError, java.util.Map<org.apache.camel.component.fhir.api.ExtraParameters, Object> extraParameters);
fhir/resourceById API 方法具有下表中列出的参数:
参数 | 描述 | 类型 |
---|---|---|
extraParameters | map | |
id | IIdType | |
ifVersionMatches | 字符串 | |
longId | Long | |
resource | 类 | |
resourceClass | 字符串 | |
returnNull | 布尔值 | |
returnResource | IBaseResource | |
stringId | 字符串 | |
throwError | 布尔值 | |
version | 字符串 |