Da Vinci - Coverage Requirements Discovery
2.2.1 - STU 2.2

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.1 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 CDS Hooks Specific Context for order-select (Logical Definition) - JSON Profile

Page standards status: Informative

JSON representation of the CRDOrderSelectContext logical model.

Raw json | Download

    {
      "resourceType" : "StructureDefinition",
      "id" : "CRDOrderSelectContext",
      "language" : "en",
      "text" : {
        "status" : "extensions",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureDefinition CRDOrderSelectContext</b></p><a name=\"CRDOrderSelectContext\"> </a><a name=\"hcCRDOrderSelectContext\"> </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-CRDOrderSelectContext-definitions.html#CDSHookOrderSelectContext\">CDSHookOrderSelectContext</a><a name=\"CDSHookOrderSelectContext\"> </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=\"http://hl7.org/fhir/tools/1.1.2/StructureDefinition-CDSHookOrderSelectContext.html\">CDSHookOrderSelectContext</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 context for the order-select hook</span></td></tr>\r\n<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_bck00.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_resource.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-CRDOrderSelectContext-definitions.html#CDSHookOrderSelectContext.draftOrders\">draftOrders</a><a name=\"CDSHookOrderSelectContext.draftOrders\"> </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\">1</span><span style=\"opacity: 0.5\">..</span><span style=\"opacity: 0.5\">1</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-profile-bundle-request.html\" title=\"Bundle\">CRDRequestBundle</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\">Contains a collection of resources</span></td></tr>\r\n<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>"
      },
      "extension" : [
        {
          "url" : "http://hl7.org/fhir/tools/StructureDefinition/json-suppress-resourcetype",
          "valueBoolean" : true
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode" : "fm"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode" : "informative",
          "_valueCode" : {
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
                "valueCanonical" : "http://hl7.org/fhir/us/davinci-crd/ImplementationGuide/davinci-crd"
              }
            ]
          }
        }
      ],
      "url" : "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDOrderSelectContext",
      "identifier" : [
        {
          "system" : "urn:ietf:rfc:3986",
          "value" : "urn:oid:2.16.840.1.113883.4.642.40.18.42.39"
        }
      ],
      "version" : "2.2.1",
      "name" : "CRDOrderSelectContext",
      "title" : "CRD CDS Hooks Specific Context for order-select (Logical Definition)",
      "status" : "draft",
      "experimental" : true,
      "date" : "2026-03-26T15:54:25+00:00",
      "publisher" : "HL7 International / Financial Management",
      "contact" : [
        {
          "telecom" : [
            {
              "system" : "url",
              "value" : "http://www.hl7.org/Special/committees/fm"
            }
          ]
        }
      ],
      "description" : "CRD-specific constraints on the order-select CDS Hook context",
      "jurisdiction" : [
        {
          "coding" : [
            {
              "system" : "urn:iso:std:iso:3166",
              "code" : "US"
            }
          ]
        }
      ],
      "fhirVersion" : "4.0.1",
      "mapping" : [
        {
          "identity" : "rim",
          "uri" : "http://hl7.org/v3",
          "name" : "RIM Mapping"
        }
      ],
      "kind" : "logical",
      "abstract" : false,
      "type" : "http://hl7.org/fhir/tools/StructureDefinition/CDSHookOrderSelectContext",
      "baseDefinition" : "http://hl7.org/fhir/tools/StructureDefinition/CDSHookOrderSelectContext",
      "derivation" : "constraint",
      "snapshot" : {
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
            "valueString" : "1.1.2"
          }
        ],
        "element" : [
          {
            "id" : "CDSHookOrderSelectContext",
            "path" : "CDSHookOrderSelectContext",
            "short" : "The context for the order-select hook",
            "definition" : "The context (hook specific)",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Base",
              "min" : 0,
              "max" : "*"
            },
            "isModifier" : false
          },
          {
            "id" : "CDSHookOrderSelectContext.userId",
            "path" : "CDSHookOrderSelectContext.userId",
            "short" : "The id of the current user. Must be in the format [ResourceType]/[id].",
            "definition" : "For this hook, the user is expected to be of type Practitioner, PractitionerRole, Patient, or RelatedPerson. Patient or RelatedPerson are appropriate when a patient or their proxy are viewing the record. For example, Practitioner/abc or Patient/123.",
            "min" : 1,
            "max" : "1",
            "base" : {
              "path" : "CDSHookOrderSelectContext.userId",
              "min" : 1,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "url"
              }
            ]
          },
          {
            "id" : "CDSHookOrderSelectContext.patientId",
            "path" : "CDSHookOrderSelectContext.patientId",
            "short" : "The FHIR Patient.id of the current patient in context",
            "definition" : "The FHIR Patient.id of the current patient in context",
            "min" : 1,
            "max" : "1",
            "base" : {
              "path" : "CDSHookOrderSelectContext.patientId",
              "min" : 1,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "id"
              }
            ]
          },
          {
            "id" : "CDSHookOrderSelectContext.encounterId",
            "path" : "CDSHookOrderSelectContext.encounterId",
            "short" : "The FHIR Encounter.id of the current encounter in context",
            "definition" : "The FHIR Encounter.id of the current encounter in context",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "CDSHookOrderSelectContext.encounterId",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "id"
              }
            ]
          },
          {
            "id" : "CDSHookOrderSelectContext.selections",
            "path" : "CDSHookOrderSelectContext.selections",
            "short" : "The FHIR ids of the newly selected order(s)",
            "definition" : "The selections field references FHIR resources in the draftOrders Bundle. For example, MedicationRequest/103",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "CDSHookOrderSelectContext.selections",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "uri"
              }
            ],
            "constraint" : [
              {
                "key" : "ord-1",
                "severity" : "error",
                "human" : "Must be in the format {type}/{id}",
                "expression" : "value.matches('^[\\\\d\\\\w]+\\\\/[\\\\d\\\\w-.]+$')",
                "source" : "http://hl7.org/fhir/tools/StructureDefinition/CDSHookOrderSelectContext"
              }
            ]
          },
          {
            "id" : "CDSHookOrderSelectContext.draftOrders",
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/tools/StructureDefinition/id-expectation",
                "valueCode" : "optional"
              }
            ],
            "path" : "CDSHookOrderSelectContext.draftOrders",
            "short" : "Contains a collection of resources",
            "definition" : "A container for a collection of resources.",
            "min" : 1,
            "max" : "1",
            "base" : {
              "path" : "CDSHookOrderSelectContext.draftOrders",
              "min" : 1,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "Bundle",
                "profile" : [
                  🔗 "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-bundle-request"
                ]
              }
            ],
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "Entity. Role, or Act"
              },
              {
                "identity" : "v2",
                "map" : "N/A"
              },
              {
                "identity" : "rim",
                "map" : "N/A"
              },
              {
                "identity" : "cda",
                "map" : "ClinicalDocument, if bundle.type = document"
              }
            ]
          }
        ]
      },
      "differential" : {
        "element" : [
          {
            "id" : "CDSHookOrderSelectContext",
            "path" : "CDSHookOrderSelectContext"
          },
          {
            "id" : "CDSHookOrderSelectContext.draftOrders",
            "path" : "CDSHookOrderSelectContext.draftOrders",
            "type" : [
              {
                "code" : "Bundle",
                "profile" : [
                  🔗 "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-bundle-request"
                ]
              }
            ]
          }
        ]
      }
    }