DTRMetricData
type: StructureDefinition
node role: treeRoot
id:
  v: DTRMetricData
text:
  status:
    v: extensions
  div: Generated Narrative: StructureDefinition DTRMetricData Name Flags Card. Type Description & Constraints<img src="[binary]" alt="doco" style="background-color: inherit"/> DTRMetricData 0..* Base DTR Metric Data Instances of this logical model are not marked to be the target of a Reference source 1..1 code provider-src | payer-src | DTRApp-src Binding: Metric Source (required) sofApp 0..1 url URL of SMART on FHIR application providerId 1..1 Identifier Identifier for the user initiating DTR system 1..1 uri The namespace for the identifier value Required Pattern: http://hl7.org/fhir/sid/us-npi value 1..1 string The value that is unique groupId 1..1 Identifier Identifier for the healthcare organization initiating DTR system 1..1 uri The namespace for the identifier value Required Pattern: http://hl7.org/fhir/sid/us-npi value 1..1 string The value that is unique payerId 1..1 Identifier Payer receiving DTR request system 1..1 uri The namespace for the identifier value value 1..1 string The value that is unique assertionId 0..* string Unique ID for order item docReason 0..* code withpa | withclaim | withorder | retain-doc | OTH Binding: CRD Coverage Information Documentation Reason Value Set (required) launchMode 0..1 code crdlaunch | relaunch | salaunch | cdexlaunch Binding: Metric Launch Mode (required) orderItem 1..* CodeableConcept What was ordered Binding: CRD Order Detail Codes Value Set (extensible) action 1..* BackboneElement Actions the reporting system engaged in as part of the DTR session. actionDetail 1..1 code launch | qpackage | mrquery | userresponse | nextq | storeqr Binding: Metric Action (required) requestTime 1..1 instant Time action initiated responseTime 0..1 instant Time of action response httpResponse 0..1 integer HTTP response status code questionnaire 0..1 canonical(DTR Standard Questionnaire | DTR Questionnaire for adaptive form) Associated Questionnaire issue 0..* BackboneElement OperationOutcome info code 1..1 code Error code Binding: IssueType (r…
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm
  value:
    v: 1
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status
  value:
    v: informative
extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-wg
  value:
    v: cds
url:
  v: http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/DTRMetricData
version:
  v: 2.1.0
name:
  v: DTRMetricData
title:
  v: DTR Metric Data
status:
  v: active
experimental:
  v: false
date:
  v: 2024-12-21T15:53:40+00:00
publisher:
  v: HL7 International / Clinical Decision Support
contact:
  name:
    v: HL7 International / Clinical Decision Support
  telecom:
    system:
      v: url
    value:
      v: http://www.hl7.org/Special/committees/dss
description:
  v: A logical model describing the information that should be captured by DTR implementers about every DTR invocation to support measures evaluating DTR implementation.
jurisdiction:
  coding:
    system:
      v: urn:iso:std:iso:3166
    code:
      v: US
purpose:
  v: **Purpose:** This logical model is NOT a FHIR data structure for information exchange. Instead, it is a model of the information that **SHOULD** be collected and maintained for each DTR system action. While implementers may choose any internal storage format that is appropriate for their system, the information collected should ultimately be mapped to the information model below. Mapping implementation data to these elements will allow metrics (see the [table on the metrics page]) to be represented in a way that provides consistent responses to requirements from various interested parties (providers, payers, regulators, quality organizations, certification agencies, states, etc.) by each of the participants in the DTR exchanges. A separate instance should be created by each participant for each DTR 'session': * For a 'Light' EHR, a session exists from the time the DTR SMART app launches until it closes. * For a 'Full' EHR, a session exists from the time the user interface initiates the DTR process until the user interface returns from QuestionnaireResponse population to other activity. * For a SMART app, a session runs from the time the app is launched until it closes. * For a payer, a session runs from the time a SMART back-end connection from the Full EHR or SMART app is established until the last operation call is made using that security token. Resumed DTR sessions initiated from a previously stored QuestionnaireResponse will be tracked separately from initial DTR sessions. Unless there is at least one CRD-assigned assertion id present on the record, it will not be possible to tie together multiple sessions related to the same QuestionnaireResponse or order.
fhir version:
  v: 4.0.1
kind:
  v: logical
abstract:
  v: false
type:
  v: http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/DTRMetricData
base definition:
  v: http://hl7.org/fhir/StructureDefinition/Base
  link: http://hl7.org/fhir/StructureDefinition/Base
derivation:
  v: specialization
snapshot:
  element:
    id:
      v: DTRMetricData
    path:
      v: DTRMetricData
    short:
      v: DTR Metric Data
    definition:
      v: A logical model describing the information that should be captured by DTR implementers about every DTR invocation to support measures evaluating DTR implementation.
    min:
      v: 0
    max:
      v: *
    base:
      path:
        v: Base
      min:
        v: 0
      max:
        v: *
    is modifier:
      v: false
  element:
    id:
      v: DTRMetricData.source
    path:
      v: DTRMetricData.source
    short:
      v: provider-src | payer-src | DTRApp-src
    definition:
      v: A code to indicate which type of system collected the metric data (DTRApp can be either a Native or SMART on FHIR app)
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: DTRMetricData.source
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: code
    binding:
      strength:
        v: required
      value set:
        v: http://hl7.org/fhir/us/davinci-dtr/ValueSet/metric-Source
        link: http://hl7.org/fhir/us/davinci-dtr/ValueSet/metric-Source
  element:
    id:
      v: DTRMetricData.sofApp
    path:
      v: DTRMetricData.sofApp
    short:
      v: URL of SMART on FHIR application
    definition:
      v: The URL of SMART on FHIR application to identify the specific DTR application used by the provider and payer. If not present, then the DTR session is with a Full EHR.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: DTRMetricData.sofApp
      min:
        v: 0
      max:
        v: 1
    type:
      code:
        v: url
  element:
    id:
      v: DTRMetricData.providerId
    path:
      v: DTRMetricData.providerId
    short:
      v: Identifier for the user initiating DTR
    definition:
      v: The NPI number of the user who initiated this DTR session.
    min:
      v: 1
    max:
      v: 1
    base:
      path:
        v: DTRMetricData.providerId
      min:
        v: 1
      max:
        v: 1
    type:
      code:
        v: Identifier
    constraint:
      key:
        v: ele-1
      severity:
        v: error
      human:
        v: All FHIR elements must have a @value or children
      expression:
        v: hasValue() or (children().count() > id.count())
      xpath:
        v: @value|f:*|h:div
      source:
        v: http://hl7.org/fhir/StructureDefinition/Element
        link: http://hl7.org/fhir/StructureDefinition/Element
  element:
    id:
      v: DTRMetricData.providerId.id
    path:
      v: DTRMetricData.providerId.id
    representation:
      v: xmlAttr
    short:
      v: Unique id for inter-element referencing
    definition:
      v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
    min:
      v: 0
    max:
      v: 1
    base:
      path:
        v: Element.id
      min:
        v: 0
      max:
        v: 1

extension:
  url:
    v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
  value:
    v: string
code:
  v: http://hl7.org/fhirpath/System.String

v: false

v: false

identity:
  v: rim
map:
  v: n/a

id:
  v: DTRMetricData.providerId.extension
path:
  v: DTRMetricData.providerId.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DTRMetricData.providerId.use
path:
  v: DTRMetricData.providerId.use
short:
  v: usual | official | temp | secondary | old (If known)
definition:
  v: The purpose of this identifier.
comment:
  v: Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.
requirements:
  v: Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.use
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: true
is modifier reason:
  v: This is labeled as "Is Modifier" because applications should not mistake a temporary id for a permanent one.
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: IdentifierUse
  strength:
    v: required
  description:
    v: Identifies the purpose for this identifier, if known .
  value set:
    v: http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: Role.code or implied by context

