# Consumer Server CapabilityStatement - Data Exchange For Quality Measures Implementation Guide v1.0.0-ballot

## CapabilityStatement: Consumer Server CapabilityStatement 

 
This profile defines the expected capabilities of a Da Vinci DEQM Consumer Server when conforming to the Da Vinci DEQM Implementation Guide. Consumers include systems that are primary consumers of patient healthcare information and systems that consume data from Producers. This CapabilityStatement resource includes the complete list of the **recommended** Da Vinci DEQM profiles and RESTful operations that a Da Vinci DEQM Consumer Server could support. Servers have the option of choosing from this list based on their local use cases and other contextual requirements. 

 [Raw OpenAPI-Swagger Definition file](../consumer-server.openapi.json) | [Download](../consumer-server.openapi.json) 



## Resource Content

```json
{
  "resourceType" : "CapabilityStatement",
  "id" : "consumer-server",
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "cqi"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger" : 4,
    "_valueInteger" : {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical" : "http://hl7.org/fhir/uv/deqm/ImplementationGuide/hl7.fhir.uv.deqm"
      }]
    }
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
    "valueCode" : "trial-use",
    "_valueCode" : {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical" : "http://hl7.org/fhir/uv/deqm/ImplementationGuide/hl7.fhir.uv.deqm"
      }]
    }
  }],
  "url" : "http://hl7.org/fhir/uv/deqm/CapabilityStatement/consumer-server",
  "version" : "1.0.0-ballot",
  "name" : "ConsumerServerCapabilityStatement",
  "title" : "Consumer Server CapabilityStatement",
  "status" : "active",
  "experimental" : false,
  "date" : "2020-07-05",
  "publisher" : "HL7 International / Clinical Quality Information",
  "contact" : [{
    "telecom" : [{
      "system" : "url",
      "value" : "http://www.hl7.org/Special/committees/cqi"
    }]
  }],
  "description" : "This profile defines the expected capabilities of a Da Vinci DEQM Consumer Server when conforming to the Da Vinci DEQM Implementation Guide.  Consumers include systems that are primary consumers of patient healthcare information and systems that consume data from Producers.  This CapabilityStatement resource includes the complete list of the *recommended*  Da Vinci DEQM profiles and RESTful operations that a Da Vinci DEQM Consumer Server could support. Servers have the option of choosing from this list based on their local use cases and other contextual requirements.",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "http://unstats.un.org/unsd/methods/m49/m49.htm",
      "code" : "001",
      "display" : "World"
    }]
  }],
  "kind" : "requirements",
  "fhirVersion" : "4.0.1",
  "format" : ["xml", "json"],
  "patchFormat" : ["application/json-patch+json"],
  "implementationGuide" : ["http://hl7.org/fhir/uv/deqm/ImplementationGuide/hl7.fhir.uv.deqm",
  "http://hl7.org/fhir/uv/cqm/ImplementationGuide/hl7.fhir.uv.cqm"],
  "rest" : [{
    "mode" : "server",
    "documentation" : "Da Vinci DEQM Consumer Server **SHALL**\n\n1. Support the Submit Data transaction defined in the *Framework* Section of  this  Implementation Guide.\n1. Declare a CapabilityStatement identifying the list of supported profiles and operations.\n   - Use the [DEQM Submit Data Update Type Extension](StructureDefinition-deqm-submitDataUpdateType.html) to indicate whether it whether it supports snapshot or incremental data exchange.\n1. Implement the FHIR RESTful API for operations including returning the appropriate response classes as described in the FHIR specification for [Extended Operations on the RESTful API ](http://hl7.org/fhir/R4/operations.html).\n1. Support both xml and json resource formats for all interactions.",
    "security" : {
      "description" : "For general security consideration refer to the [Security and Privacy Considerations](http://hl7.org/fhir/R4/secpriv-module.html)."
    },
    "resource" : [{
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
        "valueCode" : "SHALL"
      }],
      "type" : "Measure",
      "supportedProfile" : ["http://hl7.org/fhir/uv/crmi/StructureDefinition/crmi-shareablemeasure"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHOULD"
        }],
        "code" : "read"
      }],
      "operation" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "name" : "data-requirements",
        "definition" : "http://hl7.org/fhir/OperationDefinition/Measure-data-requirements"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        },
        {
          "url" : "http://hl7.org/fhir/uv/deqm/StructureDefinition/deqm-submitDataUpdateType",
          "valueCode" : "incremental"
        }],
        "name" : "submit-data",
        "definition" : "http://hl7.org/fhir/OperationDefinition/Measure-submit-data",
        "documentation" : "**SHALL** Use the [DEQM Submit Data Update Type Extension](StructureDefinition-deqm-submitDataUpdateType.html) to indicate whether it whether it supports snapshot or incremental data exchange.  **SHALL** reject the submit data payload if there is mismatch between the update type stated in the data exchange MeasureReport submitted by the Producer (client) and the capabilities supported by the Consumer (server) by returning a 400 Bad Request http error code. An OperationOutcome **SHOULD** be returned stating that the [snapshot/incremental] update is not supported ."
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHOULD"
        },
        {
          "url" : "http://hl7.org/fhir/uv/deqm/StructureDefinition/deqm-submitDataUpdateType",
          "valueCode" : "incremental"
        }],
        "name" : "bulk-submit-data",
        "definition" : "http://hl7.org/fhir/uv/deqm/OperationDefinition/bulk-submit-data",
        "documentation" : "**SHALL** Use the [DEQM Submit Data Update Type Extension](StructureDefinition-deqm-submitDataUpdateType.html) to indicate whether it whether it supports snapshot or incremental data exchange.  **SHALL** reject the submit data payload if there is mismatch between the update type stated in the data exchange MeasureReport submitted by the Producer (client) and the capabilities supported by the Consumer (server) by returning a 400 Bad Request http error code. An OperationOutcome **SHOULD** be returned stating that the [snapshot/incremental] update is not supported ."
      }]
    }],
    "interaction" : [{
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
        "valueCode" : "MAY"
      }],
      "code" : "transaction"
    },
    {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
        "valueCode" : "MAY"
      }],
      "code" : "batch"
    },
    {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
        "valueCode" : "MAY"
      }],
      "code" : "search-system"
    },
    {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
        "valueCode" : "MAY"
      }],
      "code" : "history-system"
    }]
  }]
}

```
