如何连接属于同一时间的 FHIR 包资源中的条目?
How to connect entries in a FHIR bundle resource belonging to the same time?
例如,对于 'Observation' 资源,我想要一个用于 'blood pressure' 观察的包,其中将包括 'systolic' 和 'diastolic'。在捆绑包中,我有多个日期的观察结果。如何连接属于同一日期的 'systolic' 和 'diastolic' 个观测值?
{
"resourceType": "Bundle",
"title": "Multiple observations",
"link": [
{
"rel": "self",
"href": "http://localhost:3000/api/users/1/observations/bloodPressure?access_token=7ef61a51358a60fe875ca4a9ab3114c06d5818c25936f51bd420a5d1e025f0ee&end=2015-04-06T23:59&nocache=1441806074364&resolution=86400&start=2015-04-05T00:00&fhir=true"
}
],
"updated": "2015-09-09T15:14:10+00:00",
"entry": [
{
"subject": {
"reference": "/api/users/1"
},
"resourceType": "Observation",
"name": {
"coding": {
"system": "http://loinc.org",
"code": "8480-6",
"display": "BP sys"
}
},
"valueQuantity": {
"value": 125,
"units": "mm Hg",
"system": "http://unitsofmeasure.org",
"code": "mm[Hg]"
},
"status": "final",
"reliability": "ok",
"appliesDateTime": "2015-04-05T14:44:00+00:00"
},
{
"subject": {
"reference": "/api/users/1"
},
"resourceType": "Observation",
"name": {
"coding": {
"system": "http://loinc.org",
"code": "8480-6",
"display": "BP sys"
}
},
"valueQuantity": {
"value": 125,
"units": "mm Hg",
"system": "http://unitsofmeasure.org",
"code": "mm[Hg]"
},
"status": "final",
"reliability": "ok",
"appliesDateTime": "2015-04-06T09:25:00+00:00"
},
{
"subject": {
"reference": "/api/users/1"
},
"resourceType": "Observation",
"name": {
"coding": {
"system": "http://loinc.org",
"code": "8462-4",
"display": "BP dias"
}
},
"valueQuantity": {
"value": 78,
"units": "mm Hg",
"system": "http://unitsofmeasure.org",
"code": "mm[Hg]"
},
"status": "final",
"reliability": "ok",
"appliesDateTime": "2015-04-05T14:44:00+00:00"
},
{
"subject": {
"reference": "/api/users/1"
},
"resourceType": "Observation",
"name": {
"coding": {
"system": "http://loinc.org",
"code": "8462-4",
"display": "BP dias"
}
},
"valueQuantity": {
"value": 78,
"units": "mm Hg",
"system": "http://unitsofmeasure.org",
"code": "mm[Hg]"
},
"status": "final",
"reliability": "ok",
"appliesDateTime": "2015-04-06T09:25:00+00:00"
}
]
}
我看过this example,但我还是不太清楚。
在 DSTU 2 中,我们带回了 Observation.component 因此实际上应该将收缩压和舒张压作为整体血压观察的组成部分进行捕获。如果您使用的是中间版本之一,您仍然希望有一个代表整体血压的观察值,然后是该观察值与收缩压和舒张压的关系。这将建立联系。
例如,对于 'Observation' 资源,我想要一个用于 'blood pressure' 观察的包,其中将包括 'systolic' 和 'diastolic'。在捆绑包中,我有多个日期的观察结果。如何连接属于同一日期的 'systolic' 和 'diastolic' 个观测值?
{
"resourceType": "Bundle",
"title": "Multiple observations",
"link": [
{
"rel": "self",
"href": "http://localhost:3000/api/users/1/observations/bloodPressure?access_token=7ef61a51358a60fe875ca4a9ab3114c06d5818c25936f51bd420a5d1e025f0ee&end=2015-04-06T23:59&nocache=1441806074364&resolution=86400&start=2015-04-05T00:00&fhir=true"
}
],
"updated": "2015-09-09T15:14:10+00:00",
"entry": [
{
"subject": {
"reference": "/api/users/1"
},
"resourceType": "Observation",
"name": {
"coding": {
"system": "http://loinc.org",
"code": "8480-6",
"display": "BP sys"
}
},
"valueQuantity": {
"value": 125,
"units": "mm Hg",
"system": "http://unitsofmeasure.org",
"code": "mm[Hg]"
},
"status": "final",
"reliability": "ok",
"appliesDateTime": "2015-04-05T14:44:00+00:00"
},
{
"subject": {
"reference": "/api/users/1"
},
"resourceType": "Observation",
"name": {
"coding": {
"system": "http://loinc.org",
"code": "8480-6",
"display": "BP sys"
}
},
"valueQuantity": {
"value": 125,
"units": "mm Hg",
"system": "http://unitsofmeasure.org",
"code": "mm[Hg]"
},
"status": "final",
"reliability": "ok",
"appliesDateTime": "2015-04-06T09:25:00+00:00"
},
{
"subject": {
"reference": "/api/users/1"
},
"resourceType": "Observation",
"name": {
"coding": {
"system": "http://loinc.org",
"code": "8462-4",
"display": "BP dias"
}
},
"valueQuantity": {
"value": 78,
"units": "mm Hg",
"system": "http://unitsofmeasure.org",
"code": "mm[Hg]"
},
"status": "final",
"reliability": "ok",
"appliesDateTime": "2015-04-05T14:44:00+00:00"
},
{
"subject": {
"reference": "/api/users/1"
},
"resourceType": "Observation",
"name": {
"coding": {
"system": "http://loinc.org",
"code": "8462-4",
"display": "BP dias"
}
},
"valueQuantity": {
"value": 78,
"units": "mm Hg",
"system": "http://unitsofmeasure.org",
"code": "mm[Hg]"
},
"status": "final",
"reliability": "ok",
"appliesDateTime": "2015-04-06T09:25:00+00:00"
}
]
}
我看过this example,但我还是不太清楚。
在 DSTU 2 中,我们带回了 Observation.component 因此实际上应该将收缩压和舒张压作为整体血压观察的组成部分进行捕获。如果您使用的是中间版本之一,您仍然希望有一个代表整体血压的观察值,然后是该观察值与收缩压和舒张压的关系。这将建立联系。