id:
  v: DTRMetricData.providerId.type
path:
  v: DTRMetricData.providerId.type
short:
  v: Description of identifier
definition:
  v: A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.
comment:
  v: This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.
requirements:
  v: Allows users to make use of identifiers when the identifier system is not known.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: IdentifierType
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
    value:
      v: true
  strength:
    v: extensible
  description:
    v: A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
  value set:
    v: http://hl7.org/fhir/ValueSet/identifier-type
    link: http://hl7.org/fhir/ValueSet/identifier-type
mapping:
  identity:
    v: v2
  map:
    v: CX.5
mapping:
  identity:
    v: rim
  map:
    v: Role.code or implied by context

id:
  v: DTRMetricData.providerId.system
path:
  v: DTRMetricData.providerId.system
short:
  v: The namespace for the identifier value
definition:
  v: Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
comment:
  v: Identifier.system is always case sensitive.
requirements:
  v: There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Identifier.system
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
pattern:
  v: http://hl7.org/fhir/sid/us-npi
example:
  label:
    v: General
  value:
    v: http://www.acme.com/identifiers/patient
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.4 / EI-2-4
mapping:
  identity:
    v: rim
  map:
    v: II.root or Role.id.root
mapping:
  identity:
    v: servd
  map:
    v: ./IdentifierType

id:
  v: DTRMetricData.providerId.value
path:
  v: DTRMetricData.providerId.value
short:
  v: The value that is unique
definition:
  v: The portion of the identifier typically relevant to the user and which is unique within the context of the system.
comment:
  v: If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/R4/extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Identifier.value
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
example:
  label:
    v: General
  value:
    v: 123456
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.1 / EI.1
mapping:
  identity:
    v: rim
  map:
    v: II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
mapping:
  identity:
    v: servd
  map:
    v: ./Value

id:
  v: DTRMetricData.providerId.period
path:
  v: DTRMetricData.providerId.period
short:
  v: Time period when id is/was valid for use
definition:
  v: Time period during which identifier is/was valid for use.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.7 + CX.8
mapping:
  identity:
    v: rim
  map:
    v: Role.effectiveTime or implied by context
mapping:
  identity:
    v: servd
  map:
    v: ./StartDate and ./EndDate

id:
  v: DTRMetricData.providerId.assigner
path:
  v: DTRMetricData.providerId.assigner
short:
  v: Organization that issued id (may be just text)
definition:
  v: Organization that issued/manages the identifier.
comment:
  v: The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.assigner
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.4 / (CX.4,CX.9,CX.10)
mapping:
  identity:
    v: rim
  map:
    v: II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
mapping:
  identity:
    v: servd
  map:
    v: ./IdentifierIssuingAuthority

id:
  v: DTRMetricData.groupId
path:
  v: DTRMetricData.groupId
short:
  v: Identifier for the healthcare organization initiating DTR
definition:
  v: The NPI of the hospital/clinic/other organization that initiated this DTR session.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DTRMetricData.groupId
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: DTRMetricData.groupId.id
path:
  v: DTRMetricData.groupId.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DTRMetricData.groupId.extension
path:
  v: DTRMetricData.groupId.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DTRMetricData.groupId.use
path:
  v: DTRMetricData.groupId.use
short:
  v: usual | official | temp | secondary | old (If known)
definition:
  v: The purpose of this identifier.
comment:
  v: Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.
requirements:
  v: Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.use
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: true
is modifier reason:
  v: This is labeled as "Is Modifier" because applications should not mistake a temporary id for a permanent one.
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: IdentifierUse
  strength:
    v: required
  description:
    v: Identifies the purpose for this identifier, if known .
  value set:
    v: http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: Role.code or implied by context

id:
  v: DTRMetricData.groupId.type
path:
  v: DTRMetricData.groupId.type
short:
  v: Description of identifier
definition:
  v: A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.
comment:
  v: This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.
requirements:
  v: Allows users to make use of identifiers when the identifier system is not known.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: IdentifierType
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
    value:
      v: true
  strength:
    v: extensible
  description:
    v: A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
  value set:
    v: http://hl7.org/fhir/ValueSet/identifier-type
    link: http://hl7.org/fhir/ValueSet/identifier-type
mapping:
  identity:
    v: v2
  map:
    v: CX.5
mapping:
  identity:
    v: rim
  map:
    v: Role.code or implied by context

id:
  v: DTRMetricData.groupId.system
path:
  v: DTRMetricData.groupId.system
short:
  v: The namespace for the identifier value
definition:
  v: Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
comment:
  v: Identifier.system is always case sensitive.
requirements:
  v: There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Identifier.system
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
pattern:
  v: http://hl7.org/fhir/sid/us-npi
example:
  label:
    v: General
  value:
    v: http://www.acme.com/identifiers/patient
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.4 / EI-2-4
mapping:
  identity:
    v: rim
  map:
    v: II.root or Role.id.root
mapping:
  identity:
    v: servd
  map:
    v: ./IdentifierType

id:
  v: DTRMetricData.groupId.value
path:
  v: DTRMetricData.groupId.value
short:
  v: The value that is unique
definition:
  v: The portion of the identifier typically relevant to the user and which is unique within the context of the system.
comment:
  v: If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/R4/extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Identifier.value
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
example:
  label:
    v: General
  value:
    v: 123456
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.1 / EI.1
mapping:
  identity:
    v: rim
  map:
    v: II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
mapping:
  identity:
    v: servd
  map:
    v: ./Value

id:
  v: DTRMetricData.groupId.period
path:
  v: DTRMetricData.groupId.period
short:
  v: Time period when id is/was valid for use
definition:
  v: Time period during which identifier is/was valid for use.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.7 + CX.8
mapping:
  identity:
    v: rim
  map:
    v: Role.effectiveTime or implied by context
mapping:
  identity:
    v: servd
  map:
    v: ./StartDate and ./EndDate

id:
  v: DTRMetricData.groupId.assigner
path:
  v: DTRMetricData.groupId.assigner
short:
  v: Organization that issued id (may be just text)
definition:
  v: Organization that issued/manages the identifier.
comment:
  v: The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.assigner
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.4 / (CX.4,CX.9,CX.10)
mapping:
  identity:
    v: rim
  map:
    v: II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
mapping:
  identity:
    v: servd
  map:
    v: ./IdentifierIssuingAuthority

id:
  v: DTRMetricData.payerId
path:
  v: DTRMetricData.payerId
short:
  v: Payer receiving DTR request
definition:
  v: The identifier of the payer organization supplying the questionnaire bundle for this session.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DTRMetricData.payerId
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: Identifier
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: DTRMetricData.payerId.id
path:
  v: DTRMetricData.payerId.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DTRMetricData.payerId.extension
path:
  v: DTRMetricData.payerId.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DTRMetricData.payerId.use
path:
  v: DTRMetricData.payerId.use
short:
  v: usual | official | temp | secondary | old (If known)
definition:
  v: The purpose of this identifier.
comment:
  v: Applications can assume that an identifier is permanent unless it explicitly says that it is temporary.
requirements:
  v: Allows the appropriate identifier for a particular context of use to be selected from among a set of identifiers.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.use
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: true
is modifier reason:
  v: This is labeled as "Is Modifier" because applications should not mistake a temporary id for a permanent one.
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: IdentifierUse
  strength:
    v: required
  description:
    v: Identifies the purpose for this identifier, if known .
  value set:
    v: http://hl7.org/fhir/ValueSet/identifier-use|4.0.1
    link: 4.0
    link: .1
mapping:
  identity:
    v: v2
  map:
    v: N/A
mapping:
  identity:
    v: rim
  map:
    v: Role.code or implied by context

