SMART Base
0.1.0 - ci-build

SMART Base, published by WHO. This guide is not an authorized publication; it is the continuous build for version 0.1.0 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/WorldHealthOrganization/smart-base/tree/main and changes regularly. See the Directory of published versions

Resource Profile: SMART Guidelines Transaction

Official URL: http://smart.who.int/base/StructureDefinition/SGTransaction Version: 0.1.0
Draft as of 2025-03-31 Computable Name: SGTransaction

SMART Guidelines Transaction Definition

Usage:

  • This Resource Profile is not used by any profiles in this Implementation Guide

Formal Views of Profile Content

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

NameFlagsCard.TypeDescription & Constraintsdoco
.. GraphDefinition C 0..* SGGraphDefinition Definition of a graph of resources
dom-2: If the resource is contained in another resource, it SHALL NOT contain nested Resources
dom-3: If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
dom-4: If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
dom-5: If a resource is contained in another resource, it SHALL NOT have a security label
dom-6: A resource should have narrative for robust management
gdf-0: Name should be usable as an identifier for the module by machine processing applications such as code generation
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
ele-1: All FHIR elements must have a @value or children
... Slices for extension 2..* Extension Extension
Slice: Unordered, Open by value:url
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... extension:node S 2..2 (Complex) Extension
URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-GraphDefinition.node
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
.... extension:node/source S 1..1 (Complex) Extension
URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-GraphDefinition.node
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
..... Slices for extension 3..* Extension Extension
Slice: Unordered, Open by value:url
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
...... extension:nodeId 0..* Extension Extension
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension 0..0
....... url 1..1 uri "nodeId"
....... value[x] 1..1 id Value of extension
ele-1: All FHIR elements must have a @value or children
Required Pattern: source
...... extension:description 0..* Extension Extension
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension 0..0
....... url 1..1 uri "description"
....... value[x] 1..1 string Value of extension
ele-1: All FHIR elements must have a @value or children
...... extension:type 0..* Extension Extension
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension 0..0
....... url 1..1 uri "type"
....... value[x] 1..1 code Value of extension
ele-1: All FHIR elements must have a @value or children
Required Pattern: ActorDefinition
...... extension:profile 0..* Extension Extension
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension 0..0
....... url 1..1 uri "profile"
....... value[x] 1..1 canonical(StructureDefinition) Value of extension
ele-1: All FHIR elements must have a @value or children
...... extension:actor S 1..* Reference(SGActor) Extension
URL: http://smart.who.int/base/StructureDefinition/SGActorExt
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
..... url 1..1 uri "http://hl7.org/fhir/5.0/StructureDefinition/extension-GraphDefinition.node"
.... extension:node/target S 1..1 (Complex) Extension
URL: http://hl7.org/fhir/5.0/StructureDefinition/extension-GraphDefinition.node
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
..... Slices for extension 3..* Extension Extension
Slice: Unordered, Open by value:url
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
...... extension:nodeId 0..* Extension Extension
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension 0..0
....... url 1..1 uri "nodeId"
....... value[x] 1..1 id Value of extension
ele-1: All FHIR elements must have a @value or children
Required Pattern: target
...... extension:description 0..* Extension Extension
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension 0..0
....... url 1..1 uri "description"
....... value[x] 1..1 string Value of extension
ele-1: All FHIR elements must have a @value or children
...... extension:type 0..* Extension Extension
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension 0..0
....... url 1..1 uri "type"
....... value[x] 1..1 code Value of extension
ele-1: All FHIR elements must have a @value or children
Required Pattern: ActorDefinition
...... extension:profile 0..* Extension Extension
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension 0..0
....... url 1..1 uri "profile"
....... value[x] 1..1 canonical(StructureDefinition) Value of extension
ele-1: All FHIR elements must have a @value or children
...... extension:actor S 1..* Reference(SGActor) Extension
URL: http://smart.who.int/base/StructureDefinition/SGActorExt
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
..... url 1..1 uri "http://hl7.org/fhir/5.0/StructureDefinition/extension-GraphDefinition.node"
... modifierExtension ?! 0..* Extension Extensions that cannot be ignored
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
... status ?!SΣ 1..1 code draft | active | retired | unknown
Binding: PublicationStatus (required): The lifecycle status of an artifact.


