<?xml version='1.0' encoding='UTF-8'?>
<CapabilityStatement xmlns="http://hl7.org/fhir">
  <id value="CapabilityStatement-DirectTrust-MaP-Payload-Testing-Tool-V6"/>
  <meta>
    <profile value="http://objects.directtrust.org/standards/fhir/StructureDefinition/map-endpoint-capabilitystatement"/>
  </meta>
  <text>
    <status value="additional"/>
    <div xmlns="http://www.w3.org/1999/xhtml">
      <h2>MaP Endpoint Capability Statement</h2>
      <table>
        <tbody>
          <tr>
            <th>Responsible Organization / Service</th>
            <td>DirectTrust Payload Testing Tool</td>
          </tr>
          <tr>
            <th>Direct Address</th>
            <td>mapFramework@Direct3.DirectTrust.org</td>
          </tr>
          <tr>
            <th>Supported Use Case</th>
            <td>cc-maternal-health-birth</td>
          </tr>
          <tr>
            <th>FHIR Version</th>
            <td>R4 (4.0.1)</td>
          </tr>
          <tr>
            <th>Last Updated</th>
            <td>2026-10-12</td>
          </tr>
        </tbody>
      </table>
      <h3>Reusable Transaction Catalog Capability</h3>
      <table>
        <thead>
          <tr>
            <th>Transaction</th>
            <th>Send</th>
            <th>Receive</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>send-outpatient-visit-notification</td>
            <td>No</td>
            <td>Yes</td>
          </tr>
          <tr>
            <td>send-admission-notification</td>
            <td>No</td>
            <td>Yes</td>
          </tr>
          <tr>
            <td>send-birth-notification</td>
            <td>No</td>
            <td>No</td>
          </tr>
          <tr>
            <td>send-discharge-notification</td>
            <td>No</td>
            <td>No</td>
          </tr>
          <tr>
            <td>send-documents</td>
            <td>No</td>
            <td>No</td>
          </tr>
          <tr>
            <td>query-for-documents</td>
            <td>No</td>
            <td>No</td>
          </tr>
          <tr>
            <td>send-patient-update</td>
            <td>No</td>
            <td>No</td>
          </tr>
          <tr>
            <td>send-workflow-status</td>
            <td>Yes</td>
            <td>Yes</td>
          </tr>
        </tbody>
      </table>
      <p>All eight catalog transactions are enumerated. Catalog membership is distinct from declared endpoint support: Send and Receive are asserted independently for each transaction. The current testing-endpoint declaration establishes receive support for send-outpatient-visit-notification and send-admission-notification, and establishes send-workflow-status in both directions; the remaining catalog entries are retained explicitly with unsupported directions until those endpoint capabilities are established.</p>
      <h3>Metadata Packaging</h3>
      <table>
        <thead>
          <tr>
            <th>Representation</th>
            <th>Send</th>
            <th>Receive</th>
            <th>Preferred</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>Payload containing XDM Metadata</td>
            <td>Yes</td>
            <td>Yes</td>
            <td>No</td>
          </tr>
          <tr>
            <td>Payload containing FHIR Metadata</td>
            <td>Yes</td>
            <td>Yes</td>
            <td>Yes</td>
          </tr>
        </tbody>
      </table>
      <h3>Correlated Response Packaging</h3>
      <p>TX8 normally uses the same metadata packaging representation as the originating MaP transaction when that representation is supported for the response.</p>
      <h3>Implementation Note</h3>
      <p>The CapabilityStatement enumerates the complete Reusable Transaction Catalog. A false direction flag means that direction is not currently declared as supported by this endpoint; it does not remove the transaction from the catalog.</p>
    </div>
  </text>
  <extension url="http://objects.directtrust.org/standards/fhir/StructureDefinition/map-supported-usecase">
    <valueCodeableConcept>
      <coding>
        <system value="http://objects.directtrust.org/standards/terminology/CodeSystem/ServDescCS"/>
        <code value="cc-maternal-health-birth"/>
        <display value="cc-maternal-health-birth"/>
      </coding>
    </valueCodeableConcept>
  </extension>
  <extension url="http://objects.directtrust.org/standards/fhir/StructureDefinition/map-supported-transaction">
    <extension url="transaction">
      <valueCodeableConcept>
        <coding>
          <system value="http://objects.directtrust.org/standards/terminology/CodeSystem/DTCodeSystem"/>
          <code value="send-outpatient-visit-notification"/>
          <display value="Send Outpatient Visit Notification"/>
        </coding>
      </valueCodeableConcept>
    </extension>
    <extension url="supportsSend">
      <valueBoolean value="false"/>
    </extension>
    <extension url="supportsReceive">
      <valueBoolean value="true"/>
    </extension>
  </extension>
  <extension url="http://objects.directtrust.org/standards/fhir/StructureDefinition/map-supported-transaction">
    <extension url="transaction">
      <valueCodeableConcept>
        <coding>
          <system value="http://objects.directtrust.org/standards/terminology/CodeSystem/DTCodeSystem"/>
          <code value="send-admission-notification"/>
          <display value="Send Admission Notification"/>
        </coding>
      </valueCodeableConcept>
    </extension>
    <extension url="supportsSend">
      <valueBoolean value="false"/>
    </extension>
    <extension url="supportsReceive">
      <valueBoolean value="true"/>
    </extension>
  </extension>
  <extension url="http://objects.directtrust.org/standards/fhir/StructureDefinition/map-supported-transaction">
    <extension url="transaction">
      <valueCodeableConcept>
        <coding>
          <system value="http://objects.directtrust.org/standards/terminology/CodeSystem/DTCodeSystem"/>
          <code value="send-birth-notification"/>
          <display value="Send Birth Notification"/>
        </coding>
      </valueCodeableConcept>
    </extension>
    <extension url="supportsSend">
      <valueBoolean value="false"/>
    </extension>
    <extension url="supportsReceive">
      <valueBoolean value="false"/>
    </extension>
  </extension>
  <extension url="http://objects.directtrust.org/standards/fhir/StructureDefinition/map-supported-transaction">
    <extension url="transaction">
      <valueCodeableConcept>
        <coding>
          <system value="http://objects.directtrust.org/standards/terminology/CodeSystem/DTCodeSystem"/>
          <code value="send-discharge-notification"/>
          <display value="Send Discharge Notification"/>
        </coding>
      </valueCodeableConcept>
    </extension>
    <extension url="supportsSend">
      <valueBoolean value="false"/>
    </extension>
    <extension url="supportsReceive">
      <valueBoolean value="false"/>
    </extension>
  </extension>
  <extension url="http://objects.directtrust.org/standards/fhir/StructureDefinition/map-supported-transaction">
    <extension url="transaction">
      <valueCodeableConcept>
        <coding>
          <system value="http://objects.directtrust.org/standards/terminology/CodeSystem/DTCodeSystem"/>
          <code value="send-documents"/>
          <display value="Send Documents"/>
        </coding>
      </valueCodeableConcept>
    </extension>
    <extension url="supportsSend">
      <valueBoolean value="false"/>
    </extension>
    <extension url="supportsReceive">
      <valueBoolean value="false"/>
    </extension>
  </extension>
  <extension url="http://objects.directtrust.org/standards/fhir/StructureDefinition/map-supported-transaction">
    <extension url="transaction">
      <valueCodeableConcept>
        <coding>
          <system value="http://objects.directtrust.org/standards/terminology/CodeSystem/DTCodeSystem"/>
          <code value="query-for-documents"/>
          <display value="Query for Documents"/>
        </coding>
      </valueCodeableConcept>
    </extension>
    <extension url="supportsSend">
      <valueBoolean value="false"/>
    </extension>
    <extension url="supportsReceive">
      <valueBoolean value="false"/>
    </extension>
  </extension>
  <extension url="http://objects.directtrust.org/standards/fhir/StructureDefinition/map-supported-transaction">
    <extension url="transaction">
      <valueCodeableConcept>
        <coding>
          <system value="http://objects.directtrust.org/standards/terminology/CodeSystem/DTCodeSystem"/>
          <code value="send-patient-update"/>
          <display value="Send Patient Update"/>
        </coding>
      </valueCodeableConcept>
    </extension>
    <extension url="supportsSend">
      <valueBoolean value="false"/>
    </extension>
    <extension url="supportsReceive">
      <valueBoolean value="false"/>
    </extension>
  </extension>
  <extension url="http://objects.directtrust.org/standards/fhir/StructureDefinition/map-supported-transaction">
    <extension url="transaction">
      <valueCodeableConcept>
        <coding>
          <system value="http://objects.directtrust.org/standards/terminology/CodeSystem/DTCodeSystem"/>
          <code value="send-workflow-status"/>
          <display value="Send Workflow Status"/>
        </coding>
      </valueCodeableConcept>
    </extension>
    <extension url="supportsSend">
      <valueBoolean value="true"/>
    </extension>
    <extension url="supportsReceive">
      <valueBoolean value="true"/>
    </extension>
  </extension>
  <extension url="http://objects.directtrust.org/standards/fhir/StructureDefinition/map-metadata-packaging">
    <extension url="representation">
      <valueCodeableConcept>
        <coding>
          <system value="http://objects.directtrust.org/standards/terminology/CodeSystem/MetadataTypeCS"/>
          <code value="urn:dt-org:dsm:map:SMTP+XD:1.0"/>
          <display value="Payload containing XDM Metadata"/>
        </coding>
      </valueCodeableConcept>
    </extension>
    <extension url="supportsSend">
      <valueBoolean value="true"/>
    </extension>
    <extension url="supportsReceive">
      <valueBoolean value="true"/>
    </extension>
    <extension url="preferred">
      <valueBoolean value="false"/>
    </extension>
  </extension>
  <extension url="http://objects.directtrust.org/standards/fhir/StructureDefinition/map-metadata-packaging">
    <extension url="representation">
      <valueCodeableConcept>
        <coding>
          <system value="http://objects.directtrust.org/standards/terminology/CodeSystem/MetadataTypeCS"/>
          <code value="urn:dt-org:dsm:map:SMTP+FHIR:1.0"/>
          <display value="Payload containing FHIR Metadata"/>
        </coding>
      </valueCodeableConcept>
    </extension>
    <extension url="supportsSend">
      <valueBoolean value="true"/>
    </extension>
    <extension url="supportsReceive">
      <valueBoolean value="true"/>
    </extension>
    <extension url="preferred">
      <valueBoolean value="true"/>
    </extension>
  </extension>
  <extension url="http://objects.directtrust.org/standards/fhir/StructureDefinition/map-correlated-response-same-as-originating">
    <valueBoolean value="true"/>
  </extension>
  <url value="http://objects.directtrust.org/standards/artifacts/CapabilityStatement/CapabilityStatement-DirectTrust-MaP-Payload-Testing-Tool-V6"/>
  <version value="1.3.0"/>
  <name value="DirectTrustMaPPayloadTestingTool"/>
  <title value="DirectTrust Payload Testing Tool - MaP Endpoint Capability Statement"/>
  <status value="active"/>
  <experimental value="true"/>
  <date value="2026-10-12"/>
  <publisher value="DirectTrust"/>
  <description value="Endpoint-specific MaP CapabilityStatement for the DirectTrust Payload Testing Tool. The full Reusable Transaction Catalog is enumerated so transaction direction support is explicit for every catalog transaction. Transaction codes use the consolidated DirectTrust CodeSystem. Direction flags describe this endpoint’s declared support and are not inferred from local example generators."/>
  <kind value="instance"/>
  <implementation>
    <description value="DirectTrust Payload Testing Tool"/>
  </implementation>
  <fhirVersion value="4.0.1"/>
  <format value="application/fhir+json"/>
  <format value="application/fhir+xml"/>
  <messaging>
    <endpoint>
      <protocol>
        <system value="http://terminology.hl7.org/CodeSystem/endpoint-connection-type"/>
        <code value="direct-project"/>
        <display value="Direct Project"/>
      </protocol>
      <address value="mailto:mapFramework@Direct3.DirectTrust.org"/>
    </endpoint>
    <documentation value="Direct-based MaP test endpoint for cc-maternal-health-birth. The complete Reusable Transaction Catalog is enumerated in the endpoint capability extensions; transaction direction support is declared independently."/>
  </messaging>
</CapabilityStatement>