id:
  v: DTRMetricData.payerId.type
path:
  v: DTRMetricData.payerId.type
short:
  v: Description of identifier
definition:
  v: A coded type for the identifier that can be used to determine which identifier to use for a specific purpose.
comment:
  v: This element deals only with general categories of identifiers. It SHOULD not be used for codes that correspond 1..1 with the Identifier.system. Some identifiers may fall into multiple categories due to common usage. Where the system is known, a type is unnecessary because the type is always part of the system definition. However systems often need to handle identifiers where the system is not known. There is not a 1:1 relationship between type and system, since many different systems have the same type.
requirements:
  v: Allows users to make use of identifiers when the identifier system is not known.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.type
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
binding:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName
    value:
      v: IdentifierType
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/elementdefinition-isCommonBinding
    value:
      v: true
  strength:
    v: extensible
  description:
    v: A coded type for an identifier that can be used to determine which identifier to use for a specific purpose.
  value set:
    v: http://hl7.org/fhir/ValueSet/identifier-type
    link: http://hl7.org/fhir/ValueSet/identifier-type
mapping:
  identity:
    v: v2
  map:
    v: CX.5
mapping:
  identity:
    v: rim
  map:
    v: Role.code or implied by context

id:
  v: DTRMetricData.payerId.system
path:
  v: DTRMetricData.payerId.system
short:
  v: The namespace for the identifier value
definition:
  v: Establishes the namespace for the value - that is, a URL that describes a set values that are unique.
comment:
  v: Identifier.system is always case sensitive.
requirements:
  v: There are many sets of identifiers. To perform matching of two identifiers, we need to know what set we're dealing with. The system identifies a particular set of unique identifiers.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Identifier.system
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: uri
example:
  label:
    v: General
  value:
    v: http://www.acme.com/identifiers/patient
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.4 / EI-2-4
mapping:
  identity:
    v: rim
  map:
    v: II.root or Role.id.root
mapping:
  identity:
    v: servd
  map:
    v: ./IdentifierType

id:
  v: DTRMetricData.payerId.value
path:
  v: DTRMetricData.payerId.value
short:
  v: The value that is unique
definition:
  v: The portion of the identifier typically relevant to the user and which is unique within the context of the system.
comment:
  v: If the value is a full URI, then the system SHALL be urn:ietf:rfc:3986. The value's primary purpose is computational mapping. As a result, it may be normalized for comparison purposes (e.g. removing non-significant whitespace, dashes, etc.) A value formatted for human display can be conveyed using the [Rendered Value extension](http://hl7.org/fhir/R4/extension-rendered-value.html). Identifier.value is to be treated as case sensitive unless knowledge of the Identifier.system allows the processer to be confident that non-case-sensitive processing is safe.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: Identifier.value
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string
example:
  label:
    v: General
  value:
    v: 123456
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.1 / EI.1
mapping:
  identity:
    v: rim
  map:
    v: II.extension or II.root if system indicates OID or GUID (Or Role.id.extension or root)
mapping:
  identity:
    v: servd
  map:
    v: ./Value

id:
  v: DTRMetricData.payerId.period
path:
  v: DTRMetricData.payerId.period
short:
  v: Time period when id is/was valid for use
definition:
  v: Time period during which identifier is/was valid for use.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.period
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Period
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.7 + CX.8
mapping:
  identity:
    v: rim
  map:
    v: Role.effectiveTime or implied by context
mapping:
  identity:
    v: servd
  map:
    v: ./StartDate and ./EndDate

id:
  v: DTRMetricData.payerId.assigner
path:
  v: DTRMetricData.payerId.assigner
short:
  v: Organization that issued id (may be just text)
definition:
  v: Organization that issued/manages the identifier.
comment:
  v: The Identifier.assigner may omit the .reference element and only contain a .display element reflecting the name or other textual information about the assigning organization.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Identifier.assigner
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: Reference
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Organization
    link: http://hl7.org/fhir/StructureDefinition/Organization
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
is modifier:
  v: false
is summary:
  v: true
mapping:
  identity:
    v: v2
  map:
    v: CX.4 / (CX.4,CX.9,CX.10)
mapping:
  identity:
    v: rim
  map:
    v: II.assigningAuthorityName but note that this is an improper use by the definition of the field. Also Role.scoper
mapping:
  identity:
    v: servd
  map:
    v: ./IdentifierIssuingAuthority

id:
  v: DTRMetricData.assertionId
path:
  v: DTRMetricData.assertionId
short:
  v: Unique ID for order item
definition:
  v: Assertion ids passed in on the coverage-information in Requests, Encounters, or QuestionnaireResponses used as context to launch DTR (or selected by the user as context post-launch) as well as passed as a Task questionnaire launch context parameter.
comment:
  v: If there are multiple coverage-information extensions in context, this will be the union of distinct assertionIds.
requirements:
  v: Allows linking DTR sessions to CRD, CDex, and potentially prior DTR sessions.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DTRMetricData.assertionId
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: string

id:
  v: DTRMetricData.docReason
path:
  v: DTRMetricData.docReason
short:
  v: withpa | withclaim | withorder | retain-doc | OTH
definition:
  v: doc-purpose passed in on the coverage-information in Requests, Encounters or QuestoinnaireResponses used as context to launch DTR (or selected by the user as context post-launch).
comment:
  v: If there were multiple coverage-informations present in the launch context, this will be the union of distinct codes present.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DTRMetricData.docReason
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: code
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/us/davinci-crd/ValueSet/DocReason
    link: http://hl7.org/fhir/us/davinci-crd/ValueSet/DocReason

id:
  v: DTRMetricData.launchMode
path:
  v: DTRMetricData.launchMode
short:
  v: crdlaunch | relaunch | salaunch | cdexlaunch
definition:
  v: Indicates the launch mode involved for this session.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DTRMetricData.launchMode
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/us/davinci-dtr/ValueSet/metric-launchmode
    link: http://hl7.org/fhir/us/davinci-dtr/ValueSet/metric-launchmode

id:
  v: DTRMetricData.orderItem
path:
  v: DTRMetricData.orderItem
short:
  v: What was ordered
definition:
  v: The specific procedure, item, medication, appointment, nutrition that is the subject of the order/appointment.
min:
  v: 1
max:
  v: *
base:
  path:
    v: DTRMetricData.orderItem
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: CodeableConcept
binding:
  strength:
    v: extensible
  value set:
    v: http://hl7.org/fhir/us/davinci-crd/ValueSet/orderDetail
    link: http://hl7.org/fhir/us/davinci-crd/ValueSet/orderDetail

id:
  v: DTRMetricData.action
path:
  v: DTRMetricData.action
short:
  v: Actions the reporting system engaged in as part of the DTR session.
definition:
  v: Actions performed between a system and the DTR application.
comment:
  v: See notes section below for how the action elements should be populated for different actions
min:
  v: 1
max:
  v: *
base:
  path:
    v: DTRMetricData.action
  min:
    v: 1
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: DTRMetricData.action.id
path:
  v: DTRMetricData.action.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DTRMetricData.action.extension
path:
  v: DTRMetricData.action.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DTRMetricData.action.modifierExtension
path:
  v: DTRMetricData.action.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: DTRMetricData.action.actionDetail
path:
  v: DTRMetricData.action.actionDetail
short:
  v: launch | qpackage | mrquery | userresponse | nextq | storeqr
definition:
  v: What type of action occurred within the DTR session.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DTRMetricData.action.actionDetail
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/us/davinci-dtr/ValueSet/metric-Action
    link: http://hl7.org/fhir/us/davinci-dtr/ValueSet/metric-Action

id:
  v: DTRMetricData.action.requestTime
path:
  v: DTRMetricData.action.requestTime
short:
  v: Time action initiated
