PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
BASE
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# Describes the results of a TestScript execution
CLOSED {
a [fhir:TestReport];
fhir:nodeRole [fhir:treeRoot]?;
fhir:Resource.id id?; # Logical id of this artifact
fhir:Resource.meta @?; # Metadata about the resource
fhir:Resource.implicitRules @?; # A set of rules under which this
# content was created
fhir:Resource.language @?; # Language of the resource content
fhir:DomainResource.text @?; # Text summary of the resource, for
# human interpretation
fhir:DomainResource.contained @*; # Contained, inline Resources
fhir:DomainResource.extension @*; # Additional content defined by
# implementations
fhir:DomainResource.modifierExtension @*; # Extensions that cannot be ignored
fhir:TestReport.identifier @?; # External identifier
fhir:TestReport.name @?; # Informal name of the executed
# TestScript
fhir:TestReport.status @ AND
{fhir:value @fhirvs:report-status-codes}; # completed | in-progress | waiting
# | stopped | entered-in-error
fhir:TestReport.testScript @; # Reference to the version-specific
# TestScript that was executed to
# produce this TestReport
fhir:TestReport.result @ AND
{fhir:value @fhirvs:report-result-codes}; # pass | fail | pending
fhir:TestReport.score @?; # The final score (percentage of
# tests passed) resulting from the
# execution of the TestScript
fhir:TestReport.tester @?; # Name of the tester producing this
# report (Organization or
# individual)
fhir:TestReport.issued @?; # When the TestScript was executed
# and this TestReport was generated
fhir:TestReport.participant @*; # A participant in the test
# execution, either the execution
# engine, a client, or a server
fhir:TestReport.setup @?; # The results of the series of
# required setup operations before
# the tests were executed
fhir:TestReport.test @*; # A test executed from the test
# script
fhir:TestReport.teardown @?; # The results of running the series
# of required clean up steps
fhir:index xsd:integer? # Relative position in a list
}
# A test executed from the test script
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:TestReport.test.name @?; # Tracking/logging name of this test
fhir:TestReport.test.description @?; # Tracking/reporting short
# description of the test
fhir:TestReport.test.action @+; # A test operation or assert that
# was performed
fhir:index xsd:integer? # Relative position in a list
}
# A participant in the test execution, either the execution engine, a client, or a server
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:TestReport.participant.type @ AND
{fhir:value @fhirvs:report-participant-type}; # test-engine | client | server
fhir:TestReport.participant.uri @; # The uri of the participant. An
# absolute URL is preferred
fhir:TestReport.participant.display @?; # The display name of the participant
fhir:index xsd:integer? # Relative position in a list
}
# The results of the series of required setup operations before the tests were executed
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:TestReport.setup.action @+; # A setup operation or assert that
# was executed
fhir:index xsd:integer? # Relative position in a list
}
# The results of running the series of required clean up steps
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:TestReport.teardown.action @+; # One or more teardown operations
# performed
fhir:index xsd:integer? # Relative position in a list
}
# A test operation or assert that was performed
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:TestReport.test.action.operation @?; # The operation performed
fhir:TestReport.test.action.assert @?; # The assertion performed
fhir:index xsd:integer? # Relative position in a list
}
# One or more teardown operations performed
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:TestReport.teardown.action.operation @; # The teardown operation performed
fhir:index xsd:integer? # Relative position in a list
}
# A setup operation or assert that was executed
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:TestReport.setup.action.operation @?; # The operation to perform
fhir:TestReport.setup.action.assert @?; # The assertion to perform
fhir:index xsd:integer? # Relative position in a list
}
# The assertion performed
CLOSED {
fhir:index xsd:integer? # Relative position in a list
}
# The operation performed
CLOSED {
fhir:index xsd:integer? # Relative position in a list
}
# The assertion to perform
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:TestReport.setup.action.assert.result @ AND
{fhir:value @fhirvs:report-action-result-codes}; # pass | skip | fail | warning |
# error
fhir:TestReport.setup.action.assert.message @?; # A message associated with the
# result
fhir:TestReport.setup.action.assert.detail @?; # A link to further details on the
# result
fhir:index xsd:integer? # Relative position in a list
}
# The operation to perform
CLOSED {
fhir:Element.id string?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored
# even if unrecognized
fhir:TestReport.setup.action.operation.result @ AND
{fhir:value @fhirvs:report-action-result-codes}; # pass | skip | fail | warning |
# error
fhir:TestReport.setup.action.operation.message @?; # A message associated with the
# result
fhir:TestReport.setup.action.operation.detail @?; # A link to further details on the
# result
fhir:index xsd:integer? # Relative position in a list
}
# The teardown operation performed
CLOSED {
fhir:index xsd:integer? # Relative position in a list
}
#---------------------- Data Types -------------------
# Primitive Type dateTime
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value dateTime?; # Primitive value for dateTime
fhir:index xsd:integer? # Relative position in a list
}
# Metadata about a resource
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Meta.versionId @?; # Version specific identifier
fhir:Meta.lastUpdated @?; # When the resource version last
# changed
fhir:Meta.source @?; # Identifies where the resource
# comes from
fhir:Meta.profile @*; # Profiles this resource claims to
# conform to
fhir:Meta.security @*; # Security Labels applied to this
# resource
fhir:Meta.tag @*; # Tags applied to this resource
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type code
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value code?; # Primitive value for code
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type string
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value string MAXLENGTH 1048576?; # Primitive value for string
fhir:index xsd:integer? # Relative position in a list
}
# A reference from one resource to another
CLOSED {
fhir:link IRI?;
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Reference.reference @?; # Literal reference, Relative,
# internal or absolute URL
fhir:Reference.type @?; # Type the reference refers to (e.g.
# "Patient")
fhir:Reference.identifier @?; # Logical reference, when literal
# reference is not known
fhir:Reference.display @?; # Text alternative for the resource
fhir:index xsd:integer? # Relative position in a list
}
# Base Resource
{a .+;
fhir:Resource.id id?; # Logical id of this artifact
fhir:Resource.meta @?; # Metadata about the resource
fhir:Resource.implicitRules @?; # A set of rules under which this
# content was created
fhir:Resource.language @?; # Language of the resource content
fhir:index xsd:integer?
}
# Primitive Type uri
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value uri?; # Primitive value for uri
fhir:index xsd:integer? # Relative position in a list
}
# Optional Extensions Element
CLOSED {
fhir:Element.id id?;
fhir:Element.extension @*;
fhir:Extension.url uri;
(
fhir:Extension.valueBase64Binary @ |
fhir:Extension.valueBoolean @ |
fhir:Extension.valueCanonical @ |
fhir:Extension.valueCode @ |
fhir:Extension.valueDate @ |
fhir:Extension.valueDateTime @ |
fhir:Extension.valueDecimal @ |
fhir:Extension.valueId @ |
fhir:Extension.valueInstant @ |
fhir:Extension.valueInteger @ |
fhir:Extension.valueMarkdown @ |
fhir:Extension.valueOid @ |
fhir:Extension.valuePositiveInt @ |
fhir:Extension.valueString @ |
fhir:Extension.valueTime @