FHIR 配置 json 格式
FHIR profiled json format
基本患者资源具有基数为 0 -> 很多的标识符。
我们有基于 Patient 的配置文件,其中我们有标识符 1 -> 1.
那么输出 json 应该是什么样子的?
"identifier": {
"system" : "some-system.url",
"code" : "code121"
}
作为json对象或
"identifier": [
{
"system" : "some-system.url",
"code" : "code121"
}
]
作为数组
看https://www.hl7.org/fhir/profiling.html#cardinality
"Note that though a profile can constrain an element from x..* to x..1, this doesn't make any difference to the representation in the JSON format - the element will still be represented in an array."
基本患者资源具有基数为 0 -> 很多的标识符。 我们有基于 Patient 的配置文件,其中我们有标识符 1 -> 1.
那么输出 json 应该是什么样子的?
"identifier": {
"system" : "some-system.url",
"code" : "code121"
}
作为json对象或
"identifier": [
{
"system" : "some-system.url",
"code" : "code121"
}
]
作为数组
看https://www.hl7.org/fhir/profiling.html#cardinality "Note that though a profile can constrain an element from x..* to x..1, this doesn't make any difference to the representation in the JSON format - the element will still be represented in an array."