definition:
  v: The time stamp when the action was initiated from the perspective of the reporting system.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DTRMetricData.action.requestTime
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: instant

id:
  v: DTRMetricData.action.responseTime
path:
  v: DTRMetricData.action.responseTime
short:
  v: Time of action response
definition:
  v: The time stamp when the action was completed (including error return) from the perspective of the reporting system.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DTRMetricData.action.responseTime
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: instant

id:
  v: DTRMetricData.action.httpResponse
path:
  v: DTRMetricData.action.httpResponse
short:
  v: HTTP response status code
definition:
  v: The HTTP response status code associated with the action (successful or not).
comment:
  v: Must be present unless action is a userresponse
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DTRMetricData.action.httpResponse
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: integer

id:
  v: DTRMetricData.action.questionnaire
path:
  v: DTRMetricData.action.questionnaire
short:
  v: Associated Questionnaire
definition:
  v: The questionnaire(s) tied to the current action
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DTRMetricData.action.questionnaire
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: canonical
  target profile:
    v: http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-std-questionnaire
    link: http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-std-questionnaire
  target profile:
    v: http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaire-adapt
    link: http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaire-adapt

id:
  v: DTRMetricData.action.issue
path:
  v: DTRMetricData.action.issue
short:
  v: OperationOutcome info
definition:
  v: If an OperationOutcome is returned, what were the issues?
min:
  v: 0
max:
  v: *
base:
  path:
    v: DTRMetricData.action.issue
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: DTRMetricData.action.issue.id
path:
  v: DTRMetricData.action.issue.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DTRMetricData.action.issue.extension
path:
  v: DTRMetricData.action.issue.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DTRMetricData.action.issue.modifierExtension
path:
  v: DTRMetricData.action.issue.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: DTRMetricData.action.issue.code
path:
  v: DTRMetricData.action.issue.code
short:
  v: Error code
definition:
  v: The issue.code value from the OperationOutcome for this issue.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DTRMetricData.action.issue.code
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/issue-type
    link: http://hl7.org/fhir/ValueSet/issue-type

id:
  v: DTRMetricData.action.issue.details
path:
  v: DTRMetricData.action.issue.details
short:
  v: More detailed error code
definition:
  v: The issue.details value from the OperationOutcome for this issue.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DTRMetricData.action.issue.details
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept
binding:
  strength:
    v: example
  value set:
    v: http://hl7.org/fhir/ValueSet/operation-outcome
    link: http://hl7.org/fhir/ValueSet/operation-outcome

id:
  v: DTRMetricData.resources
path:
  v: DTRMetricData.resources
short:
  v: Resource types accessed
definition:
  v: Information that was accessed from the EHR by the one or more of the questionnaires using CQL.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DTRMetricData.resources
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: DTRMetricData.resources.id
path:
  v: DTRMetricData.resources.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DTRMetricData.resources.extension
path:
  v: DTRMetricData.resources.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DTRMetricData.resources.modifierExtension
path:
  v: DTRMetricData.resources.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: DTRMetricData.resources.type
path:
  v: DTRMetricData.resources.type
short:
  v: Kind of resource
definition:
  v: What kind of resource was accessed.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DTRMetricData.resources.type
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/resource-types
    link: http://hl7.org/fhir/ValueSet/resource-types

id:
  v: DTRMetricData.resources.profile
path:
  v: DTRMetricData.resources.profile
short:
  v: Solicited profile
definition:
  v: Indicates the sub-type of data accessed in situations where multiple US-core profiles could apply (e.g., Observation). Note: This does not mean that the data received was actually valid against the profile, merely that the search criteria used were intended to retrieve data of this type.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DTRMetricData.resources.profile
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/StructureDefinition
    link: http://hl7.org/fhir/StructureDefinition/StructureDefinition

id:
  v: DTRMetricData.resources.count
path:
  v: DTRMetricData.resources.count
short:
  v: Number retrieved
definition:
  v: How many resources of that type were accessed.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DTRMetricData.resources.count
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: positiveInt

id:
  v: DTRMetricData.questionnaire
path:
  v: DTRMetricData.questionnaire
short:
  v: Questionnaire
definition:
  v: Questionnaire that was returned in the Questionnaire package (and information about what was done with it)
min:
  v: 0
max:
  v: *
base:
  path:
    v: DTRMetricData.questionnaire
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: DTRMetricData.questionnaire.id
path:
  v: DTRMetricData.questionnaire.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DTRMetricData.questionnaire.extension
path:
  v: DTRMetricData.questionnaire.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DTRMetricData.questionnaire.modifierExtension
path:
  v: DTRMetricData.questionnaire.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: DTRMetricData.questionnaire.reference
path:
  v: DTRMetricData.questionnaire.reference
short:
  v: This is the URL for the canonical questionnaire
definition:
  v: This is the URL for the canonical questionnaire that was returned by the $questionnaire-package operation
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DTRMetricData.questionnaire.reference
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: canonical
  target profile:
    v: http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-std-questionnaire
    link: http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-std-questionnaire
  target profile:
    v: http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaire-adapt
    link: http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaire-adapt

id:
  v: DTRMetricData.questionnaire.adaptive
path:
  v: DTRMetricData.questionnaire.adaptive
short:
  v: True if adaptive form
definition:
  v: If the Questionnaire is an adaptive form, the value is True.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DTRMetricData.questionnaire.adaptive
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
meaning when missing:
  v: Questionnaire was a standard (non-adaptive) Questionnaire

id:
  v: DTRMetricData.questionnaire.populated
path:
  v: DTRMetricData.questionnaire.populated
short:
  v: Whether a pre-populated response was provided from payer
definition:
  v: If true, indicates that the draft QuestionnaireResponse provided in the Questionnaire package Bundle included at least some answers pre-populated with payer data.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DTRMetricData.questionnaire.populated
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
meaning when missing:
  v: No population occurred

id:
  v: DTRMetricData.questionnaire.failure
path:
  v: DTRMetricData.questionnaire.failure
short:
  v: Questionnaire errors logged to payer
definition:
  v: A failure reported to the payer about Questionnaire content using the $log-questionnaire-errors operation.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DTRMetricData.questionnaire.failure
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: CodeableConcept
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/issue-type
    link: http://hl7.org/fhir/ValueSet/issue-type

id:
  v: DTRMetricData.questionnaire.reviewPrior
path:
  v: DTRMetricData.questionnaire.reviewPrior
short:
  v: True if user reviewed answers prior to final save
definition:
  v: If the provider reviewed the QuestionnaireResponse answers prior to marking it as complete or saving it in the EHR.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DTRMetricData.questionnaire.reviewPrior
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: boolean
meaning when missing:
  v: User did not review the QuestionnaireRepsonse in this session

id:
  v: DTRMetricData.questionnaire.enabledQuestions
path:
  v: DTRMetricData.questionnaire.enabledQuestions
short:
  v: Number of enabled questions
definition:
  v: The count of all questions enabled in the Questionnaire at the time it was marked 'complete'.
comment:
  v: This element is a count of the number of enabled question items at the time the QuestionnaireResponse was last stored as part of this DTR session
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DTRMetricData.questionnaire.enabledQuestions
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: positiveInt

id:
  v: DTRMetricData.questionnaire.autoPopulated
path:
  v: DTRMetricData.questionnaire.autoPopulated
short:
  v: Number of questions autopopulated
definition:
  v: The count of all questions that were auto-populated from the patient's medical record and/or by payer information.
comment:
  v: The modification may have happened in a prior session. This element is a count of the number of enabled question items with an information-origin extension of 'auto' or 'override' at the time the QuestionnaireResponse was last stored as part of this DTR session.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DTRMetricData.questionnaire.autoPopulated
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: positiveInt
meaning when missing:
  v: No questions had their answers auto-populated

