1

基本患者资源具有基数为 0 -> many 的标识符。我们有基于 Patient 的个人资料,其中我们有标识符 1 -> 1。

那么输出 json 应该是什么样子呢?

"identifier": {
    "system" : "some-system.url",
    "code"   : "code121"
}

作为 json 对象或

 "identifier": [
 {
     "system" : "some-system.url",
     "code"   : "code121"
 }
]

作为数组

4

1 回答 1

2

查看https://www.hl7.org/fhir/profiling.html#cardinality “请注意,虽然配置文件可以将元素从 x..* 限制为 x..1,但这对表示没有任何影响以 JSON 格式 - 元素仍将在数组中表示。”

于 2019-12-27T11:55:56.923 回答