PREFIX fhir:
PREFIX fhirvs:
PREFIX xsd:
BASE
start=@ AND {fhir:nodeRole [fhir:treeRoot]}
# A material substance originating from a biological entity
CLOSED {
a [fhir:BiologicallyDerivedProduct];
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:BiologicallyDerivedProduct.identifier @*; # External ids for this item
fhir:BiologicallyDerivedProduct.productCategory @ AND
{fhir:value @fhirvs:product-category}?; # organ | tissue | fluid | cells |
# biologicalAgent
fhir:BiologicallyDerivedProduct.productCode @?; # What this biologically derived
# product is
fhir:BiologicallyDerivedProduct.status @ AND
{fhir:value @fhirvs:product-status}?; # available | unavailable
fhir:BiologicallyDerivedProduct.request @*; # Procedure request
fhir:BiologicallyDerivedProduct.quantity @?; # The amount of this biologically
# derived product
fhir:BiologicallyDerivedProduct.parent @*; # BiologicallyDerivedProduct parent
fhir:BiologicallyDerivedProduct.collection @?; # How this product was collected
fhir:BiologicallyDerivedProduct.processing @*; # Any processing of the product
# during collection
fhir:BiologicallyDerivedProduct.manipulation @?; # Any manipulation of product
# post-collection
fhir:BiologicallyDerivedProduct.storage @*; # Product storage
fhir:index xsd:integer? # Relative position in a list
}
# Any processing of the product during collection
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:BiologicallyDerivedProduct.processing.description @?; # Description of of processing
fhir:BiologicallyDerivedProduct.processing.procedure @?; # Procesing code
fhir:BiologicallyDerivedProduct.processing.additive @?; # Substance added during processing
( # Time of processing
fhir:BiologicallyDerivedProduct.processing.timeDateTime @ |
fhir:BiologicallyDerivedProduct.processing.timePeriod @
)?;
fhir:index xsd:integer? # Relative position in a list
}
# How this product was collected
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:BiologicallyDerivedProduct.collection.collector @?; # Individual performing collection
fhir:BiologicallyDerivedProduct.collection.source @?; # Who is product from
( # Time of product collection
fhir:BiologicallyDerivedProduct.collection.collectedDateTime @ |
fhir:BiologicallyDerivedProduct.collection.collectedPeriod @
)?;
fhir:index xsd:integer? # Relative position in a list
}
# Any manipulation of product post-collection
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:BiologicallyDerivedProduct.manipulation.description @?; # Description of manipulation
( # Time of manipulation
fhir:BiologicallyDerivedProduct.manipulation.timeDateTime @ |
fhir:BiologicallyDerivedProduct.manipulation.timePeriod @
)?;
fhir:index xsd:integer? # Relative position in a list
}
# Product storage
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:BiologicallyDerivedProduct.storage.description @?; # Description of storage
fhir:BiologicallyDerivedProduct.storage.temperature @?; # Storage temperature
fhir:BiologicallyDerivedProduct.storage.scale @ AND
{fhir:value @fhirvs:product-storage-scale}?; # farenheit | celsius | kelvin
fhir:BiologicallyDerivedProduct.storage.duration @?; # Storage timeperiod
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?
}
# Time range defined by start and end date/time
CLOSED {
fhir:Element.id id?; # Unique id for inter-element
# referencing
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:Period.start @?; # Starting time with inclusive
# boundary
fhir:Period.end @?; # End time with inclusive boundary,
# if not ongoing
fhir:index xsd:integer? # Relative position in a list
}
# Primitive Type integer
CLOSED {
fhir:Element.id string?; # xml:id (or equivalent in JSON)
fhir:Element.extension @*; # Additional content defined by
# implementations
fhir:value integer MININCLUSIVE -2147483648 MAXINCLUSIVE 2147483647?; # Primitive value for integer
fhir:index xsd:integer? # Relative position in a list
}
# 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 @