id:
  v: DTRMetricData.questionnaire.roleInteraction
path:
  v: DTRMetricData.questionnaire.roleInteraction
short:
  v: Role specific interactions
definition:
  v: A summary of the information-origin extensions for all enabled questions in the Questionnaire as they were at the time the QuestionnaireResponse was last stored within the DTR session reflecting human intervention.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DTRMetricData.questionnaire.roleInteraction
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: DTRMetricData.questionnaire.roleInteraction.id
path:
  v: DTRMetricData.questionnaire.roleInteraction.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DTRMetricData.questionnaire.roleInteraction.extension
path:
  v: DTRMetricData.questionnaire.roleInteraction.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DTRMetricData.questionnaire.roleInteraction.modifierExtension
path:
  v: DTRMetricData.questionnaire.roleInteraction.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: DTRMetricData.questionnaire.roleInteraction.role
path:
  v: DTRMetricData.questionnaire.roleInteraction.role
short:
  v: Role of information contributor
definition:
  v: The type of humanrole whose questionnaire completion is summarized here. Corresponds to the information-origin.author.role. NOTE: if a form is edited by multiple people with the same roles, the items they edit or override will be aggregated together.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DTRMetricData.questionnaire.roleInteraction.role
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: CodeableConcept
binding:
  strength:
    v: extensible
  value set:
    v: http://hl7.org/fhir/us/core/ValueSet/us-core-provider-role
    link: http://hl7.org/fhir/us/core/ValueSet/us-core-provider-role

id:
  v: DTRMetricData.questionnaire.roleInteraction.roleAction
path:
  v: DTRMetricData.questionnaire.roleInteraction.roleAction
short:
  v: override | manual
definition:
  v: This will indicate the type of human intervention action being summarized (auto, override or manual).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DTRMetricData.questionnaire.roleInteraction.roleAction
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: code
binding:
  strength:
    v: extensible
  value set:
    v: http://hl7.org/fhir/us/davinci-dtr/ValueSet/MetricsinformationOrigins
    link: http://hl7.org/fhir/us/davinci-dtr/ValueSet/MetricsinformationOrigins

id:
  v: DTRMetricData.questionnaire.roleInteraction.count
path:
  v: DTRMetricData.questionnaire.roleInteraction.count
short:
  v: Count of combination of role and roleInteraction
definition:
  v: This is the sum of enabled questions for the specified with an information-origin of that source AND an author.role that matches the specified role.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DTRMetricData.questionnaire.roleInteraction.count
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: positiveInt

id:
  v: DTRMetricData.questionnaire.elapsedTime
path:
  v: DTRMetricData.questionnaire.elapsedTime
short:
  v: Cumulative user response time that questionnaire was active in session
definition:
  v: cumulative time from DTR start to QR store, including from multiple sessions.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DTRMetricData.questionnaire.elapsedTime
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: time

id:
  v: DTRMetricData.coverageInfo
path:
  v: DTRMetricData.coverageInfo
short:
  v: Coverage information
definition:
  v: Coverage information extensions returned as part of completed adaptive Questionnaires within this DTR session.
min:
  v: 0
max:
  v: *
base:
  path:
    v: DTRMetricData.coverageInfo
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: DTRMetricData.coverageInfo.id
path:
  v: DTRMetricData.coverageInfo.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DTRMetricData.coverageInfo.extension
path:
  v: DTRMetricData.coverageInfo.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DTRMetricData.coverageInfo.modifierExtension
path:
  v: DTRMetricData.coverageInfo.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: DTRMetricData.coverageInfo.covered
path:
  v: DTRMetricData.coverageInfo.covered
short:
  v: covered | not-covered | conditional
definition:
  v: Indicates whether the service is covered.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DTRMetricData.coverageInfo.covered
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/us/davinci-crd/ValueSet/coverageInfo
    link: http://hl7.org/fhir/us/davinci-crd/ValueSet/coverageInfo

id:
  v: DTRMetricData.coverageInfo.paNeeded
path:
  v: DTRMetricData.coverageInfo.paNeeded
short:
  v: auth-needed | no-auth | satisfied | performpa | conditional
definition:
  v: Indicates whether prior authorization is necessary or not, as well as considerations about applying for prior authorization.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DTRMetricData.coverageInfo.paNeeded
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/us/davinci-crd/ValueSet/coveragePaDetail
    link: http://hl7.org/fhir/us/davinci-crd/ValueSet/coveragePaDetail

id:
  v: DTRMetricData.coverageInfo.docNeeded
path:
  v: DTRMetricData.coverageInfo.docNeeded
short:
  v: clinical | admin | both | conditional
definition:
  v: Indicates whether additional information is necessary (for prior auth, claims submission, or some other purpose).
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DTRMetricData.coverageInfo.docNeeded
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/us/davinci-crd/ValueSet/AdditionalDocumentation
    link: http://hl7.org/fhir/us/davinci-crd/ValueSet/AdditionalDocumentation

id:
  v: DTRMetricData.coverageInfo.infoNeeded
path:
  v: DTRMetricData.coverageInfo.infoNeeded
short:
  v: performer | location | timeframe | OTH
definition:
  v: Indicates what additional inforamtion is necessary in order to determine authorization/coverage - which might be available on a later hook invocation.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DTRMetricData.coverageInfo.infoNeeded
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: code
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/us/davinci-crd/ValueSet/informationNeeded
    link: http://hl7.org/fhir/us/davinci-crd/ValueSet/informationNeeded

id:
  v: DTRMetricData.coverageInfo.questionnaire
path:
  v: DTRMetricData.coverageInfo.questionnaire
short:
  v: Questionnaire(s) returned
definition:
  v: Information about the Questionnaire(s) returned to gather additional information (e.g. through DTR).
requirements:
  v: Allows linking metadata about forms identified 'to be filled out' in CRD with what is actually completed in DTR, and eventually submitted in CDex, PAS or claims
min:
  v: 0
max:
  v: *
base:
  path:
    v: DTRMetricData.coverageInfo.questionnaire
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: BackboneElement
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element

id:
  v: DTRMetricData.coverageInfo.questionnaire.id
path:
  v: DTRMetricData.coverageInfo.questionnaire.id
representation:
  v: xmlAttr
short:
  v: Unique id for inter-element referencing
definition:
  v: Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: Element.id
  min:
    v: 0
  max:
    v: 1
type:
  extension:
    url:
      v: http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type
    value:
      v: string
  code:
    v: http://hl7.org/fhirpath/System.String
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DTRMetricData.coverageInfo.questionnaire.extension
path:
  v: DTRMetricData.coverageInfo.questionnaire.extension
slicing:
  discriminator:
    type:
      v: value
    path:
      v: url
  description:
    v: Extensions are always sliced by (at least) url
  rules:
    v: open
short:
  v: Additional content defined by implementations
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.
comment:
  v: 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:
  v: extensions
alias:
  v: user content
min:
  v: 0
max:
  v: *
base:
  path:
    v: Element.extension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: false
is summary:
  v: false
mapping:
  identity:
    v: rim
  map:
    v: n/a

id:
  v: DTRMetricData.coverageInfo.questionnaire.modifierExtension
path:
  v: DTRMetricData.coverageInfo.questionnaire.modifierExtension
short:
  v: Extensions that cannot be ignored even if unrecognized
definition:
  v: May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions. Modifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).
comment:
  v: 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.
requirements:
  v: Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).
alias:
  v: extensions
alias:
  v: user content
alias:
  v: modifiers
min:
  v: 0
max:
  v: *
base:
  path:
    v: BackboneElement.modifierExtension
  min:
    v: 0
  max:
    v: *
type:
  code:
    v: Extension
