PREFIX fhir: PREFIX fhirvs: PREFIX xsd: BASE start=@ AND {fhir:nodeRole [fhir:treeRoot]} # A description of when an event can occur CLOSED { a [fhir:EventDefinition]; 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:EventDefinition.url @?; # Canonical identifier for this # event definition, represented as a # URI (globally unique) fhir:EventDefinition.identifier @*; # Additional identifier for the # event definition fhir:EventDefinition.version @?; # Business version of the event # definition fhir:EventDefinition.name @?; # Name for this event definition # (computer friendly) fhir:EventDefinition.title @?; # Name for this event definition # (human friendly) fhir:EventDefinition.subtitle @?; # Subordinate title of the event # definition fhir:EventDefinition.status @ AND {fhir:value @fhirvs:publication-status}; # draft | active | retired | unknown fhir:EventDefinition.experimental @?; # For testing purposes, not real # usage ( # Type of individual the event # definition is focused on fhir:EventDefinition.subjectCodeableConcept @ | fhir:EventDefinition.subjectReference @ )?; fhir:EventDefinition.date @?; # Date last changed fhir:EventDefinition.publisher @?; # Name of the publisher # (organization or individual) fhir:EventDefinition.contact @*; # Contact details for the publisher fhir:EventDefinition.description @?; # Natural language description of # the event definition fhir:EventDefinition.useContext @*; # The context that the content is # intended to support fhir:EventDefinition.jurisdiction @*; # Intended jurisdiction for event # definition (if applicable) fhir:EventDefinition.purpose @?; # Why this event definition is # defined fhir:EventDefinition.usage @?; # Describes the clinical usage of # the event definition fhir:EventDefinition.copyright @?; # Use and/or publishing restrictions fhir:EventDefinition.approvalDate @?; # When the event definition was # approved by publisher fhir:EventDefinition.lastReviewDate @?; # When the event definition was last # reviewed fhir:EventDefinition.effectivePeriod @?; # When the event definition is # expected to be used fhir:EventDefinition.topic @*; # E.g. Education, Treatment, # Assessment, etc. fhir:EventDefinition.author @*; # Who authored the content fhir:EventDefinition.editor @*; # Who edited the content fhir:EventDefinition.reviewer @*; # Who reviewed the content fhir:EventDefinition.endorser @*; # Who endorsed the content fhir:EventDefinition.relatedArtifact @*; # Additional documentation, # citations, etc. fhir:EventDefinition.trigger @+; # "when" the event occurs (multiple # = 'or') 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 } # Primitive Type date CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value date?; # Primitive value for date 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 } # Defines an expected trigger for a module CLOSED { fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:TriggerDefinition.type @ AND {fhir:value @fhirvs:trigger-type}; # named-event | periodic | # data-changed | data-added | # data-modified | data-removed | # data-accessed | data-access-ended fhir:TriggerDefinition.name @?; # Name or URI that identifies the # event ( # Timing of the event fhir:TriggerDefinition.timingTiming @ | fhir:TriggerDefinition.timingReference @ | fhir:TriggerDefinition.timingDate @ | fhir:TriggerDefinition.timingDateTime @ )?; fhir:TriggerDefinition.data @*; # Triggering data of the event # (multiple = 'and') fhir:TriggerDefinition.condition @?; # Whether the event triggers # (boolean expression) 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 } # Related artifacts for a knowledge resource CLOSED { fhir:Element.id id?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:RelatedArtifact.type @ AND {fhir:value @fhirvs:related-artifact-type}; # documentation | justification | # citation | predecessor | successor # | derived-from | depends-on | # composed-of fhir:RelatedArtifact.label @?; # Short label fhir:RelatedArtifact.display @?; # Brief description of the related # artifact fhir:RelatedArtifact.citation @?; # Bibliographic citation for the # artifact fhir:RelatedArtifact.url @?; # Where the artifact can be accessed fhir:RelatedArtifact.document @?; # What document is being referenced fhir:RelatedArtifact.resource @?; # What resource is being referenced 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 @