Da Vinci - Coverage Requirements Discovery
2.2.0-snapshot - STU 2.2 Peer Review

Da Vinci - Coverage Requirements Discovery, published by HL7 International / Financial Management. This guide is not an authorized publication; it is the continuous build for version 2.2.0-snapshot built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/davinci-crd/ and changes regularly. See the Directory of published versions

## Logical Model: CRD CDSHooks Response (Logical Definition) - XML Profile

Page standards status: Trial-use | Maturity Level: 4

XML representation of the CRDHooksResponse logical model.

Raw xml | Download

    <StructureDefinition xmlns="http://hl7.org/fhir">
      <id value="CRDHooksResponse"/>
      <language value="en"/>
      <text>
        <status value="extensions"/>
        <div xmlns="http://www.w3.org/1999/xhtml"><p class="res-header-id"><b>Generated Narrative: StructureDefinition CRDHooksResponse</b></p><a name="CRDHooksResponse"> </a><a name="hcCRDHooksResponse"> </a><table border="0" cellpadding="0" cellspacing="0" style="border: 0px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top;"><tr style="border: 1px #F0F0F0 solid; font-size: 11px; font-family: verdana; vertical-align: top"><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="The logical name of the element">Name</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Information about the use of the element">Flags</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Minimum and Maximum # of times the element can appear in the instance">Card.</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px; width: 100px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Reference to the type of the element">Type</a></th><th style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; padding-top: 3px; padding-bottom: 3px" class="hierarchy"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Additional information about the element">Description &amp; Constraints</a><span style="float: right"><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/></a></span></th></tr><tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck1.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_element.gif" alt="." style="background-color: white; background-color: inherit" title="Element" class="hierarchy"/> <a href="StructureDefinition-CRDHooksResponse-definitions.html#CDSHooksResponse">CDSHooksResponse</a><a name="CDSHooksResponse"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-CRDHooksResponseBase.html">CRDHooksResponseBase</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">The response to the discovery endpoint</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck13.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Definition" class="hierarchy"/> <a style="font-style: italic; font-style: italic" href="StructureDefinition-CRDHooksResponse-definitions.html#CDSHooksResponse.cards">Slices for cards</a><a name="CDSHooksResponse.cards"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic"/><span style="opacity: 0.5; font-style: italic">0</span><span style="opacity: 0.5; font-style: italic">..</span><span style="opacity: 0.5; font-style: italic">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; font-style: italic; opacity: 0.5; font-style: italic" href="http://hl7.org/fhir/tools/1.0.0/StructureDefinition-CDSHooksElement.html">CDSHooksElement</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5; font-style: italic">CDS responses to show user</span><br style="font-style: italic"/><span style="font-weight:bold; font-style: italic">Slice: </span><span style="font-style: italic">Unordered, Open by profile:$this</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck134.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-CRDHooksResponse-definitions.html#CDSHooksResponse.cards:externalReference" title="Slice externalReference">cards:externalReference</a><a name="CDSHooksResponse.cards.2"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-CRDHooksResponse-externalReference.html" title="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement">CRDHooksResponseExternalReference</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">CDS responses to show user</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck134.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-CRDHooksResponse-definitions.html#CDSHooksResponse.cards:instructions" title="Slice instructions">cards:instructions</a><a name="CDSHooksResponse.cards.3"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-CRDHooksResponse-instructions.html" title="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement">CRDHooksResponseInstructions</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">CDS responses to show user</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck134.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-CRDHooksResponse-definitions.html#CDSHooksResponse.cards:alternateRequest" title="Slice alternateRequest">cards:alternateRequest</a><a name="CDSHooksResponse.cards.4"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-CRDHooksResponse-alternateRequest.html" title="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement">CRDHooksResponseAlternateRequest</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">CDS responses to show user</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck134.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-CRDHooksResponse-definitions.html#CDSHooksResponse.cards:additionalOrders" title="Slice additionalOrders">cards:additionalOrders</a><a name="CDSHooksResponse.cards.5"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-CRDHooksResponse-additionalOrders.html" title="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement">CRDHooksResponseAdditionalOrders</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">CDS responses to show user</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck134.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-CRDHooksResponse-definitions.html#CDSHooksResponse.cards:formCompletion" title="Slice formCompletion">cards:formCompletion</a><a name="CDSHooksResponse.cards.6"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-CRDHooksResponse-formCompletion.html" title="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement">CRDHooksResponseFormCompletion</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">CDS responses to show user</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck134.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-CRDHooksResponse-definitions.html#CDSHooksResponse.cards:adjustCoverage" title="Slice adjustCoverage">cards:adjustCoverage</a><a name="CDSHooksResponse.cards.7"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-CRDHooksResponse-adjustCoverage.html" title="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement">CRDHooksResponseAdjustCoverage</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">CDS responses to show user</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck124.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vline.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-CRDHooksResponse-definitions.html#CDSHooksResponse.cards:launchSMART" title="Slice launchSMART">cards:launchSMART</a><a name="CDSHooksResponse.cards.8"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-CRDHooksResponse-launchSMART.html" title="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement">CRDHooksResponseLaunchSMART</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">CDS responses to show user</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck03.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Definition" class="hierarchy"/> <a style="font-style: italic; font-style: italic" href="StructureDefinition-CRDHooksResponse-definitions.html#CDSHooksResponse.systemActions">Slices for systemActions</a><a name="CDSHooksResponse.systemActions"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="font-style: italic"/><span style="opacity: 0.5; font-style: italic">0</span><span style="opacity: 0.5; font-style: italic">..</span><span style="opacity: 0.5; font-style: italic">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a style="opacity: 0.5; font-style: italic; opacity: 0.5; font-style: italic" href="http://hl7.org/fhir/tools/1.0.0/StructureDefinition-CDSHooksElement.html">CDSHooksElement</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5; font-style: italic">Actions to auto-apply</span><br style="font-style: italic"/><span style="font-weight:bold; font-style: italic">Slice: </span><span style="font-style: italic">Unordered, Open by profile:$this</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck034.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-CRDHooksResponse-definitions.html#CDSHooksResponse.systemActions:coverageInformation" title="Slice coverageInformation">systemActions:coverageInformation</a><a name="CDSHooksResponse.systemActions.2"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-CRDHooksResponse-coverageInformation.html" title="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement">CRDHooksResponseCoverageInformation</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Actions to auto-apply</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: #F7F7F7"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck034.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: #F7F7F7; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-CRDHooksResponse-definitions.html#CDSHooksResponse.systemActions:formCompletion" title="Slice formCompletion">systemActions:formCompletion</a><a name="CDSHooksResponse.systemActions.3"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-CRDHooksResponse-formCompletion.html" title="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement">CRDHooksResponseFormCompletion</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: #F7F7F7; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Actions to auto-apply</span></td></tr>
    <tr style="border: 0px #F0F0F0 solid; padding:0px; vertical-align: top; background-color: white"><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px; white-space: nowrap; background-image: url(tbl_bck024.png)" class="hierarchy"><img src="tbl_spacer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_blank.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="tbl_vjoin_end_slicer.png" alt="." style="background-color: inherit" class="hierarchy"/><img src="icon_slice_item.png" alt="." style="background-color: white; background-color: inherit" title="Slice Item" class="hierarchy"/> <a href="StructureDefinition-CRDHooksResponse-definitions.html#CDSHooksResponse.systemActions:adjustCoverage" title="Slice adjustCoverage">systemActions:adjustCoverage</a><a name="CDSHooksResponse.systemActions.4"> </a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"/><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">0</span><span style="opacity: 0.5">..</span><span style="opacity: 0.5">*</span></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><a href="StructureDefinition-CRDHooksResponse-adjustCoverage.html" title="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement">CRDHooksResponseAdjustCoverage</a></td><td style="vertical-align: top; text-align : var(--ig-left,left); background-color: white; border: 0px #F0F0F0 solid; padding:0px 4px 0px 4px" class="hierarchy"><span style="opacity: 0.5">Actions to auto-apply</span></td></tr>
    <tr><td colspan="5" class="hierarchy"><br/><a href="https://build.fhir.org/ig/FHIR/ig-guidance/readingIgs.html#table-views" title="Legend for this format"><img src="data:image/png;base64, " alt="doco" style="background-color: inherit"/> Documentation for this format</a></td></tr></table></div>
      </text>
      <extension
                 url="http://hl7.org/fhir/tools/StructureDefinition/json-suppress-resourcetype">
        <valueBoolean value="true"/>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-wg">
        <valueCode value="fm"/>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm">
        <valueInteger value="4">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
            <valueCanonical
                            value="http://hl7.org/fhir/us/davinci-crd/ImplementationGuide/davinci-crd"/>
          </extension>
        </valueInteger>
      </extension>
      <extension
                 url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
        <valueCode value="trial-use">
          <extension
                     url="http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom">
            <valueCanonical
                            value="http://hl7.org/fhir/us/davinci-crd/ImplementationGuide/davinci-crd"/>
          </extension>
        </valueCode>
      </extension>
      <url
           value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse"/>
      <identifier>
        <system value="urn:ietf:rfc:3986"/>
        <value value="urn:oid:2.16.840.1.113883.4.642.40.18.42.35"/>
      </identifier>
      <version value="2.2.0-snapshot"/>
      <name value="CRDHooksResponse"/>
      <title value="CRD CDSHooks Response (Logical Definition)"/>
      <status value="active"/>
      <date value="2026-02-19T15:54:35+00:00"/>
      <publisher value="HL7 International / Financial Management"/>
      <contact>
        <telecom>
          <system value="url"/>
          <value value="http://www.hl7.org/Special/committees/fm"/>
        </telecom>
      </contact>
      <description
                   value="Defines CRD-specific constraints on the CDS Hooks Response body"/>
      <jurisdiction>
        <coding>
          <system value="urn:iso:std:iso:3166"/>
          <code value="US"/>
        </coding>
      </jurisdiction>
      <fhirVersion value="4.0.1"/>
      <kind value="logical"/>
      <abstract value="false"/>
      <type
            value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
      <baseDefinition
                      value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponseBase"/>
      <derivation value="constraint"/>
      <snapshot>
        <extension
                   url="http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version">
          <valueString value="2.2.0-snapshot"/>
        </extension>
        <element id="CDSHooksResponse">
          <path value="CDSHooksResponse"/>
          <short value="The response to the discovery endpoint"/>
          <definition value="The response to the discovery endpoint"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="Base"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <isModifier value="false"/>
        </element>
        <element id="CDSHooksResponse.extension">
          <path value="CDSHooksResponse.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/json-empty-behavior">
            <valueCode value="present"/>
          </extension>
          <path value="CDSHooksResponse.cards"/>
          <slicing>
            <discriminator>
              <type value="profile"/>
              <path value="$this"/>
            </discriminator>
            <rules value="open"/>
          </slicing>
          <short value="CDS responses to show user"/>
          <definition
                      value="An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them)."/>
          <comment
                   value="The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <constraint>
            <key value="cds-resp-1"/>
            <severity value="error"/>
            <human
                   value="only one action can be suggested if selectionBehavior = at-most-one"/>
            <expression
                        value="(selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() &lt;= 1"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
          <constraint>
            <key value="cds-resp-6"/>
            <severity value="error"/>
            <human
                   value="If suggestions are present, selectionBehavior MUST also be provided."/>
            <expression
                        value="suggestions.exists() implies selectionBehavior.exists()"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards.extension">
          <path value="CDSHooksResponse.cards.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards.uuid">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/implied-string-prefix">
            <valueString value="urn:uuid:"/>
          </extension>
          <path value="CDSHooksResponse.cards.uuid"/>
          <short value="Unique identifier of the card (for logging/feedback)"/>
          <definition
                      value="Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.uuid"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uuid"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards.summary">
          <path value="CDSHooksResponse.cards.summary"/>
          <short value="Summary message for display to the user (&lt;140 char)"/>
          <definition
                      value="One-sentence, &lt;140-character summary message for display to the user inside of this card."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.summary"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards.detail">
          <path value="CDSHooksResponse.cards.detail"/>
          <short
                 value="Optional detailed information to display (GitHub Flavored Markdown)"/>
          <definition
                      value="Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...')."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.detail"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="markdown"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards.indicator">
          <path value="CDSHooksResponse.cards.indicator"/>
          <short
                 value="info, warning, critical - Urgency/importance of what this card conveys"/>
          <definition
                      value="Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical."/>
          <comment
                   value="The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.indicator"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSIndicator"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards.source">
          <path value="CDSHooksResponse.cards.source"/>
          <short
                 value="The primary source of guidance for the content the card represents."/>
          <definition
                      value="The source should be the primary source of guidance for the decision support the card represents."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards.source.extension">
          <path value="CDSHooksResponse.cards.source.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards.source.label">
          <path value="CDSHooksResponse.cards.source.label"/>
          <short value="Short, human-readable label to display for the source."/>
          <definition
                      value="A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards.source.url">
          <path value="CDSHooksResponse.cards.source.url"/>
          <short
                 value="Link for when user clicks for more information about the source"/>
          <definition
                      value="An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card."/>
          <comment
                   value="Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.url"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards.source.icon">
          <path value="CDSHooksResponse.cards.source.icon"/>
          <short
                 value="absolute URL to an icon for the source (&lt;100x100 PNG))"/>
          <definition
                      value="An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.icon"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards.source.topic">
          <path value="CDSHooksResponse.cards.source.topic"/>
          <short value="Describes the content of the card"/>
          <definition
                      value="A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics"/>
          <comment
                   value="This specification does not prescribe a standard set of topics"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.topic"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="extensible"/>
            <valueSet
                      value="http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards.suggestions">
          <path value="CDSHooksResponse.cards.suggestions"/>
          <short
                 value="Suggest a set of changes in the context of the current activity"/>
          <definition
                      value="Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <condition value="cds-resp-1"/>
          <condition value="cds-resp-6"/>
          <constraint>
            <key value="cds-resp-5"/>
            <severity value="error"/>
            <human value="All suggestion actions must have a description"/>
            <expression value="actions.all(description.exists())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards.suggestions.extension">
          <path value="CDSHooksResponse.cards.suggestions.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards.suggestions.label">
          <path value="CDSHooksResponse.cards.suggestions.label"/>
          <short value="Human-readable label to display for this suggestion"/>
          <definition
                      value="Human-readable label to display for this suggestion"/>
          <comment
                   value="e.g. the CDS Client might render this as the text on a button tied to this suggestion"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards.suggestions.uuid">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/implied-string-prefix">
            <valueString value="urn:uuid:"/>
          </extension>
          <path value="CDSHooksResponse.cards.suggestions.uuid"/>
          <short
                 value="Unique identifier, used for auditing and logging suggestions"/>
          <definition
                      value="Unique identifier, used for auditing and logging suggestions"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.uuid"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uuid"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards.suggestions.isRecommended">
          <path value="CDSHooksResponse.cards.suggestions.isRecommended"/>
          <short value="Which suggestion is most preferred of a set"/>
          <definition
                      value="When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card"/>
          <comment
                   value="CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.isRecommended"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards.suggestions.actions">
          <path value="CDSHooksResponse.cards.suggestions.actions"/>
          <short value="Defines a suggested action (all apply)"/>
          <definition
                      value="Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it"/>
          <comment
                   value="When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <constraint>
            <key value="cds-resp-2"/>
            <severity value="warning"/>
            <human
                   value="A resourceId not a resource must be provided when type = delete"/>
            <expression
                        value="(type = 'delete') implies (resourceId.exists() and resource.empty())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards.suggestions.actions.extension">
          <path value="CDSHooksResponse.cards.suggestions.actions.extension"/>
          <short value="Extension"/>
          <definition value="An Extension"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards.suggestions.actions.type">
          <path value="CDSHooksResponse.cards.suggestions.actions.type"/>
          <short value="create, update, delete - type of action performed"/>
          <definition
                      value="The type of action being performed. Allowed values are: create, update, delete."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.type"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSActionType"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards.suggestions.actions.description">
          <path value="CDSHooksResponse.cards.suggestions.actions.description"/>
          <short value="Human-readable description of the suggested action"/>
          <definition
                      value="Human-readable description of the suggested action that MAY be presented to the end-user."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.description"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <condition value="cds-resp-5"/>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards.suggestions.actions.resource">
          <path value="CDSHooksResponse.cards.suggestions.actions.resource"/>
          <short value="FHIR resource to create/update"/>
          <definition
                      value="When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields."/>
          <comment
                   value="Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resource"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Resource"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards.suggestions.actions.resourceId">
          <path value="CDSHooksResponse.cards.suggestions.actions.resourceId"/>
          <short value="A relative reference to the relevant resource."/>
          <definition
                      value="A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resourceId"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards.selectionBehavior">
          <path value="CDSHooksResponse.cards.selectionBehavior"/>
          <short value="at-most-one | any"/>
          <definition
                      value="Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them"/>
          <comment
                   value="CDS Clients that do not understand the value MUST treat the card as an error."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.selectionBehavior"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <condition value="cds-resp-1"/>
          <condition value="cds-resp-6"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards.overrideReasons">
          <path value="CDSHooksResponse.cards.overrideReasons"/>
          <short value="Feedback from user on card - why not acted on"/>
          <definition
                      value="Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client."/>
          <comment
                   value="The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.overrideReasons"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <constraint>
            <key value="cds-resp-4"/>
            <severity value="error"/>
            <human
                   value="the CDS Service MUST populate a display value for each reason's Coding"/>
            <expression value="all(display.exists())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards.links">
          <path value="CDSHooksResponse.cards.links"/>
          <short value="Link to app or additional information"/>
          <definition
                      value="Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.links"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <constraint>
            <key value="cds-resp-3"/>
            <severity value="error"/>
            <human value="AppContext only for smart Apps"/>
            <expression value="(type != 'smart') implies (appContext.empty())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards.links.extension">
          <path value="CDSHooksResponse.cards.links.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards.links.label">
          <path value="CDSHooksResponse.cards.links.label"/>
          <short value="Human-readable label to display for this link"/>
          <definition
                      value="Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards.links.url">
          <path value="CDSHooksResponse.cards.links.url"/>
          <short value="URL to load"/>
          <definition
                      value="URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.url"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards.links.type">
          <path value="CDSHooksResponse.cards.links.type"/>
          <short value="absolute | smart"/>
          <definition
                      value="The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.type"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSLinkType"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards.links.appContext">
          <path value="CDSHooksResponse.cards.links.appContext"/>
          <short value="Information to share when launching SMART app"/>
          <definition
                      value="An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it."/>
          <comment
                   value="CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.appContext"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:externalReference">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/json-empty-behavior">
            <valueCode value="present"/>
          </extension>
          <path value="CDSHooksResponse.cards"/>
          <sliceName value="externalReference"/>
          <short value="CDS responses to show user"/>
          <definition
                      value="An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them)."/>
          <comment
                   value="The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
            <profile
                     value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse-externalReference">🔗
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
                <valueString value="CDSHooksResponse.cards"/>
              </extension>
            </profile>
          </type>
          <constraint>
            <key value="cds-resp-1"/>
            <severity value="error"/>
            <human
                   value="only one action can be suggested if selectionBehavior = at-most-one"/>
            <expression
                        value="(selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() &lt;= 1"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
          <constraint>
            <key value="cds-resp-6"/>
            <severity value="error"/>
            <human
                   value="If suggestions are present, selectionBehavior MUST also be provided."/>
            <expression
                        value="suggestions.exists() implies selectionBehavior.exists()"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.extension">
          <path value="CDSHooksResponse.cards.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.uuid">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/implied-string-prefix">
            <valueString value="urn:uuid:"/>
          </extension>
          <path value="CDSHooksResponse.cards.uuid"/>
          <short value="Unique identifier of the card (for logging/feedback)"/>
          <definition
                      value="Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.uuid"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uuid"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.summary">
          <path value="CDSHooksResponse.cards.summary"/>
          <short value="Summary message for display to the user (&lt;140 char)"/>
          <definition
                      value="One-sentence, &lt;140-character summary message for display to the user inside of this card."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.summary"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.detail">
          <path value="CDSHooksResponse.cards.detail"/>
          <short
                 value="Optional detailed information to display (GitHub Flavored Markdown)"/>
          <definition
                      value="Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...')."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.detail"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="markdown"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.indicator">
          <path value="CDSHooksResponse.cards.indicator"/>
          <short
                 value="info, warning, critical - Urgency/importance of what this card conveys"/>
          <definition
                      value="Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical."/>
          <comment
                   value="The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.indicator"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSIndicator"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.source">
          <path value="CDSHooksResponse.cards.source"/>
          <short
                 value="The primary source of guidance for the content the card represents."/>
          <definition
                      value="The source should be the primary source of guidance for the decision support the card represents."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.source.extension">
          <path value="CDSHooksResponse.cards.source.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.source.label">
          <path value="CDSHooksResponse.cards.source.label"/>
          <short value="Short, human-readable label to display for the source."/>
          <definition
                      value="A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.source.url">
          <path value="CDSHooksResponse.cards.source.url"/>
          <short
                 value="Link for when user clicks for more information about the source"/>
          <definition
                      value="An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card."/>
          <comment
                   value="Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.url"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.source.icon">
          <path value="CDSHooksResponse.cards.source.icon"/>
          <short
                 value="absolute URL to an icon for the source (&lt;100x100 PNG))"/>
          <definition
                      value="An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.icon"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.source.topic">
          <path value="CDSHooksResponse.cards.source.topic"/>
          <short value="Describes the content of the card"/>
          <definition
                      value="A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics"/>
          <comment
                   value="This specification does not prescribe a standard set of topics"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.topic"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="extensible"/>
            <valueSet
                      value="http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.suggestions">
          <path value="CDSHooksResponse.cards.suggestions"/>
          <short
                 value="Suggest a set of changes in the context of the current activity"/>
          <definition
                      value="Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <condition value="cds-resp-1"/>
          <condition value="cds-resp-6"/>
          <constraint>
            <key value="cds-resp-5"/>
            <severity value="error"/>
            <human value="All suggestion actions must have a description"/>
            <expression value="actions.all(description.exists())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element
                 id="CDSHooksResponse.cards:externalReference.suggestions.extension">
          <path value="CDSHooksResponse.cards.suggestions.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.suggestions.label">
          <path value="CDSHooksResponse.cards.suggestions.label"/>
          <short value="Human-readable label to display for this suggestion"/>
          <definition
                      value="Human-readable label to display for this suggestion"/>
          <comment
                   value="e.g. the CDS Client might render this as the text on a button tied to this suggestion"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.suggestions.uuid">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/implied-string-prefix">
            <valueString value="urn:uuid:"/>
          </extension>
          <path value="CDSHooksResponse.cards.suggestions.uuid"/>
          <short
                 value="Unique identifier, used for auditing and logging suggestions"/>
          <definition
                      value="Unique identifier, used for auditing and logging suggestions"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.uuid"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uuid"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:externalReference.suggestions.isRecommended">
          <path value="CDSHooksResponse.cards.suggestions.isRecommended"/>
          <short value="Which suggestion is most preferred of a set"/>
          <definition
                      value="When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card"/>
          <comment
                   value="CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.isRecommended"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:externalReference.suggestions.actions">
          <path value="CDSHooksResponse.cards.suggestions.actions"/>
          <short value="Defines a suggested action (all apply)"/>
          <definition
                      value="Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it"/>
          <comment
                   value="When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <constraint>
            <key value="cds-resp-2"/>
            <severity value="warning"/>
            <human
                   value="A resourceId not a resource must be provided when type = delete"/>
            <expression
                        value="(type = 'delete') implies (resourceId.exists() and resource.empty())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element
                 id="CDSHooksResponse.cards:externalReference.suggestions.actions.extension">
          <path value="CDSHooksResponse.cards.suggestions.actions.extension"/>
          <short value="Extension"/>
          <definition value="An Extension"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:externalReference.suggestions.actions.type">
          <path value="CDSHooksResponse.cards.suggestions.actions.type"/>
          <short value="create, update, delete - type of action performed"/>
          <definition
                      value="The type of action being performed. Allowed values are: create, update, delete."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.type"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSActionType"/>
          </binding>
        </element>
        <element
                 id="CDSHooksResponse.cards:externalReference.suggestions.actions.description">
          <path value="CDSHooksResponse.cards.suggestions.actions.description"/>
          <short value="Human-readable description of the suggested action"/>
          <definition
                      value="Human-readable description of the suggested action that MAY be presented to the end-user."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.description"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <condition value="cds-resp-5"/>
          <mustSupport value="true"/>
        </element>
        <element
                 id="CDSHooksResponse.cards:externalReference.suggestions.actions.resource">
          <path value="CDSHooksResponse.cards.suggestions.actions.resource"/>
          <short value="FHIR resource to create/update"/>
          <definition
                      value="When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields."/>
          <comment
                   value="Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resource"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Resource"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:externalReference.suggestions.actions.resourceId">
          <path value="CDSHooksResponse.cards.suggestions.actions.resourceId"/>
          <short value="A relative reference to the relevant resource."/>
          <definition
                      value="A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resourceId"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.selectionBehavior">
          <path value="CDSHooksResponse.cards.selectionBehavior"/>
          <short value="at-most-one | any"/>
          <definition
                      value="Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them"/>
          <comment
                   value="CDS Clients that do not understand the value MUST treat the card as an error."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.selectionBehavior"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <condition value="cds-resp-1"/>
          <condition value="cds-resp-6"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.overrideReasons">
          <path value="CDSHooksResponse.cards.overrideReasons"/>
          <short value="Feedback from user on card - why not acted on"/>
          <definition
                      value="Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client."/>
          <comment
                   value="The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.overrideReasons"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <constraint>
            <key value="cds-resp-4"/>
            <severity value="error"/>
            <human
                   value="the CDS Service MUST populate a display value for each reason's Coding"/>
            <expression value="all(display.exists())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.links">
          <path value="CDSHooksResponse.cards.links"/>
          <short value="Link to app or additional information"/>
          <definition
                      value="Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.links"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <constraint>
            <key value="cds-resp-3"/>
            <severity value="error"/>
            <human value="AppContext only for smart Apps"/>
            <expression value="(type != 'smart') implies (appContext.empty())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.links.extension">
          <path value="CDSHooksResponse.cards.links.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.links.label">
          <path value="CDSHooksResponse.cards.links.label"/>
          <short value="Human-readable label to display for this link"/>
          <definition
                      value="Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.links.url">
          <path value="CDSHooksResponse.cards.links.url"/>
          <short value="URL to load"/>
          <definition
                      value="URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.url"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.links.type">
          <path value="CDSHooksResponse.cards.links.type"/>
          <short value="absolute | smart"/>
          <definition
                      value="The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.type"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSLinkType"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:externalReference.links.appContext">
          <path value="CDSHooksResponse.cards.links.appContext"/>
          <short value="Information to share when launching SMART app"/>
          <definition
                      value="An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it."/>
          <comment
                   value="CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.appContext"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:instructions">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/json-empty-behavior">
            <valueCode value="present"/>
          </extension>
          <path value="CDSHooksResponse.cards"/>
          <sliceName value="instructions"/>
          <short value="CDS responses to show user"/>
          <definition
                      value="An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them)."/>
          <comment
                   value="The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
            <profile
                     value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse-instructions">🔗
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
                <valueString value="CDSHooksResponse.cards"/>
              </extension>
            </profile>
          </type>
          <constraint>
            <key value="cds-resp-1"/>
            <severity value="error"/>
            <human
                   value="only one action can be suggested if selectionBehavior = at-most-one"/>
            <expression
                        value="(selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() &lt;= 1"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
          <constraint>
            <key value="cds-resp-6"/>
            <severity value="error"/>
            <human
                   value="If suggestions are present, selectionBehavior MUST also be provided."/>
            <expression
                        value="suggestions.exists() implies selectionBehavior.exists()"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:instructions.extension">
          <path value="CDSHooksResponse.cards.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:instructions.uuid">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/implied-string-prefix">
            <valueString value="urn:uuid:"/>
          </extension>
          <path value="CDSHooksResponse.cards.uuid"/>
          <short value="Unique identifier of the card (for logging/feedback)"/>
          <definition
                      value="Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.uuid"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uuid"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:instructions.summary">
          <path value="CDSHooksResponse.cards.summary"/>
          <short value="Summary message for display to the user (&lt;140 char)"/>
          <definition
                      value="One-sentence, &lt;140-character summary message for display to the user inside of this card."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.summary"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:instructions.detail">
          <path value="CDSHooksResponse.cards.detail"/>
          <short
                 value="Optional detailed information to display (GitHub Flavored Markdown)"/>
          <definition
                      value="Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...')."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.detail"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="markdown"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:instructions.indicator">
          <path value="CDSHooksResponse.cards.indicator"/>
          <short
                 value="info, warning, critical - Urgency/importance of what this card conveys"/>
          <definition
                      value="Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical."/>
          <comment
                   value="The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.indicator"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSIndicator"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:instructions.source">
          <path value="CDSHooksResponse.cards.source"/>
          <short
                 value="The primary source of guidance for the content the card represents."/>
          <definition
                      value="The source should be the primary source of guidance for the decision support the card represents."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:instructions.source.extension">
          <path value="CDSHooksResponse.cards.source.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:instructions.source.label">
          <path value="CDSHooksResponse.cards.source.label"/>
          <short value="Short, human-readable label to display for the source."/>
          <definition
                      value="A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:instructions.source.url">
          <path value="CDSHooksResponse.cards.source.url"/>
          <short
                 value="Link for when user clicks for more information about the source"/>
          <definition
                      value="An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card."/>
          <comment
                   value="Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.url"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:instructions.source.icon">
          <path value="CDSHooksResponse.cards.source.icon"/>
          <short
                 value="absolute URL to an icon for the source (&lt;100x100 PNG))"/>
          <definition
                      value="An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.icon"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:instructions.source.topic">
          <path value="CDSHooksResponse.cards.source.topic"/>
          <short value="Describes the content of the card"/>
          <definition
                      value="A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics"/>
          <comment
                   value="This specification does not prescribe a standard set of topics"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.topic"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="extensible"/>
            <valueSet
                      value="http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:instructions.suggestions">
          <path value="CDSHooksResponse.cards.suggestions"/>
          <short
                 value="Suggest a set of changes in the context of the current activity"/>
          <definition
                      value="Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <condition value="cds-resp-1"/>
          <condition value="cds-resp-6"/>
          <constraint>
            <key value="cds-resp-5"/>
            <severity value="error"/>
            <human value="All suggestion actions must have a description"/>
            <expression value="actions.all(description.exists())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:instructions.suggestions.extension">
          <path value="CDSHooksResponse.cards.suggestions.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:instructions.suggestions.label">
          <path value="CDSHooksResponse.cards.suggestions.label"/>
          <short value="Human-readable label to display for this suggestion"/>
          <definition
                      value="Human-readable label to display for this suggestion"/>
          <comment
                   value="e.g. the CDS Client might render this as the text on a button tied to this suggestion"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:instructions.suggestions.uuid">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/implied-string-prefix">
            <valueString value="urn:uuid:"/>
          </extension>
          <path value="CDSHooksResponse.cards.suggestions.uuid"/>
          <short
                 value="Unique identifier, used for auditing and logging suggestions"/>
          <definition
                      value="Unique identifier, used for auditing and logging suggestions"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.uuid"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uuid"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:instructions.suggestions.isRecommended">
          <path value="CDSHooksResponse.cards.suggestions.isRecommended"/>
          <short value="Which suggestion is most preferred of a set"/>
          <definition
                      value="When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card"/>
          <comment
                   value="CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.isRecommended"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:instructions.suggestions.actions">
          <path value="CDSHooksResponse.cards.suggestions.actions"/>
          <short value="Defines a suggested action (all apply)"/>
          <definition
                      value="Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it"/>
          <comment
                   value="When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <constraint>
            <key value="cds-resp-2"/>
            <severity value="warning"/>
            <human
                   value="A resourceId not a resource must be provided when type = delete"/>
            <expression
                        value="(type = 'delete') implies (resourceId.exists() and resource.empty())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element
                 id="CDSHooksResponse.cards:instructions.suggestions.actions.extension">
          <path value="CDSHooksResponse.cards.suggestions.actions.extension"/>
          <short value="Extension"/>
          <definition value="An Extension"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:instructions.suggestions.actions.type">
          <path value="CDSHooksResponse.cards.suggestions.actions.type"/>
          <short value="create, update, delete - type of action performed"/>
          <definition
                      value="The type of action being performed. Allowed values are: create, update, delete."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.type"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSActionType"/>
          </binding>
        </element>
        <element
                 id="CDSHooksResponse.cards:instructions.suggestions.actions.description">
          <path value="CDSHooksResponse.cards.suggestions.actions.description"/>
          <short value="Human-readable description of the suggested action"/>
          <definition
                      value="Human-readable description of the suggested action that MAY be presented to the end-user."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.description"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <condition value="cds-resp-5"/>
          <mustSupport value="true"/>
        </element>
        <element
                 id="CDSHooksResponse.cards:instructions.suggestions.actions.resource">
          <path value="CDSHooksResponse.cards.suggestions.actions.resource"/>
          <short value="FHIR resource to create/update"/>
          <definition
                      value="When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields."/>
          <comment
                   value="Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resource"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Resource"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:instructions.suggestions.actions.resourceId">
          <path value="CDSHooksResponse.cards.suggestions.actions.resourceId"/>
          <short value="A relative reference to the relevant resource."/>
          <definition
                      value="A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resourceId"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:instructions.selectionBehavior">
          <path value="CDSHooksResponse.cards.selectionBehavior"/>
          <short value="at-most-one | any"/>
          <definition
                      value="Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them"/>
          <comment
                   value="CDS Clients that do not understand the value MUST treat the card as an error."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.selectionBehavior"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <condition value="cds-resp-1"/>
          <condition value="cds-resp-6"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:instructions.overrideReasons">
          <path value="CDSHooksResponse.cards.overrideReasons"/>
          <short value="Feedback from user on card - why not acted on"/>
          <definition
                      value="Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client."/>
          <comment
                   value="The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.overrideReasons"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <constraint>
            <key value="cds-resp-4"/>
            <severity value="error"/>
            <human
                   value="the CDS Service MUST populate a display value for each reason's Coding"/>
            <expression value="all(display.exists())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:instructions.links">
          <path value="CDSHooksResponse.cards.links"/>
          <short value="Link to app or additional information"/>
          <definition
                      value="Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.links"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <constraint>
            <key value="cds-resp-3"/>
            <severity value="error"/>
            <human value="AppContext only for smart Apps"/>
            <expression value="(type != 'smart') implies (appContext.empty())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:instructions.links.extension">
          <path value="CDSHooksResponse.cards.links.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:instructions.links.label">
          <path value="CDSHooksResponse.cards.links.label"/>
          <short value="Human-readable label to display for this link"/>
          <definition
                      value="Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:instructions.links.url">
          <path value="CDSHooksResponse.cards.links.url"/>
          <short value="URL to load"/>
          <definition
                      value="URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.url"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:instructions.links.type">
          <path value="CDSHooksResponse.cards.links.type"/>
          <short value="absolute | smart"/>
          <definition
                      value="The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.type"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSLinkType"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:instructions.links.appContext">
          <path value="CDSHooksResponse.cards.links.appContext"/>
          <short value="Information to share when launching SMART app"/>
          <definition
                      value="An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it."/>
          <comment
                   value="CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.appContext"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/json-empty-behavior">
            <valueCode value="present"/>
          </extension>
          <path value="CDSHooksResponse.cards"/>
          <sliceName value="alternateRequest"/>
          <short value="CDS responses to show user"/>
          <definition
                      value="An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them)."/>
          <comment
                   value="The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
            <profile
                     value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse-alternateRequest">🔗
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
                <valueString value="CDSHooksResponse.cards"/>
              </extension>
            </profile>
          </type>
          <constraint>
            <key value="cds-resp-1"/>
            <severity value="error"/>
            <human
                   value="only one action can be suggested if selectionBehavior = at-most-one"/>
            <expression
                        value="(selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() &lt;= 1"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
          <constraint>
            <key value="cds-resp-6"/>
            <severity value="error"/>
            <human
                   value="If suggestions are present, selectionBehavior MUST also be provided."/>
            <expression
                        value="suggestions.exists() implies selectionBehavior.exists()"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.extension">
          <path value="CDSHooksResponse.cards.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.uuid">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/implied-string-prefix">
            <valueString value="urn:uuid:"/>
          </extension>
          <path value="CDSHooksResponse.cards.uuid"/>
          <short value="Unique identifier of the card (for logging/feedback)"/>
          <definition
                      value="Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.uuid"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uuid"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.summary">
          <path value="CDSHooksResponse.cards.summary"/>
          <short value="Summary message for display to the user (&lt;140 char)"/>
          <definition
                      value="One-sentence, &lt;140-character summary message for display to the user inside of this card."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.summary"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.detail">
          <path value="CDSHooksResponse.cards.detail"/>
          <short
                 value="Optional detailed information to display (GitHub Flavored Markdown)"/>
          <definition
                      value="Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...')."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.detail"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="markdown"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.indicator">
          <path value="CDSHooksResponse.cards.indicator"/>
          <short
                 value="info, warning, critical - Urgency/importance of what this card conveys"/>
          <definition
                      value="Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical."/>
          <comment
                   value="The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.indicator"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSIndicator"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.source">
          <path value="CDSHooksResponse.cards.source"/>
          <short
                 value="The primary source of guidance for the content the card represents."/>
          <definition
                      value="The source should be the primary source of guidance for the decision support the card represents."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.source.extension">
          <path value="CDSHooksResponse.cards.source.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.source.label">
          <path value="CDSHooksResponse.cards.source.label"/>
          <short value="Short, human-readable label to display for the source."/>
          <definition
                      value="A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.source.url">
          <path value="CDSHooksResponse.cards.source.url"/>
          <short
                 value="Link for when user clicks for more information about the source"/>
          <definition
                      value="An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card."/>
          <comment
                   value="Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.url"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.source.icon">
          <path value="CDSHooksResponse.cards.source.icon"/>
          <short
                 value="absolute URL to an icon for the source (&lt;100x100 PNG))"/>
          <definition
                      value="An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.icon"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.source.topic">
          <path value="CDSHooksResponse.cards.source.topic"/>
          <short value="Describes the content of the card"/>
          <definition
                      value="A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics"/>
          <comment
                   value="This specification does not prescribe a standard set of topics"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.topic"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="extensible"/>
            <valueSet
                      value="http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.suggestions">
          <path value="CDSHooksResponse.cards.suggestions"/>
          <short
                 value="Suggest a set of changes in the context of the current activity"/>
          <definition
                      value="Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <condition value="cds-resp-1"/>
          <condition value="cds-resp-6"/>
          <constraint>
            <key value="cds-resp-5"/>
            <severity value="error"/>
            <human value="All suggestion actions must have a description"/>
            <expression value="actions.all(description.exists())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element
                 id="CDSHooksResponse.cards:alternateRequest.suggestions.extension">
          <path value="CDSHooksResponse.cards.suggestions.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.suggestions.label">
          <path value="CDSHooksResponse.cards.suggestions.label"/>
          <short value="Human-readable label to display for this suggestion"/>
          <definition
                      value="Human-readable label to display for this suggestion"/>
          <comment
                   value="e.g. the CDS Client might render this as the text on a button tied to this suggestion"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.suggestions.uuid">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/implied-string-prefix">
            <valueString value="urn:uuid:"/>
          </extension>
          <path value="CDSHooksResponse.cards.suggestions.uuid"/>
          <short
                 value="Unique identifier, used for auditing and logging suggestions"/>
          <definition
                      value="Unique identifier, used for auditing and logging suggestions"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.uuid"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uuid"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:alternateRequest.suggestions.isRecommended">
          <path value="CDSHooksResponse.cards.suggestions.isRecommended"/>
          <short value="Which suggestion is most preferred of a set"/>
          <definition
                      value="When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card"/>
          <comment
                   value="CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.isRecommended"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:alternateRequest.suggestions.actions">
          <path value="CDSHooksResponse.cards.suggestions.actions"/>
          <short value="Defines a suggested action (all apply)"/>
          <definition
                      value="Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it"/>
          <comment
                   value="When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <constraint>
            <key value="cds-resp-2"/>
            <severity value="warning"/>
            <human
                   value="A resourceId not a resource must be provided when type = delete"/>
            <expression
                        value="(type = 'delete') implies (resourceId.exists() and resource.empty())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element
                 id="CDSHooksResponse.cards:alternateRequest.suggestions.actions.extension">
          <path value="CDSHooksResponse.cards.suggestions.actions.extension"/>
          <short value="Extension"/>
          <definition value="An Extension"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:alternateRequest.suggestions.actions.type">
          <path value="CDSHooksResponse.cards.suggestions.actions.type"/>
          <short value="create, update, delete - type of action performed"/>
          <definition
                      value="The type of action being performed. Allowed values are: create, update, delete."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.type"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSActionType"/>
          </binding>
        </element>
        <element
                 id="CDSHooksResponse.cards:alternateRequest.suggestions.actions.description">
          <path value="CDSHooksResponse.cards.suggestions.actions.description"/>
          <short value="Human-readable description of the suggested action"/>
          <definition
                      value="Human-readable description of the suggested action that MAY be presented to the end-user."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.description"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <condition value="cds-resp-5"/>
          <mustSupport value="true"/>
        </element>
        <element
                 id="CDSHooksResponse.cards:alternateRequest.suggestions.actions.resource">
          <path value="CDSHooksResponse.cards.suggestions.actions.resource"/>
          <short value="FHIR resource to create/update"/>
          <definition
                      value="When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields."/>
          <comment
                   value="Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resource"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Resource"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:alternateRequest.suggestions.actions.resourceId">
          <path value="CDSHooksResponse.cards.suggestions.actions.resourceId"/>
          <short value="A relative reference to the relevant resource."/>
          <definition
                      value="A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resourceId"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.selectionBehavior">
          <path value="CDSHooksResponse.cards.selectionBehavior"/>
          <short value="at-most-one | any"/>
          <definition
                      value="Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them"/>
          <comment
                   value="CDS Clients that do not understand the value MUST treat the card as an error."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.selectionBehavior"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <condition value="cds-resp-1"/>
          <condition value="cds-resp-6"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.overrideReasons">
          <path value="CDSHooksResponse.cards.overrideReasons"/>
          <short value="Feedback from user on card - why not acted on"/>
          <definition
                      value="Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client."/>
          <comment
                   value="The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.overrideReasons"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <constraint>
            <key value="cds-resp-4"/>
            <severity value="error"/>
            <human
                   value="the CDS Service MUST populate a display value for each reason's Coding"/>
            <expression value="all(display.exists())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.links">
          <path value="CDSHooksResponse.cards.links"/>
          <short value="Link to app or additional information"/>
          <definition
                      value="Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.links"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <constraint>
            <key value="cds-resp-3"/>
            <severity value="error"/>
            <human value="AppContext only for smart Apps"/>
            <expression value="(type != 'smart') implies (appContext.empty())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.links.extension">
          <path value="CDSHooksResponse.cards.links.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.links.label">
          <path value="CDSHooksResponse.cards.links.label"/>
          <short value="Human-readable label to display for this link"/>
          <definition
                      value="Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.links.url">
          <path value="CDSHooksResponse.cards.links.url"/>
          <short value="URL to load"/>
          <definition
                      value="URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.url"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.links.type">
          <path value="CDSHooksResponse.cards.links.type"/>
          <short value="absolute | smart"/>
          <definition
                      value="The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.type"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSLinkType"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest.links.appContext">
          <path value="CDSHooksResponse.cards.links.appContext"/>
          <short value="Information to share when launching SMART app"/>
          <definition
                      value="An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it."/>
          <comment
                   value="CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.appContext"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/json-empty-behavior">
            <valueCode value="present"/>
          </extension>
          <path value="CDSHooksResponse.cards"/>
          <sliceName value="additionalOrders"/>
          <short value="CDS responses to show user"/>
          <definition
                      value="An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them)."/>
          <comment
                   value="The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
            <profile
                     value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse-additionalOrders">🔗
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
                <valueString value="CDSHooksResponse.cards"/>
              </extension>
            </profile>
          </type>
          <constraint>
            <key value="cds-resp-1"/>
            <severity value="error"/>
            <human
                   value="only one action can be suggested if selectionBehavior = at-most-one"/>
            <expression
                        value="(selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() &lt;= 1"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
          <constraint>
            <key value="cds-resp-6"/>
            <severity value="error"/>
            <human
                   value="If suggestions are present, selectionBehavior MUST also be provided."/>
            <expression
                        value="suggestions.exists() implies selectionBehavior.exists()"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.extension">
          <path value="CDSHooksResponse.cards.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.uuid">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/implied-string-prefix">
            <valueString value="urn:uuid:"/>
          </extension>
          <path value="CDSHooksResponse.cards.uuid"/>
          <short value="Unique identifier of the card (for logging/feedback)"/>
          <definition
                      value="Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.uuid"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uuid"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.summary">
          <path value="CDSHooksResponse.cards.summary"/>
          <short value="Summary message for display to the user (&lt;140 char)"/>
          <definition
                      value="One-sentence, &lt;140-character summary message for display to the user inside of this card."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.summary"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.detail">
          <path value="CDSHooksResponse.cards.detail"/>
          <short
                 value="Optional detailed information to display (GitHub Flavored Markdown)"/>
          <definition
                      value="Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...')."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.detail"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="markdown"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.indicator">
          <path value="CDSHooksResponse.cards.indicator"/>
          <short
                 value="info, warning, critical - Urgency/importance of what this card conveys"/>
          <definition
                      value="Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical."/>
          <comment
                   value="The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.indicator"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSIndicator"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.source">
          <path value="CDSHooksResponse.cards.source"/>
          <short
                 value="The primary source of guidance for the content the card represents."/>
          <definition
                      value="The source should be the primary source of guidance for the decision support the card represents."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.source.extension">
          <path value="CDSHooksResponse.cards.source.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.source.label">
          <path value="CDSHooksResponse.cards.source.label"/>
          <short value="Short, human-readable label to display for the source."/>
          <definition
                      value="A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.source.url">
          <path value="CDSHooksResponse.cards.source.url"/>
          <short
                 value="Link for when user clicks for more information about the source"/>
          <definition
                      value="An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card."/>
          <comment
                   value="Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.url"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.source.icon">
          <path value="CDSHooksResponse.cards.source.icon"/>
          <short
                 value="absolute URL to an icon for the source (&lt;100x100 PNG))"/>
          <definition
                      value="An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.icon"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.source.topic">
          <path value="CDSHooksResponse.cards.source.topic"/>
          <short value="Describes the content of the card"/>
          <definition
                      value="A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics"/>
          <comment
                   value="This specification does not prescribe a standard set of topics"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.topic"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="extensible"/>
            <valueSet
                      value="http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.suggestions">
          <path value="CDSHooksResponse.cards.suggestions"/>
          <short
                 value="Suggest a set of changes in the context of the current activity"/>
          <definition
                      value="Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <condition value="cds-resp-1"/>
          <condition value="cds-resp-6"/>
          <constraint>
            <key value="cds-resp-5"/>
            <severity value="error"/>
            <human value="All suggestion actions must have a description"/>
            <expression value="actions.all(description.exists())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element
                 id="CDSHooksResponse.cards:additionalOrders.suggestions.extension">
          <path value="CDSHooksResponse.cards.suggestions.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.suggestions.label">
          <path value="CDSHooksResponse.cards.suggestions.label"/>
          <short value="Human-readable label to display for this suggestion"/>
          <definition
                      value="Human-readable label to display for this suggestion"/>
          <comment
                   value="e.g. the CDS Client might render this as the text on a button tied to this suggestion"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.suggestions.uuid">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/implied-string-prefix">
            <valueString value="urn:uuid:"/>
          </extension>
          <path value="CDSHooksResponse.cards.suggestions.uuid"/>
          <short
                 value="Unique identifier, used for auditing and logging suggestions"/>
          <definition
                      value="Unique identifier, used for auditing and logging suggestions"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.uuid"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uuid"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:additionalOrders.suggestions.isRecommended">
          <path value="CDSHooksResponse.cards.suggestions.isRecommended"/>
          <short value="Which suggestion is most preferred of a set"/>
          <definition
                      value="When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card"/>
          <comment
                   value="CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.isRecommended"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:additionalOrders.suggestions.actions">
          <path value="CDSHooksResponse.cards.suggestions.actions"/>
          <short value="Defines a suggested action (all apply)"/>
          <definition
                      value="Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it"/>
          <comment
                   value="When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <constraint>
            <key value="cds-resp-2"/>
            <severity value="warning"/>
            <human
                   value="A resourceId not a resource must be provided when type = delete"/>
            <expression
                        value="(type = 'delete') implies (resourceId.exists() and resource.empty())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element
                 id="CDSHooksResponse.cards:additionalOrders.suggestions.actions.extension">
          <path value="CDSHooksResponse.cards.suggestions.actions.extension"/>
          <short value="Extension"/>
          <definition value="An Extension"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:additionalOrders.suggestions.actions.type">
          <path value="CDSHooksResponse.cards.suggestions.actions.type"/>
          <short value="create, update, delete - type of action performed"/>
          <definition
                      value="The type of action being performed. Allowed values are: create, update, delete."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.type"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSActionType"/>
          </binding>
        </element>
        <element
                 id="CDSHooksResponse.cards:additionalOrders.suggestions.actions.description">
          <path value="CDSHooksResponse.cards.suggestions.actions.description"/>
          <short value="Human-readable description of the suggested action"/>
          <definition
                      value="Human-readable description of the suggested action that MAY be presented to the end-user."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.description"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <condition value="cds-resp-5"/>
          <mustSupport value="true"/>
        </element>
        <element
                 id="CDSHooksResponse.cards:additionalOrders.suggestions.actions.resource">
          <path value="CDSHooksResponse.cards.suggestions.actions.resource"/>
          <short value="FHIR resource to create/update"/>
          <definition
                      value="When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields."/>
          <comment
                   value="Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resource"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Resource"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:additionalOrders.suggestions.actions.resourceId">
          <path value="CDSHooksResponse.cards.suggestions.actions.resourceId"/>
          <short value="A relative reference to the relevant resource."/>
          <definition
                      value="A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resourceId"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.selectionBehavior">
          <path value="CDSHooksResponse.cards.selectionBehavior"/>
          <short value="at-most-one | any"/>
          <definition
                      value="Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them"/>
          <comment
                   value="CDS Clients that do not understand the value MUST treat the card as an error."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.selectionBehavior"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <condition value="cds-resp-1"/>
          <condition value="cds-resp-6"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.overrideReasons">
          <path value="CDSHooksResponse.cards.overrideReasons"/>
          <short value="Feedback from user on card - why not acted on"/>
          <definition
                      value="Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client."/>
          <comment
                   value="The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.overrideReasons"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <constraint>
            <key value="cds-resp-4"/>
            <severity value="error"/>
            <human
                   value="the CDS Service MUST populate a display value for each reason's Coding"/>
            <expression value="all(display.exists())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.links">
          <path value="CDSHooksResponse.cards.links"/>
          <short value="Link to app or additional information"/>
          <definition
                      value="Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.links"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <constraint>
            <key value="cds-resp-3"/>
            <severity value="error"/>
            <human value="AppContext only for smart Apps"/>
            <expression value="(type != 'smart') implies (appContext.empty())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.links.extension">
          <path value="CDSHooksResponse.cards.links.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.links.label">
          <path value="CDSHooksResponse.cards.links.label"/>
          <short value="Human-readable label to display for this link"/>
          <definition
                      value="Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.links.url">
          <path value="CDSHooksResponse.cards.links.url"/>
          <short value="URL to load"/>
          <definition
                      value="URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.url"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.links.type">
          <path value="CDSHooksResponse.cards.links.type"/>
          <short value="absolute | smart"/>
          <definition
                      value="The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.type"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSLinkType"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders.links.appContext">
          <path value="CDSHooksResponse.cards.links.appContext"/>
          <short value="Information to share when launching SMART app"/>
          <definition
                      value="An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it."/>
          <comment
                   value="CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.appContext"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/json-empty-behavior">
            <valueCode value="present"/>
          </extension>
          <path value="CDSHooksResponse.cards"/>
          <sliceName value="formCompletion"/>
          <short value="CDS responses to show user"/>
          <definition
                      value="An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them)."/>
          <comment
                   value="The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
            <profile
                     value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse-formCompletion">🔗
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
                <valueString value="CDSHooksResponse.cards"/>
              </extension>
            </profile>
          </type>
          <constraint>
            <key value="cds-resp-1"/>
            <severity value="error"/>
            <human
                   value="only one action can be suggested if selectionBehavior = at-most-one"/>
            <expression
                        value="(selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() &lt;= 1"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
          <constraint>
            <key value="cds-resp-6"/>
            <severity value="error"/>
            <human
                   value="If suggestions are present, selectionBehavior MUST also be provided."/>
            <expression
                        value="suggestions.exists() implies selectionBehavior.exists()"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.extension">
          <path value="CDSHooksResponse.cards.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.uuid">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/implied-string-prefix">
            <valueString value="urn:uuid:"/>
          </extension>
          <path value="CDSHooksResponse.cards.uuid"/>
          <short value="Unique identifier of the card (for logging/feedback)"/>
          <definition
                      value="Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.uuid"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uuid"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.summary">
          <path value="CDSHooksResponse.cards.summary"/>
          <short value="Summary message for display to the user (&lt;140 char)"/>
          <definition
                      value="One-sentence, &lt;140-character summary message for display to the user inside of this card."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.summary"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.detail">
          <path value="CDSHooksResponse.cards.detail"/>
          <short
                 value="Optional detailed information to display (GitHub Flavored Markdown)"/>
          <definition
                      value="Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...')."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.detail"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="markdown"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.indicator">
          <path value="CDSHooksResponse.cards.indicator"/>
          <short
                 value="info, warning, critical - Urgency/importance of what this card conveys"/>
          <definition
                      value="Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical."/>
          <comment
                   value="The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.indicator"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSIndicator"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.source">
          <path value="CDSHooksResponse.cards.source"/>
          <short
                 value="The primary source of guidance for the content the card represents."/>
          <definition
                      value="The source should be the primary source of guidance for the decision support the card represents."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.source.extension">
          <path value="CDSHooksResponse.cards.source.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.source.label">
          <path value="CDSHooksResponse.cards.source.label"/>
          <short value="Short, human-readable label to display for the source."/>
          <definition
                      value="A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.source.url">
          <path value="CDSHooksResponse.cards.source.url"/>
          <short
                 value="Link for when user clicks for more information about the source"/>
          <definition
                      value="An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card."/>
          <comment
                   value="Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.url"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.source.icon">
          <path value="CDSHooksResponse.cards.source.icon"/>
          <short
                 value="absolute URL to an icon for the source (&lt;100x100 PNG))"/>
          <definition
                      value="An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.icon"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.source.topic">
          <path value="CDSHooksResponse.cards.source.topic"/>
          <short value="Describes the content of the card"/>
          <definition
                      value="A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics"/>
          <comment
                   value="This specification does not prescribe a standard set of topics"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.topic"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="extensible"/>
            <valueSet
                      value="http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.suggestions">
          <path value="CDSHooksResponse.cards.suggestions"/>
          <short
                 value="Suggest a set of changes in the context of the current activity"/>
          <definition
                      value="Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <condition value="cds-resp-1"/>
          <condition value="cds-resp-6"/>
          <constraint>
            <key value="cds-resp-5"/>
            <severity value="error"/>
            <human value="All suggestion actions must have a description"/>
            <expression value="actions.all(description.exists())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element
                 id="CDSHooksResponse.cards:formCompletion.suggestions.extension">
          <path value="CDSHooksResponse.cards.suggestions.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.suggestions.label">
          <path value="CDSHooksResponse.cards.suggestions.label"/>
          <short value="Human-readable label to display for this suggestion"/>
          <definition
                      value="Human-readable label to display for this suggestion"/>
          <comment
                   value="e.g. the CDS Client might render this as the text on a button tied to this suggestion"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.suggestions.uuid">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/implied-string-prefix">
            <valueString value="urn:uuid:"/>
          </extension>
          <path value="CDSHooksResponse.cards.suggestions.uuid"/>
          <short
                 value="Unique identifier, used for auditing and logging suggestions"/>
          <definition
                      value="Unique identifier, used for auditing and logging suggestions"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.uuid"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uuid"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:formCompletion.suggestions.isRecommended">
          <path value="CDSHooksResponse.cards.suggestions.isRecommended"/>
          <short value="Which suggestion is most preferred of a set"/>
          <definition
                      value="When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card"/>
          <comment
                   value="CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.isRecommended"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.suggestions.actions">
          <path value="CDSHooksResponse.cards.suggestions.actions"/>
          <short value="Defines a suggested action (all apply)"/>
          <definition
                      value="Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it"/>
          <comment
                   value="When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <constraint>
            <key value="cds-resp-2"/>
            <severity value="warning"/>
            <human
                   value="A resourceId not a resource must be provided when type = delete"/>
            <expression
                        value="(type = 'delete') implies (resourceId.exists() and resource.empty())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element
                 id="CDSHooksResponse.cards:formCompletion.suggestions.actions.extension">
          <path value="CDSHooksResponse.cards.suggestions.actions.extension"/>
          <short value="Extension"/>
          <definition value="An Extension"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:formCompletion.suggestions.actions.type">
          <path value="CDSHooksResponse.cards.suggestions.actions.type"/>
          <short value="create, update, delete - type of action performed"/>
          <definition
                      value="The type of action being performed. Allowed values are: create, update, delete."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.type"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSActionType"/>
          </binding>
        </element>
        <element
                 id="CDSHooksResponse.cards:formCompletion.suggestions.actions.description">
          <path value="CDSHooksResponse.cards.suggestions.actions.description"/>
          <short value="Human-readable description of the suggested action"/>
          <definition
                      value="Human-readable description of the suggested action that MAY be presented to the end-user."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.description"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <condition value="cds-resp-5"/>
          <mustSupport value="true"/>
        </element>
        <element
                 id="CDSHooksResponse.cards:formCompletion.suggestions.actions.resource">
          <path value="CDSHooksResponse.cards.suggestions.actions.resource"/>
          <short value="FHIR resource to create/update"/>
          <definition
                      value="When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields."/>
          <comment
                   value="Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resource"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Resource"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:formCompletion.suggestions.actions.resourceId">
          <path value="CDSHooksResponse.cards.suggestions.actions.resourceId"/>
          <short value="A relative reference to the relevant resource."/>
          <definition
                      value="A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resourceId"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.selectionBehavior">
          <path value="CDSHooksResponse.cards.selectionBehavior"/>
          <short value="at-most-one | any"/>
          <definition
                      value="Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them"/>
          <comment
                   value="CDS Clients that do not understand the value MUST treat the card as an error."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.selectionBehavior"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <condition value="cds-resp-1"/>
          <condition value="cds-resp-6"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.overrideReasons">
          <path value="CDSHooksResponse.cards.overrideReasons"/>
          <short value="Feedback from user on card - why not acted on"/>
          <definition
                      value="Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client."/>
          <comment
                   value="The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.overrideReasons"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <constraint>
            <key value="cds-resp-4"/>
            <severity value="error"/>
            <human
                   value="the CDS Service MUST populate a display value for each reason's Coding"/>
            <expression value="all(display.exists())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.links">
          <path value="CDSHooksResponse.cards.links"/>
          <short value="Link to app or additional information"/>
          <definition
                      value="Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.links"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <constraint>
            <key value="cds-resp-3"/>
            <severity value="error"/>
            <human value="AppContext only for smart Apps"/>
            <expression value="(type != 'smart') implies (appContext.empty())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.links.extension">
          <path value="CDSHooksResponse.cards.links.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.links.label">
          <path value="CDSHooksResponse.cards.links.label"/>
          <short value="Human-readable label to display for this link"/>
          <definition
                      value="Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.links.url">
          <path value="CDSHooksResponse.cards.links.url"/>
          <short value="URL to load"/>
          <definition
                      value="URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.url"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.links.type">
          <path value="CDSHooksResponse.cards.links.type"/>
          <short value="absolute | smart"/>
          <definition
                      value="The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.type"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSLinkType"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion.links.appContext">
          <path value="CDSHooksResponse.cards.links.appContext"/>
          <short value="Information to share when launching SMART app"/>
          <definition
                      value="An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it."/>
          <comment
                   value="CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.appContext"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/json-empty-behavior">
            <valueCode value="present"/>
          </extension>
          <path value="CDSHooksResponse.cards"/>
          <sliceName value="adjustCoverage"/>
          <short value="CDS responses to show user"/>
          <definition
                      value="An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them)."/>
          <comment
                   value="The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
            <profile
                     value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse-adjustCoverage">🔗
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
                <valueString value="CDSHooksResponse.cards"/>
              </extension>
            </profile>
          </type>
          <constraint>
            <key value="cds-resp-1"/>
            <severity value="error"/>
            <human
                   value="only one action can be suggested if selectionBehavior = at-most-one"/>
            <expression
                        value="(selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() &lt;= 1"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
          <constraint>
            <key value="cds-resp-6"/>
            <severity value="error"/>
            <human
                   value="If suggestions are present, selectionBehavior MUST also be provided."/>
            <expression
                        value="suggestions.exists() implies selectionBehavior.exists()"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.extension">
          <path value="CDSHooksResponse.cards.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.uuid">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/implied-string-prefix">
            <valueString value="urn:uuid:"/>
          </extension>
          <path value="CDSHooksResponse.cards.uuid"/>
          <short value="Unique identifier of the card (for logging/feedback)"/>
          <definition
                      value="Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.uuid"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uuid"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.summary">
          <path value="CDSHooksResponse.cards.summary"/>
          <short value="Summary message for display to the user (&lt;140 char)"/>
          <definition
                      value="One-sentence, &lt;140-character summary message for display to the user inside of this card."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.summary"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.detail">
          <path value="CDSHooksResponse.cards.detail"/>
          <short
                 value="Optional detailed information to display (GitHub Flavored Markdown)"/>
          <definition
                      value="Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...')."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.detail"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="markdown"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.indicator">
          <path value="CDSHooksResponse.cards.indicator"/>
          <short
                 value="info, warning, critical - Urgency/importance of what this card conveys"/>
          <definition
                      value="Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical."/>
          <comment
                   value="The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.indicator"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSIndicator"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.source">
          <path value="CDSHooksResponse.cards.source"/>
          <short
                 value="The primary source of guidance for the content the card represents."/>
          <definition
                      value="The source should be the primary source of guidance for the decision support the card represents."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.source.extension">
          <path value="CDSHooksResponse.cards.source.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.source.label">
          <path value="CDSHooksResponse.cards.source.label"/>
          <short value="Short, human-readable label to display for the source."/>
          <definition
                      value="A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.source.url">
          <path value="CDSHooksResponse.cards.source.url"/>
          <short
                 value="Link for when user clicks for more information about the source"/>
          <definition
                      value="An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card."/>
          <comment
                   value="Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.url"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.source.icon">
          <path value="CDSHooksResponse.cards.source.icon"/>
          <short
                 value="absolute URL to an icon for the source (&lt;100x100 PNG))"/>
          <definition
                      value="An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.icon"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.source.topic">
          <path value="CDSHooksResponse.cards.source.topic"/>
          <short value="Describes the content of the card"/>
          <definition
                      value="A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics"/>
          <comment
                   value="This specification does not prescribe a standard set of topics"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.topic"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="extensible"/>
            <valueSet
                      value="http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.suggestions">
          <path value="CDSHooksResponse.cards.suggestions"/>
          <short
                 value="Suggest a set of changes in the context of the current activity"/>
          <definition
                      value="Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <condition value="cds-resp-1"/>
          <condition value="cds-resp-6"/>
          <constraint>
            <key value="cds-resp-5"/>
            <severity value="error"/>
            <human value="All suggestion actions must have a description"/>
            <expression value="actions.all(description.exists())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element
                 id="CDSHooksResponse.cards:adjustCoverage.suggestions.extension">
          <path value="CDSHooksResponse.cards.suggestions.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.suggestions.label">
          <path value="CDSHooksResponse.cards.suggestions.label"/>
          <short value="Human-readable label to display for this suggestion"/>
          <definition
                      value="Human-readable label to display for this suggestion"/>
          <comment
                   value="e.g. the CDS Client might render this as the text on a button tied to this suggestion"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.suggestions.uuid">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/implied-string-prefix">
            <valueString value="urn:uuid:"/>
          </extension>
          <path value="CDSHooksResponse.cards.suggestions.uuid"/>
          <short
                 value="Unique identifier, used for auditing and logging suggestions"/>
          <definition
                      value="Unique identifier, used for auditing and logging suggestions"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.uuid"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uuid"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:adjustCoverage.suggestions.isRecommended">
          <path value="CDSHooksResponse.cards.suggestions.isRecommended"/>
          <short value="Which suggestion is most preferred of a set"/>
          <definition
                      value="When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card"/>
          <comment
                   value="CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.isRecommended"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.suggestions.actions">
          <path value="CDSHooksResponse.cards.suggestions.actions"/>
          <short value="Defines a suggested action (all apply)"/>
          <definition
                      value="Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it"/>
          <comment
                   value="When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <constraint>
            <key value="cds-resp-2"/>
            <severity value="warning"/>
            <human
                   value="A resourceId not a resource must be provided when type = delete"/>
            <expression
                        value="(type = 'delete') implies (resourceId.exists() and resource.empty())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element
                 id="CDSHooksResponse.cards:adjustCoverage.suggestions.actions.extension">
          <path value="CDSHooksResponse.cards.suggestions.actions.extension"/>
          <short value="Extension"/>
          <definition value="An Extension"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:adjustCoverage.suggestions.actions.type">
          <path value="CDSHooksResponse.cards.suggestions.actions.type"/>
          <short value="create, update, delete - type of action performed"/>
          <definition
                      value="The type of action being performed. Allowed values are: create, update, delete."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.type"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSActionType"/>
          </binding>
        </element>
        <element
                 id="CDSHooksResponse.cards:adjustCoverage.suggestions.actions.description">
          <path value="CDSHooksResponse.cards.suggestions.actions.description"/>
          <short value="Human-readable description of the suggested action"/>
          <definition
                      value="Human-readable description of the suggested action that MAY be presented to the end-user."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.description"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <condition value="cds-resp-5"/>
          <mustSupport value="true"/>
        </element>
        <element
                 id="CDSHooksResponse.cards:adjustCoverage.suggestions.actions.resource">
          <path value="CDSHooksResponse.cards.suggestions.actions.resource"/>
          <short value="FHIR resource to create/update"/>
          <definition
                      value="When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields."/>
          <comment
                   value="Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resource"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Resource"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:adjustCoverage.suggestions.actions.resourceId">
          <path value="CDSHooksResponse.cards.suggestions.actions.resourceId"/>
          <short value="A relative reference to the relevant resource."/>
          <definition
                      value="A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resourceId"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.selectionBehavior">
          <path value="CDSHooksResponse.cards.selectionBehavior"/>
          <short value="at-most-one | any"/>
          <definition
                      value="Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them"/>
          <comment
                   value="CDS Clients that do not understand the value MUST treat the card as an error."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.selectionBehavior"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <condition value="cds-resp-1"/>
          <condition value="cds-resp-6"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.overrideReasons">
          <path value="CDSHooksResponse.cards.overrideReasons"/>
          <short value="Feedback from user on card - why not acted on"/>
          <definition
                      value="Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client."/>
          <comment
                   value="The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.overrideReasons"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <constraint>
            <key value="cds-resp-4"/>
            <severity value="error"/>
            <human
                   value="the CDS Service MUST populate a display value for each reason's Coding"/>
            <expression value="all(display.exists())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.links">
          <path value="CDSHooksResponse.cards.links"/>
          <short value="Link to app or additional information"/>
          <definition
                      value="Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.links"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <constraint>
            <key value="cds-resp-3"/>
            <severity value="error"/>
            <human value="AppContext only for smart Apps"/>
            <expression value="(type != 'smart') implies (appContext.empty())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.links.extension">
          <path value="CDSHooksResponse.cards.links.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.links.label">
          <path value="CDSHooksResponse.cards.links.label"/>
          <short value="Human-readable label to display for this link"/>
          <definition
                      value="Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.links.url">
          <path value="CDSHooksResponse.cards.links.url"/>
          <short value="URL to load"/>
          <definition
                      value="URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.url"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.links.type">
          <path value="CDSHooksResponse.cards.links.type"/>
          <short value="absolute | smart"/>
          <definition
                      value="The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.type"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSLinkType"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage.links.appContext">
          <path value="CDSHooksResponse.cards.links.appContext"/>
          <short value="Information to share when launching SMART app"/>
          <definition
                      value="An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it."/>
          <comment
                   value="CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.appContext"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/json-empty-behavior">
            <valueCode value="present"/>
          </extension>
          <path value="CDSHooksResponse.cards"/>
          <sliceName value="launchSMART"/>
          <short value="CDS responses to show user"/>
          <definition
                      value="An array of Cards. Cards can provide a combination of information (for reading), suggested actions (to be applied if a user selects them), and links (to launch an app if the user selects them)."/>
          <comment
                   value="The CDS Client decides how to display cards, but this specification recommends displaying suggestions using buttons, and links using underlined text."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
            <profile
                     value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse-launchSMART">🔗
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
                <valueString value="CDSHooksResponse.cards"/>
              </extension>
            </profile>
          </type>
          <constraint>
            <key value="cds-resp-1"/>
            <severity value="error"/>
            <human
                   value="only one action can be suggested if selectionBehavior = at-most-one"/>
            <expression
                        value="(selectionBehavior = 'at-most-one') implies suggestions.where(isRecommended).count() &lt;= 1"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
          <constraint>
            <key value="cds-resp-6"/>
            <severity value="error"/>
            <human
                   value="If suggestions are present, selectionBehavior MUST also be provided."/>
            <expression
                        value="suggestions.exists() implies selectionBehavior.exists()"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.extension">
          <path value="CDSHooksResponse.cards.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.uuid">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/implied-string-prefix">
            <valueString value="urn:uuid:"/>
          </extension>
          <path value="CDSHooksResponse.cards.uuid"/>
          <short value="Unique identifier of the card (for logging/feedback)"/>
          <definition
                      value="Unique identifier of the card. MAY be used for auditing and logging cards and SHALL be included in any subsequent calls to the CDS service's feedback endpoint."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.uuid"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uuid"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.summary">
          <path value="CDSHooksResponse.cards.summary"/>
          <short value="Summary message for display to the user (&lt;140 char)"/>
          <definition
                      value="One-sentence, &lt;140-character summary message for display to the user inside of this card."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.summary"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.detail">
          <path value="CDSHooksResponse.cards.detail"/>
          <short
                 value="Optional detailed information to display (GitHub Flavored Markdown)"/>
          <definition
                      value="Optional detailed information to display; if provided MUST be represented in (GitHub Flavored) Markdown. (For non-urgent cards, the CDS Client MAY hide these details until the user clicks a link like 'view more details...')."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.detail"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="markdown"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.indicator">
          <path value="CDSHooksResponse.cards.indicator"/>
          <short
                 value="info, warning, critical - Urgency/importance of what this card conveys"/>
          <definition
                      value="Urgency/importance of what this card conveys. Allowed values, in order of increasing urgency, are: info, warning, critical."/>
          <comment
                   value="The CDS Client MAY use this field to help make UI display decisions such as sort order or coloring."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.indicator"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSIndicator"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.source">
          <path value="CDSHooksResponse.cards.source"/>
          <short
                 value="The primary source of guidance for the content the card represents."/>
          <definition
                      value="The source should be the primary source of guidance for the decision support the card represents."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.source.extension">
          <path value="CDSHooksResponse.cards.source.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.source.label">
          <path value="CDSHooksResponse.cards.source.label"/>
          <short value="Short, human-readable label to display for the source."/>
          <definition
                      value="A short, human-readable label to display for the source of the information displayed on this card. If a url is also specified, this MAY be the text for the hyperlink."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.source.url">
          <path value="CDSHooksResponse.cards.source.url"/>
          <short
                 value="Link for when user clicks for more information about the source"/>
          <definition
                      value="An optional absolute URL to load (via GET, in a browser context) when a user clicks on this link to learn more about the organization or data set that provided the information on this card."/>
          <comment
                   value="Note that this URL should not be used to supply a context-specific 'drill-down' view of the information on this card. For that, use card.link.url instead."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.url"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.source.icon">
          <path value="CDSHooksResponse.cards.source.icon"/>
          <short
                 value="absolute URL to an icon for the source (&lt;100x100 PNG))"/>
          <definition
                      value="An absolute URL to an icon for the source of this card. The icon returned by this URL SHOULD be a 100x100 pixel PNG image without any transparent regions. The CDS Client may ignore or scale the image during display as appropriate for user experience."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.icon"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.source.topic">
          <path value="CDSHooksResponse.cards.source.topic"/>
          <short value="Describes the content of the card"/>
          <definition
                      value="A topic describes the content of the card by providing a high-level categorization that can be useful for filtering, searching or ordered display of related cards in the CDS client's UI. This specification does not prescribe a standard set of topics"/>
          <comment
                   value="This specification does not prescribe a standard set of topics"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.source.topic"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="extensible"/>
            <valueSet
                      value="http://hl7.org/fhir/us/davinci-crd/ValueSet/cardType"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.suggestions">
          <path value="CDSHooksResponse.cards.suggestions"/>
          <short
                 value="Suggest a set of changes in the context of the current activity"/>
          <definition
                      value="Allows a service to suggest a set of changes in the context of the current activity (e.g. changing the dose of a medication currently being prescribed, for the order-sign activity)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <condition value="cds-resp-1"/>
          <condition value="cds-resp-6"/>
          <constraint>
            <key value="cds-resp-5"/>
            <severity value="error"/>
            <human value="All suggestion actions must have a description"/>
            <expression value="actions.all(description.exists())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.suggestions.extension">
          <path value="CDSHooksResponse.cards.suggestions.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.suggestions.label">
          <path value="CDSHooksResponse.cards.suggestions.label"/>
          <short value="Human-readable label to display for this suggestion"/>
          <definition
                      value="Human-readable label to display for this suggestion"/>
          <comment
                   value="e.g. the CDS Client might render this as the text on a button tied to this suggestion"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.suggestions.uuid">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/implied-string-prefix">
            <valueString value="urn:uuid:"/>
          </extension>
          <path value="CDSHooksResponse.cards.suggestions.uuid"/>
          <short
                 value="Unique identifier, used for auditing and logging suggestions"/>
          <definition
                      value="Unique identifier, used for auditing and logging suggestions"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.uuid"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="uuid"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:launchSMART.suggestions.isRecommended">
          <path value="CDSHooksResponse.cards.suggestions.isRecommended"/>
          <short value="Which suggestion is most preferred of a set"/>
          <definition
                      value="When there are multiple suggestions, allows a service to indicate that a specific suggestion is recommended from all the available suggestions on the card"/>
          <comment
                   value="CDS Hooks clients may choose to influence their UI based on this value, such as pre-selecting, or highlighting recommended suggestions. Multiple suggestions MAY be recommended, if card.selectionBehavior is any."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.isRecommended"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="boolean"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.suggestions.actions">
          <path value="CDSHooksResponse.cards.suggestions.actions"/>
          <short value="Defines a suggested action (all apply)"/>
          <definition
                      value="Defines a suggested action. Within a suggestion, all actions are logically AND'd together, such that a user selecting a suggestion selects all of the actions within it"/>
          <comment
                   value="When a suggestion contains multiple actions, the actions SHOULD be processed as per FHIR's rules for processing transactions with the CDS Client's fhirServer as the base url for the inferred full URL of the transaction bundle entries. (Specifically, deletes happen first, then creates, then updates)."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <constraint>
            <key value="cds-resp-2"/>
            <severity value="warning"/>
            <human
                   value="A resourceId not a resource must be provided when type = delete"/>
            <expression
                        value="(type = 'delete') implies (resourceId.exists() and resource.empty())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element
                 id="CDSHooksResponse.cards:launchSMART.suggestions.actions.extension">
          <path value="CDSHooksResponse.cards.suggestions.actions.extension"/>
          <short value="Extension"/>
          <definition value="An Extension"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:launchSMART.suggestions.actions.type">
          <path value="CDSHooksResponse.cards.suggestions.actions.type"/>
          <short value="create, update, delete - type of action performed"/>
          <definition
                      value="The type of action being performed. Allowed values are: create, update, delete."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.type"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSActionType"/>
          </binding>
        </element>
        <element
                 id="CDSHooksResponse.cards:launchSMART.suggestions.actions.description">
          <path value="CDSHooksResponse.cards.suggestions.actions.description"/>
          <short value="Human-readable description of the suggested action"/>
          <definition
                      value="Human-readable description of the suggested action that MAY be presented to the end-user."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.description"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <condition value="cds-resp-5"/>
          <mustSupport value="true"/>
        </element>
        <element
                 id="CDSHooksResponse.cards:launchSMART.suggestions.actions.resource">
          <path value="CDSHooksResponse.cards.suggestions.actions.resource"/>
          <short value="FHIR resource to create/update"/>
          <definition
                      value="When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields."/>
          <comment
                   value="Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resource"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Resource"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.cards:launchSMART.suggestions.actions.resourceId">
          <path value="CDSHooksResponse.cards.suggestions.actions.resourceId"/>
          <short value="A relative reference to the relevant resource."/>
          <definition
                      value="A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resourceId"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.selectionBehavior">
          <path value="CDSHooksResponse.cards.selectionBehavior"/>
          <short value="at-most-one | any"/>
          <definition
                      value="Describes the intended selection behavior of the suggestions in the card. Allowed values are: at-most-one, indicating that the user may choose none or at most one of the suggestions; any, indicating that the end user may choose any number of suggestions including none of them and all of them"/>
          <comment
                   value="CDS Clients that do not understand the value MUST treat the card as an error."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.selectionBehavior"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <condition value="cds-resp-1"/>
          <condition value="cds-resp-6"/>
          <binding>
            <strength value="required"/>
            <valueSet
                      value="http://hl7.org/fhir/tools/ValueSet/CDSSelectionBehavior"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.overrideReasons">
          <path value="CDSHooksResponse.cards.overrideReasons"/>
          <short value="Feedback from user on card - why not acted on"/>
          <definition
                      value="Override reasons can be selected by the end user when overriding a card without taking the suggested recommendations. The CDS service MAY return a list of override reasons to the CDS client."/>
          <comment
                   value="The CDS Client SHOULD present these reasons to the clinician when they dismiss a card. A CDS Client MAY augment the override reasons presented to the user with its own reasons"/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.overrideReasons"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code value="Coding"/>
          </type>
          <constraint>
            <key value="cds-resp-4"/>
            <severity value="error"/>
            <human
                   value="the CDS Service MUST populate a display value for each reason's Coding"/>
            <expression value="all(display.exists())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.links">
          <path value="CDSHooksResponse.cards.links"/>
          <short value="Link to app or additional information"/>
          <definition
                      value="Allows a service to suggest a link to an app that the user might want to run for additional information or to help guide a decision."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.cards.links"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
          <constraint>
            <key value="cds-resp-3"/>
            <severity value="error"/>
            <human value="AppContext only for smart Apps"/>
            <expression value="(type != 'smart') implies (appContext.empty())"/>
            <source
                    value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksResponse"/>
          </constraint>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.links.extension">
          <path value="CDSHooksResponse.cards.links.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.links.label">
          <path value="CDSHooksResponse.cards.links.label"/>
          <short value="Human-readable label to display for this link"/>
          <definition
                      value="Human-readable label to display for this link (e.g. the CDS Client might render this as the underlined text of a clickable link)."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.label"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.links.url">
          <path value="CDSHooksResponse.cards.links.url"/>
          <short value="URL to load"/>
          <definition
                      value="URL to load (via GET, in a browser context) when a user clicks on this link. Note that this MAY be a 'deep link' with context embedded in path segments, query parameters, or a hash."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.url"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.links.type">
          <path value="CDSHooksResponse.cards.links.type"/>
          <short value="absolute | smart"/>
          <definition
                      value="The type of the given URL. There are two possible values for this field. A type of absolute indicates that the URL is absolute and should be treated as-is. A type of smart indicates that the URL is a SMART app launch URL and the CDS Client should ensure the SMART app launch URL is populated with the appropriate SMART launch parameters"/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.type"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSLinkType"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART.links.appContext">
          <path value="CDSHooksResponse.cards.links.appContext"/>
          <short value="Information to share when launching SMART app"/>
          <definition
                      value="An optional field that allows the CDS Service to share information from the CDS card with a subsequently launched SMART app. The appContext field should only be valued if the link type is smart and is not valid for absolute links. The appContext field and value will be sent to the SMART app as part of the OAuth 2.0 access token response, alongside the other SMART launch parameters when the SMART app is launched. Note that appContext could be escaped JSON, base64 encoded XML, or even a simple string, so long as the SMART app can recognize it."/>
          <comment
                   value="CDS Client support for appContext requires additional coordination with the authorization server that is not described or specified in CDS Hooks nor SMART."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.links.appContext"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <mustSupport value="true"/>
        </element>
        <element id="CDSHooksResponse.systemActions">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/json-empty-behavior">
            <valueCode value="absent"/>
          </extension>
          <path value="CDSHooksResponse.systemActions"/>
          <slicing>
            <discriminator>
              <type value="profile"/>
              <path value="$this"/>
            </discriminator>
            <rules value="open"/>
          </slicing>
          <short value="Actions to auto-apply"/>
          <definition
                      value="An array of Actions that the CDS Service proposes to auto-apply"/>
          <comment
                   value="Each action follows the schema of a card-based suggestion.action. The CDS Client decides whether to auto-apply actions."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.systemActions"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
          </type>
        </element>
        <element id="CDSHooksResponse.systemActions.extension">
          <path value="CDSHooksResponse.systemActions.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.systemActions.type">
          <path value="CDSHooksResponse.systemActions.type"/>
          <short value="create, update, delete - type of action performed"/>
          <definition
                      value="The type of action being performed. Allowed values are: create, update, delete."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.type"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSActionType"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.systemActions.description">
          <path value="CDSHooksResponse.systemActions.description"/>
          <short value="Human-readable description of the suggested action"/>
          <definition
                      value="Human-readable description of the suggested action that MAY be presented to the end-user."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.description"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <condition value="cds-resp-5"/>
        </element>
        <element id="CDSHooksResponse.systemActions.resource">
          <path value="CDSHooksResponse.systemActions.resource"/>
          <short value="FHIR resource to create/update"/>
          <definition
                      value="When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields."/>
          <comment
                   value="Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resource"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Resource"/>
          </type>
        </element>
        <element id="CDSHooksResponse.systemActions.resourceId">
          <path value="CDSHooksResponse.systemActions.resourceId"/>
          <short value="A relative reference to the relevant resource."/>
          <definition
                      value="A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resourceId"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.systemActions:coverageInformation">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/json-empty-behavior">
            <valueCode value="absent"/>
          </extension>
          <path value="CDSHooksResponse.systemActions"/>
          <sliceName value="coverageInformation"/>
          <short value="Actions to auto-apply"/>
          <definition
                      value="An array of Actions that the CDS Service proposes to auto-apply"/>
          <comment
                   value="Each action follows the schema of a card-based suggestion.action. The CDS Client decides whether to auto-apply actions."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.systemActions"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
            <profile
                     value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse-coverageInformation">🔗
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
                <valueString value="CDSHooksResponse.systemActions"/>
              </extension>
            </profile>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.systemActions:coverageInformation.extension">
          <path value="CDSHooksResponse.systemActions.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.systemActions:coverageInformation.type">
          <path value="CDSHooksResponse.systemActions.type"/>
          <short value="create, update, delete - type of action performed"/>
          <definition
                      value="The type of action being performed. Allowed values are: create, update, delete."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.type"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSActionType"/>
          </binding>
        </element>
        <element
                 id="CDSHooksResponse.systemActions:coverageInformation.description">
          <path value="CDSHooksResponse.systemActions.description"/>
          <short value="Human-readable description of the suggested action"/>
          <definition
                      value="Human-readable description of the suggested action that MAY be presented to the end-user."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.description"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <condition value="cds-resp-5"/>
        </element>
        <element
                 id="CDSHooksResponse.systemActions:coverageInformation.resource">
          <path value="CDSHooksResponse.systemActions.resource"/>
          <short value="FHIR resource to create/update"/>
          <definition
                      value="When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields."/>
          <comment
                   value="Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resource"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Resource"/>
          </type>
        </element>
        <element
                 id="CDSHooksResponse.systemActions:coverageInformation.resourceId">
          <path value="CDSHooksResponse.systemActions.resourceId"/>
          <short value="A relative reference to the relevant resource."/>
          <definition
                      value="A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resourceId"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.systemActions:formCompletion">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/json-empty-behavior">
            <valueCode value="absent"/>
          </extension>
          <path value="CDSHooksResponse.systemActions"/>
          <sliceName value="formCompletion"/>
          <short value="Actions to auto-apply"/>
          <definition
                      value="An array of Actions that the CDS Service proposes to auto-apply"/>
          <comment
                   value="Each action follows the schema of a card-based suggestion.action. The CDS Client decides whether to auto-apply actions."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.systemActions"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
            <profile
                     value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse-formCompletion">🔗
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
                <valueString value="CDSHooksResponse.cards.suggestions.actions"/>
              </extension>
            </profile>
          </type>
        </element>
        <element id="CDSHooksResponse.systemActions:formCompletion.extension">
          <path value="CDSHooksResponse.systemActions.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.systemActions:formCompletion.type">
          <path value="CDSHooksResponse.systemActions.type"/>
          <short value="create, update, delete - type of action performed"/>
          <definition
                      value="The type of action being performed. Allowed values are: create, update, delete."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.type"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSActionType"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.systemActions:formCompletion.description">
          <path value="CDSHooksResponse.systemActions.description"/>
          <short value="Human-readable description of the suggested action"/>
          <definition
                      value="Human-readable description of the suggested action that MAY be presented to the end-user."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.description"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <condition value="cds-resp-5"/>
        </element>
        <element id="CDSHooksResponse.systemActions:formCompletion.resource">
          <path value="CDSHooksResponse.systemActions.resource"/>
          <short value="FHIR resource to create/update"/>
          <definition
                      value="When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields."/>
          <comment
                   value="Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resource"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Resource"/>
          </type>
        </element>
        <element id="CDSHooksResponse.systemActions:formCompletion.resourceId">
          <path value="CDSHooksResponse.systemActions.resourceId"/>
          <short value="A relative reference to the relevant resource."/>
          <definition
                      value="A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resourceId"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
        <element id="CDSHooksResponse.systemActions:adjustCoverage">
          <extension
                     url="http://hl7.org/fhir/tools/StructureDefinition/json-empty-behavior">
            <valueCode value="absent"/>
          </extension>
          <path value="CDSHooksResponse.systemActions"/>
          <sliceName value="adjustCoverage"/>
          <short value="Actions to auto-apply"/>
          <definition
                      value="An array of Actions that the CDS Service proposes to auto-apply"/>
          <comment
                   value="Each action follows the schema of a card-based suggestion.action. The CDS Client decides whether to auto-apply actions."/>
          <min value="0"/>
          <max value="*"/>
          <base>
            <path value="CDSHooksResponse.systemActions"/>
            <min value="0"/>
            <max value="*"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
            <profile
                     value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse-adjustCoverage">🔗
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
                <valueString value="CDSHooksResponse.cards.suggestions.actions"/>
              </extension>
            </profile>
          </type>
        </element>
        <element id="CDSHooksResponse.systemActions:adjustCoverage.extension">
          <path value="CDSHooksResponse.systemActions.extension"/>
          <short value="Object that has Named Extension Properties"/>
          <definition
                      value="A JSON object that has properties where the names are defined by the extension definitions"/>
          <comment
                   value="Extension structures SHOULD use a strategy for naming that ensures global uniqueness, such as reverse-domain-name notation, e.g. com.cds-hooks.sandbox.myextension-practitionerspecialty. How to handle complex extensions (objects) is not defined"/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksElement.extension"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksExtensions"/>
          </type>
        </element>
        <element id="CDSHooksResponse.systemActions:adjustCoverage.type">
          <path value="CDSHooksResponse.systemActions.type"/>
          <short value="create, update, delete - type of action performed"/>
          <definition
                      value="The type of action being performed. Allowed values are: create, update, delete."/>
          <min value="1"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.type"/>
            <min value="1"/>
            <max value="1"/>
          </base>
          <type>
            <code value="code"/>
          </type>
          <mustSupport value="true"/>
          <binding>
            <strength value="required"/>
            <valueSet value="http://hl7.org/fhir/tools/ValueSet/CDSActionType"/>
          </binding>
        </element>
        <element id="CDSHooksResponse.systemActions:adjustCoverage.description">
          <path value="CDSHooksResponse.systemActions.description"/>
          <short value="Human-readable description of the suggested action"/>
          <definition
                      value="Human-readable description of the suggested action that MAY be presented to the end-user."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.description"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="string"/>
          </type>
          <condition value="cds-resp-5"/>
        </element>
        <element id="CDSHooksResponse.systemActions:adjustCoverage.resource">
          <path value="CDSHooksResponse.systemActions.resource"/>
          <short value="FHIR resource to create/update"/>
          <definition
                      value="When the type attribute is create, the resource attribute SHALL contain a new FHIR resource to be created. For update, this holds the updated resource in its entirety and not just the changed fields."/>
          <comment
                   value="Use of this field to communicate a string of a FHIR id for delete suggestions is DEPRECATED and resourceId SHOULD be used instead."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resource"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="Resource"/>
          </type>
        </element>
        <element id="CDSHooksResponse.systemActions:adjustCoverage.resourceId">
          <path value="CDSHooksResponse.systemActions.resourceId"/>
          <short value="A relative reference to the relevant resource."/>
          <definition
                      value="A relative reference to the relevant resource. SHOULD be provided when the type attribute is delete."/>
          <min value="0"/>
          <max value="1"/>
          <base>
            <path value="CDSHooksResponse.cards.suggestions.actions.resourceId"/>
            <min value="0"/>
            <max value="1"/>
          </base>
          <type>
            <code value="url"/>
          </type>
        </element>
      </snapshot>
      <differential>
        <element id="CDSHooksResponse">
          <path value="CDSHooksResponse"/>
        </element>
        <element id="CDSHooksResponse.cards">
          <path value="CDSHooksResponse.cards"/>
          <slicing>
            <discriminator>
              <type value="profile"/>
              <path value="$this"/>
            </discriminator>
            <rules value="open"/>
          </slicing>
        </element>
        <element id="CDSHooksResponse.cards:externalReference">
          <path value="CDSHooksResponse.cards"/>
          <sliceName value="externalReference"/>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
            <profile
                     value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse-externalReference">🔗
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
                <valueString value="CDSHooksResponse.cards"/>
              </extension>
            </profile>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:instructions">
          <path value="CDSHooksResponse.cards"/>
          <sliceName value="instructions"/>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
            <profile
                     value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse-instructions">🔗
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
                <valueString value="CDSHooksResponse.cards"/>
              </extension>
            </profile>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:alternateRequest">
          <path value="CDSHooksResponse.cards"/>
          <sliceName value="alternateRequest"/>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
            <profile
                     value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse-alternateRequest">🔗
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
                <valueString value="CDSHooksResponse.cards"/>
              </extension>
            </profile>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:additionalOrders">
          <path value="CDSHooksResponse.cards"/>
          <sliceName value="additionalOrders"/>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
            <profile
                     value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse-additionalOrders">🔗
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
                <valueString value="CDSHooksResponse.cards"/>
              </extension>
            </profile>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:formCompletion">
          <path value="CDSHooksResponse.cards"/>
          <sliceName value="formCompletion"/>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
            <profile
                     value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse-formCompletion">🔗
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
                <valueString value="CDSHooksResponse.cards"/>
              </extension>
            </profile>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:adjustCoverage">
          <path value="CDSHooksResponse.cards"/>
          <sliceName value="adjustCoverage"/>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
            <profile
                     value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse-adjustCoverage">🔗
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
                <valueString value="CDSHooksResponse.cards"/>
              </extension>
            </profile>
          </type>
        </element>
        <element id="CDSHooksResponse.cards:launchSMART">
          <path value="CDSHooksResponse.cards"/>
          <sliceName value="launchSMART"/>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
            <profile
                     value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse-launchSMART">🔗
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
                <valueString value="CDSHooksResponse.cards"/>
              </extension>
            </profile>
          </type>
        </element>
        <element id="CDSHooksResponse.systemActions">
          <path value="CDSHooksResponse.systemActions"/>
          <slicing>
            <discriminator>
              <type value="profile"/>
              <path value="$this"/>
            </discriminator>
            <rules value="open"/>
          </slicing>
        </element>
        <element id="CDSHooksResponse.systemActions:coverageInformation">
          <path value="CDSHooksResponse.systemActions"/>
          <sliceName value="coverageInformation"/>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
            <profile
                     value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse-coverageInformation">🔗
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
                <valueString value="CDSHooksResponse.systemActions"/>
              </extension>
            </profile>
          </type>
        </element>
        <element id="CDSHooksResponse.systemActions:formCompletion">
          <path value="CDSHooksResponse.systemActions"/>
          <sliceName value="formCompletion"/>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
            <profile
                     value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse-formCompletion">🔗
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
                <valueString value="CDSHooksResponse.cards.suggestions.actions"/>
              </extension>
            </profile>
          </type>
        </element>
        <element id="CDSHooksResponse.systemActions:adjustCoverage">
          <path value="CDSHooksResponse.systemActions"/>
          <sliceName value="adjustCoverage"/>
          <type>
            <code
                  value="http://hl7.org/fhir/tools/StructureDefinition/CDSHooksElement"/>
            <profile
                     value="http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDHooksResponse-adjustCoverage">🔗
              <extension
                         url="http://hl7.org/fhir/StructureDefinition/elementdefinition-profile-element">
                <valueString value="CDSHooksResponse.cards.suggestions.actions"/>
              </extension>
            </profile>
          </type>
        </element>
      </differential>
    </StructureDefinition>