constraint:
  key:
    v: ele-1
  severity:
    v: error
  human:
    v: All FHIR elements must have a @value or children
  expression:
    v: hasValue() or (children().count() > id.count())
  xpath:
    v: @value|f:*|h:div
  source:
    v: http://hl7.org/fhir/StructureDefinition/Element
    link: http://hl7.org/fhir/StructureDefinition/Element
constraint:
  key:
    v: ext-1
  severity:
    v: error
  human:
    v: Must have either extensions or value[x], not both
  expression:
    v: extension.exists() != value.exists()
  xpath:
    v: exists(f:extension)!=exists(f:*[starts-with(local-name(.), "value")])
  source:
    v: http://hl7.org/fhir/StructureDefinition/Extension
    link: http://hl7.org/fhir/StructureDefinition/Extension
is modifier:
  v: true
is modifier reason:
  v: Modifier extensions are expected to modify the meaning or interpretation of the element that contains them
is summary:
  v: true
mapping:
  identity:
    v: rim
  map:
    v: N/A

id:
  v: DTRMetricData.coverageInfo.questionnaire.reference
path:
  v: DTRMetricData.coverageInfo.questionnaire.reference
short:
  v: Questionnaire url & version
definition:
  v: The official identifier of one of the Questionnaires provided to be filled out.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DTRMetricData.coverageInfo.questionnaire.reference
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Questionnaire
    link: http://hl7.org/fhir/StructureDefinition/Questionnaire

id:
  v: DTRMetricData.coverageInfo.questionnaire.adaptive
path:
  v: DTRMetricData.coverageInfo.questionnaire.adaptive
short:
  v: Is questionnaire adaptive?
definition:
  v: If true, indicates that the questionnaire is adaptive (i.e. uses the $next-question operation to determine questions).
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DTRMetricData.coverageInfo.questionnaire.adaptive
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: boolean

id:
  v: DTRMetricData.coverageInfo.questionnaire.response
path:
  v: DTRMetricData.coverageInfo.questionnaire.response
short:
  v: Pre-pop response provided?
definition:
  v: If true, indicates that the card included a partially populated QuestionnaireResponse with answers filled by the payer from pre-known data.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DTRMetricData.coverageInfo.questionnaire.response
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: boolean

id:
  v: DTRMetricData.coverageInfo.assertionId
path:
  v: DTRMetricData.coverageInfo.assertionId
short:
  v: Id for coverage assertion
definition:
  v: Corresponds to the coverage-assertion-id from the coverage-information extension.
requirements:
  v: Used to link the results of CRD to metric information captured for DTR and/or PAS.
min:
  v: 1
max:
  v: 1
base:
  path:
    v: DTRMetricData.coverageInfo.assertionId
  min:
    v: 1
  max:
    v: 1
type:
  code:
    v: string

id:
  v: DTRMetricData.coverageInfo.satisfiedId
path:
  v: DTRMetricData.coverageInfo.satisfiedId
short:
  v: Id if PA is satisfied
definition:
  v: Corresponds to the satisfied-pa-id from the coverage-information extension.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DTRMetricData.coverageInfo.satisfiedId
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: string

id:
  v: DTRMetricData.coverageInfo.businessLine
path:
  v: DTRMetricData.coverageInfo.businessLine
short:
  v: e.g., MedicareAdvantage
definition:
  v: A code that indicates which type of insurance this assertion applies to.
min:
  v: 0
max:
  v: 1
base:
  path:
    v: DTRMetricData.coverageInfo.businessLine
  min:
    v: 0
  max:
    v: 1
type:
  code:
    v: CodeableConcept

element:
  id:
    v: DTRMetricData
  path:
    v: DTRMetricData
  short:
    v: DTR Metric Data
  definition:
    v: A logical model describing the information that should be captured by DTR implementers about every DTR invocation to support measures evaluating DTR implementation.
element:
  id:
    v: DTRMetricData.source
  path:
    v: DTRMetricData.source
  short:
    v: provider-src | payer-src | DTRApp-src
  definition:
    v: A code to indicate which type of system collected the metric data (DTRApp can be either a Native or SMART on FHIR app)
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: code
  binding:
    strength:
      v: required
    value set:
      v: http://hl7.org/fhir/us/davinci-dtr/ValueSet/metric-Source
      link: http://hl7.org/fhir/us/davinci-dtr/ValueSet/metric-Source
element:
  id:
    v: DTRMetricData.sofApp
  path:
    v: DTRMetricData.sofApp
  short:
    v: URL of SMART on FHIR application
  definition:
    v: The URL of SMART on FHIR application to identify the specific DTR application used by the provider and payer. If not present, then the DTR session is with a Full EHR.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: url
element:
  id:
    v: DTRMetricData.providerId
  path:
    v: DTRMetricData.providerId
  short:
    v: Identifier for the user initiating DTR
  definition:
    v: The NPI number of the user who initiated this DTR session.
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Identifier
element:
  id:
    v: DTRMetricData.providerId.system
  path:
    v: DTRMetricData.providerId.system
  min:
    v: 1
  pattern:
    v: http://hl7.org/fhir/sid/us-npi
element:
  id:
    v: DTRMetricData.providerId.value
  path:
    v: DTRMetricData.providerId.value
  min:
    v: 1
element:
  id:
    v: DTRMetricData.groupId
  path:
    v: DTRMetricData.groupId
  short:
    v: Identifier for the healthcare organization initiating DTR
  definition:
    v: The NPI of the hospital/clinic/other organization that initiated this DTR session.
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Identifier
element:
  id:
    v: DTRMetricData.groupId.system
  path:
    v: DTRMetricData.groupId.system
  min:
    v: 1
  pattern:
    v: http://hl7.org/fhir/sid/us-npi
element:
  id:
    v: DTRMetricData.groupId.value
  path:
    v: DTRMetricData.groupId.value
  min:
    v: 1
element:
  id:
    v: DTRMetricData.payerId
  path:
    v: DTRMetricData.payerId
  short:
    v: Payer receiving DTR request
  definition:
    v: The identifier of the payer organization supplying the questionnaire bundle for this session.
  min:
    v: 1
  max:
    v: 1
  type:
    code:
      v: Identifier
element:
  id:
    v: DTRMetricData.payerId.system
  path:
    v: DTRMetricData.payerId.system
  min:
    v: 1
element:
  id:
    v: DTRMetricData.payerId.value
  path:
    v: DTRMetricData.payerId.value
  min:
    v: 1
element:
  id:
    v: DTRMetricData.assertionId
  path:
    v: DTRMetricData.assertionId
  short:
    v: Unique ID for order item
  definition:
    v: Assertion ids passed in on the coverage-information in Requests, Encounters, or QuestionnaireResponses used as context to launch DTR (or selected by the user as context post-launch) as well as passed as a Task questionnaire launch context parameter.
  comment:
    v: If there are multiple coverage-information extensions in context, this will be the union of distinct assertionIds.
  requirements:
    v: Allows linking DTR sessions to CRD, CDex, and potentially prior DTR sessions.
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: string
element:
  id:
    v: DTRMetricData.docReason
  path:
    v: DTRMetricData.docReason
  short:
    v: withpa | withclaim | withorder | retain-doc | OTH
  definition:
    v: doc-purpose passed in on the coverage-information in Requests, Encounters or QuestoinnaireResponses used as context to launch DTR (or selected by the user as context post-launch).
  comment:
    v: If there were multiple coverage-informations present in the launch context, this will be the union of distinct codes present.
  min:
    v: 0
  max:
    v: *
  type:
    code:
      v: code
  binding:
    strength:
      v: required
    value set:
      v: http://hl7.org/fhir/us/davinci-crd/ValueSet/DocReason
      link: http://hl7.org/fhir/us/davinci-crd/ValueSet/DocReason