ele-1: All FHIR elements must have a @value or children
... experimental Σ 1..1 boolean For testing purposes, not real usage
ele-1: All FHIR elements must have a @value or children
... description 1..1 markdown Natural language description of the graph definition
ele-1: All FHIR elements must have a @value or children
... start Σ 1..1 code Type of resource at which the graph starts
Binding: ResourceType (required): One of the resource types defined as part of this version of FHIR.


ele-1: All FHIR elements must have a @value or children
... link 1..1 BackboneElement Links this graph makes rules about
ele-1: All FHIR elements must have a @value or children
.... Slices for extension 7..* Extension Extension
Slice: Unordered, Open by value:url
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
..... extension:sourceId 0..* (Complex) Extension
URL: http://smart.who.int/base/StructureDefinition/LinkIdExt
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
...... extension 0..0
...... url 1..1 uri "http://smart.who.int/base/StructureDefinition/LinkIdExt"
...... value[x] 0..1 id Value of extension
ele-1: All FHIR elements must have a @value or children
Required Pattern: source
..... extension:targetId 0..* (Complex) Extension
URL: http://smart.who.int/base/StructureDefinition/LinkIdExt
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
...... extension 0..0
...... url 1..1 uri "http://smart.who.int/base/StructureDefinition/LinkIdExt"
...... value[x] 0..1 id Value of extension
ele-1: All FHIR elements must have a @value or children
Required Pattern: target
..... extension:requestTrigger S 1..* (Complex) Extension
URL: http://smart.who.int/base/StructureDefinition/SGDocumentation
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
...... Slices for extension 2..* Extension Extension
Slice: Unordered, Open by value:url
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension:code 1..1 (Complex) Extension
URL: http://smart.who.int/base/StructureDefinition/SGcode
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
........ extension 0..0
........ url 1..1 uri "http://smart.who.int/base/StructureDefinition/SGcode"
........ value[x] S 1..1 Coding Value of extension
ele-1: All FHIR elements must have a @value or children
Required Pattern: At least the following
......... system 1..1 uri Identity of the terminology system
Fixed Value: http://smart.who.int/base/CodeSystem/DocumentationSections
......... code 1..1 code Symbol in syntax defined by the system
Fixed Value: request-trigger
......... system Σ 1..1 uri Identity of the terminology system
ele-1: All FHIR elements must have a @value or children
......... code Σ 1..1 code Symbol in syntax defined by the system
ele-1: All FHIR elements must have a @value or children
....... extension:doc 1..1 markdown Extension
URL: http://smart.who.int/base/StructureDefinition/SGMarkdown
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension:requirements 0..* Reference(SGRequirements) Extension
URL: http://smart.who.int/base/StructureDefinition/SGRequirementExt
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
...... url 1..1 uri "http://smart.who.int/base/StructureDefinition/SGDocumentation"
..... extension:requestSemantics S 1..* (Complex) Extension
URL: http://smart.who.int/base/StructureDefinition/SGDocumentation
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
...... Slices for extension 2..* Extension Extension
Slice: Unordered, Open by value:url
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension:code 1..1 (Complex) Extension
URL: http://smart.who.int/base/StructureDefinition/SGcode
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
........ extension 0..0
........ url 1..1 uri "http://smart.who.int/base/StructureDefinition/SGcode"
........ value[x] S 1..1 Coding Value of extension
ele-1: All FHIR elements must have a @value or children
Required Pattern: At least the following
......... system 1..1 uri Identity of the terminology system
Fixed Value: http://smart.who.int/base/CodeSystem/DocumentationSections
......... code 1..1 code Symbol in syntax defined by the system
Fixed Value: request-semantics
......... system Σ 1..1 uri Identity of the terminology system
ele-1: All FHIR elements must have a @value or children
......... code Σ 1..1 code Symbol in syntax defined by the system
ele-1: All FHIR elements must have a @value or children
....... extension:doc 1..1 markdown Extension
URL: http://smart.who.int/base/StructureDefinition/SGMarkdown
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension:requirements 0..* Reference(SGRequirements) Extension
URL: http://smart.who.int/base/StructureDefinition/SGRequirementExt
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
...... url 1..1 uri "http://smart.who.int/base/StructureDefinition/SGDocumentation"
..... extension:requestActions S 1..* (Complex) Extension
URL: http://smart.who.int/base/StructureDefinition/SGDocumentation
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
...... Slices for extension 2..* Extension Extension
Slice: Unordered, Open by value:url
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension:code 1..1 (Complex) Extension
URL: http://smart.who.int/base/StructureDefinition/SGcode
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
........ extension 0..0
........ url 1..1 uri "http://smart.who.int/base/StructureDefinition/SGcode"
........ value[x] S 1..1 Coding Value of extension
ele-1: All FHIR elements must have a @value or children
Required Pattern: At least the following
......... system 1..1 uri Identity of the terminology system
Fixed Value: http://smart.who.int/base/CodeSystem/DocumentationSections
......... code 1..1 code Symbol in syntax defined by the system
Fixed Value: request-actions
......... system Σ 1..1 uri Identity of the terminology system
ele-1: All FHIR elements must have a @value or children
......... code Σ 1..1 code Symbol in syntax defined by the system
ele-1: All FHIR elements must have a @value or children
....... extension:doc 1..1 markdown Extension
URL: http://smart.who.int/base/StructureDefinition/SGMarkdown
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension:requirements 0..* Reference(SGRequirements) Extension
URL: http://smart.who.int/base/StructureDefinition/SGRequirementExt
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
...... url 1..1 uri "http://smart.who.int/base/StructureDefinition/SGDocumentation"
..... extension:responseTrigger S 1..* (Complex) Extension
URL: http://smart.who.int/base/StructureDefinition/SGDocumentation
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
...... Slices for extension 2..* Extension Extension
Slice: Unordered, Open by value:url
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension:code 1..1 (Complex) Extension
URL: http://smart.who.int/base/StructureDefinition/SGcode
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
........ extension 0..0
........ url 1..1 uri "http://smart.who.int/base/StructureDefinition/SGcode"
........ value[x] S 1..1 Coding Value of extension
ele-1: All FHIR elements must have a @value or children
Required Pattern: At least the following
......... system 1..1 uri Identity of the terminology system
Fixed Value: http://smart.who.int/base/CodeSystem/DocumentationSections
......... code 1..1 code Symbol in syntax defined by the system
Fixed Value: response-trigger
......... system Σ 1..1 uri Identity of the terminology system
ele-1: All FHIR elements must have a @value or children
......... code Σ 1..1 code Symbol in syntax defined by the system
ele-1: All FHIR elements must have a @value or children
....... extension:doc 1..1 markdown Extension
URL: http://smart.who.int/base/StructureDefinition/SGMarkdown
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension:requirements 0..* Reference(SGRequirements) Extension
URL: http://smart.who.int/base/StructureDefinition/SGRequirementExt
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
...... url 1..1 uri "http://smart.who.int/base/StructureDefinition/SGDocumentation"
..... extension:responseSemantics S 1..* (Complex) Extension
URL: http://smart.who.int/base/StructureDefinition/SGDocumentation
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
...... Slices for extension 2..* Extension Extension
Slice: Unordered, Open by value:url
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension:code 1..1 (Complex) Extension
URL: http://smart.who.int/base/StructureDefinition/SGcode
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
........ extension 0..0
........ url 1..1 uri "http://smart.who.int/base/StructureDefinition/SGcode"
........ value[x] S 1..1 Coding Value of extension
ele-1: All FHIR elements must have a @value or children
Required Pattern: At least the following
......... system 1..1 uri Identity of the terminology system
Fixed Value: http://smart.who.int/base/CodeSystem/DocumentationSections
......... code 1..1 code Symbol in syntax defined by the system
Fixed Value: response-semantics
......... system Σ 1..1 uri Identity of the terminology system
ele-1: All FHIR elements must have a @value or children
......... code Σ 1..1 code Symbol in syntax defined by the system
ele-1: All FHIR elements must have a @value or children
....... extension:doc 1..1 markdown Extension
URL: http://smart.who.int/base/StructureDefinition/SGMarkdown
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension:requirements 0..* Reference(SGRequirements) Extension
URL: http://smart.who.int/base/StructureDefinition/SGRequirementExt
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
...... url 1..1 uri "http://smart.who.int/base/StructureDefinition/SGDocumentation"
..... extension:responseActions S 1..* (Complex) Extension
URL: http://smart.who.int/base/StructureDefinition/SGDocumentation
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
...... Slices for extension 2..* Extension Extension
Slice: Unordered, Open by value:url
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension:code 1..1 (Complex) Extension
URL: http://smart.who.int/base/StructureDefinition/SGcode
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
........ extension 0..0
........ url 1..1 uri "http://smart.who.int/base/StructureDefinition/SGcode"
........ value[x] S 1..1 Coding Value of extension
ele-1: All FHIR elements must have a @value or children
Required Pattern: At least the following
......... system 1..1 uri Identity of the terminology system
Fixed Value: http://smart.who.int/base/CodeSystem/DocumentationSections
......... code 1..1 code Symbol in syntax defined by the system
Fixed Value: response-actions
......... system Σ 1..1 uri Identity of the terminology system
ele-1: All FHIR elements must have a @value or children
......... code Σ 1..1 code Symbol in syntax defined by the system
ele-1: All FHIR elements must have a @value or children
....... extension:doc 1..1 markdown Extension
URL: http://smart.who.int/base/StructureDefinition/SGMarkdown
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension:requirements 0..* Reference(SGRequirements) Extension
URL: http://smart.who.int/base/StructureDefinition/SGRequirementExt
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
...... url 1..1 uri "http://smart.who.int/base/StructureDefinition/SGDocumentation"
..... extension:securityConsiderations S 1..1 (Complex) Extension
URL: http://smart.who.int/base/StructureDefinition/SGDocumentation
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
...... Slices for extension 2..* Extension Extension
Slice: Unordered, Open by value:url
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension:code 1..1 (Complex) Extension
URL: http://smart.who.int/base/StructureDefinition/SGcode
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
........ extension 0..0
........ url 1..1 uri "http://smart.who.int/base/StructureDefinition/SGcode"
........ value[x] S 1..1 Coding Value of extension
ele-1: All FHIR elements must have a @value or children
Required Pattern: At least the following
......... system 1..1 uri Identity of the terminology system
Fixed Value: http://smart.who.int/base/CodeSystem/DocumentationSections
......... code 1..1 code Symbol in syntax defined by the system
Fixed Value: security-considerations
......... system Σ 1..1 uri Identity of the terminology system
ele-1: All FHIR elements must have a @value or children
......... code Σ 1..1 code Symbol in syntax defined by the system
ele-1: All FHIR elements must have a @value or children
....... extension:doc 1..1 markdown Extension
URL: http://smart.who.int/base/StructureDefinition/SGMarkdown
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
....... extension:requirements 0..* Reference(SGRequirements) Extension
URL: http://smart.who.int/base/StructureDefinition/SGRequirementExt
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both
...... url 1..1 uri "http://smart.who.int/base/StructureDefinition/SGDocumentation"
.... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored even if unrecognized
ele-1: All FHIR elements must have a @value or children
ext-1: Must have either extensions or value[x], not both

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
GraphDefinition.statusrequiredPublicationStatus
http://hl7.org/fhir/ValueSet/publication-status|4.0.1
from the FHIR Standard
GraphDefinition.startrequiredResourceType
http://hl7.org/fhir/ValueSet/resource-types|4.0.1
from the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
dom-2errorGraphDefinitionIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorGraphDefinitionIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorGraphDefinitionIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorGraphDefinitionIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceGraphDefinitionA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
gdf-0warningGraphDefinitionName should be usable as an identifier for the module by machine processing applications such as code generation
: name.matches('[A-Z]([A-Za-z0-9_]){0,254}')

 

Other representations of profile: CSV, Excel, Schematron