# SMART DTR Client - Da Vinci - Documentation Templates and Rules v2.2.0

## CapabilityStatement: SMART DTR Client 

 
This statement defines the expected capabilities of DTR SMART on FHIR applications. Such apps require client support for retrieving and editing QuestionnaireResponse resources and related resources, as well as client support for the Questionnaire Package, ValueSet Expand, and Next Question operations. 

 [Raw OpenAPI-Swagger Definition file](../smart-dtr-client.openapi.json) | [Download](../smart-dtr-client.openapi.json) 



## Resource Content

```json
{
  "resourceType" : "CapabilityStatement",
  "id" : "smart-dtr-client",
  "extension" : [{
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
    "valueCode" : "cds"
  },
  {
    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
    "valueInteger" : 2,
    "_valueInteger" : {
      "extension" : [{
        "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
        "valueCanonical" : "http://hl7.org/fhir/us/davinci-dtr/ImplementationGuide/hl7.fhir.us.davinci-dtr"
      }]
    }
  },
  {
    "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/us/davinci-dtr/ImplementationGuide/hl7.fhir.us.davinci-dtr"
      }]
    }
  }],
  "url" : "http://hl7.org/fhir/us/davinci-dtr/CapabilityStatement/smart-dtr-client",
  "version" : "2.2.0",
  "name" : "DTRSmartClient",
  "title" : "SMART on FHIR DTR Client",
  "status" : "active",
  "experimental" : false,
  "date" : "2024-08-02",
  "publisher" : "HL7 International / Clinical Decision Support",
  "contact" : [{
    "name" : "HL7 International / Clinical Decision Support",
    "telecom" : [{
      "system" : "url",
      "value" : "http://www.hl7.org/Special/committees/dss"
    }]
  }],
  "description" : "This statement defines the expected capabilities of DTR SMART on FHIR applications. Such apps require client support for retrieving and editing QuestionnaireResponse resources and related resources, as well as client support for the Questionnaire Package, ValueSet Expand, and Next Question operations.",
  "jurisdiction" : [{
    "coding" : [{
      "system" : "urn:iso:std:iso:3166",
      "code" : "US"
    }]
  }],
  "kind" : "requirements",
  "imports" : ["http://hl7.org/fhir/us/core/CapabilityStatement/us-core-client|7.0.0"],
  "fhirVersion" : "4.0.1",
  "format" : ["json"],
  "rest" : [{
    "mode" : "client",
    "documentation" : "A SMART on FHIR DTR Client provides an application conforming to the SMART on FHIR specification and related requirements declared in this Implementation Guide.",
    "security" : {
      "description" : "§caps-6^dtr-server,dtr-client^exchange:Implementations **SHALL** meet the general security requirements documented in the [HRex implementation guide](https://build.fhir.org/ig/HL7/davinci-ehrx).§"
    },
    "resource" : [{
      "type" : "QuestionnaireResponse",
      "supportedProfile" : ["http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaireresponse|2.2.0"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "read"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "create"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "update"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "search-type"
      }],
      "searchParam" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "name" : "context",
        "definition" : "http://hl7.org/fhir/us/davinci-dtr/SearchParameter/qr-context|2.2.0",
        "type" : "reference",
        "documentation" : "Allows retrieving QuestionnaireResponse for a context"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "name" : "patient",
        "type" : "reference",
        "documentation" : "Allows retrieving QuestionnaireResponse for a patient"
      }]
    },
    {
      "type" : "Encounter",
      "supportedProfile" : ["http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-encounter|2.2.1"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "read"
      }]
    },
    {
      "type" : "DeviceRequest",
      "supportedProfile" : ["http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-devicerequest|2.2.1"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "read"
      }]
    },
    {
      "type" : "MedicationRequest",
      "supportedProfile" : ["http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-medicationrequest|2.2.1"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "read"
      }]
    },
    {
      "type" : "NutritionOrder",
      "supportedProfile" : ["http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-nutritionorder|2.2.1"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "read"
      }]
    },
    {
      "type" : "CommunicationRequest",
      "supportedProfile" : ["http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-communicationrequest|2.2.1"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "read"
      }]
    },
    {
      "type" : "ServiceRequest",
      "supportedProfile" : ["http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-servicerequest|2.2.1"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "read"
      }]
    },
    {
      "type" : "VisionPrescription",
      "supportedProfile" : ["http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-visionprescription|2.2.1"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "read"
      }]
    },
    {
      "type" : "Task",
      "supportedProfile" : ["http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-task|2.2.1"],
      "interaction" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "read"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "create"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "code" : "update"
      }]
    },
    {
      "type" : "Questionnaire",
      "operation" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "name" : "questionnaire-package",
        "definition" : "http://hl7.org/fhir/us/davinci-dtr/OperationDefinition/questionnaire-package|2.2.0"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "name" : "next-question",
        "definition" : "http://hl7.org/fhir/uv/sdc/OperationDefinition/Questionnaire-next-question|4.0.0"
      },
      {
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "name" : "log-questionnaire-errors",
        "definition" : "http://hl7.org/fhir/us/davinci-dtr/OperationDefinition/log-questionnaire-errors|2.2.0"
      }]
    },
    {
      "type" : "ValueSet",
      "operation" : [{
        "extension" : [{
          "url" : "http://hl7.org/fhir/StructureDefinition/capabilitystatement-expectation",
          "valueCode" : "SHALL"
        }],
        "name" : "expand",
        "definition" : "http://hl7.org/fhir/OperationDefinition/ValueSet-expand"
      }]
    }]
  }]
}

```
