PackagesCanonicalsLogsProblems
    Packages
    hl7.fhir.us.davinci-crd@2.2.0-ballot
    http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDOrderSelectContext
{
  "description": "CRD-specific constraints on the order-select CDS Hook context",
  "_filename": "StructureDefinition-CRDOrderSelectContext.json",
  "package_name": "hl7.fhir.us.davinci-crd",
  "date": "2025-08-06T17:27:13+00:00",
  "derivation": "constraint",
  "publisher": "HL7 International / Financial Management",
  "fhirVersion": "4.0.1",
  "jurisdiction": [ {
    "coding": [ {
      "code": "US",
      "system": "urn:iso:std:iso:3166"
    } ]
  } ],
  "name": "CRDOrderSelectContext",
  "mapping": [ {
    "uri": "http://hl7.org/v3",
    "name": "RIM Mapping",
    "identity": "rim"
  } ],
  "abstract": false,
  "type": "http://hl7.org/fhir/tools/StructureDefinition/CDSHookOrderSelectContext",
  "experimental": "true",
  "resourceType": "StructureDefinition",
  "title": "CRD CDS Hooks Specific Context for order-select (Logical Definition)",
  "package_version": "2.2.0-ballot",
  "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"
      } ]
    }
  } ],
  "snapshot": {
    "element": [ {
      "id": "CDSHookOrderSelectContext",
      "max": "*",
      "min": 0,
      "base": {
        "max": "*",
        "min": 0,
        "path": "Base"
      },
      "path": "CDSHookOrderSelectContext",
      "short": "The context for the order-select hook",
      "definition": "The context (hook specific)",
      "isModifier": false
    }, {
      "id": "CDSHookOrderSelectContext.userId",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "CDSHookOrderSelectContext.userId"
      },
      "path": "CDSHookOrderSelectContext.userId",
      "type": [ {
        "code": "url"
      } ],
      "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."
    }, {
      "id": "CDSHookOrderSelectContext.patientId",
      "max": "1",
      "min": 1,
      "base": {
        "max": "1",
        "min": 1,
        "path": "CDSHookOrderSelectContext.patientId"
      },
      "path": "CDSHookOrderSelectContext.patientId",
      "type": [ {
        "code": "id"
      } ],
      "short": "The FHIR Patient.id of the current patient in context",
      "definition": "The FHIR Patient.id of the current patient in context"
    }, {
      "id": "CDSHookOrderSelectContext.encounterId",
      "max": "1",
      "min": 0,
      "base": {
        "max": "1",
        "min": 0,
        "path": "CDSHookOrderSelectContext.encounterId"
      },
      "path": "CDSHookOrderSelectContext.encounterId",
      "type": [ {
        "code": "id"
      } ],
      "short": "The FHIR Encounter.id of the current encounter in context",
      "definition": "The FHIR Encounter.id of the current encounter in context"
    }, {
      "constraint": [ {
        "key": "ord-1",
        "human": "Must be in the format {type}/{id}",
        "source": "http://hl7.org/fhir/tools/StructureDefinition/CDSHookOrderSelectContext",
        "severity": "error",
        "expression": "value.matches('^[\\\\d\\\\w]+\\\\/[\\\\d\\\\w-.]+$')"
      } ],
      "path": "CDSHookOrderSelectContext.selections",
      "min": 0,
      "definition": "The selections field references FHIR resources in the draftOrders Bundle. For example, MedicationRequest/103",
      "short": "The FHIR ids of the newly selected order(s)",
      "type": [ {
        "code": "uri"
      } ],
      "max": "*",
      "id": "CDSHookOrderSelectContext.selections",
      "base": {
        "max": "*",
        "min": 0,
        "path": "CDSHookOrderSelectContext.selections"
      }
    }, {
      "path": "CDSHookOrderSelectContext.draftOrders",
      "min": 1,
      "definition": "A container for a collection of resources.",
      "short": "Contains a collection of resources",
      "mapping": [ {
        "map": "Entity. Role, or Act",
        "identity": "rim"
      }, {
        "map": "N/A",
        "identity": "v2"
      }, {
        "map": "N/A",
        "identity": "rim"
      }, {
        "map": "ClinicalDocument, if bundle.type = document",
        "identity": "cda"
      } ],
      "type": [ {
        "code": "Bundle",
        "profile": [ "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/profile-bundle-request" ]
      } ],
      "extension": [ {
        "url": "http://hl7.org/fhir/tools/StructureDefinition/id-expectation",
        "valueCode": "optional"
      } ],
      "max": "1",
      "id": "CDSHookOrderSelectContext.draftOrders",
      "base": {
        "max": "1",
        "min": 1,
        "path": "CDSHookOrderSelectContext.draftOrders"
      }
    } ],
    "extension": [ {
      "url": "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
      "valueString": "0.8.0"
    } ]
  },
  "status": "draft",
  "id": "13f11fd4-b216-45e6-9c02-5acc0d4d8345",
  "kind": "logical",
  "url": "http://hl7.org/fhir/us/davinci-crd/StructureDefinition/CRDOrderSelectContext",
  "identifier": [ {
    "value": "urn:oid:2.16.840.1.113883.4.642.40.18.42.39",
    "system": "urn:ietf:rfc:3986"
  } ],
  "version": "2.2.0-ballot",
  "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" ]
      } ]
    } ]
  },
  "contact": [ {
    "telecom": [ {
      "value": "http://www.hl7.org/Special/committees/fm",
      "system": "url"
    } ]
  } ],
  "baseDefinition": "http://hl7.org/fhir/tools/StructureDefinition/CDSHookOrderSelectContext"
}