element:
  id:
    v: DTRMetricData.launchMode
  path:
    v: DTRMetricData.launchMode
  short:
    v: crdlaunch | relaunch | salaunch | cdexlaunch
  definition:
    v: Indicates the launch mode involved for this session.
  min:
    v: 0
  max:
    v: 1
  type:
    code:
      v: code

strength:
  v: required
value set:
  v: http://hl7.org/fhir/us/davinci-dtr/ValueSet/metric-launchmode
  link: http://hl7.org/fhir/us/davinci-dtr/ValueSet/metric-launchmode

id:
  v: DTRMetricData.orderItem
path:
  v: DTRMetricData.orderItem
short:
  v: What was ordered
definition:
  v: The specific procedure, item, medication, appointment, nutrition that is the subject of the order/appointment.
min:
  v: 1
max:
  v: *
type:
  code:
    v: CodeableConcept
binding:
  strength:
    v: extensible
  value set:
    v: http://hl7.org/fhir/us/davinci-crd/ValueSet/orderDetail
    link: http://hl7.org/fhir/us/davinci-crd/ValueSet/orderDetail

id:
  v: DTRMetricData.action
path:
  v: DTRMetricData.action
short:
  v: Actions the reporting system engaged in as part of the DTR session.
definition:
  v: Actions performed between a system and the DTR application.
comment:
  v: See notes section below for how the action elements should be populated for different actions
min:
  v: 1
max:
  v: *
type:
  code:
    v: BackboneElement

id:
  v: DTRMetricData.action.actionDetail
path:
  v: DTRMetricData.action.actionDetail
short:
  v: launch | qpackage | mrquery | userresponse | nextq | storeqr
definition:
  v: What type of action occurred within the DTR session.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/us/davinci-dtr/ValueSet/metric-Action
    link: http://hl7.org/fhir/us/davinci-dtr/ValueSet/metric-Action

id:
  v: DTRMetricData.action.requestTime
path:
  v: DTRMetricData.action.requestTime
short:
  v: Time action initiated
definition:
  v: The time stamp when the action was initiated from the perspective of the reporting system.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: instant

id:
  v: DTRMetricData.action.responseTime
path:
  v: DTRMetricData.action.responseTime
short:
  v: Time of action response
definition:
  v: The time stamp when the action was completed (including error return) from the perspective of the reporting system.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: instant

id:
  v: DTRMetricData.action.httpResponse
path:
  v: DTRMetricData.action.httpResponse
short:
  v: HTTP response status code
definition:
  v: The HTTP response status code associated with the action (successful or not).
comment:
  v: Must be present unless action is a userresponse
min:
  v: 0
max:
  v: 1
type:
  code:
    v: integer

id:
  v: DTRMetricData.action.questionnaire
path:
  v: DTRMetricData.action.questionnaire
short:
  v: Associated Questionnaire
definition:
  v: The questionnaire(s) tied to the current action
min:
  v: 0
max:
  v: 1
type:
  code:
    v: canonical
  target profile:
    v: http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-std-questionnaire
    link: http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-std-questionnaire
  target profile:
    v: http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaire-adapt
    link: http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaire-adapt

id:
  v: DTRMetricData.action.issue
path:
  v: DTRMetricData.action.issue
short:
  v: OperationOutcome info
definition:
  v: If an OperationOutcome is returned, what were the issues?
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement

id:
  v: DTRMetricData.action.issue.code
path:
  v: DTRMetricData.action.issue.code
short:
  v: Error code
definition:
  v: The issue.code value from the OperationOutcome for this issue.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/issue-type
    link: http://hl7.org/fhir/ValueSet/issue-type

id:
  v: DTRMetricData.action.issue.details
path:
  v: DTRMetricData.action.issue.details
short:
  v: More detailed error code
definition:
  v: The issue.details value from the OperationOutcome for this issue.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept
binding:
  strength:
    v: example
  value set:
    v: http://hl7.org/fhir/ValueSet/operation-outcome
    link: http://hl7.org/fhir/ValueSet/operation-outcome

id:
  v: DTRMetricData.resources
path:
  v: DTRMetricData.resources
short:
  v: Resource types accessed
definition:
  v: Information that was accessed from the EHR by the one or more of the questionnaires using CQL.
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement

id:
  v: DTRMetricData.resources.type
path:
  v: DTRMetricData.resources.type
short:
  v: Kind of resource
definition:
  v: What kind of resource was accessed.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/resource-types
    link: http://hl7.org/fhir/ValueSet/resource-types

id:
  v: DTRMetricData.resources.profile
path:
  v: DTRMetricData.resources.profile
short:
  v: Solicited profile
definition:
  v: Indicates the sub-type of data accessed in situations where multiple US-core profiles could apply (e.g., Observation). Note: This does not mean that the data received was actually valid against the profile, merely that the search criteria used were intended to retrieve data of this type.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/StructureDefinition
    link: http://hl7.org/fhir/StructureDefinition/StructureDefinition

id:
  v: DTRMetricData.resources.count
path:
  v: DTRMetricData.resources.count
short:
  v: Number retrieved
definition:
  v: How many resources of that type were accessed.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: positiveInt

id:
  v: DTRMetricData.questionnaire
path:
  v: DTRMetricData.questionnaire
short:
  v: Questionnaire
definition:
  v: Questionnaire that was returned in the Questionnaire package (and information about what was done with it)
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement

id:
  v: DTRMetricData.questionnaire.reference
path:
  v: DTRMetricData.questionnaire.reference
short:
  v: This is the URL for the canonical questionnaire
definition:
  v: This is the URL for the canonical questionnaire that was returned by the $questionnaire-package operation
min:
  v: 1
max:
  v: 1
type:
  code:
    v: canonical
  target profile:
    v: http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-std-questionnaire
    link: http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-std-questionnaire
  target profile:
    v: http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaire-adapt
    link: http://hl7.org/fhir/us/davinci-dtr/StructureDefinition/dtr-questionnaire-adapt

id:
  v: DTRMetricData.questionnaire.adaptive
path:
  v: DTRMetricData.questionnaire.adaptive
short:
  v: True if adaptive form
definition:
  v: If the Questionnaire is an adaptive form, the value is True.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: boolean
meaning when missing:
  v: Questionnaire was a standard (non-adaptive) Questionnaire

id:
  v: DTRMetricData.questionnaire.populated
path:
  v: DTRMetricData.questionnaire.populated
short:
  v: Whether a pre-populated response was provided from payer
definition:
  v: If true, indicates that the draft QuestionnaireResponse provided in the Questionnaire package Bundle included at least some answers pre-populated with payer data.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: boolean
meaning when missing:
  v: No population occurred

id:
  v: DTRMetricData.questionnaire.failure
path:
  v: DTRMetricData.questionnaire.failure
short:
  v: Questionnaire errors logged to payer
definition:
  v: A failure reported to the payer about Questionnaire content using the $log-questionnaire-errors operation.
min:
  v: 0
max:
  v: *
type:
  code:
    v: CodeableConcept
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/ValueSet/issue-type
    link: http://hl7.org/fhir/ValueSet/issue-type

id:
  v: DTRMetricData.questionnaire.reviewPrior
path:
  v: DTRMetricData.questionnaire.reviewPrior
short:
  v: True if user reviewed answers prior to final save
definition:
  v: If the provider reviewed the QuestionnaireResponse answers prior to marking it as complete or saving it in the EHR.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: boolean
meaning when missing:
  v: User did not review the QuestionnaireRepsonse in this session

id:
  v: DTRMetricData.questionnaire.enabledQuestions
path:
  v: DTRMetricData.questionnaire.enabledQuestions
short:
  v: Number of enabled questions
definition:
  v: The count of all questions enabled in the Questionnaire at the time it was marked 'complete'.
