Release 4

This page is part of the FHIR Specification (v4.0.1: R4 - Mixed Normative and STU) in it's permanent home (it will always be available at this URL). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4

Auditevent.profile.ttl

Security Work GroupMaturity Level: N/AStandards Status: InformativeCompartments: Device, Patient, Practitioner

Raw Turtle (+ also see Turtle/RDF Format Specification)

StructureDefinition for auditevent

@prefix fhir: <http://hl7.org/fhir/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

# - resource -------------------------------------------------------------------

[] a fhir:StructureDefinition;
  fhir:Resource.id [ fhir:value "AuditEvent"];
  fhir:Resource.meta [
     fhir:Meta.lastUpdated [ fhir:value "2019-11-01T09:29:23.356+11:00" ]
  ];
  fhir:DomainResource.text [
     fhir:Narrative.status [ fhir:value "generated" ]
  ];
  fhir:DomainResource.extension [
     fhir:index 0;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-category" ];
     fhir:Extension.value [ fhir:value "Foundation.Security" ]
  ], [
     fhir:index 1;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ];
     fhir:Extension.value [ fhir:value "trial-use" ]
  ], [
     fhir:index 2;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm" ];
     fhir:Extension.value [ fhir:value "3" ]
  ], [
     fhir:index 3;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-security-category" ];
     fhir:Extension.value [ fhir:value "not-classified" ]
  ], [
     fhir:index 4;
     fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg" ];
     fhir:Extension.value [ fhir:value "sec" ]
  ];
  fhir:StructureDefinition.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/AuditEvent"];
  fhir:StructureDefinition.version [ fhir:value "4.0.1"];
  fhir:StructureDefinition.name [ fhir:value "AuditEvent"];
  fhir:StructureDefinition.status [ fhir:value "draft"];
  fhir:StructureDefinition.date [ fhir:value "2019-11-01T09:29:23+11:00"];
  fhir:StructureDefinition.publisher [ fhir:value "Health Level Seven International (Security)"];
  fhir:StructureDefinition.contact [
     fhir:index 0;
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ]
     ]
  ], [
     fhir:index 1;
     fhir:ContactDetail.telecom [
       fhir:index 0;
       fhir:ContactPoint.system [ fhir:value "url" ];
       fhir:ContactPoint.value [ fhir:value "http://www.hl7.org/Special/committees/secure/index.cfm" ]
     ]
  ];
  fhir:StructureDefinition.description [ fhir:value "A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage."];
  fhir:StructureDefinition.fhirVersion [ fhir:value "4.0.1"];
  fhir:StructureDefinition.mapping [
     fhir:index 0;
     fhir:StructureDefinition.identity [ fhir:value "workflow" ];
     fhir:StructureDefinition.uri [ fhir:value "http://hl7.org/fhir/workflow" ];
     fhir:StructureDefinition.name [ fhir:value "Workflow Pattern" ]
  ], [
     fhir:index 1;
     fhir:StructureDefinition.identity [ fhir:value "rim" ];
     fhir:StructureDefinition.uri [ fhir:value "http://hl7.org/v3" ];
     fhir:StructureDefinition.name [ fhir:value "RIM Mapping" ]
  ], [
     fhir:index 2;
     fhir:StructureDefinition.identity [ fhir:value "dicom" ];
     fhir:StructureDefinition.uri [ fhir:value "http://nema.org/dicom" ];
     fhir:StructureDefinition.name [ fhir:value "DICOM Tag Mapping" ]
  ], [
     fhir:index 3;
     fhir:StructureDefinition.identity [ fhir:value "w5" ];
     fhir:StructureDefinition.uri [ fhir:value "http://hl7.org/fhir/fivews" ];
     fhir:StructureDefinition.name [ fhir:value "FiveWs Pattern Mapping" ]
  ], [
     fhir:index 4;
     fhir:StructureDefinition.identity [ fhir:value "w3c.prov" ];
     fhir:StructureDefinition.uri [ fhir:value "http://www.w3.org/ns/prov" ];
     fhir:StructureDefinition.name [ fhir:value "W3C PROV" ]
  ], [
     fhir:index 5;
     fhir:StructureDefinition.identity [ fhir:value "fhirprovenance" ];
     fhir:StructureDefinition.uri [ fhir:value "http://hl7.org/fhir/provenance" ];
     fhir:StructureDefinition.name [ fhir:value "FHIR Provenance Mapping" ]
  ];
  fhir:StructureDefinition.kind [ fhir:value "resource"];
  fhir:StructureDefinition.abstract [ fhir:value "false"];
  fhir:StructureDefinition.type [ fhir:value "AuditEvent"];
  fhir:StructureDefinition.baseDefinition [ fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource"];
  fhir:StructureDefinition.derivation [ fhir:value "specialization"];
  fhir:StructureDefinition.snapshot [
     fhir:StructureDefinition.element [
       fhir:index 0;
       fhir:Element.id [ fhir:value "AuditEvent" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent" ];
       fhir:ElementDefinition.short [ fhir:value "Event record kept for security purposes" ];
       fhir:ElementDefinition.definition [ fhir:value "A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage." ];
       fhir:ElementDefinition.comment [ fhir:value "Based on IHE-ATNA." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "dom-2" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "If the resource is contained in another resource, it SHALL NOT contain nested Resources" ];
         fhir:ElementDefinition.expression [ fhir:value "contained.contained.empty()" ];
         fhir:ElementDefinition.xpath [ fhir:value "not(parent::f:contained and f:contained)" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "dom-3" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "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" ];
         fhir:ElementDefinition.expression [ fhir:value "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()" ];
         fhir:ElementDefinition.xpath [ fhir:value "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.key [ fhir:value "dom-4" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated" ];
         fhir:ElementDefinition.expression [ fhir:value "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" ];
         fhir:ElementDefinition.xpath [ fhir:value "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.key [ fhir:value "dom-5" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "If a resource is contained in another resource, it SHALL NOT have a security label" ];
         fhir:ElementDefinition.expression [ fhir:value "contained.meta.security.empty()" ];
         fhir:ElementDefinition.xpath [ fhir:value "not(exists(f:contained/*/f:meta/f:security))" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource" ]
       ], [
         fhir:index 4;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice" ];
           fhir:Extension.value [ fhir:value "true" ]
         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation" ];
           fhir:Extension.value [ fhir:value "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." ]
         ];
         fhir:ElementDefinition.key [ fhir:value "dom-6" ];
         fhir:ElementDefinition.severity [ fhir:value "warning" ];
         fhir:ElementDefinition.human [ fhir:value "A resource should have narrative for robust management" ];
         fhir:ElementDefinition.expression [ fhir:value "text.`div`.exists()" ];
         fhir:ElementDefinition.xpath [ fhir:value "exists(f:text/h:div)" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/DomainResource" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "Entity. Role, or Act" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "ControlAct[moodCode=EVN]" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "Message" ]
       ]
     ], [
       fhir:index 1;
       fhir:Element.id [ fhir:value "AuditEvent.id" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.id" ];
       fhir:ElementDefinition.short [ fhir:value "Logical id of this artifact" ];
       fhir:ElementDefinition.definition [ fhir:value "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes." ];
       fhir:ElementDefinition.comment [ fhir:value "The only time that a resource does not have an id is when it is being submitted to the server using a create operation." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Resource.id" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
           fhir:Extension.value [ fhir:value "string" ]
         ];
         fhir:ElementDefinition.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ]
     ], [
       fhir:index 2;
       fhir:Element.id [ fhir:value "AuditEvent.meta" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.meta" ];
       fhir:ElementDefinition.short [ fhir:value "Metadata about the resource" ];
       fhir:ElementDefinition.definition [ fhir:value "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Resource.meta" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Meta" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ]
     ], [
       fhir:index 3;
       fhir:Element.id [ fhir:value "AuditEvent.implicitRules" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.implicitRules" ];
       fhir:ElementDefinition.short [ fhir:value "A set of rules under which this content was created" ];
       fhir:ElementDefinition.definition [ fhir:value "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc." ];
       fhir:ElementDefinition.comment [ fhir:value "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Resource.implicitRules" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "uri" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ]
     ], [
       fhir:index 4;
       fhir:Element.id [ fhir:value "AuditEvent.language" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.language" ];
       fhir:ElementDefinition.short [ fhir:value "Language of the resource content" ];
       fhir:ElementDefinition.definition [ fhir:value "The base language in which the resource is written." ];
       fhir:ElementDefinition.comment [ fhir:value "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies  to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute)." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Resource.language" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet" ];
           fhir:Extension.value [ fhir:value "http://hl7.org/fhir/ValueSet/all-languages" ]
         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "Language" ]
         ], [
           fhir:index 2;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding" ];
           fhir:Extension.value [ fhir:value "true" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "preferred" ];
         fhir:ElementDefinition.description [ fhir:value "A human language." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/languages" ]
       ]
     ], [
       fhir:index 5;
       fhir:Element.id [ fhir:value "AuditEvent.text" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.text" ];
       fhir:ElementDefinition.short [ fhir:value "Text summary of the resource, for human interpretation" ];
       fhir:ElementDefinition.definition [ fhir:value "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety." ];
       fhir:ElementDefinition.comment [ fhir:value "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied).  This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later." ];
       fhir:ElementDefinition.alias [
         fhir:value "narrative";
         fhir:index 0
       ], [
         fhir:value "html";
         fhir:index 1
       ], [
         fhir:value "xhtml";
         fhir:index 2
       ], [
         fhir:value "display";
         fhir:index 3
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DomainResource.text" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Narrative" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "Act.text?" ]
       ]
     ], [
       fhir:index 6;
       fhir:Element.id [ fhir:value "AuditEvent.contained" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.contained" ];
       fhir:ElementDefinition.short [ fhir:value "Contained, inline Resources" ];
       fhir:ElementDefinition.definition [ fhir:value "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope." ];
       fhir:ElementDefinition.comment [ fhir:value "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels." ];
       fhir:ElementDefinition.alias [
         fhir:value "inline resources";
         fhir:index 0
       ], [
         fhir:value "anonymous resources";
         fhir:index 1
       ], [
         fhir:value "contained resources";
         fhir:index 2
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DomainResource.contained" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Resource" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:index 7;
       fhir:Element.id [ fhir:value "AuditEvent.extension" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.extension" ];
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0
       ], [
         fhir:value "user content";
         fhir:index 1
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DomainResource.extension" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:index 8;
       fhir:Element.id [ fhir:value "AuditEvent.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.requirements [ fhir:value "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0
       ], [
         fhir:value "user content";
         fhir:index 1
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "DomainResource.modifierExtension" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:index 9;
       fhir:Element.id [ fhir:value "AuditEvent.type" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.type" ];
       fhir:ElementDefinition.short [ fhir:value "Type/identifier of event" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifier for a family of the event.  For example, a menu item, program, rule, policy, function code, application name or URL. It identifies the performed function." ];
       fhir:ElementDefinition.requirements [ fhir:value "This identifies the performed function. For \"Execute\" Event Action Code audit records, this identifies the application function performed." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.type" ];
         fhir:ElementDefinition.min [ fhir:value "1" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Coding" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditEventType" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "Type of event." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/audit-event-type" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.code" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".code (type, subtype and action are pre-coordinated or sent as translations)" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "EventId" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Activity" ]
       ]
     ], [
       fhir:index 10;
       fhir:Element.id [ fhir:value "AuditEvent.subtype" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.subtype" ];
       fhir:ElementDefinition.short [ fhir:value "More specific type/id for the event" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifier for the category of event." ];
       fhir:ElementDefinition.requirements [ fhir:value "This field enables queries of messages by implementation-defined event categories." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.subtype" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Coding" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditEventSubType" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "Sub-type of event." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/audit-event-sub-type" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".code (type, subtype and action are pre-coordinated or sent as translations)" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "EventTypeCode" ]
       ]
     ], [
       fhir:index 11;
       fhir:Element.id [ fhir:value "AuditEvent.action" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.action" ];
       fhir:ElementDefinition.short [ fhir:value "Type of action performed during the event" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicator for type of action performed during the event that generated the audit." ];
       fhir:ElementDefinition.requirements [ fhir:value "This broadly indicates what kind of action was done on the AuditEvent.entity by the AuditEvent.agent." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.action" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditEventAction" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "required" ];
         fhir:ElementDefinition.description [ fhir:value "Indicator for type of action performed during the event that generated the event." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/audit-event-action|4.0.1" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".code (type, subtype and action are pre-coordinated or sent as translations)" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "EventActionCode" ]
       ]
     ], [
       fhir:index 12;
       fhir:Element.id [ fhir:value "AuditEvent.period" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.period" ];
       fhir:ElementDefinition.short [ fhir:value "When the activity occurred" ];
       fhir:ElementDefinition.definition [ fhir:value "The period during which the activity occurred." ];
       fhir:ElementDefinition.comment [ fhir:value "The period can be a little arbitrary; where possible, the time should correspond to human assessment of the activity time." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.period" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Period" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.occurred[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.done[x]" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "./effectiveTime[type=IVL_TS]" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "EventDateTime" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Activity.startTime & Activity.endTime" ]
       ], [
         fhir:index 5;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.occurred[x]" ]
       ]
     ], [
       fhir:index 13;
       fhir:Element.id [ fhir:value "AuditEvent.recorded" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.recorded" ];
       fhir:ElementDefinition.short [ fhir:value "Time when the event was recorded" ];
       fhir:ElementDefinition.definition [ fhir:value "The time when the event was recorded." ];
       fhir:ElementDefinition.comment [ fhir:value "In a distributed system, some sort of common time base (e.g. an NTP [RFC1305] server) is a good implementation tactic." ];
       fhir:ElementDefinition.requirements [ fhir:value "This ties an event to a specific date and time. Security audits typically require a consistent time base (e.g. UTC), to eliminate time-zone issues arising from geographical distribution." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.recorded" ];
         fhir:ElementDefinition.min [ fhir:value "1" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "instant" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.recorded" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".effectiveTime" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Activity.when" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.recorded" ]
       ]
     ], [
       fhir:index 14;
       fhir:Element.id [ fhir:value "AuditEvent.outcome" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.outcome" ];
       fhir:ElementDefinition.short [ fhir:value "Whether the event succeeded or failed" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicates whether the event succeeded or failed." ];
       fhir:ElementDefinition.comment [ fhir:value "In some cases a \"success\" may be partial, for example, an incomplete or interrupted transfer of a radiological study. For the purpose of establishing accountability, these distinctions are not relevant." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.outcome" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditEventOutcome" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "required" ];
         fhir:ElementDefinition.description [ fhir:value "Indicates whether the event succeeded or failed." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/audit-event-outcome|4.0.1" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".actionNegationInd" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "EventOutcomeIndicator" ]
       ]
     ], [
       fhir:index 15;
       fhir:Element.id [ fhir:value "AuditEvent.outcomeDesc" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.outcomeDesc" ];
       fhir:ElementDefinition.short [ fhir:value "Description of the event outcome" ];
       fhir:ElementDefinition.definition [ fhir:value "A free text description of the outcome of the event." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.outcomeDesc" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".outboundRelationship[typeCode=OUT].target.text" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "EventOutcomeDescription" ]
       ]
     ], [
       fhir:index 16;
       fhir:Element.id [ fhir:value "AuditEvent.purposeOfEvent" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.purposeOfEvent" ];
       fhir:ElementDefinition.short [ fhir:value "The purposeOfUse of the event" ];
       fhir:ElementDefinition.definition [ fhir:value "The purposeOfUse (reason) that was used during the event being recorded." ];
       fhir:ElementDefinition.comment [ fhir:value "Use AuditEvent.agent.purposeOfUse when you know that it is specific to the agent, otherwise use AuditEvent.purposeOfEvent. For example, during a machine-to-machine transfer it might not be obvious to the audit system who caused the event, but it does know why." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.purposeOfEvent" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditPurposeOfUse" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "The reason the activity took place." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.reasonCode" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.why[x]" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "* .reasonCode [ControlActReason when Act.class = CACT Control Act]\n*.outboundRelationship[typeCode=RSON].target" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "EventPurposeOfUse" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Activity.Activity" ]
       ], [
         fhir:index 5;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.reason, Provenance.activity" ]
       ]
     ], [
       fhir:index 17;
       fhir:Element.id [ fhir:value "AuditEvent.agent" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent" ];
       fhir:ElementDefinition.short [ fhir:value "Actor involved in the event" ];
       fhir:ElementDefinition.definition [ fhir:value "An actor taking an active role in the event or activity that is logged." ];
       fhir:ElementDefinition.comment [ fhir:value "Several agents may be associated (i.e. have some responsibility for an activity) with an event or activity.\n\nFor example, an activity may be initiated by one user for other users or involve more than one user. However, only one user may be the initiator/requestor for the activity." ];
       fhir:ElementDefinition.requirements [ fhir:value "An agent can be a person, an organization, software, device, or other actors that may be ascribed responsibility." ];
       fhir:ElementDefinition.alias [
         fhir:value "ActiveParticipant";
         fhir:index 0
       ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent" ];
         fhir:ElementDefinition.min [ fhir:value "1" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "BackboneElement" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.performer" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.who" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".participation" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ActiveParticipant" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Agent" ]
       ], [
         fhir:index 5;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.agent" ]
       ]
     ], [
       fhir:index 18;
       fhir:Element.id [ fhir:value "AuditEvent.agent.id" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0
       ];
       fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ];
       fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Element.id" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
           fhir:Extension.value [ fhir:value "string" ]
         ];
         fhir:ElementDefinition.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index 19;
       fhir:Element.id [ fhir:value "AuditEvent.agent.extension" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.extension" ];
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0
       ], [
         fhir:value "user content";
         fhir:index 1
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index 20;
       fhir:Element.id [ fhir:value "AuditEvent.agent.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored even if unrecognized" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.requirements [ fhir:value "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0
       ], [
         fhir:value "user content";
         fhir:index 1
       ], [
         fhir:value "modifiers";
         fhir:index 2
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "BackboneElement.modifierExtension" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:index 21;
       fhir:Element.id [ fhir:value "AuditEvent.agent.type" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.type" ];
       fhir:ElementDefinition.short [ fhir:value "How agent participated" ];
       fhir:ElementDefinition.definition [ fhir:value "Specification of the participation type the user plays when performing the event." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.type" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditAgentType" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "The Participation type of the agent to the event." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/participation-role-type" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.performer.function" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.who" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".typeCode and/or .functionCode" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "RoleIdCode" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Agent.Attribution" ]
       ], [
         fhir:index 5;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.agent.type" ]
       ]
     ], [
       fhir:index 22;
       fhir:Element.id [ fhir:value "AuditEvent.agent.role" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.role" ];
       fhir:ElementDefinition.short [ fhir:value "Agent role in the event" ];
       fhir:ElementDefinition.definition [ fhir:value "The security role that the user was acting under, that come from local codes defined by the access control security system (e.g. RBAC, ABAC) used in the local context." ];
       fhir:ElementDefinition.comment [ fhir:value "Should be roles relevant to the event. Should  not be an exhaustive list of roles." ];
       fhir:ElementDefinition.requirements [ fhir:value "This value ties an audited event to a user's role(s). It is an optional value that might be used to group events for analysis by user functional role categories." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.role" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditAgentRole" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "example" ];
         fhir:ElementDefinition.description [ fhir:value "What security role enabled the agent to participate in the event." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/security-role-type" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.who" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".role" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "RoleIdCode" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Agent.Attribution" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.agent.role" ]
       ]
     ], [
       fhir:index 23;
       fhir:Element.id [ fhir:value "AuditEvent.agent.who" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.who" ];
       fhir:ElementDefinition.short [ fhir:value "Identifier of who" ];
       fhir:ElementDefinition.definition [ fhir:value "Reference to who this agent is that was involved in the event." ];
       fhir:ElementDefinition.comment [ fhir:value "Where a User ID is available it will go into who.identifier." ];
       fhir:ElementDefinition.requirements [ fhir:value "This field ties an audit event to a specific resource or identifier." ];
       fhir:ElementDefinition.alias [
         fhir:value "userId";
         fhir:index 0
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.who" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole";
           fhir:index 0
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner";
           fhir:index 1
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Organization";
           fhir:index 2
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Device";
           fhir:index 3
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Patient";
           fhir:index 4
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/RelatedPerson";
           fhir:index 5
         ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.performer.actor" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.who" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".id" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "UserId" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Agent.Identity" ]
       ], [
         fhir:index 5;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.agent.who" ]
       ]
     ], [
       fhir:index 24;
       fhir:Element.id [ fhir:value "AuditEvent.agent.altId" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.altId" ];
       fhir:ElementDefinition.short [ fhir:value "Alternative User identity" ];
       fhir:ElementDefinition.definition [ fhir:value "Alternative agent Identifier. For a human, this should be a user identifier text string from authentication system. This identifier would be one known to a common authentication system (e.g. single sign-on), if available." ];
       fhir:ElementDefinition.requirements [ fhir:value "In some situations, a human user may authenticate with one identity but, to access a specific application system, may use a synonymous identify. For example, some \"single sign on\" implementations will do this. The alternative identifier would then be the original identify  used for authentication, and the User ID is the one known to and used by the application." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.altId" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.who" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".id (distinguish id type by root)" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "AlternativeUserId" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Agent.Identity" ]
       ]
     ], [
       fhir:index 25;
       fhir:Element.id [ fhir:value "AuditEvent.agent.name" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.name" ];
       fhir:ElementDefinition.short [ fhir:value "Human friendly name for the agent" ];
       fhir:ElementDefinition.definition [ fhir:value "Human-meaningful name for the agent." ];
       fhir:ElementDefinition.requirements [ fhir:value "The User ID and Authorization User ID may be internal or otherwise obscure values. This field assists the auditor in identifying the actual user." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.name" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.who" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".name" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "UserName" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Agent.Identity" ]
       ]
     ], [
       fhir:index 26;
       fhir:Element.id [ fhir:value "AuditEvent.agent.requestor" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.requestor" ];
       fhir:ElementDefinition.short [ fhir:value "Whether user is initiator" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicator that the user is or is not the requestor, or initiator, for the event being audited." ];
       fhir:ElementDefinition.comment [ fhir:value "There can only be one initiator. If the initiator is not clear, then do not choose any one agent as the initiator." ];
       fhir:ElementDefinition.requirements [ fhir:value "This value is used to distinguish between requestor-users and recipient-users. For example, one person may initiate a report-output to be sent to another user." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.requestor" ];
         fhir:ElementDefinition.min [ fhir:value "1" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "boolean" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.who" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "If participation.typeCode was author, then true" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "UserIsRequestor" ]
       ]
     ], [
       fhir:index 27;
       fhir:Element.id [ fhir:value "AuditEvent.agent.location" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.location" ];
       fhir:ElementDefinition.short [ fhir:value "Where" ];
       fhir:ElementDefinition.definition [ fhir:value "Where the event occurred." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.location" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Location";
           fhir:index 0
         ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.location" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.where[x]" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "* Role.Class =SDLOC\n*Role.Code = ServiceDeliveryLocationRoleType\n *Entity.Code  = PlaceEntityType = df.Types of places for  Entity.Class = PLC\n*EntityClass = PLC = df.A physical place or site with its containing structure. May be natural or man-made. The geographic position of a place might or might not be constant." ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Activity.location" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.location" ]
       ]
     ], [
       fhir:index 28;
       fhir:Element.id [ fhir:value "AuditEvent.agent.policy" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.policy" ];
       fhir:ElementDefinition.short [ fhir:value "Policy that authorized event" ];
       fhir:ElementDefinition.definition [ fhir:value "The policy or plan that authorized the activity being recorded. Typically, a single activity may have multiple applicable policies, such as patient consent, guarantor funding, etc. The policy would also indicate the security token used." ];
       fhir:ElementDefinition.comment [ fhir:value "For example: Where an OAuth token authorizes, the unique identifier from the OAuth token is placed into the policy element Where a policy engine (e.g. XACML) holds policy logic, the unique policy identifier is placed into the policy element." ];
       fhir:ElementDefinition.requirements [ fhir:value "This value is used retrospectively to determine the authorization policies." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.policy" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "uri" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.why[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "ActPolicyType" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantRoleIDCode" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.policy" ]
       ]
     ], [
       fhir:index 29;
       fhir:Element.id [ fhir:value "AuditEvent.agent.media" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.media" ];
       fhir:ElementDefinition.short [ fhir:value "Type of media" ];
       fhir:ElementDefinition.definition [ fhir:value "Type of media involved. Used when the event is about exporting/importing onto media." ];
       fhir:ElementDefinition.requirements [ fhir:value "Usually, this is used instead of specifying a network address. This field is not used for Media Id (i.e. the serial number of a CD)." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.media" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Coding" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "DICOMMediaType" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "Used when the event is about exporting/importing onto media." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/dicm-405-mediatype" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.where[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".player.description.mediaType" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "MediaType" ]
       ]
     ], [
       fhir:index 30;
       fhir:Element.id [ fhir:value "AuditEvent.agent.network" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.network" ];
       fhir:ElementDefinition.short [ fhir:value "Logical network location for application activity" ];
       fhir:ElementDefinition.definition [ fhir:value "Logical network location for application activity, if the activity has a network location." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.network" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "BackboneElement" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.where[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".player.description.reference" ]
       ]
     ], [
       fhir:index 31;
       fhir:Element.id [ fhir:value "AuditEvent.agent.network.id" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.network.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0
       ];
       fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ];
       fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Element.id" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
           fhir:Extension.value [ fhir:value "string" ]
         ];
         fhir:ElementDefinition.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index 32;
       fhir:Element.id [ fhir:value "AuditEvent.agent.network.extension" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.network.extension" ];
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0
       ], [
         fhir:value "user content";
         fhir:index 1
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index 33;
       fhir:Element.id [ fhir:value "AuditEvent.agent.network.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.network.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored even if unrecognized" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.requirements [ fhir:value "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0
       ], [
         fhir:value "user content";
         fhir:index 1
       ], [
         fhir:value "modifiers";
         fhir:index 2
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "BackboneElement.modifierExtension" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:index 34;
       fhir:Element.id [ fhir:value "AuditEvent.agent.network.address" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.network.address" ];
       fhir:ElementDefinition.short [ fhir:value "Identifier for the network access point of the user device" ];
       fhir:ElementDefinition.definition [ fhir:value "An identifier for the network access point of the user device for the audit event." ];
       fhir:ElementDefinition.comment [ fhir:value "This could be a device id, IP address or some other identifier associated with a device." ];
       fhir:ElementDefinition.requirements [ fhir:value "This datum identifies the user's network access point, which may be distinct from the server that performed the action. It is an optional value that may be used to group events recorded on separate servers for analysis of a specific network access point's data access across all servers." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.network.address" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.where[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "pre-coordinated into URL" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "NetworkAccessPointID" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Agent.Location" ]
       ]
     ], [
       fhir:index 35;
       fhir:Element.id [ fhir:value "AuditEvent.agent.network.type" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.network.type" ];
       fhir:ElementDefinition.short [ fhir:value "The type of network access point" ];
       fhir:ElementDefinition.definition [ fhir:value "An identifier for the type of network access point that originated the audit event." ];
       fhir:ElementDefinition.requirements [ fhir:value "This datum identifies the type of network access point identifier of the user device for the audit event. It is an optional value that may be used to group events recorded on separate servers for analysis of access according to a network access point's type." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.network.type" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditEventAgentNetworkType" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "required" ];
         fhir:ElementDefinition.description [ fhir:value "The type of network access point of this agent in the audit event." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/network-type|4.0.1" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.where[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "pre-coordinated into URL" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "NetworkAccessPointTypeCode" ]
       ]
     ], [
       fhir:index 36;
       fhir:Element.id [ fhir:value "AuditEvent.agent.purposeOfUse" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.purposeOfUse" ];
       fhir:ElementDefinition.short [ fhir:value "Reason given for this user" ];
       fhir:ElementDefinition.definition [ fhir:value "The reason (purpose of use), specific to this agent, that was used during the event being recorded." ];
       fhir:ElementDefinition.comment [ fhir:value "Use AuditEvent.agent.purposeOfUse when you know that is specific to the agent, otherwise use AuditEvent.purposeOfEvent. For example, during a machine-to-machine transfer it might not be obvious to the audit system who caused the event, but it does know why." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.purposeOfUse" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditPurposeOfUse" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "The reason the activity took place." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.why[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "*.reasonCode [ActHealthInformationPurposeOfUseReason codes/v:PurposeOfUse\n(2.16.840.1.113883.1.11.20448)\n* .outboundRelationship[typeCode=RSON or SUBJ].target" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Agent.Activity" ]
       ]
     ], [
       fhir:index 37;
       fhir:Element.id [ fhir:value "AuditEvent.source" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.source" ];
       fhir:ElementDefinition.short [ fhir:value "Audit Event Reporter" ];
       fhir:ElementDefinition.definition [ fhir:value "The system that is reporting the event." ];
       fhir:ElementDefinition.comment [ fhir:value "Since multi-tier, distributed, or composite applications make source identification ambiguous, this collection of fields may repeat for each application or process actively involved in the event. For example, multiple value-sets can identify participating web servers, application processes, and database server threads in an n-tier distributed application. Passive event participants (e.g. low-level network transports) need not be identified." ];
       fhir:ElementDefinition.requirements [ fhir:value "The event is reported by one source." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.source" ];
         fhir:ElementDefinition.min [ fhir:value "1" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "BackboneElement" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.witness" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".participation[typeCode=INF].role[classCode=ASSIGN].player[classCode=DEV, determinerCode=INSTANCE]" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "AuditSourceIdentification" ]
       ]
     ], [
       fhir:index 38;
       fhir:Element.id [ fhir:value "AuditEvent.source.id" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.source.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0
       ];
       fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ];
       fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Element.id" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
           fhir:Extension.value [ fhir:value "string" ]
         ];
         fhir:ElementDefinition.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index 39;
       fhir:Element.id [ fhir:value "AuditEvent.source.extension" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.source.extension" ];
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0
       ], [
         fhir:value "user content";
         fhir:index 1
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index 40;
       fhir:Element.id [ fhir:value "AuditEvent.source.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.source.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored even if unrecognized" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.requirements [ fhir:value "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0
       ], [
         fhir:value "user content";
         fhir:index 1
       ], [
         fhir:value "modifiers";
         fhir:index 2
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "BackboneElement.modifierExtension" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:index 41;
       fhir:Element.id [ fhir:value "AuditEvent.source.site" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.source.site" ];
       fhir:ElementDefinition.short [ fhir:value "Logical source location within the enterprise" ];
       fhir:ElementDefinition.definition [ fhir:value "Logical source location within the healthcare enterprise network.  For example, a hospital or other provider location within a multi-entity provider group." ];
       fhir:ElementDefinition.requirements [ fhir:value "This value differentiates among the sites in a multi-site enterprise health information system." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.source.site" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.witness" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".scopedRole[classCode=LOCE].player.desc" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "AuditEnterpriseSiteId" ]
       ]
     ], [
       fhir:index 42;
       fhir:Element.id [ fhir:value "AuditEvent.source.observer" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.source.observer" ];
       fhir:ElementDefinition.short [ fhir:value "The identity of source detecting the event" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifier of the source where the event was detected." ];
       fhir:ElementDefinition.requirements [ fhir:value "This field ties the event to a specific source system. It may be used to group events for analysis according to where the event was detected." ];
       fhir:ElementDefinition.alias [
         fhir:value "SourceId";
         fhir:index 0
       ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.source.observer" ];
         fhir:ElementDefinition.min [ fhir:value "1" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole";
           fhir:index 0
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner";
           fhir:index 1
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Organization";
           fhir:index 2
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Device";
           fhir:index 3
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Patient";
           fhir:index 4
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/RelatedPerson";
           fhir:index 5
         ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.witness" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".id" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "AuditSourceId" ]
       ]
     ], [
       fhir:index 43;
       fhir:Element.id [ fhir:value "AuditEvent.source.type" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.source.type" ];
       fhir:ElementDefinition.short [ fhir:value "The type of source where event originated" ];
       fhir:ElementDefinition.definition [ fhir:value "Code specifying the type of source where event originated." ];
       fhir:ElementDefinition.requirements [ fhir:value "This field indicates which type of source is identified by the Audit Source ID. It is an optional value that may be used to group events for analysis according to the type of source where the event occurred." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.source.type" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Coding" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditEventSourceType" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "Code specifying the type of system that detected and recorded the event." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/audit-source-type" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.witness" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".code" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "AuditSourceTypeCode" ]
       ]
     ], [
       fhir:index 44;
       fhir:Element.id [ fhir:value "AuditEvent.entity" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity" ];
       fhir:ElementDefinition.short [ fhir:value "Data or objects used" ];
       fhir:ElementDefinition.definition [ fhir:value "Specific instances of data or objects that have been accessed." ];
       fhir:ElementDefinition.comment [ fhir:value "Required unless the values for event identification, agent identification, and audit source identification are sufficient to document the entire auditable event. Because events may have more than one entity, this group can be a repeating set of values." ];
       fhir:ElementDefinition.requirements [ fhir:value "The event may have other entities involved." ];
       fhir:ElementDefinition.alias [
         fhir:value "ParticipantObject";
         fhir:index 0
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "BackboneElement" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "sev-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "Either a name or a query (NOT both)" ];
         fhir:ElementDefinition.expression [ fhir:value "name.empty() or query.empty()" ];
         fhir:ElementDefinition.xpath [ fhir:value "not(exists(f:name)) or not(exists(f:query))" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".outboundRelationship[typeCode=SUBJ].target  or  .participation[typeCode=SBJ].role" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectIdentification" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Entity" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.target, Provenance.entity" ]
       ]
     ], [
       fhir:index 45;
       fhir:Element.id [ fhir:value "AuditEvent.entity.id" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0
       ];
       fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ];
       fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Element.id" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
           fhir:Extension.value [ fhir:value "string" ]
         ];
         fhir:ElementDefinition.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index 46;
       fhir:Element.id [ fhir:value "AuditEvent.entity.extension" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.extension" ];
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0
       ], [
         fhir:value "user content";
         fhir:index 1
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index 47;
       fhir:Element.id [ fhir:value "AuditEvent.entity.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored even if unrecognized" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.requirements [ fhir:value "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0
       ], [
         fhir:value "user content";
         fhir:index 1
       ], [
         fhir:value "modifiers";
         fhir:index 2
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "BackboneElement.modifierExtension" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:index 48;
       fhir:Element.id [ fhir:value "AuditEvent.entity.what" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.what" ];
       fhir:ElementDefinition.short [ fhir:value "Specific instance of resource" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifies a specific instance of the entity. The reference should be version specific." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.what" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Resource";
           fhir:index 0
         ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".id" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectID and ParticipantObjectIDTypeCode" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.target, Provenance.entity.what" ]
       ]
     ], [
       fhir:index 49;
       fhir:Element.id [ fhir:value "AuditEvent.entity.type" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.type" ];
       fhir:ElementDefinition.short [ fhir:value "Type of entity involved" ];
       fhir:ElementDefinition.definition [ fhir:value "The type of the object that was involved in this audit event." ];
       fhir:ElementDefinition.comment [ fhir:value "This value is distinct from the user's role or any user relationship to the entity." ];
       fhir:ElementDefinition.requirements [ fhir:value "To describe the object being acted upon. In addition to queries on the subject of the action in an auditable event, it is also important to be able to query on the object type for the action." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.type" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Coding" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditEventEntityType" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "Code for the entity type involved in the audit event." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/audit-entity-type" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "[self::Act].code or role.player.code" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectTypeCode" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Entity.type" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.entity.type" ]
       ]
     ], [
       fhir:index 50;
       fhir:Element.id [ fhir:value "AuditEvent.entity.role" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.role" ];
       fhir:ElementDefinition.short [ fhir:value "What role the entity played" ];
       fhir:ElementDefinition.definition [ fhir:value "Code representing the role the entity played in the event being audited." ];
       fhir:ElementDefinition.requirements [ fhir:value "For some detailed audit analysis it may be necessary to indicate a more granular type of entity, based on the application role it serves." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.role" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Coding" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditEventEntityRole" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "Code representing the role the entity played in the audit event." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/object-role" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "role.code (not sure what this would mean for an Act)" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectTypeCodeRole" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Entity.role" ]
       ]
     ], [
       fhir:index 51;
       fhir:Element.id [ fhir:value "AuditEvent.entity.lifecycle" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.lifecycle" ];
       fhir:ElementDefinition.short [ fhir:value "Life-cycle stage for the entity" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifier for the data life-cycle stage for the entity." ];
       fhir:ElementDefinition.comment [ fhir:value "This can be used to provide an audit trail for data, over time, as it passes through the system." ];
       fhir:ElementDefinition.requirements [ fhir:value "Institutional policies for privacy and security may optionally fall under different accountability rules based on data life cycle. This provides a differentiating value for those cases." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.lifecycle" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Coding" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditEventEntityLifecycle" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "Identifier for the data life-cycle stage for the entity." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/object-lifecycle-events" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "target of ObservationEvent[code=\"lifecycle\"].value" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectDataLifeCycle" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Entity.role" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.entity.role" ]
       ]
     ], [
       fhir:index 52;
       fhir:Element.id [ fhir:value "AuditEvent.entity.securityLabel" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.securityLabel" ];
       fhir:ElementDefinition.short [ fhir:value "Security labels on the entity" ];
       fhir:ElementDefinition.definition [ fhir:value "Security labels for the identified entity." ];
       fhir:ElementDefinition.comment [ fhir:value "Copied from entity meta security tags." ];
       fhir:ElementDefinition.requirements [ fhir:value "This field identifies the security labels for a specific instance of an object, such as a patient, to detect/track privacy and security issues." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.securityLabel" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Coding" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "SecurityLabels" ]
         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding" ];
           fhir:Extension.value [ fhir:value "true" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "Security Labels from the Healthcare Privacy and Security Classification System." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/security-labels" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".confidentialityCode" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectSensitivity" ]
       ]
     ], [
       fhir:index 53;
       fhir:Element.id [ fhir:value "AuditEvent.entity.name" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.name" ];
       fhir:ElementDefinition.short [ fhir:value "Descriptor for entity" ];
       fhir:ElementDefinition.definition [ fhir:value "A name of the entity in the audit event." ];
       fhir:ElementDefinition.comment [ fhir:value "This field may be used in a query/report to identify audit events for a specific person.  For example, where multiple synonymous entity identifiers (patient number, medical record number, encounter number, etc.) have been used." ];
       fhir:ElementDefinition.requirements [ fhir:value "Use only where entity can't be identified with an identifier." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.name" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.condition [
         fhir:value "sev-1";
         fhir:index 0
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".title" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectName" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Entity.Label" ]
       ]
     ], [
       fhir:index 54;
       fhir:Element.id [ fhir:value "AuditEvent.entity.description" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.description" ];
       fhir:ElementDefinition.short [ fhir:value "Descriptive text" ];
       fhir:ElementDefinition.definition [ fhir:value "Text that describes the entity in more detail." ];
       fhir:ElementDefinition.requirements [ fhir:value "Use only where entity can't be identified with an identifier." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.description" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".text" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectDescription" ]
       ]
     ], [
       fhir:index 55;
       fhir:Element.id [ fhir:value "AuditEvent.entity.query" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.query" ];
       fhir:ElementDefinition.short [ fhir:value "Query parameters" ];
       fhir:ElementDefinition.definition [ fhir:value "The query parameters for a query-type entities." ];
       fhir:ElementDefinition.comment [ fhir:value "The meaning and secondary-encoding of the content of base64 encoded blob is specific to the AuditEvent.type, AuditEvent.subtype, AuditEvent.entity.type, and AuditEvent.entity.role.  The base64 is a general-use and safe container for event specific data blobs regardless of the encoding used by the transaction being recorded.  An AuditEvent consuming application must understand the event it is consuming and the formats used by the event. For example, if auditing an Oracle network database access, the Oracle formats must be understood as they will be simply encoded in the base64binary blob." ];
       fhir:ElementDefinition.requirements [ fhir:value "For query events, it may be necessary to capture the actual query input to the query process in order to identify the specific event. Because of differences among query implementations and data encoding for them, this is a base 64 encoded data blob. It may be subsequently decoded or interpreted by downstream audit analysis processing." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.query" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "base64Binary" ]
       ];
       fhir:ElementDefinition.condition [
         fhir:value "sev-1";
         fhir:index 0
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "No mapping" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectQuery" ]
       ]
     ], [
       fhir:index 56;
       fhir:Element.id [ fhir:value "AuditEvent.entity.detail" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.detail" ];
       fhir:ElementDefinition.short [ fhir:value "Additional Information about the entity" ];
       fhir:ElementDefinition.definition [ fhir:value "Tagged value pairs for conveying additional information about the entity." ];
       fhir:ElementDefinition.requirements [ fhir:value "Implementation-defined data about specific details of the object accessed or used." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.detail" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "BackboneElement" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".inboundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN]" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectDetail" ]
       ]
     ], [
       fhir:index 57;
       fhir:Element.id [ fhir:value "AuditEvent.entity.detail.id" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.detail.id" ];
       fhir:ElementDefinition.representation [
         fhir:value "xmlAttr";
         fhir:index 0
       ];
       fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ];
       fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Element.id" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ];
           fhir:Extension.value [ fhir:value "string" ]
         ];
         fhir:ElementDefinition.code [ fhir:value "http://hl7.org/fhirpath/System.String" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index 58;
       fhir:Element.id [ fhir:value "AuditEvent.entity.detail.extension" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.detail.extension" ];
       fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0
       ], [
         fhir:value "user content";
         fhir:index 1
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "Element.extension" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "n/a" ]
       ]
     ], [
       fhir:index 59;
       fhir:Element.id [ fhir:value "AuditEvent.entity.detail.modifierExtension" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.detail.modifierExtension" ];
       fhir:ElementDefinition.short [ fhir:value "Extensions that cannot be ignored even if unrecognized" ];
       fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself)." ];
       fhir:ElementDefinition.comment [ fhir:value "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." ];
       fhir:ElementDefinition.requirements [ fhir:value "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored.  This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](extensibility.html#modifierExtension)." ];
       fhir:ElementDefinition.alias [
         fhir:value "extensions";
         fhir:index 0
       ], [
         fhir:value "user content";
         fhir:index 1
       ], [
         fhir:value "modifiers";
         fhir:index 2
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "BackboneElement.modifierExtension" ];
         fhir:ElementDefinition.min [ fhir:value "0" ];
         fhir:ElementDefinition.max [ fhir:value "*" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Extension" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.key [ fhir:value "ext-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "Must have either extensions or value[x], not both" ];
         fhir:ElementDefinition.expression [ fhir:value "extension.exists() != value.exists()" ];
         fhir:ElementDefinition.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "true" ];
       fhir:ElementDefinition.isModifierReason [ fhir:value "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "N/A" ]
       ]
     ], [
       fhir:index 60;
       fhir:Element.id [ fhir:value "AuditEvent.entity.detail.type" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.detail.type" ];
       fhir:ElementDefinition.short [ fhir:value "Name of the property" ];
       fhir:ElementDefinition.definition [ fhir:value "The type of extra detail provided in the value." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.detail.type" ];
         fhir:ElementDefinition.min [ fhir:value "1" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".code" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectDetail.type" ]
       ]
     ], [
       fhir:index 61;
       fhir:Element.id [ fhir:value "AuditEvent.entity.detail.value[x]" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.detail.value[x]" ];
       fhir:ElementDefinition.short [ fhir:value "Property value" ];
       fhir:ElementDefinition.definition [ fhir:value "The  value of the extra detail." ];
       fhir:ElementDefinition.comment [ fhir:value "The value can be string when known to be a string, else base64 encoding should be used to protect binary or undefined content.  The meaning and secondary-encoding of the content of base64 encoded blob is specific to the AuditEvent.type, AuditEvent.subtype, AuditEvent.entity.type, and AuditEvent.entity.role.  The base64 is a general-use and safe container for event specific data blobs regardless of the encoding used by the transaction being recorded.  An AuditEvent consuming application must understand the event it is consuming and the formats used by the event. For example if auditing an Oracle network database access, the Oracle formats must be understood as they will be simply encoded in the base64binary blob." ];
       fhir:ElementDefinition.requirements [ fhir:value "Should not duplicate the entity value unless absolutely necessary." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.base [
         fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.detail.value[x]" ];
         fhir:ElementDefinition.min [ fhir:value "1" ];
         fhir:ElementDefinition.max [ fhir:value "1" ]
       ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.code [ fhir:value "base64Binary" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "ele-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "All FHIR elements must have a @value or children" ];
         fhir:ElementDefinition.expression [ fhir:value "hasValue() or (children().count() > id.count())" ];
         fhir:ElementDefinition.xpath [ fhir:value "@value|f:*|h:div" ];
         fhir:ElementDefinition.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ]
       ];
       fhir:ElementDefinition.isModifier [ fhir:value "false" ];
       fhir:ElementDefinition.isSummary [ fhir:value "false" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".value" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectDetail.value" ]
       ]
     ]
  ];
  fhir:StructureDefinition.differential [
     fhir:StructureDefinition.element [
       fhir:index 0;
       fhir:Element.id [ fhir:value "AuditEvent" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent" ];
       fhir:ElementDefinition.short [ fhir:value "Event record kept for security purposes" ];
       fhir:ElementDefinition.definition [ fhir:value "A record of an event made for purposes of maintaining a security log. Typical uses include detection of intrusion attempts and monitoring for inappropriate usage." ];
       fhir:ElementDefinition.comment [ fhir:value "Based on IHE-ATNA." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "ControlAct[moodCode=EVN]" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "Message" ]
       ]
     ], [
       fhir:index 1;
       fhir:Element.id [ fhir:value "AuditEvent.type" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.type" ];
       fhir:ElementDefinition.short [ fhir:value "Type/identifier of event" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifier for a family of the event.  For example, a menu item, program, rule, policy, function code, application name or URL. It identifies the performed function." ];
       fhir:ElementDefinition.requirements [ fhir:value "This identifies the performed function. For \"Execute\" Event Action Code audit records, this identifies the application function performed." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Coding" ]
       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditEventType" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "Type of event." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/audit-event-type" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.code" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".code (type, subtype and action are pre-coordinated or sent as translations)" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "EventId" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Activity" ]
       ]
     ], [
       fhir:index 2;
       fhir:Element.id [ fhir:value "AuditEvent.subtype" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.subtype" ];
       fhir:ElementDefinition.short [ fhir:value "More specific type/id for the event" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifier for the category of event." ];
       fhir:ElementDefinition.requirements [ fhir:value "This field enables queries of messages by implementation-defined event categories." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Coding" ]
       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditEventSubType" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "Sub-type of event." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/audit-event-sub-type" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".code (type, subtype and action are pre-coordinated or sent as translations)" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "EventTypeCode" ]
       ]
     ], [
       fhir:index 3;
       fhir:Element.id [ fhir:value "AuditEvent.action" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.action" ];
       fhir:ElementDefinition.short [ fhir:value "Type of action performed during the event" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicator for type of action performed during the event that generated the audit." ];
       fhir:ElementDefinition.requirements [ fhir:value "This broadly indicates what kind of action was done on the AuditEvent.entity by the AuditEvent.agent." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditEventAction" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "required" ];
         fhir:ElementDefinition.description [ fhir:value "Indicator for type of action performed during the event that generated the event." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/audit-event-action|4.0.1" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".code (type, subtype and action are pre-coordinated or sent as translations)" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "EventActionCode" ]
       ]
     ], [
       fhir:index 4;
       fhir:Element.id [ fhir:value "AuditEvent.period" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.period" ];
       fhir:ElementDefinition.short [ fhir:value "When the activity occurred" ];
       fhir:ElementDefinition.definition [ fhir:value "The period during which the activity occurred." ];
       fhir:ElementDefinition.comment [ fhir:value "The period can be a little arbitrary; where possible, the time should correspond to human assessment of the activity time." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Period" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.occurred[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.done[x]" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "./effectiveTime[type=IVL_TS]" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "EventDateTime" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Activity.startTime & Activity.endTime" ]
       ], [
         fhir:index 5;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.occurred[x]" ]
       ]
     ], [
       fhir:index 5;
       fhir:Element.id [ fhir:value "AuditEvent.recorded" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.recorded" ];
       fhir:ElementDefinition.short [ fhir:value "Time when the event was recorded" ];
       fhir:ElementDefinition.definition [ fhir:value "The time when the event was recorded." ];
       fhir:ElementDefinition.comment [ fhir:value "In a distributed system, some sort of common time base (e.g. an NTP [RFC1305] server) is a good implementation tactic." ];
       fhir:ElementDefinition.requirements [ fhir:value "This ties an event to a specific date and time. Security audits typically require a consistent time base (e.g. UTC), to eliminate time-zone issues arising from geographical distribution." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "instant" ]
       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.recorded" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".effectiveTime" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Activity.when" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.recorded" ]
       ]
     ], [
       fhir:index 6;
       fhir:Element.id [ fhir:value "AuditEvent.outcome" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.outcome" ];
       fhir:ElementDefinition.short [ fhir:value "Whether the event succeeded or failed" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicates whether the event succeeded or failed." ];
       fhir:ElementDefinition.comment [ fhir:value "In some cases a \"success\" may be partial, for example, an incomplete or interrupted transfer of a radiological study. For the purpose of establishing accountability, these distinctions are not relevant." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditEventOutcome" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "required" ];
         fhir:ElementDefinition.description [ fhir:value "Indicates whether the event succeeded or failed." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/audit-event-outcome|4.0.1" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".actionNegationInd" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "EventOutcomeIndicator" ]
       ]
     ], [
       fhir:index 7;
       fhir:Element.id [ fhir:value "AuditEvent.outcomeDesc" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.outcomeDesc" ];
       fhir:ElementDefinition.short [ fhir:value "Description of the event outcome" ];
       fhir:ElementDefinition.definition [ fhir:value "A free text description of the outcome of the event." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".outboundRelationship[typeCode=OUT].target.text" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "EventOutcomeDescription" ]
       ]
     ], [
       fhir:index 8;
       fhir:Element.id [ fhir:value "AuditEvent.purposeOfEvent" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.purposeOfEvent" ];
       fhir:ElementDefinition.short [ fhir:value "The purposeOfUse of the event" ];
       fhir:ElementDefinition.definition [ fhir:value "The purposeOfUse (reason) that was used during the event being recorded." ];
       fhir:ElementDefinition.comment [ fhir:value "Use AuditEvent.agent.purposeOfUse when you know that it is specific to the agent, otherwise use AuditEvent.purposeOfEvent. For example, during a machine-to-machine transfer it might not be obvious to the audit system who caused the event, but it does know why." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditPurposeOfUse" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "The reason the activity took place." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.reasonCode" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.why[x]" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "* .reasonCode [ControlActReason when Act.class = CACT Control Act]\n*.outboundRelationship[typeCode=RSON].target" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "EventPurposeOfUse" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Activity.Activity" ]
       ], [
         fhir:index 5;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.reason, Provenance.activity" ]
       ]
     ], [
       fhir:index 9;
       fhir:Element.id [ fhir:value "AuditEvent.agent" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent" ];
       fhir:ElementDefinition.short [ fhir:value "Actor involved in the event" ];
       fhir:ElementDefinition.definition [ fhir:value "An actor taking an active role in the event or activity that is logged." ];
       fhir:ElementDefinition.comment [ fhir:value "Several agents may be associated (i.e. have some responsibility for an activity) with an event or activity.\n\nFor example, an activity may be initiated by one user for other users or involve more than one user. However, only one user may be the initiator/requestor for the activity." ];
       fhir:ElementDefinition.requirements [ fhir:value "An agent can be a person, an organization, software, device, or other actors that may be ascribed responsibility." ];
       fhir:ElementDefinition.alias [
         fhir:value "ActiveParticipant";
         fhir:index 0
       ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "BackboneElement" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.performer" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.who" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".participation" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ActiveParticipant" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Agent" ]
       ], [
         fhir:index 5;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.agent" ]
       ]
     ], [
       fhir:index 10;
       fhir:Element.id [ fhir:value "AuditEvent.agent.type" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.type" ];
       fhir:ElementDefinition.short [ fhir:value "How agent participated" ];
       fhir:ElementDefinition.definition [ fhir:value "Specification of the participation type the user plays when performing the event." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditAgentType" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "The Participation type of the agent to the event." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/participation-role-type" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.performer.function" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.who" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".typeCode and/or .functionCode" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "RoleIdCode" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Agent.Attribution" ]
       ], [
         fhir:index 5;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.agent.type" ]
       ]
     ], [
       fhir:index 11;
       fhir:Element.id [ fhir:value "AuditEvent.agent.role" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.role" ];
       fhir:ElementDefinition.short [ fhir:value "Agent role in the event" ];
       fhir:ElementDefinition.definition [ fhir:value "The security role that the user was acting under, that come from local codes defined by the access control security system (e.g. RBAC, ABAC) used in the local context." ];
       fhir:ElementDefinition.comment [ fhir:value "Should be roles relevant to the event. Should  not be an exhaustive list of roles." ];
       fhir:ElementDefinition.requirements [ fhir:value "This value ties an audited event to a user's role(s). It is an optional value that might be used to group events for analysis by user functional role categories." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditAgentRole" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "example" ];
         fhir:ElementDefinition.description [ fhir:value "What security role enabled the agent to participate in the event." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/security-role-type" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.who" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".role" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "RoleIdCode" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Agent.Attribution" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.agent.role" ]
       ]
     ], [
       fhir:index 12;
       fhir:Element.id [ fhir:value "AuditEvent.agent.who" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.who" ];
       fhir:ElementDefinition.short [ fhir:value "Identifier of who" ];
       fhir:ElementDefinition.definition [ fhir:value "Reference to who this agent is that was involved in the event." ];
       fhir:ElementDefinition.comment [ fhir:value "Where a User ID is available it will go into who.identifier." ];
       fhir:ElementDefinition.requirements [ fhir:value "This field ties an audit event to a specific resource or identifier." ];
       fhir:ElementDefinition.alias [
         fhir:value "userId";
         fhir:index 0
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole";
           fhir:index 0
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner";
           fhir:index 1
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Organization";
           fhir:index 2
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Device";
           fhir:index 3
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Patient";
           fhir:index 4
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/RelatedPerson";
           fhir:index 5
         ]
       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.performer.actor" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.who" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".id" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "UserId" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Agent.Identity" ]
       ], [
         fhir:index 5;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.agent.who" ]
       ]
     ], [
       fhir:index 13;
       fhir:Element.id [ fhir:value "AuditEvent.agent.altId" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.altId" ];
       fhir:ElementDefinition.short [ fhir:value "Alternative User identity" ];
       fhir:ElementDefinition.definition [ fhir:value "Alternative agent Identifier. For a human, this should be a user identifier text string from authentication system. This identifier would be one known to a common authentication system (e.g. single sign-on), if available." ];
       fhir:ElementDefinition.requirements [ fhir:value "In some situations, a human user may authenticate with one identity but, to access a specific application system, may use a synonymous identify. For example, some \"single sign on\" implementations will do this. The alternative identifier would then be the original identify  used for authentication, and the User ID is the one known to and used by the application." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.who" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".id (distinguish id type by root)" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "AlternativeUserId" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Agent.Identity" ]
       ]
     ], [
       fhir:index 14;
       fhir:Element.id [ fhir:value "AuditEvent.agent.name" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.name" ];
       fhir:ElementDefinition.short [ fhir:value "Human friendly name for the agent" ];
       fhir:ElementDefinition.definition [ fhir:value "Human-meaningful name for the agent." ];
       fhir:ElementDefinition.requirements [ fhir:value "The User ID and Authorization User ID may be internal or otherwise obscure values. This field assists the auditor in identifying the actual user." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.who" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".name" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "UserName" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Agent.Identity" ]
       ]
     ], [
       fhir:index 15;
       fhir:Element.id [ fhir:value "AuditEvent.agent.requestor" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.requestor" ];
       fhir:ElementDefinition.short [ fhir:value "Whether user is initiator" ];
       fhir:ElementDefinition.definition [ fhir:value "Indicator that the user is or is not the requestor, or initiator, for the event being audited." ];
       fhir:ElementDefinition.comment [ fhir:value "There can only be one initiator. If the initiator is not clear, then do not choose any one agent as the initiator." ];
       fhir:ElementDefinition.requirements [ fhir:value "This value is used to distinguish between requestor-users and recipient-users. For example, one person may initiate a report-output to be sent to another user." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "boolean" ]
       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.who" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "If participation.typeCode was author, then true" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "UserIsRequestor" ]
       ]
     ], [
       fhir:index 16;
       fhir:Element.id [ fhir:value "AuditEvent.agent.location" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.location" ];
       fhir:ElementDefinition.short [ fhir:value "Where" ];
       fhir:ElementDefinition.definition [ fhir:value "Where the event occurred." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Location";
           fhir:index 0
         ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "workflow" ];
         fhir:ElementDefinition.map [ fhir:value "Event.location" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.where[x]" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "* Role.Class =SDLOC\n*Role.Code = ServiceDeliveryLocationRoleType\n *Entity.Code  = PlaceEntityType = df.Types of places for  Entity.Class = PLC\n*EntityClass = PLC = df.A physical place or site with its containing structure. May be natural or man-made. The geographic position of a place might or might not be constant." ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Activity.location" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.location" ]
       ]
     ], [
       fhir:index 17;
       fhir:Element.id [ fhir:value "AuditEvent.agent.policy" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.policy" ];
       fhir:ElementDefinition.short [ fhir:value "Policy that authorized event" ];
       fhir:ElementDefinition.definition [ fhir:value "The policy or plan that authorized the activity being recorded. Typically, a single activity may have multiple applicable policies, such as patient consent, guarantor funding, etc. The policy would also indicate the security token used." ];
       fhir:ElementDefinition.comment [ fhir:value "For example: Where an OAuth token authorizes, the unique identifier from the OAuth token is placed into the policy element Where a policy engine (e.g. XACML) holds policy logic, the unique policy identifier is placed into the policy element." ];
       fhir:ElementDefinition.requirements [ fhir:value "This value is used retrospectively to determine the authorization policies." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "uri" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.why[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "ActPolicyType" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantRoleIDCode" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.policy" ]
       ]
     ], [
       fhir:index 18;
       fhir:Element.id [ fhir:value "AuditEvent.agent.media" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.media" ];
       fhir:ElementDefinition.short [ fhir:value "Type of media" ];
       fhir:ElementDefinition.definition [ fhir:value "Type of media involved. Used when the event is about exporting/importing onto media." ];
       fhir:ElementDefinition.requirements [ fhir:value "Usually, this is used instead of specifying a network address. This field is not used for Media Id (i.e. the serial number of a CD)." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Coding" ]
       ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "DICOMMediaType" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "Used when the event is about exporting/importing onto media." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/dicm-405-mediatype" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.where[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".player.description.mediaType" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "MediaType" ]
       ]
     ], [
       fhir:index 19;
       fhir:Element.id [ fhir:value "AuditEvent.agent.network" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.network" ];
       fhir:ElementDefinition.short [ fhir:value "Logical network location for application activity" ];
       fhir:ElementDefinition.definition [ fhir:value "Logical network location for application activity, if the activity has a network location." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "BackboneElement" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.where[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".player.description.reference" ]
       ]
     ], [
       fhir:index 20;
       fhir:Element.id [ fhir:value "AuditEvent.agent.network.address" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.network.address" ];
       fhir:ElementDefinition.short [ fhir:value "Identifier for the network access point of the user device" ];
       fhir:ElementDefinition.definition [ fhir:value "An identifier for the network access point of the user device for the audit event." ];
       fhir:ElementDefinition.comment [ fhir:value "This could be a device id, IP address or some other identifier associated with a device." ];
       fhir:ElementDefinition.requirements [ fhir:value "This datum identifies the user's network access point, which may be distinct from the server that performed the action. It is an optional value that may be used to group events recorded on separate servers for analysis of a specific network access point's data access across all servers." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.where[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "pre-coordinated into URL" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "NetworkAccessPointID" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Agent.Location" ]
       ]
     ], [
       fhir:index 21;
       fhir:Element.id [ fhir:value "AuditEvent.agent.network.type" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.network.type" ];
       fhir:ElementDefinition.short [ fhir:value "The type of network access point" ];
       fhir:ElementDefinition.definition [ fhir:value "An identifier for the type of network access point that originated the audit event." ];
       fhir:ElementDefinition.requirements [ fhir:value "This datum identifies the type of network access point identifier of the user device for the audit event. It is an optional value that may be used to group events recorded on separate servers for analysis of access according to a network access point's type." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "code" ]
       ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditEventAgentNetworkType" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "required" ];
         fhir:ElementDefinition.description [ fhir:value "The type of network access point of this agent in the audit event." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/network-type|4.0.1" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.where[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "pre-coordinated into URL" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "NetworkAccessPointTypeCode" ]
       ]
     ], [
       fhir:index 22;
       fhir:Element.id [ fhir:value "AuditEvent.agent.purposeOfUse" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.agent.purposeOfUse" ];
       fhir:ElementDefinition.short [ fhir:value "Reason given for this user" ];
       fhir:ElementDefinition.definition [ fhir:value "The reason (purpose of use), specific to this agent, that was used during the event being recorded." ];
       fhir:ElementDefinition.comment [ fhir:value "Use AuditEvent.agent.purposeOfUse when you know that is specific to the agent, otherwise use AuditEvent.purposeOfEvent. For example, during a machine-to-machine transfer it might not be obvious to the audit system who caused the event, but it does know why." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "CodeableConcept" ]
       ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditPurposeOfUse" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "The reason the activity took place." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://terminology.hl7.org/ValueSet/v3-PurposeOfUse" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.why[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "*.reasonCode [ActHealthInformationPurposeOfUseReason codes/v:PurposeOfUse\n(2.16.840.1.113883.1.11.20448)\n* .outboundRelationship[typeCode=RSON or SUBJ].target" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Agent.Activity" ]
       ]
     ], [
       fhir:index 23;
       fhir:Element.id [ fhir:value "AuditEvent.source" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.source" ];
       fhir:ElementDefinition.short [ fhir:value "Audit Event Reporter" ];
       fhir:ElementDefinition.definition [ fhir:value "The system that is reporting the event." ];
       fhir:ElementDefinition.comment [ fhir:value "Since multi-tier, distributed, or composite applications make source identification ambiguous, this collection of fields may repeat for each application or process actively involved in the event. For example, multiple value-sets can identify participating web servers, application processes, and database server threads in an n-tier distributed application. Passive event participants (e.g. low-level network transports) need not be identified." ];
       fhir:ElementDefinition.requirements [ fhir:value "The event is reported by one source." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "BackboneElement" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.witness" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".participation[typeCode=INF].role[classCode=ASSIGN].player[classCode=DEV, determinerCode=INSTANCE]" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "AuditSourceIdentification" ]
       ]
     ], [
       fhir:index 24;
       fhir:Element.id [ fhir:value "AuditEvent.source.site" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.source.site" ];
       fhir:ElementDefinition.short [ fhir:value "Logical source location within the enterprise" ];
       fhir:ElementDefinition.definition [ fhir:value "Logical source location within the healthcare enterprise network.  For example, a hospital or other provider location within a multi-entity provider group." ];
       fhir:ElementDefinition.requirements [ fhir:value "This value differentiates among the sites in a multi-site enterprise health information system." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.witness" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".scopedRole[classCode=LOCE].player.desc" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "AuditEnterpriseSiteId" ]
       ]
     ], [
       fhir:index 25;
       fhir:Element.id [ fhir:value "AuditEvent.source.observer" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.source.observer" ];
       fhir:ElementDefinition.short [ fhir:value "The identity of source detecting the event" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifier of the source where the event was detected." ];
       fhir:ElementDefinition.requirements [ fhir:value "This field ties the event to a specific source system. It may be used to group events for analysis according to where the event was detected." ];
       fhir:ElementDefinition.alias [
         fhir:value "SourceId";
         fhir:index 0
       ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/PractitionerRole";
           fhir:index 0
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Practitioner";
           fhir:index 1
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Organization";
           fhir:index 2
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Device";
           fhir:index 3
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Patient";
           fhir:index 4
         ], [
           fhir:value "http://hl7.org/fhir/StructureDefinition/RelatedPerson";
           fhir:index 5
         ]
       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.witness" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".id" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "AuditSourceId" ]
       ]
     ], [
       fhir:index 26;
       fhir:Element.id [ fhir:value "AuditEvent.source.type" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.source.type" ];
       fhir:ElementDefinition.short [ fhir:value "The type of source where event originated" ];
       fhir:ElementDefinition.definition [ fhir:value "Code specifying the type of source where event originated." ];
       fhir:ElementDefinition.requirements [ fhir:value "This field indicates which type of source is identified by the Audit Source ID. It is an optional value that may be used to group events for analysis according to the type of source where the event occurred." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Coding" ]
       ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditEventSourceType" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "Code specifying the type of system that detected and recorded the event." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/audit-source-type" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.witness" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".code" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "AuditSourceTypeCode" ]
       ]
     ], [
       fhir:index 27;
       fhir:Element.id [ fhir:value "AuditEvent.entity" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity" ];
       fhir:ElementDefinition.short [ fhir:value "Data or objects used" ];
       fhir:ElementDefinition.definition [ fhir:value "Specific instances of data or objects that have been accessed." ];
       fhir:ElementDefinition.comment [ fhir:value "Required unless the values for event identification, agent identification, and audit source identification are sufficient to document the entire auditable event. Because events may have more than one entity, this group can be a repeating set of values." ];
       fhir:ElementDefinition.requirements [ fhir:value "The event may have other entities involved." ];
       fhir:ElementDefinition.alias [
         fhir:value "ParticipantObject";
         fhir:index 0
       ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "BackboneElement" ]
       ];
       fhir:ElementDefinition.constraint [
         fhir:index 0;
         fhir:ElementDefinition.key [ fhir:value "sev-1" ];
         fhir:ElementDefinition.severity [ fhir:value "error" ];
         fhir:ElementDefinition.human [ fhir:value "Either a name or a query (NOT both)" ];
         fhir:ElementDefinition.expression [ fhir:value "name.empty() or query.empty()" ];
         fhir:ElementDefinition.xpath [ fhir:value "not(exists(f:name)) or not(exists(f:query))" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".outboundRelationship[typeCode=SUBJ].target  or  .participation[typeCode=SBJ].role" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectIdentification" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Entity" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.target, Provenance.entity" ]
       ]
     ], [
       fhir:index 28;
       fhir:Element.id [ fhir:value "AuditEvent.entity.what" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.what" ];
       fhir:ElementDefinition.short [ fhir:value "Specific instance of resource" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifies a specific instance of the entity. The reference should be version specific." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Reference" ];
         fhir:ElementDefinition.targetProfile [
           fhir:value "http://hl7.org/fhir/StructureDefinition/Resource";
           fhir:index 0
         ]
       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".id" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectID and ParticipantObjectIDTypeCode" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.target, Provenance.entity.what" ]
       ]
     ], [
       fhir:index 29;
       fhir:Element.id [ fhir:value "AuditEvent.entity.type" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.type" ];
       fhir:ElementDefinition.short [ fhir:value "Type of entity involved" ];
       fhir:ElementDefinition.definition [ fhir:value "The type of the object that was involved in this audit event." ];
       fhir:ElementDefinition.comment [ fhir:value "This value is distinct from the user's role or any user relationship to the entity." ];
       fhir:ElementDefinition.requirements [ fhir:value "To describe the object being acted upon. In addition to queries on the subject of the action in an auditable event, it is also important to be able to query on the object type for the action." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Coding" ]
       ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditEventEntityType" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "Code for the entity type involved in the audit event." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/audit-entity-type" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.what[x]" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "[self::Act].code or role.player.code" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectTypeCode" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Entity.type" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.entity.type" ]
       ]
     ], [
       fhir:index 30;
       fhir:Element.id [ fhir:value "AuditEvent.entity.role" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.role" ];
       fhir:ElementDefinition.short [ fhir:value "What role the entity played" ];
       fhir:ElementDefinition.definition [ fhir:value "Code representing the role the entity played in the event being audited." ];
       fhir:ElementDefinition.requirements [ fhir:value "For some detailed audit analysis it may be necessary to indicate a more granular type of entity, based on the application role it serves." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Coding" ]
       ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditEventEntityRole" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "Code representing the role the entity played in the audit event." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/object-role" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "role.code (not sure what this would mean for an Act)" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectTypeCodeRole" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Entity.role" ]
       ]
     ], [
       fhir:index 31;
       fhir:Element.id [ fhir:value "AuditEvent.entity.lifecycle" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.lifecycle" ];
       fhir:ElementDefinition.short [ fhir:value "Life-cycle stage for the entity" ];
       fhir:ElementDefinition.definition [ fhir:value "Identifier for the data life-cycle stage for the entity." ];
       fhir:ElementDefinition.comment [ fhir:value "This can be used to provide an audit trail for data, over time, as it passes through the system." ];
       fhir:ElementDefinition.requirements [ fhir:value "Institutional policies for privacy and security may optionally fall under different accountability rules based on data life cycle. This provides a differentiating value for those cases." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Coding" ]
       ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "AuditEventEntityLifecycle" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "Identifier for the data life-cycle stage for the entity." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/object-lifecycle-events" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "target of ObservationEvent[code=\"lifecycle\"].value" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectDataLifeCycle" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Entity.role" ]
       ], [
         fhir:index 4;
         fhir:ElementDefinition.identity [ fhir:value "fhirprovenance" ];
         fhir:ElementDefinition.map [ fhir:value "Provenance.entity.role" ]
       ]
     ], [
       fhir:index 32;
       fhir:Element.id [ fhir:value "AuditEvent.entity.securityLabel" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.securityLabel" ];
       fhir:ElementDefinition.short [ fhir:value "Security labels on the entity" ];
       fhir:ElementDefinition.definition [ fhir:value "Security labels for the identified entity." ];
       fhir:ElementDefinition.comment [ fhir:value "Copied from entity meta security tags." ];
       fhir:ElementDefinition.requirements [ fhir:value "This field identifies the security labels for a specific instance of an object, such as a patient, to detect/track privacy and security issues." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "Coding" ]
       ];
       fhir:ElementDefinition.binding [
         fhir:Element.extension [
           fhir:index 0;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName" ];
           fhir:Extension.value [ fhir:value "SecurityLabels" ]
         ], [
           fhir:index 1;
           fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding" ];
           fhir:Extension.value [ fhir:value "true" ]
         ];
         fhir:ElementDefinition.strength [ fhir:value "extensible" ];
         fhir:ElementDefinition.description [ fhir:value "Security Labels from the Healthcare Privacy and Security Classification System." ];
         fhir:ElementDefinition.valueSet [ fhir:value "http://hl7.org/fhir/ValueSet/security-labels" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".confidentialityCode" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectSensitivity" ]
       ]
     ], [
       fhir:index 33;
       fhir:Element.id [ fhir:value "AuditEvent.entity.name" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.name" ];
       fhir:ElementDefinition.short [ fhir:value "Descriptor for entity" ];
       fhir:ElementDefinition.definition [ fhir:value "A name of the entity in the audit event." ];
       fhir:ElementDefinition.comment [ fhir:value "This field may be used in a query/report to identify audit events for a specific person.  For example, where multiple synonymous entity identifiers (patient number, medical record number, encounter number, etc.) have been used." ];
       fhir:ElementDefinition.requirements [ fhir:value "Use only where entity can't be identified with an identifier." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.condition [
         fhir:value "sev-1";
         fhir:index 0
       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".title" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectName" ]
       ], [
         fhir:index 3;
         fhir:ElementDefinition.identity [ fhir:value "w3c.prov" ];
         fhir:ElementDefinition.map [ fhir:value "Entity.Label" ]
       ]
     ], [
       fhir:index 34;
       fhir:Element.id [ fhir:value "AuditEvent.entity.description" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.description" ];
       fhir:ElementDefinition.short [ fhir:value "Descriptive text" ];
       fhir:ElementDefinition.definition [ fhir:value "Text that describes the entity in more detail." ];
       fhir:ElementDefinition.requirements [ fhir:value "Use only where entity can't be identified with an identifier." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".text" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectDescription" ]
       ]
     ], [
       fhir:index 35;
       fhir:Element.id [ fhir:value "AuditEvent.entity.query" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.query" ];
       fhir:ElementDefinition.short [ fhir:value "Query parameters" ];
       fhir:ElementDefinition.definition [ fhir:value "The query parameters for a query-type entities." ];
       fhir:ElementDefinition.comment [ fhir:value "The meaning and secondary-encoding of the content of base64 encoded blob is specific to the AuditEvent.type, AuditEvent.subtype, AuditEvent.entity.type, and AuditEvent.entity.role.  The base64 is a general-use and safe container for event specific data blobs regardless of the encoding used by the transaction being recorded.  An AuditEvent consuming application must understand the event it is consuming and the formats used by the event. For example, if auditing an Oracle network database access, the Oracle formats must be understood as they will be simply encoded in the base64binary blob." ];
       fhir:ElementDefinition.requirements [ fhir:value "For query events, it may be necessary to capture the actual query input to the query process in order to identify the specific event. Because of differences among query implementations and data encoding for them, this is a base 64 encoded data blob. It may be subsequently decoded or interpreted by downstream audit analysis processing." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "base64Binary" ]
       ];
       fhir:ElementDefinition.condition [
         fhir:value "sev-1";
         fhir:index 0
       ];
       fhir:ElementDefinition.isSummary [ fhir:value "true" ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value "No mapping" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectQuery" ]
       ]
     ], [
       fhir:index 36;
       fhir:Element.id [ fhir:value "AuditEvent.entity.detail" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.detail" ];
       fhir:ElementDefinition.short [ fhir:value "Additional Information about the entity" ];
       fhir:ElementDefinition.definition [ fhir:value "Tagged value pairs for conveying additional information about the entity." ];
       fhir:ElementDefinition.requirements [ fhir:value "Implementation-defined data about specific details of the object accessed or used." ];
       fhir:ElementDefinition.min [ fhir:value "0" ];
       fhir:ElementDefinition.max [ fhir:value "*" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "BackboneElement" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".inboundRelationship[typeCode=SUBJ].target[classCode=OBS, moodCode=EVN]" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectDetail" ]
       ]
     ], [
       fhir:index 37;
       fhir:Element.id [ fhir:value "AuditEvent.entity.detail.type" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.detail.type" ];
       fhir:ElementDefinition.short [ fhir:value "Name of the property" ];
       fhir:ElementDefinition.definition [ fhir:value "The type of extra detail provided in the value." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".code" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectDetail.type" ]
       ]
     ], [
       fhir:index 38;
       fhir:Element.id [ fhir:value "AuditEvent.entity.detail.value[x]" ];
       fhir:ElementDefinition.path [ fhir:value "AuditEvent.entity.detail.value[x]" ];
       fhir:ElementDefinition.short [ fhir:value "Property value" ];
       fhir:ElementDefinition.definition [ fhir:value "The  value of the extra detail." ];
       fhir:ElementDefinition.comment [ fhir:value "The value can be string when known to be a string, else base64 encoding should be used to protect binary or undefined content.  The meaning and secondary-encoding of the content of base64 encoded blob is specific to the AuditEvent.type, AuditEvent.subtype, AuditEvent.entity.type, and AuditEvent.entity.role.  The base64 is a general-use and safe container for event specific data blobs regardless of the encoding used by the transaction being recorded.  An AuditEvent consuming application must understand the event it is consuming and the formats used by the event. For example if auditing an Oracle network database access, the Oracle formats must be understood as they will be simply encoded in the base64binary blob." ];
       fhir:ElementDefinition.requirements [ fhir:value "Should not duplicate the entity value unless absolutely necessary." ];
       fhir:ElementDefinition.min [ fhir:value "1" ];
       fhir:ElementDefinition.max [ fhir:value "1" ];
       fhir:ElementDefinition.type [
         fhir:index 0;
         fhir:ElementDefinition.code [ fhir:value "string" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.code [ fhir:value "base64Binary" ]
       ];
       fhir:ElementDefinition.mapping [
         fhir:index 0;
         fhir:ElementDefinition.identity [ fhir:value "w5" ];
         fhir:ElementDefinition.map [ fhir:value "FiveWs.context" ]
       ], [
         fhir:index 1;
         fhir:ElementDefinition.identity [ fhir:value "rim" ];
         fhir:ElementDefinition.map [ fhir:value ".value" ]
       ], [
         fhir:index 2;
         fhir:ElementDefinition.identity [ fhir:value "dicom" ];
         fhir:ElementDefinition.map [ fhir:value "ParticipantObjectDetail.value" ]
       ]
     ]
  ] .

# -------------------------------------------------------------------------------------


Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.