PREFIX fhir: PREFIX fhirvs: PREFIX xsd: BASE start=@ AND {fhir:nodeRole [fhir:treeRoot]} # Event record kept for security purposes CLOSED { a [fhir:AuditEvent]; 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:AuditEvent.type @; # Type/identifier of event fhir:AuditEvent.subtype @*; # More specific type/id for the event fhir:AuditEvent.action @ AND {fhir:value @fhirvs:audit-event-action}?; # Type of action performed during # the event fhir:AuditEvent.period @?; # When the activity occurred fhir:AuditEvent.recorded @; # Time when the event was recorded fhir:AuditEvent.outcome @ AND {fhir:value @fhirvs:audit-event-outcome}?; # Whether the event succeeded or # failed fhir:AuditEvent.outcomeDesc @?; # Description of the event outcome fhir:AuditEvent.purposeOfEvent @*; # The purposeOfUse of the event fhir:AuditEvent.agent @+; # Actor involved in the event fhir:AuditEvent.source @; # Audit Event Reporter fhir:AuditEvent.entity @*; # Data or objects used fhir:index xsd:integer? # Relative position in a list } # Actor involved in the event 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:AuditEvent.agent.type @?; # How agent participated fhir:AuditEvent.agent.role @*; # Agent role in the event fhir:AuditEvent.agent.who @?; # Identifier of who fhir:AuditEvent.agent.altId @?; # Alternative User identity fhir:AuditEvent.agent.name @?; # Human friendly name for the agent fhir:AuditEvent.agent.requestor @; # Whether user is initiator fhir:AuditEvent.agent.location @?; # Where fhir:AuditEvent.agent.policy @*; # Policy that authorized event fhir:AuditEvent.agent.media @?; # Type of media fhir:AuditEvent.agent.network @?; # Logical network location for # application activity fhir:AuditEvent.agent.purposeOfUse @*; # Reason given for this user fhir:index xsd:integer? # Relative position in a list } # Audit Event Reporter 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:AuditEvent.source.site @?; # Logical source location within the # enterprise fhir:AuditEvent.source.observer @; # The identity of source detecting # the event fhir:AuditEvent.source.type @*; # The type of source where event # originated fhir:index xsd:integer? # Relative position in a list } # Data or objects used 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:AuditEvent.entity.what @?; # Specific instance of resource fhir:AuditEvent.entity.type @?; # Type of entity involved fhir:AuditEvent.entity.role @?; # What role the entity played fhir:AuditEvent.entity.lifecycle @?; # Life-cycle stage for the entity fhir:AuditEvent.entity.securityLabel @*; # Security labels on the entity fhir:AuditEvent.entity.name @?; # Descriptor for entity fhir:AuditEvent.entity.description @?; # Descriptive text fhir:AuditEvent.entity.query @?; # Query parameters fhir:AuditEvent.entity.detail @*; # Additional Information about the # entity fhir:index xsd:integer? # Relative position in a list } # Logical network location for application activity 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:AuditEvent.agent.network.address @?; # Identifier for the network access # point of the user device fhir:AuditEvent.agent.network.type @ AND {fhir:value @fhirvs:network-type}?; # The type of network access point fhir:index xsd:integer? # Relative position in a list } # Additional Information about the entity 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:AuditEvent.entity.detail.type @; # Name of the property ( # Property value fhir:AuditEvent.entity.detail.valueString @ | fhir:AuditEvent.entity.detail.valueBase64Binary @ ); fhir:index xsd:integer? # Relative position in a list } #---------------------- Data Types ------------------- # 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 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 } # Primitive Type instant CLOSED { fhir:Element.id string?; # xml:id (or equivalent in JSON) fhir:Element.extension @*; # Additional content defined by # implementations fhir:value instant?; # Primitive value for instant 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 @