comment:
  v: This element is a count of the number of enabled question items at the time the QuestionnaireResponse was last stored as part of this DTR session
min:
  v: 0
max:
  v: 1
type:
  code:
    v: positiveInt

id:
  v: DTRMetricData.questionnaire.autoPopulated
path:
  v: DTRMetricData.questionnaire.autoPopulated
short:
  v: Number of questions autopopulated
definition:
  v: The count of all questions that were auto-populated from the patient's medical record and/or by payer information.
comment:
  v: The modification may have happened in a prior session. This element is a count of the number of enabled question items with an information-origin extension of 'auto' or 'override' at the time the QuestionnaireResponse was last stored as part of this DTR session.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: positiveInt
meaning when missing:
  v: No questions had their answers auto-populated

id:
  v: DTRMetricData.questionnaire.roleInteraction
path:
  v: DTRMetricData.questionnaire.roleInteraction
short:
  v: Role specific interactions
definition:
  v: A summary of the information-origin extensions for all enabled questions in the Questionnaire as they were at the time the QuestionnaireResponse was last stored within the DTR session reflecting human intervention.
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement

id:
  v: DTRMetricData.questionnaire.roleInteraction.role
path:
  v: DTRMetricData.questionnaire.roleInteraction.role
short:
  v: Role of information contributor
definition:
  v: The type of humanrole whose questionnaire completion is summarized here. Corresponds to the information-origin.author.role. NOTE: if a form is edited by multiple people with the same roles, the items they edit or override will be aggregated together.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: CodeableConcept
binding:
  strength:
    v: extensible
  value set:
    v: http://hl7.org/fhir/us/core/ValueSet/us-core-provider-role
    link: http://hl7.org/fhir/us/core/ValueSet/us-core-provider-role

id:
  v: DTRMetricData.questionnaire.roleInteraction.roleAction
path:
  v: DTRMetricData.questionnaire.roleInteraction.roleAction
short:
  v: override | manual
definition:
  v: This will indicate the type of human intervention action being summarized (auto, override or manual).
min:
  v: 1
max:
  v: 1
type:
  code:
    v: code
binding:
  strength:
    v: extensible
  value set:
    v: http://hl7.org/fhir/us/davinci-dtr/ValueSet/MetricsinformationOrigins
    link: http://hl7.org/fhir/us/davinci-dtr/ValueSet/MetricsinformationOrigins

id:
  v: DTRMetricData.questionnaire.roleInteraction.count
path:
  v: DTRMetricData.questionnaire.roleInteraction.count
short:
  v: Count of combination of role and roleInteraction
definition:
  v: This is the sum of enabled questions for the specified with an information-origin of that source AND an author.role that matches the specified role.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: positiveInt

id:
  v: DTRMetricData.questionnaire.elapsedTime
path:
  v: DTRMetricData.questionnaire.elapsedTime
short:
  v: Cumulative user response time that questionnaire was active in session
definition:
  v: cumulative time from DTR start to QR store, including from multiple sessions.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: time

id:
  v: DTRMetricData.coverageInfo
path:
  v: DTRMetricData.coverageInfo
short:
  v: Coverage information
definition:
  v: Coverage information extensions returned as part of completed adaptive Questionnaires within this DTR session.
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement

id:
  v: DTRMetricData.coverageInfo.covered
path:
  v: DTRMetricData.coverageInfo.covered
short:
  v: covered | not-covered | conditional
definition:
  v: Indicates whether the service is covered.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/us/davinci-crd/ValueSet/coverageInfo
    link: http://hl7.org/fhir/us/davinci-crd/ValueSet/coverageInfo

id:
  v: DTRMetricData.coverageInfo.paNeeded
path:
  v: DTRMetricData.coverageInfo.paNeeded
short:
  v: auth-needed | no-auth | satisfied | performpa | conditional
definition:
  v: Indicates whether prior authorization is necessary or not, as well as considerations about applying for prior authorization.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/us/davinci-crd/ValueSet/coveragePaDetail
    link: http://hl7.org/fhir/us/davinci-crd/ValueSet/coveragePaDetail

id:
  v: DTRMetricData.coverageInfo.docNeeded
path:
  v: DTRMetricData.coverageInfo.docNeeded
short:
  v: clinical | admin | both | conditional
definition:
  v: Indicates whether additional information is necessary (for prior auth, claims submission, or some other purpose).
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/us/davinci-crd/ValueSet/AdditionalDocumentation
    link: http://hl7.org/fhir/us/davinci-crd/ValueSet/AdditionalDocumentation

id:
  v: DTRMetricData.coverageInfo.infoNeeded
path:
  v: DTRMetricData.coverageInfo.infoNeeded
short:
  v: performer | location | timeframe | OTH
definition:
  v: Indicates what additional inforamtion is necessary in order to determine authorization/coverage - which might be available on a later hook invocation.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: code
binding:
  strength:
    v: required
  value set:
    v: http://hl7.org/fhir/us/davinci-crd/ValueSet/informationNeeded
    link: http://hl7.org/fhir/us/davinci-crd/ValueSet/informationNeeded

id:
  v: DTRMetricData.coverageInfo.questionnaire
path:
  v: DTRMetricData.coverageInfo.questionnaire
short:
  v: Questionnaire(s) returned
definition:
  v: Information about the Questionnaire(s) returned to gather additional information (e.g. through DTR).
requirements:
  v: Allows linking metadata about forms identified 'to be filled out' in CRD with what is actually completed in DTR, and eventually submitted in CDex, PAS or claims
min:
  v: 0
max:
  v: *
type:
  code:
    v: BackboneElement

id:
  v: DTRMetricData.coverageInfo.questionnaire.reference
path:
  v: DTRMetricData.coverageInfo.questionnaire.reference
short:
  v: Questionnaire url & version
definition:
  v: The official identifier of one of the Questionnaires provided to be filled out.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: canonical
  target profile:
    v: http://hl7.org/fhir/StructureDefinition/Questionnaire
    link: http://hl7.org/fhir/StructureDefinition/Questionnaire

id:
  v: DTRMetricData.coverageInfo.questionnaire.adaptive
path:
  v: DTRMetricData.coverageInfo.questionnaire.adaptive
short:
  v: Is questionnaire adaptive?
definition:
  v: If true, indicates that the questionnaire is adaptive (i.e. uses the $next-question operation to determine questions).
min:
  v: 1
max:
  v: 1
type:
  code:
    v: boolean

id:
  v: DTRMetricData.coverageInfo.questionnaire.response
path:
  v: DTRMetricData.coverageInfo.questionnaire.response
short:
  v: Pre-pop response provided?
definition:
  v: If true, indicates that the card included a partially populated QuestionnaireResponse with answers filled by the payer from pre-known data.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: boolean

id:
  v: DTRMetricData.coverageInfo.assertionId
path:
  v: DTRMetricData.coverageInfo.assertionId
short:
  v: Id for coverage assertion
definition:
  v: Corresponds to the coverage-assertion-id from the coverage-information extension.
requirements:
  v: Used to link the results of CRD to metric information captured for DTR and/or PAS.
min:
  v: 1
max:
  v: 1
type:
  code:
    v: string

id:
  v: DTRMetricData.coverageInfo.satisfiedId
path:
  v: DTRMetricData.coverageInfo.satisfiedId
short:
  v: Id if PA is satisfied
definition:
  v: Corresponds to the satisfied-pa-id from the coverage-information extension.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: string

id:
  v: DTRMetricData.coverageInfo.businessLine
path:
  v: DTRMetricData.coverageInfo.businessLine
short:
  v: e.g., MedicareAdvantage
definition:
  v: A code that indicates which type of insurance this assertion applies to.
min:
  v: 0
max:
  v: 1
type:
  code:
    v: CodeableConcept