Profiles & Operations Index > Profile: Bundle (Search Result)

Profile: Bundle (Search Result)

This profile defines a search result Bundle, reusing the base EHR project’s profile to facilitate standardized query responses.

EHR Simplifier project page: Bundle Searchset EHR

Derived from: Bundle (R4)

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work

Differential View

idΣ0..1string
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
identifierΣ0..1Identifier
typeS Σ1..1codeBindingFixed Value
timestampS Σ0..1instant
totalS Σ C0..1unsignedInt
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
relationS Σ1..1string
urlS Σ1..1uri
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
fullUrlS Σ0..1uri
resourceS Σ0..1Resource
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
modeΣ0..1codeBinding
scoreΣ0..1decimal
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
methodΣ1..1codeBinding
urlΣ1..1uri
ifNoneMatchΣ0..1string
ifModifiedSinceΣ0..1instant
ifMatchΣ0..1string
ifNoneExistΣ0..1string
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
statusΣ1..1string
locationΣ0..1uri
etagΣ0..1string
lastModifiedΣ0..1instant
outcomeΣ0..1Resource
signatureΣ0..1Signature

Hybrid View

idΣ0..1string
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
identifierΣ0..1Identifier
typeS Σ1..1codeBindingFixed Value
timestampS Σ0..1instant
totalS Σ C0..1unsignedInt
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
relationS Σ1..1string
urlS Σ1..1uri
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
fullUrlS Σ0..1uri
resourceS Σ0..1Resource
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
modeΣ0..1codeBinding
scoreΣ0..1decimal
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
methodΣ1..1codeBinding
urlΣ1..1uri
ifNoneMatchΣ0..1string
ifModifiedSinceΣ0..1instant
ifMatchΣ0..1string
ifNoneExistΣ0..1string
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
statusΣ1..1string
locationΣ0..1uri
etagΣ0..1string
lastModifiedΣ0..1instant
outcomeΣ0..1Resource
signatureΣ0..1Signature

Snapshot View

idΣ0..1string
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
identifierΣ0..1Identifier
typeS Σ1..1codeBindingFixed Value
timestampS Σ0..1instant
totalS Σ C0..1unsignedInt
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
relationS Σ1..1string
urlS Σ1..1uri
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
fullUrlS Σ0..1uri
resourceS Σ0..1Resource
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
modeΣ0..1codeBinding
scoreΣ0..1decimal
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
methodΣ1..1codeBinding
urlΣ1..1uri
ifNoneMatchΣ0..1string
ifModifiedSinceΣ0..1instant
ifMatchΣ0..1string
ifNoneExistΣ0..1string
id0..1string
extensionC0..*Extension
modifierExtensionΣ ?! C0..*Extension
statusΣ1..1string
locationΣ0..1uri
etagΣ0..1string
lastModifiedΣ0..1instant
outcomeΣ0..1Resource
signatureΣ0..1Signature

Table View

Bundle..
Bundle.type..
Bundle.timestamp..
Bundle.total..
Bundle.link..
Bundle.link.relation..
Bundle.link.url..
Bundle.entry..
Bundle.entry.fullUrl..
Bundle.entry.resource..

JSON View

{
"resourceType": "StructureDefinition",
"id": "BundleSearchset",
"url": "http://ontariohealth.ca/fhir/ehr/StructureDefinition/profile-bundle-searchset",
"version": "1.0.0",
"name": "BundleSearchsetEHR",
"title": "Bundle Searchset EHR",
"status": "active",
"description": "The Bundle Searchset resource captures the search result from the server.",
"fhirVersion": "4.0.1",
"kind": "resource",
"abstract": false,
"type": "Bundle",
"baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
"derivation": "constraint",
"element": [
{
"id": "Bundle.type",
"path": "Bundle.type",
"fixedCode": "searchset",
"mustSupport": true
},
{
"id": "Bundle.timestamp",
"path": "Bundle.timestamp",
"mustSupport": true
},
{
"id": "Bundle.total",
"path": "Bundle.total",
"mustSupport": true
},
{
"id": "Bundle.link",
"path": "Bundle.link",
"mustSupport": true
},
{
"id": "Bundle.link.relation",
"path": "Bundle.link.relation",
"mustSupport": true
},
{
"id": "Bundle.link.url",
"path": "Bundle.link.url",
"mustSupport": true
},
{
"id": "Bundle.entry",
"path": "Bundle.entry",
"mustSupport": true
},
{
"id": "Bundle.entry.fullUrl",
"path": "Bundle.entry.fullUrl",
"mustSupport": true
},
{
"id": "Bundle.entry.resource",
"path": "Bundle.entry.resource",
"mustSupport": true
}
]
}
}

Usage

A Bundle resource is used to package together a collection of FHIR instances to be sent from one system to another. The Bundle SHALL have an entry for each of the FHIR Resources required to convey information about the business event.

This resource captures the search result of medication document bundles returned from the server.

Notes

The following rules apply to DHDR searchset type Bundles.

.type

  • declares that the Bundle contains a searchset result
  • populate with a fixed value: searchset

Note: A set of search results (type = searchset) consists of a series of zero or more entries. Each entry element will contain a resource. Bundle.total may be used to return the total number of resources that match the search, and that may be returned by following the next link.

.link

  • a series of links that provide context to this bundle. This is used to support paging.

.link.relation

  • self for the link to the this Bundle next for the link to the next page

.entry

  • each entry contains a DHDR FHIR Resource required to convey information about the business event

.entry.fullUrl

  • each entry in the Bundle SHALL have a fullUrl which is the identity of the resource in the entry

.entry.resource

  • SHALL be populated with the resource for this entry

.entry.request

  • SHALL NOT be populated

.entry.response

  • SHALL NOT be populated