FHIR © HL7.org  |  Server Home  |  Health Intersections FHIR Server v2.0.8  |  FHIR Version 3.0.2  | User: ANONYMOUS (Unknown)  

Resource "CapabilityStatement" Version "1" (StructureDefinition)

Tags:

XML or JSON representation. Try out the Profile as a questionnaire based web form . Edit this as XML or JSON. provenance for this resource

Generated Narrative with Details

id: CapabilityStatement

meta:

url: http://hl7.org/fhir/StructureDefinition/CapabilityStatement

name: CapabilityStatement

status: draft

date: 10/24/2019 11:53:00 AM

publisher: Health Level Seven International (FHIR Infrastructure)

contact: ,

description: Base StructureDefinition for CapabilityStatement Resource

fhirVersion: 3.0.2

kind: resource

abstract: false

type: CapabilityStatement

baseDefinition: http://hl7.org/fhir/StructureDefinition/DomainResource

derivation: specialization


<?xml version="1.0" encoding="UTF-8"?>
<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="CapabilityStatement"/>
  <meta>
    <versionId value="1"/>
    <lastUpdated value="2020-11-06T21:32:26.158Z"/>
  </meta>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
      <p>
        <b>Generated Narrative with Details</b>
      </p>
      <p>
        <b>id</b>: CapabilityStatement</p>
      <p>
        <b>meta</b>: </p>
      <p>
        <b>url</b>:
        <a href="http://hl7.org/fhir/StructureDefinition/CapabilityStatement">http://hl7.org/fhir/StructureDefinition/CapabilityStatement</a>
      </p>
      <p>
        <b>name</b>: CapabilityStatement</p>
      <p>
        <b>status</b>: draft</p>
      <p>
        <b>date</b>: 10/24/2019 11:53:00 AM</p>
      <p>
        <b>publisher</b>: Health Level Seven International (FHIR Infrastructure)</p>
      <p>
        <b>contact</b>: , </p>
      <p>
        <b>description</b>: Base StructureDefinition for CapabilityStatement Resource</p>
      <p>
        <b>fhirVersion</b>: 3.0.2</p>
      <p>
        <b>kind</b>: resource</p>
      <p>
        <b>abstract</b>: false</p>
      <p>
        <b>type</b>: CapabilityStatement</p>
      <p>
        <b>baseDefinition</b>:
        <a href="http://hl7.org/fhir/StructureDefinition/DomainResource">http://hl7.org/fhir/StructureDefinition/DomainResource</a>
      </p>
      <p>
        <b>derivation</b>: specialization</p>
    </div>
  </text>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
    <valueInteger value="3"/>
  </extension>
  <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
    <valueCode value="fhir"/>
  </extension>
  <url value="http://hl7.org/fhir/StructureDefinition/CapabilityStatement"/>
  <name value="CapabilityStatement"/>
  <status value="draft"/>
  <date value="2019-10-24T11:53:00+11:00"/>
  <publisher value="Health Level Seven International (FHIR Infrastructure)"/>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://hl7.org/fhir"/>
    </telecom>
  </contact>
  <contact>
    <telecom>
      <system value="url"/>
      <value value="http://www.hl7.org/Special/committees/fiwg/index.cfm"/>
    </telecom>
  </contact>
  <description value="Base StructureDefinition for CapabilityStatement Resource"/>
  <fhirVersion value="3.0.2"/>
  <mapping>
    <identity value="rim"/>
    <uri value="http://hl7.org/v3"/>
    <name value="RIM Mapping"/>
  </mapping>
  <mapping>
    <identity value="w5"/>
    <uri value="http://hl7.org/fhir/w5"/>
    <name value="W5 Mapping"/>
  </mapping>
  <mapping>
    <identity value="objimpl"/>
    <uri value="http://hl7.org/fhir/object-implementation"/>
    <name value="Object Implementation Information"/>
  </mapping>
  <kind value="resource"/>
  <abstract value="false"/>
  <type value="CapabilityStatement"/>
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DomainResource">
    <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-codegen-super">
      <valueString value="MetadataResource"/>
    </extension>
  </baseDefinition>
  <derivation value="specialization"/>
  <snapshot>
    <element id="CapabilityStatement">
      <path value="CapabilityStatement"/>
      <short value="A statement of system capabilities"/>
      <definition value="A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation."/>
      <min value="1"/>
      <max value="1"/>
      <constraint>
        <key value="dom-2"/>
        <severity value="error"/>
        <human value="If the resource is contained in another resource, it SHALL NOT contain nested Resources"/>
        <expression value="contained.contained.empty()"/>
        <xpath value="not(parent::f:contained and f:contained)"/>
        <source value="DomainResource"/>
      </constraint>
      <constraint>
        <key value="dom-1"/>
        <severity value="error"/>
        <human value="If the resource is contained in another resource, it SHALL NOT contain any narrative"/>
        <expression value="contained.text.empty()"/>
        <xpath value="not(parent::f:contained and f:text)"/>
        <source value="DomainResource"/>
      </constraint>
      <constraint>
        <key value="dom-4"/>
        <severity value="error"/>
        <human value="If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated"/>
        <expression value="contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()"/>
        <xpath value="not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))"/>
        <source value="DomainResource"/>
      </constraint>
      <constraint>
        <key value="dom-3"/>
        <severity value="error"/>
        <human value="If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource"/>
        <expression value="contained.where((&apos;#&apos;+id in %resource.descendants().reference).not()).empty()"/>
        <xpath value="not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat(&apos;#&apos;, $id))]))"/>
        <source value="DomainResource"/>
      </constraint>
      <constraint>
        <key value="cpb-8"/>
        <severity value="error"/>
        <human value="There can only be one REST declaration per mode."/>
        <expression value="rest.select(mode).isDistinct()"/>
        <xpath value="count(f:rest)=count(distinct-values(f:rest/f:mode/@value))"/>
      </constraint>
      <constraint>
        <key value="cpb-7"/>
        <severity value="error"/>
        <human value="The set of documents must be unique by the combination of profile and mode."/>
        <expression value="document.select(profile.reference&amp;mode).isDistinct()"/>
        <xpath value="count(f:document[f:mode/@value=&apos;producer&apos;])=count(distinct-values(f:document[f:mode/@value=&apos;producer&apos;]/f:profile/f:reference/@value)) and count(f:document[f:mode/@value=&apos;consumer&apos;])=count(distinct-values(f:document[f:mode/@value=&apos;consumer&apos;]/f:profile/f:reference/@value))"/>
      </constraint>
      <constraint>
        <key value="cpb-15"/>
        <severity value="error"/>
        <human value="Capability Statements of kind &apos;instance&apos; do not have implementation elements."/>
        <expression value="implementation.empty() or kind != &apos;capability&apos;"/>
        <xpath value="not(exists(f:implementation)) or (f:kind/@value != &apos;capability&apos;)"/>
      </constraint>
      <constraint>
        <key value="cpb-3"/>
        <severity value="error"/>
        <human value="Messaging end-point is required (and is only permitted) when a statement is for an implementation."/>
        <expression value="messaging.endpoint.empty() or kind = &apos;instance&apos;"/>
        <xpath value="not(exists(f:messaging/f:endpoint)) or f:kind/@value = &apos;instance&apos;"/>
      </constraint>
      <constraint>
        <key value="cpb-14"/>
        <severity value="error"/>
        <human value="Capability Statements of kind &apos;requirements&apos; do not have software or implementation elements."/>
        <expression value="(software.empty() and implementation.empty()) or kind != &apos;requirements&apos;"/>
        <xpath value="not(exists(f:software) or exists(f:implementation)) or (f:kind/@value != &apos;requirements&apos;)"/>
      </constraint>
      <constraint>
        <key value="cpb-2"/>
        <severity value="error"/>
        <human value="A Capability Statement SHALL have at least one of description, software, or implementation element."/>
        <expression value="(description.count() + software.count() + implementation.count()) &gt; 0"/>
        <xpath value="count(f:software | f:implementation | f:description) &gt; 0"/>
      </constraint>
      <constraint>
        <key value="cpb-1"/>
        <severity value="error"/>
        <human value="A Capability Statement SHALL have at least one of REST, messaging or document element."/>
        <expression value="rest.exists() or messaging.exists() or document.exists()"/>
        <xpath value="exists(f:rest) or exists(f:messaging) or exists(f:document)"/>
      </constraint>
      <mapping>
        <identity value="rim"/>
        <map value="Entity. Role, or Act"/>
      </mapping>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="conformance.behavior"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.id">
      <path value="CapabilityStatement.id"/>
      <short value="Logical id of this artifact"/>
      <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes."/>
      <comment 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."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="id"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.meta">
      <path value="CapabilityStatement.meta"/>
      <short value="Metadata about the resource"/>
      <definition value="The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content may not always be associated with version changes to the resource."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.meta"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Meta"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.implicitRules">
      <path value="CapabilityStatement.implicitRules"/>
      <short value="A set of rules under which this content was created"/>
      <definition 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."/>
      <comment 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. &#10;&#10;This element is labelled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it&apos;s meaning or interpretation."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.implicitRules"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="uri"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.language">
      <path value="CapabilityStatement.language"/>
      <short value="Language of the resource content"/>
      <definition value="The base language in which the resource is written."/>
      <comment 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)."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Resource.language"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet">
          <valueReference>
            <reference value="http://hl7.org/fhir/ValueSet/all-languages"/>
          </valueReference>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Language"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="extensible"/>
        <description value="A human language."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/languages"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.text">
      <path value="CapabilityStatement.text"/>
      <short value="Text summary of the resource, for human interpretation"/>
      <definition value="A human-readable narrative that contains a summary of the resource, and may 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 &quot;clinically safe&quot; for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety."/>
      <comment 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 &quot;text blob&quot; or where text is additionally entered raw or narrated and encoded in formation is added later."/>
      <alias value="narrative"/>
      <alias value="html"/>
      <alias value="xhtml"/>
      <alias value="display"/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="DomainResource.text"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="Narrative"/>
      </type>
      <condition value="dom-1"/>
      <mapping>
        <identity value="rim"/>
        <map value="Act.text?"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.contained">
      <path value="CapabilityStatement.contained"/>
      <short value="Contained, inline Resources"/>
      <definition 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."/>
      <comment 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."/>
      <alias value="inline resources"/>
      <alias value="anonymous resources"/>
      <alias value="contained resources"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="DomainResource.contained"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Resource"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.extension">
      <path value="CapabilityStatement.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the resource. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="DomainResource.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.modifierExtension">
      <path value="CapabilityStatement.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition 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. Usually modifier elements provide negation or qualification. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="DomainResource.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.url">
      <path value="CapabilityStatement.url"/>
      <short value="Logical URI to reference this capability statement (globally unique)"/>
      <definition value="An absolute URI that is used to identify this capability statement when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this capability statement is (or will be) published. The URL SHOULD include the major version of the capability statement. For more information see [Technical and Business Versions](resource.html#versions)."/>
      <comment value="Can be a urn:uuid: or a urn:oid:, but real http: addresses are preferred. Multiple instances may share the same url if they have a distinct version."/>
      <requirements value="Allows the capability statement to be referenced by a single globally unique identifier."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="uri"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="w5"/>
        <map value="id"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.version">
      <path value="CapabilityStatement.version"/>
      <short value="Business version of the capability statement"/>
      <definition value="The identifier that is used to identify this version of the capability statement when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the capability statement author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence."/>
      <comment value="There may be different capability statement instances that have the same identifier but different versions. The version can be appended to the url in a reference to allow a refrence to a particular business version of the capability statement with the format [url]|[version]."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="w5"/>
        <map value="id.version"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.name">
      <path value="CapabilityStatement.name"/>
      <short value="Name for this capability statement (computer friendly)"/>
      <definition value="A natural language name identifying the capability statement. This name should be usable as an identifier for the module by machine processing applications such as code generation."/>
      <comment value="The name is not expected to be globally unique. The name should be a simple alpha-numeric type name to ensure that it is computable friendly."/>
      <requirements value="Support human navigation and code generation."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.title">
      <path value="CapabilityStatement.title"/>
      <short value="Name for this capability statement (human friendly)"/>
      <definition value="A short, descriptive, user-friendly title for the capability statement."/>
      <comment value="This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.status">
      <path value="CapabilityStatement.status"/>
      <short value="draft | active | retired | unknown"/>
      <definition value="The status of this capability statement. Enables tracking the life-cycle of the content."/>
      <comment value="Allows filtering of capability statements that are appropriate for use vs. not. &#10;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired capability statement without due consideration. This is not intended for use with actual capability statements, but where capability statements are used to describe possible or desired systems."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PublicationStatus"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="required"/>
        <description value="The lifecycle status of a Value Set or Concept Map."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/publication-status"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="w5"/>
        <map value="status"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.experimental">
      <path value="CapabilityStatement.experimental"/>
      <short value="For testing purposes, not real usage"/>
      <definition value="A boolean value to indicate that this capability statement is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage."/>
      <comment value="Allows filtering of capability statement that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental capability statement in production."/>
      <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level capability statement."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="boolean"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="w5"/>
        <map value="class"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.date">
      <path value="CapabilityStatement.date"/>
      <short value="Date this was last changed"/>
      <definition value="The date (and optionally time) when the capability statement was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the capability statement changes."/>
      <comment value="Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the capability statement. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource."/>
      <alias value="Revision Date"/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="dateTime"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="w5"/>
        <map value="when.recorded"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.publisher">
      <path value="CapabilityStatement.publisher"/>
      <short value="Name of the publisher (organization or individual)"/>
      <definition value="The name of the individual or organization that published the capability statement."/>
      <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the capability statement is the organization or individual primarily responsible for the maintenance and upkeep of the capability statement. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the capability statement. This item SHOULD be populated unless the information is available from context."/>
      <requirements value="Helps establish the &quot;authority/credibility&quot; of the capability statement. May also allow for contact."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="w5"/>
        <map value="who.witness"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.contact">
      <path value="CapabilityStatement.contact"/>
      <short value="Contact details for the publisher"/>
      <definition value="Contact details to assist a user in finding and communicating with the publisher."/>
      <comment value="May be a web site, an email address, a telephone number, etc."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="ContactDetail"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.description">
      <path value="CapabilityStatement.description"/>
      <short value="Natural language description of the capability statement"/>
      <definition value="A free text natural language description of the capability statement from a consumer&apos;s perspective. Typically, this is used when the capability statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP."/>
      <comment value="This description can be used to capture details such as why the capability statement was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the capability statement as conveyed in the &apos;text&apos; field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the profile is presumed to be the predominant language in the place the profile was created). This does not need to be populated if the description is adequately implied by the software or implementation details."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="markdown"/>
      </type>
      <condition value="cpb-2"/>
    </element>
    <element id="CapabilityStatement.useContext">
      <path value="CapabilityStatement.useContext"/>
      <short value="Context the content is intended to support"/>
      <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate capability statement instances."/>
      <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply."/>
      <requirements value="Assist in searching for appropriate content."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="UsageContext"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.jurisdiction">
      <path value="CapabilityStatement.jurisdiction"/>
      <short value="Intended jurisdiction for capability statement (if applicable)"/>
      <definition value="A legal or geographic region in which the capability statement is intended to be used."/>
      <comment value="It may be possible for the capability statement to be used in jurisdictions other than those for which it was originally designed or intended."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Jurisdiction"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="extensible"/>
        <description value="Countries and regions within which this artifact is targeted for use"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/jurisdiction"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.purpose">
      <path value="CapabilityStatement.purpose"/>
      <short value="Why this capability statement is defined"/>
      <definition value="Explaination of why this capability statement is needed and why it has been designed as it has."/>
      <comment value="This element does not describe the usage of the capability statement Instead it provides traceability of &apos;&apos;why&apos;&apos; the resource is either needed or &apos;&apos;why&apos;&apos; it is defined as it is. This may be used to point to source materials or specifications that drove the structure of this capability statement."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="markdown"/>
      </type>
      <mapping>
        <identity value="objimpl"/>
        <map value="no-gen-base"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="why"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.copyright">
      <path value="CapabilityStatement.copyright"/>
      <short value="Use and/or publishing restrictions"/>
      <definition value="A copyright statement relating to the capability statement and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the capability statement."/>
      <requirements value="Consumers must be able to determine any legal restrictions on the use of the capability statement and/or its content."/>
      <alias value="License"/>
      <alias value="Restrictions"/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="markdown"/>
      </type>
      <mapping>
        <identity value="objimpl"/>
        <map value="no-gen-base"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.kind">
      <path value="CapabilityStatement.kind"/>
      <short value="instance | capability | requirements"/>
      <definition value="The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind not instance of software) or a class of implementation (e.g. a desired purchase)."/>
      <requirements value="Allow searching the 3 modes."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="CapabilityStatementKind"/>
        </extension>
        <strength value="required"/>
        <description value="How a capability statement is intended to be used."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/capability-statement-kind"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.instantiates">
      <path value="CapabilityStatement.instantiates"/>
      <short value="Canonical URL of another capability statement this implements"/>
      <definition value="Reference to a canonical URL of another CapabilityStatement that this software implements or uses. This capability statement is a published API description that corresponds to a business service. The rest of the capability statement does not need to repeat the details of the referenced resource, but can do so."/>
      <comment value="HL7 defines the following Services: [Terminology Service](terminology-service.html).&#10;&#10;Many [Implementation Guides](http://fhir.org/guides/registry) define additional services."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="uri"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.software">
      <path value="CapabilityStatement.software"/>
      <short value="Software that is covered by this capability statement"/>
      <definition value="Software that is covered by this capability statement. It is used when the capability statement describes the capabilities of a particular software version, independent of an installation."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <condition value="cpb-2"/>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.software.id">
      <path value="CapabilityStatement.software.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.software.extension">
      <path value="CapabilityStatement.software.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.software.modifierExtension">
      <path value="CapabilityStatement.software.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition 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 that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.software.name">
      <path value="CapabilityStatement.software.name"/>
      <short value="A name the software is known by"/>
      <definition value="Name software is known by."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.software.version">
      <path value="CapabilityStatement.software.version"/>
      <short value="Version covered by this statement"/>
      <definition value="The version identifier for the software covered by this statement."/>
      <comment value="If possible, a version should be specified, as statements are likely to be different for different versions of software."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.software.releaseDate">
      <path value="CapabilityStatement.software.releaseDate"/>
      <short value="Date this version released"/>
      <definition value="Date this version of the software was released."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="dateTime"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.implementation">
      <path value="CapabilityStatement.implementation"/>
      <short value="If this describes a specific instance"/>
      <definition value="Identifies a specific implementation instance that is described by the capability statement - i.e. a particular installation, rather than the capabilities of a software program."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <condition value="cpb-2"/>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.implementation.id">
      <path value="CapabilityStatement.implementation.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.implementation.extension">
      <path value="CapabilityStatement.implementation.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.implementation.modifierExtension">
      <path value="CapabilityStatement.implementation.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition 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 that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.implementation.description">
      <path value="CapabilityStatement.implementation.description"/>
      <short value="Describes this specific instance"/>
      <definition value="Information about the specific installation that this capability statement relates to."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.implementation.url">
      <path value="CapabilityStatement.implementation.url"/>
      <short value="Base URL for the installation"/>
      <definition value="An absolute base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="uri"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.fhirVersion">
      <path value="CapabilityStatement.fhirVersion"/>
      <short value="FHIR Version the system uses"/>
      <definition value="The version of the FHIR specification on which this capability statement is based."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="id"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.acceptUnknown">
      <path value="CapabilityStatement.acceptUnknown"/>
      <short value="no | extensions | elements | both"/>
      <definition value="A code that indicates whether the application accepts unknown elements or extensions when reading resources."/>
      <comment value="Unknown elements in a resource can only arise as later versions of the specification are published, because this is the only place where such elements can be defined. Hence accepting unknown elements is about inter-version compatibility.&#10;&#10;Applications are recommended to accept unknown extensions and elements (&apos;both&apos;), but this is not always possible."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="UnknownContentCode"/>
        </extension>
        <strength value="required"/>
        <description value="A code that indicates whether an application accepts unknown elements or extensions when reading resources."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/unknown-content-code"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.format">
      <path value="CapabilityStatement.format"/>
      <short value="formats supported (xml | json | ttl | mime type)"/>
      <definition value="A list of the formats supported by this implementation using their content types."/>
      <comment value="&quot;xml&quot;, &quot;json&quot; and &quot;ttl&quot; are allowed, which describe the simple encodings described in the specification (and imply appropriate bundle support). Otherwise, mime types are legal here."/>
      <min value="1"/>
      <max value="*"/>
      <type>
        <code value="code"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MimeType"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="required"/>
        <description value="The mime type of an attachment. Any valid mime type is allowed."/>
        <valueSetUri value="http://www.rfc-editor.org/bcp/bcp13.txt"/>
      </binding>
    </element>
    <element id="CapabilityStatement.patchFormat">
      <path value="CapabilityStatement.patchFormat"/>
      <short value="Patch formats supported"/>
      <definition value="A list of the patch formats supported by this implementation using their content types."/>
      <comment value="At present, the patch mime types application/json-patch+json and application/xml-patch+xml are legal. Generally, if a server supports PATCH, it would be expected to support the patch formats and match the formats it supports, but this is not always possible or necessary."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="code"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MimeType"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="required"/>
        <description value="The mime type of an attachment. Any valid mime type is allowed."/>
        <valueSetUri value="http://www.rfc-editor.org/bcp/bcp13.txt"/>
      </binding>
    </element>
    <element id="CapabilityStatement.implementationGuide">
      <path value="CapabilityStatement.implementationGuide"/>
      <short value="Implementation guides supported"/>
      <definition value="A list of implementation guides that the server does (or should) support in their entirety."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="uri"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.profile">
      <path value="CapabilityStatement.profile"/>
      <short value="Profiles for use cases supported"/>
      <definition value="A list of profiles that represent different use cases supported by the system. For a server, &quot;supported by the system&quot; means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles](profiling.html#profile-uses)."/>
      <comment value="Supported profiles are different than the profiles that apply to a particular resource in rest.resource.profile. The resource profile is a general statement of what features of the resource are supported overall by the system - the sum total of the facilities it supports. A supported profile is a deeper statement about the functionality of the data and services provided by the server (or used by the client). A typical case is a laboratory system that produces a set of different reports - this is the list of types of data that it publishes. A key aspect of declaring profiles here is the question of how the client converts knowledge that the server publishes this data into working with the data the client can inspect individual resources to determine whether they conform to a particular profile, but how does it find the ones that does? It does so by searching using the _profile parameter, so any resources listed here must be valid values for the _profile resource (using the identifier in the target profile). Typically, supported profiles cross resource types to describe a network of related resources, so they are listed here rather than by resource. However, they do not need to describe more than one resource."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.rest">
      <path value="CapabilityStatement.rest"/>
      <short value="If the endpoint is a RESTful one"/>
      <definition value="A definition of the restful capabilities of the solution, if any."/>
      <comment value="Multiple repetitions allow definition of both client and/or server behaviors or possibly behaviors under different configuration settings (for software or requirements statements)."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <condition value="cpb-1"/>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <constraint>
        <key value="cpb-9"/>
        <severity value="error"/>
        <human value="A given resource can only be described once per RESTful mode."/>
        <expression value="resource.select(type).isDistinct()"/>
        <xpath value="count(f:resource)=count(distinct-values(f:resource/f:type/@value))"/>
      </constraint>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.rest.id">
      <path value="CapabilityStatement.rest.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.extension">
      <path value="CapabilityStatement.rest.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.modifierExtension">
      <path value="CapabilityStatement.rest.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition 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 that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.mode">
      <path value="CapabilityStatement.rest.mode"/>
      <short value="client | server"/>
      <definition value="Identifies whether this portion of the statement is describing the ability to initiate or receive restful operations."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="RestfulCapabilityMode"/>
        </extension>
        <strength value="required"/>
        <description value="The mode of a RESTful capability statement."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/restful-capability-mode"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.documentation">
      <path value="CapabilityStatement.rest.documentation"/>
      <short value="General description of implementation"/>
      <definition value="Information about the system&apos;s restful capabilities that apply across all applications, such as security."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.security">
      <path value="CapabilityStatement.rest.security"/>
      <short value="Information about security of implementation"/>
      <definition value="Information about security implementation from an interface perspective - what a client needs to know."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.rest.security.id">
      <path value="CapabilityStatement.rest.security.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.security.extension">
      <path value="CapabilityStatement.rest.security.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.security.modifierExtension">
      <path value="CapabilityStatement.rest.security.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition 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 that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.security.cors">
      <path value="CapabilityStatement.rest.security.cors"/>
      <short value="Adds CORS Headers (http://enable-cors.org/)"/>
      <definition value="Server adds CORS headers when responding to requests - this enables javascript applications to use the server."/>
      <comment value="The easiest CORS headers to add are Access-Control-Allow-Origin: * &amp; Access-Control-Request-Method: GET, POST, PUT, DELETE. All servers SHOULD support CORS."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="boolean"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.rest.security.service">
      <path value="CapabilityStatement.rest.security.service"/>
      <short value="OAuth | SMART-on-FHIR | NTLM | Basic | Kerberos | Certificates"/>
      <definition value="Types of security services that are supported/required by the system."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="RestfulSecurityService"/>
        </extension>
        <strength value="extensible"/>
        <description value="Types of security services used with FHIR."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/restful-security-service"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.security.description">
      <path value="CapabilityStatement.rest.security.description"/>
      <short value="General description of how security works"/>
      <definition value="General description of how security works."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.security.certificate">
      <path value="CapabilityStatement.rest.security.certificate"/>
      <short value="Certificates associated with security profiles"/>
      <definition value="Certificates associated with security profiles."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
    </element>
    <element id="CapabilityStatement.rest.security.certificate.id">
      <path value="CapabilityStatement.rest.security.certificate.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.security.certificate.extension">
      <path value="CapabilityStatement.rest.security.certificate.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.security.certificate.modifierExtension">
      <path value="CapabilityStatement.rest.security.certificate.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition 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 that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.security.certificate.type">
      <path value="CapabilityStatement.rest.security.certificate.type"/>
      <short value="Mime type for certificates"/>
      <definition value="Mime type for a certificate."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MimeType"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="required"/>
        <description value="The mime type of an attachment. Any valid mime type is allowed."/>
        <valueSetUri value="http://www.rfc-editor.org/bcp/bcp13.txt"/>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.security.certificate.blob">
      <path value="CapabilityStatement.rest.security.certificate.blob"/>
      <short value="Actual certificate"/>
      <definition value="Actual certificate."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="base64Binary"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource">
      <path value="CapabilityStatement.rest.resource"/>
      <short value="Resource served on the REST interface"/>
      <definition value="A specification of the restful capabilities of the solution for a specific resource type."/>
      <comment value="Max of one repetition per resource type."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <constraint>
        <key value="cpb-12"/>
        <severity value="error"/>
        <human value="Search parameter names must be unique in the context of a resource."/>
        <expression value="searchParam.select(name).isDistinct()"/>
        <xpath value="count(f:searchParam)=count(distinct-values(f:searchParam/f:name/@value))"/>
      </constraint>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.rest.resource.id">
      <path value="CapabilityStatement.rest.resource.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.resource.extension">
      <path value="CapabilityStatement.rest.resource.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.resource.modifierExtension">
      <path value="CapabilityStatement.rest.resource.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition 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 that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.resource.type">
      <path value="CapabilityStatement.rest.resource.type"/>
      <short value="A resource type that is supported"/>
      <definition value="A type of resource exposed via the restful interface."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ResourceType"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="required"/>
        <description value="One of the resource types defined as part of FHIR."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/resource-types"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.resource.profile">
      <path value="CapabilityStatement.rest.resource.profile"/>
      <short value="Base System profile for all uses of resource"/>
      <definition value="A specification of the profile that describes the solution&apos;s overall support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles](profiling.html#profile-uses)."/>
      <comment value="The profile applies to all resources of this type - i.e. it is the superset of what is supported by the system."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.rest.resource.documentation">
      <path value="CapabilityStatement.rest.resource.documentation"/>
      <short value="Additional information about the use of the resource type"/>
      <definition value="Additional information about the resource type used by the system."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="markdown"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.interaction">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="ResourceInteraction"/>
      </extension>
      <path value="CapabilityStatement.rest.resource.interaction"/>
      <short value="What operations are supported?"/>
      <definition value="Identifies a restful operation supported by the solution."/>
      <min value="1"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
    </element>
    <element id="CapabilityStatement.rest.resource.interaction.id">
      <path value="CapabilityStatement.rest.resource.interaction.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.resource.interaction.extension">
      <path value="CapabilityStatement.rest.resource.interaction.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.resource.interaction.modifierExtension">
      <path value="CapabilityStatement.rest.resource.interaction.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition 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 that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.resource.interaction.code">
      <path value="CapabilityStatement.rest.resource.interaction.code"/>
      <short value="read | vread | update | patch | delete | history-instance | history-type | create | search-type"/>
      <definition value="Coded identifier of the operation, supported by the system resource."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="TypeRestfulInteraction"/>
        </extension>
        <strength value="required"/>
        <description value="Operations supported by REST at the type or instance level."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/type-restful-interaction"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.resource.interaction.documentation">
      <path value="CapabilityStatement.rest.resource.interaction.documentation"/>
      <short value="Anything special about operation behavior"/>
      <definition value="Guidance specific to the implementation of this operation, such as &apos;delete is a logical delete&apos; or &apos;updates are only allowed with version id&apos; or &apos;creates permitted from pre-authorized certificates only&apos;."/>
      <requirements value="REST allows a degree of variability in the implementation of RESTful solutions that is useful for exchange partners to be aware of."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.versioning">
      <path value="CapabilityStatement.rest.resource.versioning"/>
      <short value="no-version | versioned | versioned-update"/>
      <definition value="This field is set to no-version to specify that the system does not support (server) or use (client) versioning for this resource type. If this has some other value, the server must at least correctly track and populate the versionId meta-property on resources. If the value is &apos;versioned-update&apos;, then the server supports all the versioning features, including using e-tags for version integrity in the API."/>
      <comment value="If a server supports versionIds correctly, it SHOULD support vread too, but is not required to do so."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ResourceVersionPolicy"/>
        </extension>
        <strength value="required"/>
        <description value="How the system supports versioning for a resource."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/versioning-policy"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.resource.readHistory">
      <path value="CapabilityStatement.rest.resource.readHistory"/>
      <short value="Whether vRead can return past versions"/>
      <definition value="A flag for whether the server is able to return past versions as part of the vRead operation."/>
      <comment value="It is useful to support the vRead operation for current operations, even if past versions aren&apos;t available."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.updateCreate">
      <path value="CapabilityStatement.rest.resource.updateCreate"/>
      <short value="If update can commit to a new identity"/>
      <definition value="A flag to indicate that the server allows or needs to allow the client to create new identities on the server (e.g. that is, the client PUTs to a location where there is no existing resource). Allowing this operation means that the server allows the client to create new identities on the server."/>
      <comment value="Allowing the clients to create new identities on the server means that the system administrator needs to have confidence that the clients do not create clashing identities between them. Obviously, if there is only one client, this won&apos;t happen. While creating identities on the client means that the clients need to be managed, it&apos;s much more convenient for many scenarios if such management can be put in place."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.conditionalCreate">
      <path value="CapabilityStatement.rest.resource.conditionalCreate"/>
      <short value="If allows/uses conditional create"/>
      <definition value="A flag that indicates that the server supports conditional create."/>
      <comment value="Conditional Create is mainly appropriate for interface engine scripts converting from other formats, such as v2."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.conditionalRead">
      <path value="CapabilityStatement.rest.resource.conditionalRead"/>
      <short value="not-supported | modified-since | not-match | full-support"/>
      <definition value="A code that indicates how the server supports conditional read."/>
      <comment value="Conditional Read is mainly appropriate for interface engine scripts converting from other formats, such as v2."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConditionalReadStatus"/>
        </extension>
        <strength value="required"/>
        <description value="A code that indicates how the server supports conditional read."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/conditional-read-status"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.resource.conditionalUpdate">
      <path value="CapabilityStatement.rest.resource.conditionalUpdate"/>
      <short value="If allows/uses conditional update"/>
      <definition value="A flag that indicates that the server supports conditional update."/>
      <comment value="Conditional Update is mainly appropriate for interface engine scripts converting from other formats, such as v2."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.conditionalDelete">
      <path value="CapabilityStatement.rest.resource.conditionalDelete"/>
      <short value="not-supported | single | multiple - how conditional delete is supported"/>
      <definition value="A code that indicates how the server supports conditional delete."/>
      <comment value="Conditional Delete is mainly appropriate for interface engine scripts converting from other formats, such as v2."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConditionalDeleteStatus"/>
        </extension>
        <strength value="required"/>
        <description value="A code that indicates how the server supports conditional delete."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/conditional-delete-status"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.resource.referencePolicy">
      <path value="CapabilityStatement.rest.resource.referencePolicy"/>
      <short value="literal | logical | resolves | enforced | local"/>
      <definition value="A set of flags that defines how references are supported."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ReferenceHandlingPolicy"/>
        </extension>
        <strength value="required"/>
        <description value="A set of flags that defines how references are supported."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/reference-handling-policy"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.resource.searchInclude">
      <path value="CapabilityStatement.rest.resource.searchInclude"/>
      <short value="_include values supported by the server"/>
      <definition value="A list of _include values supported by the server."/>
      <comment value="If this list is empty, the server does not support includes."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.searchRevInclude">
      <path value="CapabilityStatement.rest.resource.searchRevInclude"/>
      <short value="_revinclude values supported by the server"/>
      <definition value="A list of _revinclude (reverse include) values supported by the server."/>
      <comment value="If this list is empty, the server does not support reverse includes."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.searchParam">
      <path value="CapabilityStatement.rest.resource.searchParam"/>
      <short value="Search parameters supported by implementation"/>
      <definition value="Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
    </element>
    <element id="CapabilityStatement.rest.resource.searchParam.id">
      <path value="CapabilityStatement.rest.resource.searchParam.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.resource.searchParam.extension">
      <path value="CapabilityStatement.rest.resource.searchParam.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.resource.searchParam.modifierExtension">
      <path value="CapabilityStatement.rest.resource.searchParam.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition 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 that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.resource.searchParam.name">
      <path value="CapabilityStatement.rest.resource.searchParam.name"/>
      <short value="Name of search parameter"/>
      <definition value="The name of the search parameter used in the interface."/>
      <comment value="Parameter names cannot overlap with standard parameter names, and standard parameters cannot be redefined."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.searchParam.definition">
      <path value="CapabilityStatement.rest.resource.searchParam.definition"/>
      <short value="Source of definition for parameter"/>
      <definition value="An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [SearchParameter.url]())."/>
      <comment value="This SHOULD be present, and matches refers to a SearchParameter by its canonical url. If systems wish to document their support for modifiers, comparators, target resource types, and chained parameters, they should do using a search parameter resource."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="uri"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.searchParam.type">
      <path value="CapabilityStatement.rest.resource.searchParam.type"/>
      <short value="number | date | string | token | reference | composite | quantity | uri"/>
      <definition value="The type of value a search parameter refers to, and how the content is interpreted."/>
      <comment value="While this can be looked up from the definition, it is included here as a convenience for systems that autogenerate a query interface based on the server capability statement. It SHALL be the same as the type in the search parameter definition."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SearchParamType"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="required"/>
        <description value="Data types allowed to be used for search parameters."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/search-param-type"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.resource.searchParam.documentation">
      <path value="CapabilityStatement.rest.resource.searchParam.documentation"/>
      <short value="Server-specific usage"/>
      <definition value="This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.interaction">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="SystemInteraction"/>
      </extension>
      <path value="CapabilityStatement.rest.interaction"/>
      <short value="What operations are supported?"/>
      <definition value="A specification of restful operations supported by the system."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
    </element>
    <element id="CapabilityStatement.rest.interaction.id">
      <path value="CapabilityStatement.rest.interaction.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.interaction.extension">
      <path value="CapabilityStatement.rest.interaction.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.interaction.modifierExtension">
      <path value="CapabilityStatement.rest.interaction.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition 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 that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.interaction.code">
      <path value="CapabilityStatement.rest.interaction.code"/>
      <short value="transaction | batch | search-system | history-system"/>
      <definition value="A coded identifier of the operation, supported by the system."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SystemRestfulInteraction"/>
        </extension>
        <strength value="required"/>
        <description value="Operations supported by REST at the system level."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/system-restful-interaction"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.interaction.documentation">
      <path value="CapabilityStatement.rest.interaction.documentation"/>
      <short value="Anything special about operation behavior"/>
      <definition value="Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.searchParam">
      <path value="CapabilityStatement.rest.searchParam"/>
      <short value="Search parameters for searching all resources"/>
      <definition value="Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation."/>
      <comment value="Typically, the only search parameters supported for all searchse are those that apply to all resources - tags, profiles, text search etc."/>
      <min value="0"/>
      <max value="*"/>
      <contentReference value="#CapabilityStatement.rest.resource.searchParam"/>
    </element>
    <element id="CapabilityStatement.rest.operation">
      <path value="CapabilityStatement.rest.operation"/>
      <short value="Definition of an operation or a custom query"/>
      <definition value="Definition of an operation or a named query together with its parameters and their meaning and type."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.rest.operation.id">
      <path value="CapabilityStatement.rest.operation.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.operation.extension">
      <path value="CapabilityStatement.rest.operation.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.operation.modifierExtension">
      <path value="CapabilityStatement.rest.operation.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition 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 that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.rest.operation.name">
      <path value="CapabilityStatement.rest.operation.name"/>
      <short value="Name by which the operation/query is invoked"/>
      <definition value="The name of the operation or query. For an operation, this is the name prefixed with $ and used in the URL. For a query, this is the name used in the _query parameter when the query is called."/>
      <comment value="The name here SHOULD be the same as the name in the definition, unless there is a name clash and the name cannot be used. The name does not include the &quot;$&quot; portion that is always included in the URL."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.operation.definition">
      <path value="CapabilityStatement.rest.operation.definition"/>
      <short value="The defined operation/query"/>
      <definition value="Where the formal definition can be found."/>
      <comment value="This can be used to build an HTML form to invoke the operation, for instance."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/OperationDefinition"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.rest.compartment">
      <path value="CapabilityStatement.rest.compartment"/>
      <short value="Compartments served/used by system"/>
      <definition value="An absolute URI which is a reference to the definition of a compartment that the system supports. The reference is to a CompartmentDefinition resource by its canonical URL ."/>
      <comment value="At present, the only defined compartments are at [CompartmentDefinition](compartmentdefinition.html)."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="uri"/>
      </type>
    </element>
    <element id="CapabilityStatement.messaging">
      <path value="CapabilityStatement.messaging"/>
      <short value="If messaging is supported"/>
      <definition value="A description of the messaging capabilities of the solution."/>
      <comment value="Multiple repetitions allow the documentation of multiple endpoints per solution."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <condition value="cpb-1"/>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <constraint>
        <key value="cpb-16"/>
        <severity value="error"/>
        <human value="A Capability Statement messaging element SHALL have either supportedMessage or event element, but not both."/>
        <expression value="supportedMessage.empty() != event.empty()"/>
        <xpath value="exists(f:supportedMessage) != exists(f:event)"/>
      </constraint>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.messaging.id">
      <path value="CapabilityStatement.messaging.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.messaging.extension">
      <path value="CapabilityStatement.messaging.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.messaging.modifierExtension">
      <path value="CapabilityStatement.messaging.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition 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 that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.messaging.endpoint">
      <path value="CapabilityStatement.messaging.endpoint"/>
      <short value="Where messages should be sent"/>
      <definition value="An endpoint (network accessible address) to which messages and/or replies are to be sent."/>
      <alias value="3"/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
    </element>
    <element id="CapabilityStatement.messaging.endpoint.id">
      <path value="CapabilityStatement.messaging.endpoint.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.messaging.endpoint.extension">
      <path value="CapabilityStatement.messaging.endpoint.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.messaging.endpoint.modifierExtension">
      <path value="CapabilityStatement.messaging.endpoint.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition 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 that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.messaging.endpoint.protocol">
      <path value="CapabilityStatement.messaging.endpoint.protocol"/>
      <short value="http | ftp | mllp +"/>
      <definition value="A list of the messaging transport protocol(s) identifiers, supported by this endpoint."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Coding"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MessageTransport"/>
        </extension>
        <strength value="extensible"/>
        <description value="The protocol used for message transport."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/message-transport"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.messaging.endpoint.address">
      <path value="CapabilityStatement.messaging.endpoint.address"/>
      <short value="Network address or identifier of the end-point"/>
      <definition value="The network address of the end-point. For solutions that do not use network addresses for routing, it can be just an identifier."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="uri"/>
      </type>
    </element>
    <element id="CapabilityStatement.messaging.reliableCache">
      <path value="CapabilityStatement.messaging.reliableCache"/>
      <short value="Reliable Message Cache Length (min)"/>
      <definition value="Length if the receiver&apos;s reliable messaging cache in minutes (if a receiver) or how long the cache length on the receiver should be (if a sender)."/>
      <comment value="If this value is missing then the application does not implement (receiver) or depend on (sender) reliable messaging."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="unsignedInt"/>
      </type>
    </element>
    <element id="CapabilityStatement.messaging.documentation">
      <path value="CapabilityStatement.messaging.documentation"/>
      <short value="Messaging interface behavior details"/>
      <definition value="Documentation about the system&apos;s messaging capabilities for this endpoint not otherwise documented by the capability statement. For example, the process for becoming an authorized messaging exchange partner."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.messaging.supportedMessage">
      <path value="CapabilityStatement.messaging.supportedMessage"/>
      <short value="Messages supported by this system"/>
      <definition value="References to message definitions for messages this system can send or receive."/>
      <comment value="This is a proposed alternative to the messaging.event structure."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.messaging.supportedMessage.id">
      <path value="CapabilityStatement.messaging.supportedMessage.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.messaging.supportedMessage.extension">
      <path value="CapabilityStatement.messaging.supportedMessage.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.messaging.supportedMessage.modifierExtension">
      <path value="CapabilityStatement.messaging.supportedMessage.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition 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 that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.messaging.supportedMessage.mode">
      <path value="CapabilityStatement.messaging.supportedMessage.mode"/>
      <short value="sender | receiver"/>
      <definition value="The mode of this event declaration - whether application is sender or receiver."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="EventCapabilityMode"/>
        </extension>
        <strength value="required"/>
        <description value="The mode of a message capability statement."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/event-capability-mode"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.messaging.supportedMessage.definition">
      <path value="CapabilityStatement.messaging.supportedMessage.definition"/>
      <short value="Message supported by this system"/>
      <definition value="Points to a message definition that identifies the messaging event, message structure, allowed responses, etc."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MessageDefinition"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.messaging.event">
      <path value="CapabilityStatement.messaging.event"/>
      <short value="Declare support for this event"/>
      <definition value="A description of the solution&apos;s support for an event at this end-point."/>
      <comment value="The same event may be listed up to two times - once as sender and once as receiver."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.messaging.event.id">
      <path value="CapabilityStatement.messaging.event.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.messaging.event.extension">
      <path value="CapabilityStatement.messaging.event.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.messaging.event.modifierExtension">
      <path value="CapabilityStatement.messaging.event.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition 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 that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.messaging.event.code">
      <path value="CapabilityStatement.messaging.event.code"/>
      <short value="Event type"/>
      <definition value="A coded identifier of a supported messaging event."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Coding"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MessageEvent"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="example"/>
        <description value="One of the message events defined as part of FHIR."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/message-events"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.messaging.event.category">
      <path value="CapabilityStatement.messaging.event.category"/>
      <short value="Consequence | Currency | Notification"/>
      <definition value="The impact of the content of the message."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MessageSignificanceCategory"/>
        </extension>
        <strength value="required"/>
        <description value="The impact of the content of a message."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/message-significance-category"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.messaging.event.mode">
      <path value="CapabilityStatement.messaging.event.mode"/>
      <short value="sender | receiver"/>
      <definition value="The mode of this event declaration - whether an application is a sender or receiver."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="EventCapabilityMode"/>
        </extension>
        <strength value="required"/>
        <description value="The mode of a message capability statement."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/event-capability-mode"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.messaging.event.focus">
      <path value="CapabilityStatement.messaging.event.focus"/>
      <short value="Resource that&apos;s focus of message"/>
      <definition value="A resource associated with the event. This is the resource that defines the event."/>
      <comment value="This SHALL be provided if the event type supports multiple different resource types."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ResourceType"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="required"/>
        <description value="One of the resource types defined as part of FHIR."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/resource-types"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.messaging.event.request">
      <path value="CapabilityStatement.messaging.event.request"/>
      <short value="Profile that describes the request"/>
      <definition value="Information about the request for this event."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.messaging.event.response">
      <path value="CapabilityStatement.messaging.event.response"/>
      <short value="Profile that describes the response"/>
      <definition value="Information about the response for this event."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.messaging.event.documentation">
      <path value="CapabilityStatement.messaging.event.documentation"/>
      <short value="Endpoint-specific event documentation"/>
      <definition value="Guidance on how this event is handled, such as internal system trigger points, business rules, etc."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.document">
      <path value="CapabilityStatement.document"/>
      <short value="Document definition"/>
      <definition value="A document definition."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <condition value="cpb-1"/>
      <constraint>
        <key value="ele-1"/>
        <severity value="error"/>
        <human value="All FHIR elements must have a @value or children"/>
        <expression value="hasValue() | (children().count() &gt; id.count())"/>
        <xpath value="@value|f:*|h:div"/>
        <source value="Element"/>
      </constraint>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.document.id">
      <path value="CapabilityStatement.document.id"/>
      <representation value="xmlAttr"/>
      <short value="xml:id (or equivalent in JSON)"/>
      <definition value="unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces."/>
      <min value="0"/>
      <max value="1"/>
      <base>
        <path value="Element.id"/>
        <min value="0"/>
        <max value="1"/>
      </base>
      <type>
        <code value="string"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.document.extension">
      <path value="CapabilityStatement.document.extension"/>
      <short value="Additional Content defined by implementations"/>
      <definition value="May be used to represent additional information that is not part of the basic definition of the element. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="Element.extension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.document.modifierExtension">
      <path value="CapabilityStatement.document.modifierExtension"/>
      <short value="Extensions that cannot be ignored"/>
      <definition 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 that contains it. Usually modifier elements provide negation or qualification. In order 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."/>
      <comment 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."/>
      <alias value="extensions"/>
      <alias value="user content"/>
      <alias value="modifiers"/>
      <min value="0"/>
      <max value="*"/>
      <base>
        <path value="BackboneElement.modifierExtension"/>
        <min value="0"/>
        <max value="*"/>
      </base>
      <type>
        <code value="Extension"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="rim"/>
        <map value="N/A"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.document.mode">
      <path value="CapabilityStatement.document.mode"/>
      <short value="producer | consumer"/>
      <definition value="Mode of this document declaration - whether an application is a producer or consumer."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="DocumentMode"/>
        </extension>
        <strength value="required"/>
        <description value="Whether the application produces or consumes documents."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/document-mode"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.document.documentation">
      <path value="CapabilityStatement.document.documentation"/>
      <short value="Description of document support"/>
      <definition value="A description of how the application supports or uses the specified document profile. For example, when documents are created, what action is taken with consumed documents, etc."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.document.profile">
      <path value="CapabilityStatement.document.profile"/>
      <short value="Constraint on a resource used in the document"/>
      <definition value="A constraint on a resource used in the document."/>
      <comment value="The first resource is the document resource."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/>
      </type>
      <isSummary value="true"/>
    </element>
  </snapshot>
  <differential>
    <element id="CapabilityStatement">
      <path value="CapabilityStatement"/>
      <short value="A statement of system capabilities"/>
      <definition value="A Capability Statement documents a set of capabilities (behaviors) of a FHIR Server that may be used as a statement of actual server functionality or a statement of required or desired server implementation."/>
      <min value="1"/>
      <max value="1"/>
      <constraint>
        <key value="cpb-8"/>
        <severity value="error"/>
        <human value="There can only be one REST declaration per mode."/>
        <expression value="rest.select(mode).isDistinct()"/>
        <xpath value="count(f:rest)=count(distinct-values(f:rest/f:mode/@value))"/>
      </constraint>
      <constraint>
        <key value="cpb-7"/>
        <severity value="error"/>
        <human value="The set of documents must be unique by the combination of profile and mode."/>
        <expression value="document.select(profile.reference&amp;mode).isDistinct()"/>
        <xpath value="count(f:document[f:mode/@value=&apos;producer&apos;])=count(distinct-values(f:document[f:mode/@value=&apos;producer&apos;]/f:profile/f:reference/@value)) and count(f:document[f:mode/@value=&apos;consumer&apos;])=count(distinct-values(f:document[f:mode/@value=&apos;consumer&apos;]/f:profile/f:reference/@value))"/>
      </constraint>
      <constraint>
        <key value="cpb-15"/>
        <severity value="error"/>
        <human value="Capability Statements of kind &apos;instance&apos; do not have implementation elements."/>
        <expression value="implementation.empty() or kind != &apos;capability&apos;"/>
        <xpath value="not(exists(f:implementation)) or (f:kind/@value != &apos;capability&apos;)"/>
      </constraint>
      <constraint>
        <key value="cpb-3"/>
        <severity value="error"/>
        <human value="Messaging end-point is required (and is only permitted) when a statement is for an implementation."/>
        <expression value="messaging.endpoint.empty() or kind = &apos;instance&apos;"/>
        <xpath value="not(exists(f:messaging/f:endpoint)) or f:kind/@value = &apos;instance&apos;"/>
      </constraint>
      <constraint>
        <key value="cpb-14"/>
        <severity value="error"/>
        <human value="Capability Statements of kind &apos;requirements&apos; do not have software or implementation elements."/>
        <expression value="(software.empty() and implementation.empty()) or kind != &apos;requirements&apos;"/>
        <xpath value="not(exists(f:software) or exists(f:implementation)) or (f:kind/@value != &apos;requirements&apos;)"/>
      </constraint>
      <constraint>
        <key value="cpb-2"/>
        <severity value="error"/>
        <human value="A Capability Statement SHALL have at least one of description, software, or implementation element."/>
        <expression value="(description.count() + software.count() + implementation.count()) &gt; 0"/>
        <xpath value="count(f:software | f:implementation | f:description) &gt; 0"/>
      </constraint>
      <constraint>
        <key value="cpb-1"/>
        <severity value="error"/>
        <human value="A Capability Statement SHALL have at least one of REST, messaging or document element."/>
        <expression value="rest.exists() or messaging.exists() or document.exists()"/>
        <xpath value="exists(f:rest) or exists(f:messaging) or exists(f:document)"/>
      </constraint>
      <mapping>
        <identity value="rim"/>
        <map value="n/a"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="conformance.behavior"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.url">
      <path value="CapabilityStatement.url"/>
      <short value="Logical URI to reference this capability statement (globally unique)"/>
      <definition value="An absolute URI that is used to identify this capability statement when it is referenced in a specification, model, design or an instance. This SHALL be a URL, SHOULD be globally unique, and SHOULD be an address at which this capability statement is (or will be) published. The URL SHOULD include the major version of the capability statement. For more information see [Technical and Business Versions](resource.html#versions)."/>
      <comment value="Can be a urn:uuid: or a urn:oid:, but real http: addresses are preferred. Multiple instances may share the same url if they have a distinct version."/>
      <requirements value="Allows the capability statement to be referenced by a single globally unique identifier."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="uri"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="w5"/>
        <map value="id"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.version">
      <path value="CapabilityStatement.version"/>
      <short value="Business version of the capability statement"/>
      <definition value="The identifier that is used to identify this version of the capability statement when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the capability statement author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence."/>
      <comment value="There may be different capability statement instances that have the same identifier but different versions. The version can be appended to the url in a reference to allow a refrence to a particular business version of the capability statement with the format [url]|[version]."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="w5"/>
        <map value="id.version"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.name">
      <path value="CapabilityStatement.name"/>
      <short value="Name for this capability statement (computer friendly)"/>
      <definition value="A natural language name identifying the capability statement. This name should be usable as an identifier for the module by machine processing applications such as code generation."/>
      <comment value="The name is not expected to be globally unique. The name should be a simple alpha-numeric type name to ensure that it is computable friendly."/>
      <requirements value="Support human navigation and code generation."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.title">
      <path value="CapabilityStatement.title"/>
      <short value="Name for this capability statement (human friendly)"/>
      <definition value="A short, descriptive, user-friendly title for the capability statement."/>
      <comment value="This name does not need to be machine-processing friendly and may contain punctuation, white-space, etc."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.status">
      <path value="CapabilityStatement.status"/>
      <short value="draft | active | retired | unknown"/>
      <definition value="The status of this capability statement. Enables tracking the life-cycle of the content."/>
      <comment value="Allows filtering of capability statements that are appropriate for use vs. not. &#10;This is labeled as &quot;Is Modifier&quot; because applications should not use a retired capability statement without due consideration. This is not intended for use with actual capability statements, but where capability statements are used to describe possible or desired systems."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="PublicationStatus"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="required"/>
        <description value="The lifecycle status of a Value Set or Concept Map."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/publication-status"/>
        </valueSetReference>
      </binding>
      <mapping>
        <identity value="w5"/>
        <map value="status"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.experimental">
      <path value="CapabilityStatement.experimental"/>
      <short value="For testing purposes, not real usage"/>
      <definition value="A boolean value to indicate that this capability statement is authored for testing purposes (or education/evaluation/marketing), and is not intended to be used for genuine usage."/>
      <comment value="Allows filtering of capability statement that are appropriate for use vs. not. This is labeled as &quot;Is Modifier&quot; because applications should not use an experimental capability statement in production."/>
      <requirements value="Enables experimental content to be developed following the same lifecycle that would be used for a production-level capability statement."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="boolean"/>
      </type>
      <isModifier value="true"/>
      <isSummary value="true"/>
      <mapping>
        <identity value="w5"/>
        <map value="class"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.date">
      <path value="CapabilityStatement.date"/>
      <short value="Date this was last changed"/>
      <definition value="The date (and optionally time) when the capability statement was published. The date must change if and when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the capability statement changes."/>
      <comment value="Note that this is not the same as the resource last-modified-date, since the resource may be a secondary representation of the capability statement. Additional specific dates may be added as extensions or be found by consulting Provenances associated with past versions of the resource."/>
      <alias value="Revision Date"/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="dateTime"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="w5"/>
        <map value="when.recorded"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.publisher">
      <path value="CapabilityStatement.publisher"/>
      <short value="Name of the publisher (organization or individual)"/>
      <definition value="The name of the individual or organization that published the capability statement."/>
      <comment value="Usually an organization, but may be an individual. The publisher (or steward) of the capability statement is the organization or individual primarily responsible for the maintenance and upkeep of the capability statement. This is not necessarily the same individual or organization that developed and initially authored the content. The publisher is the primary point of contact for questions or issues with the capability statement. This item SHOULD be populated unless the information is available from context."/>
      <requirements value="Helps establish the &quot;authority/credibility&quot; of the capability statement. May also allow for contact."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
      <mapping>
        <identity value="w5"/>
        <map value="who.witness"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.contact">
      <path value="CapabilityStatement.contact"/>
      <short value="Contact details for the publisher"/>
      <definition value="Contact details to assist a user in finding and communicating with the publisher."/>
      <comment value="May be a web site, an email address, a telephone number, etc."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="ContactDetail"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.description">
      <path value="CapabilityStatement.description"/>
      <short value="Natural language description of the capability statement"/>
      <definition value="A free text natural language description of the capability statement from a consumer&apos;s perspective. Typically, this is used when the capability statement describes a desired rather than an actual solution, for example as a formal expression of requirements as part of an RFP."/>
      <comment value="This description can be used to capture details such as why the capability statement was built, comments about misuse, instructions for clinical use and interpretation, literature references, examples from the paper world, etc. It is not a rendering of the capability statement as conveyed in the &apos;text&apos; field of the resource itself. This item SHOULD be populated unless the information is available from context (e.g. the language of the profile is presumed to be the predominant language in the place the profile was created). This does not need to be populated if the description is adequately implied by the software or implementation details."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="markdown"/>
      </type>
      <condition value="cpb-2"/>
    </element>
    <element id="CapabilityStatement.useContext">
      <path value="CapabilityStatement.useContext"/>
      <short value="Context the content is intended to support"/>
      <definition value="The content was developed with a focus and intent of supporting the contexts that are listed. These terms may be used to assist with indexing and searching for appropriate capability statement instances."/>
      <comment value="When multiple useContexts are specified, there is no expectation whether all or any of the contexts apply."/>
      <requirements value="Assist in searching for appropriate content."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="UsageContext"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.jurisdiction">
      <path value="CapabilityStatement.jurisdiction"/>
      <short value="Intended jurisdiction for capability statement (if applicable)"/>
      <definition value="A legal or geographic region in which the capability statement is intended to be used."/>
      <comment value="It may be possible for the capability statement to be used in jurisdictions other than those for which it was originally designed or intended."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="Jurisdiction"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="extensible"/>
        <description value="Countries and regions within which this artifact is targeted for use"/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/jurisdiction"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.purpose">
      <path value="CapabilityStatement.purpose"/>
      <short value="Why this capability statement is defined"/>
      <definition value="Explaination of why this capability statement is needed and why it has been designed as it has."/>
      <comment value="This element does not describe the usage of the capability statement Instead it provides traceability of &apos;&apos;why&apos;&apos; the resource is either needed or &apos;&apos;why&apos;&apos; it is defined as it is. This may be used to point to source materials or specifications that drove the structure of this capability statement."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="markdown"/>
      </type>
      <mapping>
        <identity value="objimpl"/>
        <map value="no-gen-base"/>
      </mapping>
      <mapping>
        <identity value="w5"/>
        <map value="why"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.copyright">
      <path value="CapabilityStatement.copyright"/>
      <short value="Use and/or publishing restrictions"/>
      <definition value="A copyright statement relating to the capability statement and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the capability statement."/>
      <requirements value="Consumers must be able to determine any legal restrictions on the use of the capability statement and/or its content."/>
      <alias value="License"/>
      <alias value="Restrictions"/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="markdown"/>
      </type>
      <mapping>
        <identity value="objimpl"/>
        <map value="no-gen-base"/>
      </mapping>
    </element>
    <element id="CapabilityStatement.kind">
      <path value="CapabilityStatement.kind"/>
      <short value="instance | capability | requirements"/>
      <definition value="The way that this statement is intended to be used, to describe an actual running instance of software, a particular product (kind not instance of software) or a class of implementation (e.g. a desired purchase)."/>
      <requirements value="Allow searching the 3 modes."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="CapabilityStatementKind"/>
        </extension>
        <strength value="required"/>
        <description value="How a capability statement is intended to be used."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/capability-statement-kind"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.instantiates">
      <path value="CapabilityStatement.instantiates"/>
      <short value="Canonical URL of another capability statement this implements"/>
      <definition value="Reference to a canonical URL of another CapabilityStatement that this software implements or uses. This capability statement is a published API description that corresponds to a business service. The rest of the capability statement does not need to repeat the details of the referenced resource, but can do so."/>
      <comment value="HL7 defines the following Services: [Terminology Service](terminology-service.html).&#10;&#10;Many [Implementation Guides](http://fhir.org/guides/registry) define additional services."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="uri"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.software">
      <path value="CapabilityStatement.software"/>
      <short value="Software that is covered by this capability statement"/>
      <definition value="Software that is covered by this capability statement. It is used when the capability statement describes the capabilities of a particular software version, independent of an installation."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <condition value="cpb-2"/>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.software.name">
      <path value="CapabilityStatement.software.name"/>
      <short value="A name the software is known by"/>
      <definition value="Name software is known by."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.software.version">
      <path value="CapabilityStatement.software.version"/>
      <short value="Version covered by this statement"/>
      <definition value="The version identifier for the software covered by this statement."/>
      <comment value="If possible, a version should be specified, as statements are likely to be different for different versions of software."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.software.releaseDate">
      <path value="CapabilityStatement.software.releaseDate"/>
      <short value="Date this version released"/>
      <definition value="Date this version of the software was released."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="dateTime"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.implementation">
      <path value="CapabilityStatement.implementation"/>
      <short value="If this describes a specific instance"/>
      <definition value="Identifies a specific implementation instance that is described by the capability statement - i.e. a particular installation, rather than the capabilities of a software program."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <condition value="cpb-2"/>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.implementation.description">
      <path value="CapabilityStatement.implementation.description"/>
      <short value="Describes this specific instance"/>
      <definition value="Information about the specific installation that this capability statement relates to."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.implementation.url">
      <path value="CapabilityStatement.implementation.url"/>
      <short value="Base URL for the installation"/>
      <definition value="An absolute base URL for the implementation. This forms the base for REST interfaces as well as the mailbox and document interfaces."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="uri"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.fhirVersion">
      <path value="CapabilityStatement.fhirVersion"/>
      <short value="FHIR Version the system uses"/>
      <definition value="The version of the FHIR specification on which this capability statement is based."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="id"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.acceptUnknown">
      <path value="CapabilityStatement.acceptUnknown"/>
      <short value="no | extensions | elements | both"/>
      <definition value="A code that indicates whether the application accepts unknown elements or extensions when reading resources."/>
      <comment value="Unknown elements in a resource can only arise as later versions of the specification are published, because this is the only place where such elements can be defined. Hence accepting unknown elements is about inter-version compatibility.&#10;&#10;Applications are recommended to accept unknown extensions and elements (&apos;both&apos;), but this is not always possible."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="UnknownContentCode"/>
        </extension>
        <strength value="required"/>
        <description value="A code that indicates whether an application accepts unknown elements or extensions when reading resources."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/unknown-content-code"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.format">
      <path value="CapabilityStatement.format"/>
      <short value="formats supported (xml | json | ttl | mime type)"/>
      <definition value="A list of the formats supported by this implementation using their content types."/>
      <comment value="&quot;xml&quot;, &quot;json&quot; and &quot;ttl&quot; are allowed, which describe the simple encodings described in the specification (and imply appropriate bundle support). Otherwise, mime types are legal here."/>
      <min value="1"/>
      <max value="*"/>
      <type>
        <code value="code"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MimeType"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="required"/>
        <description value="The mime type of an attachment. Any valid mime type is allowed."/>
        <valueSetUri value="http://www.rfc-editor.org/bcp/bcp13.txt"/>
      </binding>
    </element>
    <element id="CapabilityStatement.patchFormat">
      <path value="CapabilityStatement.patchFormat"/>
      <short value="Patch formats supported"/>
      <definition value="A list of the patch formats supported by this implementation using their content types."/>
      <comment value="At present, the patch mime types application/json-patch+json and application/xml-patch+xml are legal. Generally, if a server supports PATCH, it would be expected to support the patch formats and match the formats it supports, but this is not always possible or necessary."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="code"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MimeType"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="required"/>
        <description value="The mime type of an attachment. Any valid mime type is allowed."/>
        <valueSetUri value="http://www.rfc-editor.org/bcp/bcp13.txt"/>
      </binding>
    </element>
    <element id="CapabilityStatement.implementationGuide">
      <path value="CapabilityStatement.implementationGuide"/>
      <short value="Implementation guides supported"/>
      <definition value="A list of implementation guides that the server does (or should) support in their entirety."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="uri"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.profile">
      <path value="CapabilityStatement.profile"/>
      <short value="Profiles for use cases supported"/>
      <definition value="A list of profiles that represent different use cases supported by the system. For a server, &quot;supported by the system&quot; means the system hosts/produces a set of resources that are conformant to a particular profile, and allows clients that use its services to search using this profile and to find appropriate data. For a client, it means the system will search by this profile and process data according to the guidance implicit in the profile. See further discussion in [Using Profiles](profiling.html#profile-uses)."/>
      <comment value="Supported profiles are different than the profiles that apply to a particular resource in rest.resource.profile. The resource profile is a general statement of what features of the resource are supported overall by the system - the sum total of the facilities it supports. A supported profile is a deeper statement about the functionality of the data and services provided by the server (or used by the client). A typical case is a laboratory system that produces a set of different reports - this is the list of types of data that it publishes. A key aspect of declaring profiles here is the question of how the client converts knowledge that the server publishes this data into working with the data the client can inspect individual resources to determine whether they conform to a particular profile, but how does it find the ones that does? It does so by searching using the _profile parameter, so any resources listed here must be valid values for the _profile resource (using the identifier in the target profile). Typically, supported profiles cross resource types to describe a network of related resources, so they are listed here rather than by resource. However, they do not need to describe more than one resource."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.rest">
      <path value="CapabilityStatement.rest"/>
      <short value="If the endpoint is a RESTful one"/>
      <definition value="A definition of the restful capabilities of the solution, if any."/>
      <comment value="Multiple repetitions allow definition of both client and/or server behaviors or possibly behaviors under different configuration settings (for software or requirements statements)."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <condition value="cpb-1"/>
      <constraint>
        <key value="cpb-9"/>
        <severity value="error"/>
        <human value="A given resource can only be described once per RESTful mode."/>
        <expression value="resource.select(type).isDistinct()"/>
        <xpath value="count(f:resource)=count(distinct-values(f:resource/f:type/@value))"/>
      </constraint>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.rest.mode">
      <path value="CapabilityStatement.rest.mode"/>
      <short value="client | server"/>
      <definition value="Identifies whether this portion of the statement is describing the ability to initiate or receive restful operations."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="RestfulCapabilityMode"/>
        </extension>
        <strength value="required"/>
        <description value="The mode of a RESTful capability statement."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/restful-capability-mode"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.documentation">
      <path value="CapabilityStatement.rest.documentation"/>
      <short value="General description of implementation"/>
      <definition value="Information about the system&apos;s restful capabilities that apply across all applications, such as security."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.security">
      <path value="CapabilityStatement.rest.security"/>
      <short value="Information about security of implementation"/>
      <definition value="Information about security implementation from an interface perspective - what a client needs to know."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.rest.security.cors">
      <path value="CapabilityStatement.rest.security.cors"/>
      <short value="Adds CORS Headers (http://enable-cors.org/)"/>
      <definition value="Server adds CORS headers when responding to requests - this enables javascript applications to use the server."/>
      <comment value="The easiest CORS headers to add are Access-Control-Allow-Origin: * &amp; Access-Control-Request-Method: GET, POST, PUT, DELETE. All servers SHOULD support CORS."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="boolean"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.rest.security.service">
      <path value="CapabilityStatement.rest.security.service"/>
      <short value="OAuth | SMART-on-FHIR | NTLM | Basic | Kerberos | Certificates"/>
      <definition value="Types of security services that are supported/required by the system."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="CodeableConcept"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="RestfulSecurityService"/>
        </extension>
        <strength value="extensible"/>
        <description value="Types of security services used with FHIR."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/restful-security-service"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.security.description">
      <path value="CapabilityStatement.rest.security.description"/>
      <short value="General description of how security works"/>
      <definition value="General description of how security works."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.security.certificate">
      <path value="CapabilityStatement.rest.security.certificate"/>
      <short value="Certificates associated with security profiles"/>
      <definition value="Certificates associated with security profiles."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.security.certificate.type">
      <path value="CapabilityStatement.rest.security.certificate.type"/>
      <short value="Mime type for certificates"/>
      <definition value="Mime type for a certificate."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MimeType"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="required"/>
        <description value="The mime type of an attachment. Any valid mime type is allowed."/>
        <valueSetUri value="http://www.rfc-editor.org/bcp/bcp13.txt"/>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.security.certificate.blob">
      <path value="CapabilityStatement.rest.security.certificate.blob"/>
      <short value="Actual certificate"/>
      <definition value="Actual certificate."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="base64Binary"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource">
      <path value="CapabilityStatement.rest.resource"/>
      <short value="Resource served on the REST interface"/>
      <definition value="A specification of the restful capabilities of the solution for a specific resource type."/>
      <comment value="Max of one repetition per resource type."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <constraint>
        <key value="cpb-12"/>
        <severity value="error"/>
        <human value="Search parameter names must be unique in the context of a resource."/>
        <expression value="searchParam.select(name).isDistinct()"/>
        <xpath value="count(f:searchParam)=count(distinct-values(f:searchParam/f:name/@value))"/>
      </constraint>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.rest.resource.type">
      <path value="CapabilityStatement.rest.resource.type"/>
      <short value="A resource type that is supported"/>
      <definition value="A type of resource exposed via the restful interface."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ResourceType"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="required"/>
        <description value="One of the resource types defined as part of FHIR."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/resource-types"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.resource.profile">
      <path value="CapabilityStatement.rest.resource.profile"/>
      <short value="Base System profile for all uses of resource"/>
      <definition value="A specification of the profile that describes the solution&apos;s overall support for the resource, including any constraints on cardinality, bindings, lengths or other limitations. See further discussion in [Using Profiles](profiling.html#profile-uses)."/>
      <comment value="The profile applies to all resources of this type - i.e. it is the superset of what is supported by the system."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.rest.resource.documentation">
      <path value="CapabilityStatement.rest.resource.documentation"/>
      <short value="Additional information about the use of the resource type"/>
      <definition value="Additional information about the resource type used by the system."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="markdown"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.interaction">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="ResourceInteraction"/>
      </extension>
      <path value="CapabilityStatement.rest.resource.interaction"/>
      <short value="What operations are supported?"/>
      <definition value="Identifies a restful operation supported by the solution."/>
      <min value="1"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.interaction.code">
      <path value="CapabilityStatement.rest.resource.interaction.code"/>
      <short value="read | vread | update | patch | delete | history-instance | history-type | create | search-type"/>
      <definition value="Coded identifier of the operation, supported by the system resource."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="TypeRestfulInteraction"/>
        </extension>
        <strength value="required"/>
        <description value="Operations supported by REST at the type or instance level."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/type-restful-interaction"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.resource.interaction.documentation">
      <path value="CapabilityStatement.rest.resource.interaction.documentation"/>
      <short value="Anything special about operation behavior"/>
      <definition value="Guidance specific to the implementation of this operation, such as &apos;delete is a logical delete&apos; or &apos;updates are only allowed with version id&apos; or &apos;creates permitted from pre-authorized certificates only&apos;."/>
      <requirements value="REST allows a degree of variability in the implementation of RESTful solutions that is useful for exchange partners to be aware of."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.versioning">
      <path value="CapabilityStatement.rest.resource.versioning"/>
      <short value="no-version | versioned | versioned-update"/>
      <definition value="This field is set to no-version to specify that the system does not support (server) or use (client) versioning for this resource type. If this has some other value, the server must at least correctly track and populate the versionId meta-property on resources. If the value is &apos;versioned-update&apos;, then the server supports all the versioning features, including using e-tags for version integrity in the API."/>
      <comment value="If a server supports versionIds correctly, it SHOULD support vread too, but is not required to do so."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ResourceVersionPolicy"/>
        </extension>
        <strength value="required"/>
        <description value="How the system supports versioning for a resource."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/versioning-policy"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.resource.readHistory">
      <path value="CapabilityStatement.rest.resource.readHistory"/>
      <short value="Whether vRead can return past versions"/>
      <definition value="A flag for whether the server is able to return past versions as part of the vRead operation."/>
      <comment value="It is useful to support the vRead operation for current operations, even if past versions aren&apos;t available."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.updateCreate">
      <path value="CapabilityStatement.rest.resource.updateCreate"/>
      <short value="If update can commit to a new identity"/>
      <definition value="A flag to indicate that the server allows or needs to allow the client to create new identities on the server (e.g. that is, the client PUTs to a location where there is no existing resource). Allowing this operation means that the server allows the client to create new identities on the server."/>
      <comment value="Allowing the clients to create new identities on the server means that the system administrator needs to have confidence that the clients do not create clashing identities between them. Obviously, if there is only one client, this won&apos;t happen. While creating identities on the client means that the clients need to be managed, it&apos;s much more convenient for many scenarios if such management can be put in place."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.conditionalCreate">
      <path value="CapabilityStatement.rest.resource.conditionalCreate"/>
      <short value="If allows/uses conditional create"/>
      <definition value="A flag that indicates that the server supports conditional create."/>
      <comment value="Conditional Create is mainly appropriate for interface engine scripts converting from other formats, such as v2."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.conditionalRead">
      <path value="CapabilityStatement.rest.resource.conditionalRead"/>
      <short value="not-supported | modified-since | not-match | full-support"/>
      <definition value="A code that indicates how the server supports conditional read."/>
      <comment value="Conditional Read is mainly appropriate for interface engine scripts converting from other formats, such as v2."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConditionalReadStatus"/>
        </extension>
        <strength value="required"/>
        <description value="A code that indicates how the server supports conditional read."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/conditional-read-status"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.resource.conditionalUpdate">
      <path value="CapabilityStatement.rest.resource.conditionalUpdate"/>
      <short value="If allows/uses conditional update"/>
      <definition value="A flag that indicates that the server supports conditional update."/>
      <comment value="Conditional Update is mainly appropriate for interface engine scripts converting from other formats, such as v2."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="boolean"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.conditionalDelete">
      <path value="CapabilityStatement.rest.resource.conditionalDelete"/>
      <short value="not-supported | single | multiple - how conditional delete is supported"/>
      <definition value="A code that indicates how the server supports conditional delete."/>
      <comment value="Conditional Delete is mainly appropriate for interface engine scripts converting from other formats, such as v2."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ConditionalDeleteStatus"/>
        </extension>
        <strength value="required"/>
        <description value="A code that indicates how the server supports conditional delete."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/conditional-delete-status"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.resource.referencePolicy">
      <path value="CapabilityStatement.rest.resource.referencePolicy"/>
      <short value="literal | logical | resolves | enforced | local"/>
      <definition value="A set of flags that defines how references are supported."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ReferenceHandlingPolicy"/>
        </extension>
        <strength value="required"/>
        <description value="A set of flags that defines how references are supported."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/reference-handling-policy"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.resource.searchInclude">
      <path value="CapabilityStatement.rest.resource.searchInclude"/>
      <short value="_include values supported by the server"/>
      <definition value="A list of _include values supported by the server."/>
      <comment value="If this list is empty, the server does not support includes."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.searchRevInclude">
      <path value="CapabilityStatement.rest.resource.searchRevInclude"/>
      <short value="_revinclude values supported by the server"/>
      <definition value="A list of _revinclude (reverse include) values supported by the server."/>
      <comment value="If this list is empty, the server does not support reverse includes."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.searchParam">
      <path value="CapabilityStatement.rest.resource.searchParam"/>
      <short value="Search parameters supported by implementation"/>
      <definition value="Search parameters for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.searchParam.name">
      <path value="CapabilityStatement.rest.resource.searchParam.name"/>
      <short value="Name of search parameter"/>
      <definition value="The name of the search parameter used in the interface."/>
      <comment value="Parameter names cannot overlap with standard parameter names, and standard parameters cannot be redefined."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.searchParam.definition">
      <path value="CapabilityStatement.rest.resource.searchParam.definition"/>
      <short value="Source of definition for parameter"/>
      <definition value="An absolute URI that is a formal reference to where this parameter was first defined, so that a client can be confident of the meaning of the search parameter (a reference to [SearchParameter.url]())."/>
      <comment value="This SHOULD be present, and matches refers to a SearchParameter by its canonical url. If systems wish to document their support for modifiers, comparators, target resource types, and chained parameters, they should do using a search parameter resource."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="uri"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.resource.searchParam.type">
      <path value="CapabilityStatement.rest.resource.searchParam.type"/>
      <short value="number | date | string | token | reference | composite | quantity | uri"/>
      <definition value="The type of value a search parameter refers to, and how the content is interpreted."/>
      <comment value="While this can be looked up from the definition, it is included here as a convenience for systems that autogenerate a query interface based on the server capability statement. It SHALL be the same as the type in the search parameter definition."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SearchParamType"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="required"/>
        <description value="Data types allowed to be used for search parameters."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/search-param-type"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.resource.searchParam.documentation">
      <path value="CapabilityStatement.rest.resource.searchParam.documentation"/>
      <short value="Server-specific usage"/>
      <definition value="This allows documentation of any distinct behaviors about how the search parameter is used. For example, text matching algorithms."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.interaction">
      <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name">
        <valueString value="SystemInteraction"/>
      </extension>
      <path value="CapabilityStatement.rest.interaction"/>
      <short value="What operations are supported?"/>
      <definition value="A specification of restful operations supported by the system."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.interaction.code">
      <path value="CapabilityStatement.rest.interaction.code"/>
      <short value="transaction | batch | search-system | history-system"/>
      <definition value="A coded identifier of the operation, supported by the system."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="SystemRestfulInteraction"/>
        </extension>
        <strength value="required"/>
        <description value="Operations supported by REST at the system level."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/system-restful-interaction"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.rest.interaction.documentation">
      <path value="CapabilityStatement.rest.interaction.documentation"/>
      <short value="Anything special about operation behavior"/>
      <definition value="Guidance specific to the implementation of this operation, such as limitations on the kind of transactions allowed, or information about system wide search is implemented."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.searchParam">
      <path value="CapabilityStatement.rest.searchParam"/>
      <short value="Search parameters for searching all resources"/>
      <definition value="Search parameters that are supported for searching all resources for implementations to support and/or make use of - either references to ones defined in the specification, or additional ones defined for/by the implementation."/>
      <comment value="Typically, the only search parameters supported for all searchse are those that apply to all resources - tags, profiles, text search etc."/>
      <min value="0"/>
      <max value="*"/>
      <contentReference value="#CapabilityStatement.rest.resource.searchParam"/>
    </element>
    <element id="CapabilityStatement.rest.operation">
      <path value="CapabilityStatement.rest.operation"/>
      <short value="Definition of an operation or a custom query"/>
      <definition value="Definition of an operation or a named query together with its parameters and their meaning and type."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.rest.operation.name">
      <path value="CapabilityStatement.rest.operation.name"/>
      <short value="Name by which the operation/query is invoked"/>
      <definition value="The name of the operation or query. For an operation, this is the name prefixed with $ and used in the URL. For a query, this is the name used in the _query parameter when the query is called."/>
      <comment value="The name here SHOULD be the same as the name in the definition, unless there is a name clash and the name cannot be used. The name does not include the &quot;$&quot; portion that is always included in the URL."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.rest.operation.definition">
      <path value="CapabilityStatement.rest.operation.definition"/>
      <short value="The defined operation/query"/>
      <definition value="Where the formal definition can be found."/>
      <comment value="This can be used to build an HTML form to invoke the operation, for instance."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/OperationDefinition"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.rest.compartment">
      <path value="CapabilityStatement.rest.compartment"/>
      <short value="Compartments served/used by system"/>
      <definition value="An absolute URI which is a reference to the definition of a compartment that the system supports. The reference is to a CompartmentDefinition resource by its canonical URL ."/>
      <comment value="At present, the only defined compartments are at [CompartmentDefinition](compartmentdefinition.html)."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="uri"/>
      </type>
    </element>
    <element id="CapabilityStatement.messaging">
      <path value="CapabilityStatement.messaging"/>
      <short value="If messaging is supported"/>
      <definition value="A description of the messaging capabilities of the solution."/>
      <comment value="Multiple repetitions allow the documentation of multiple endpoints per solution."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <condition value="cpb-1"/>
      <constraint>
        <key value="cpb-16"/>
        <severity value="error"/>
        <human value="A Capability Statement messaging element SHALL have either supportedMessage or event element, but not both."/>
        <expression value="supportedMessage.empty() != event.empty()"/>
        <xpath value="exists(f:supportedMessage) != exists(f:event)"/>
      </constraint>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.messaging.endpoint">
      <path value="CapabilityStatement.messaging.endpoint"/>
      <short value="Where messages should be sent"/>
      <definition value="An endpoint (network accessible address) to which messages and/or replies are to be sent."/>
      <alias value="3"/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
    </element>
    <element id="CapabilityStatement.messaging.endpoint.protocol">
      <path value="CapabilityStatement.messaging.endpoint.protocol"/>
      <short value="http | ftp | mllp +"/>
      <definition value="A list of the messaging transport protocol(s) identifiers, supported by this endpoint."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Coding"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MessageTransport"/>
        </extension>
        <strength value="extensible"/>
        <description value="The protocol used for message transport."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/message-transport"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.messaging.endpoint.address">
      <path value="CapabilityStatement.messaging.endpoint.address"/>
      <short value="Network address or identifier of the end-point"/>
      <definition value="The network address of the end-point. For solutions that do not use network addresses for routing, it can be just an identifier."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="uri"/>
      </type>
    </element>
    <element id="CapabilityStatement.messaging.reliableCache">
      <path value="CapabilityStatement.messaging.reliableCache"/>
      <short value="Reliable Message Cache Length (min)"/>
      <definition value="Length if the receiver&apos;s reliable messaging cache in minutes (if a receiver) or how long the cache length on the receiver should be (if a sender)."/>
      <comment value="If this value is missing then the application does not implement (receiver) or depend on (sender) reliable messaging."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="unsignedInt"/>
      </type>
    </element>
    <element id="CapabilityStatement.messaging.documentation">
      <path value="CapabilityStatement.messaging.documentation"/>
      <short value="Messaging interface behavior details"/>
      <definition value="Documentation about the system&apos;s messaging capabilities for this endpoint not otherwise documented by the capability statement. For example, the process for becoming an authorized messaging exchange partner."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.messaging.supportedMessage">
      <path value="CapabilityStatement.messaging.supportedMessage"/>
      <short value="Messages supported by this system"/>
      <definition value="References to message definitions for messages this system can send or receive."/>
      <comment value="This is a proposed alternative to the messaging.event structure."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.messaging.supportedMessage.mode">
      <path value="CapabilityStatement.messaging.supportedMessage.mode"/>
      <short value="sender | receiver"/>
      <definition value="The mode of this event declaration - whether application is sender or receiver."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="EventCapabilityMode"/>
        </extension>
        <strength value="required"/>
        <description value="The mode of a message capability statement."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/event-capability-mode"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.messaging.supportedMessage.definition">
      <path value="CapabilityStatement.messaging.supportedMessage.definition"/>
      <short value="Message supported by this system"/>
      <definition value="Points to a message definition that identifies the messaging event, message structure, allowed responses, etc."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/MessageDefinition"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.messaging.event">
      <path value="CapabilityStatement.messaging.event"/>
      <short value="Declare support for this event"/>
      <definition value="A description of the solution&apos;s support for an event at this end-point."/>
      <comment value="The same event may be listed up to two times - once as sender and once as receiver."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.messaging.event.code">
      <path value="CapabilityStatement.messaging.event.code"/>
      <short value="Event type"/>
      <definition value="A coded identifier of a supported messaging event."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Coding"/>
      </type>
      <isSummary value="true"/>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MessageEvent"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="example"/>
        <description value="One of the message events defined as part of FHIR."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/message-events"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.messaging.event.category">
      <path value="CapabilityStatement.messaging.event.category"/>
      <short value="Consequence | Currency | Notification"/>
      <definition value="The impact of the content of the message."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="MessageSignificanceCategory"/>
        </extension>
        <strength value="required"/>
        <description value="The impact of the content of a message."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/message-significance-category"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.messaging.event.mode">
      <path value="CapabilityStatement.messaging.event.mode"/>
      <short value="sender | receiver"/>
      <definition value="The mode of this event declaration - whether an application is a sender or receiver."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="EventCapabilityMode"/>
        </extension>
        <strength value="required"/>
        <description value="The mode of a message capability statement."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/event-capability-mode"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.messaging.event.focus">
      <path value="CapabilityStatement.messaging.event.focus"/>
      <short value="Resource that&apos;s focus of message"/>
      <definition value="A resource associated with the event. This is the resource that defines the event."/>
      <comment value="This SHALL be provided if the event type supports multiple different resource types."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="ResourceType"/>
        </extension>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding">
          <valueBoolean value="true"/>
        </extension>
        <strength value="required"/>
        <description value="One of the resource types defined as part of FHIR."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/resource-types"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.messaging.event.request">
      <path value="CapabilityStatement.messaging.event.request"/>
      <short value="Profile that describes the request"/>
      <definition value="Information about the request for this event."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.messaging.event.response">
      <path value="CapabilityStatement.messaging.event.response"/>
      <short value="Profile that describes the response"/>
      <definition value="Information about the response for this event."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/>
      </type>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.messaging.event.documentation">
      <path value="CapabilityStatement.messaging.event.documentation"/>
      <short value="Endpoint-specific event documentation"/>
      <definition value="Guidance on how this event is handled, such as internal system trigger points, business rules, etc."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.document">
      <path value="CapabilityStatement.document"/>
      <short value="Document definition"/>
      <definition value="A document definition."/>
      <min value="0"/>
      <max value="*"/>
      <type>
        <code value="BackboneElement"/>
      </type>
      <condition value="cpb-1"/>
      <isSummary value="true"/>
    </element>
    <element id="CapabilityStatement.document.mode">
      <path value="CapabilityStatement.document.mode"/>
      <short value="producer | consumer"/>
      <definition value="Mode of this document declaration - whether an application is a producer or consumer."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="code"/>
      </type>
      <binding>
        <extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName">
          <valueString value="DocumentMode"/>
        </extension>
        <strength value="required"/>
        <description value="Whether the application produces or consumes documents."/>
        <valueSetReference>
          <reference value="http://hl7.org/fhir/ValueSet/document-mode"/>
        </valueSetReference>
      </binding>
    </element>
    <element id="CapabilityStatement.document.documentation">
      <path value="CapabilityStatement.document.documentation"/>
      <short value="Description of document support"/>
      <definition value="A description of how the application supports or uses the specified document profile. For example, when documents are created, what action is taken with consumed documents, etc."/>
      <min value="0"/>
      <max value="1"/>
      <type>
        <code value="string"/>
      </type>
    </element>
    <element id="CapabilityStatement.document.profile">
      <path value="CapabilityStatement.document.profile"/>
      <short value="Constraint on a resource used in the document"/>
      <definition value="A constraint on a resource used in the document."/>
      <comment value="The first resource is the document resource."/>
      <min value="1"/>
      <max value="1"/>
      <type>
        <code value="Reference"/>
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/StructureDefinition"/>
      </type>
      <isSummary value="true"/>
    </element>
  </differential>
</StructureDefinition>