{ "description": "Profile of DeviceRequest for decision support/quality metrics. Defines the core set of elements and extensions for quality rule and measure authors.", "_filename": "StructureDefinition-qicore-devicenotrequested.json", "package_name": "hl7.fhir.us.qicore", "date": "2019-07-11", "derivation": "constraint", "publisher": "HL7 International / Clinical Quality Information", "fhirVersion": "4.0.1", "jurisdiction": [ { "coding": [ { "code": "US", "system": "urn:iso:std:iso:3166" } ] } ], "name": "QICoreDeviceNotRequested", "mapping": [ { "uri": "http://hl7.org/fhir/workflow", "name": "Workflow Pattern", "identity": "workflow" }, { "uri": "http://hl7.org/v2", "name": "HL7 v2 Mapping", "identity": "v2" }, { "uri": "http://hl7.org/v3", "name": "RIM Mapping", "identity": "rim" }, { "uri": "http://hl7.org/fhir/fivews", "name": "FiveWs Pattern Mapping", "identity": "w5" }, { "uri": "http://siframework.org/cqf", "name": "Quality Improvement and Clinical Knowledge (QUICK)", "identity": "quick" } ], "abstract": false, "type": "DeviceRequest", "experimental": "false", "resourceType": "StructureDefinition", "title": "QICore Device Not Requested", "package_version": "6.0.0", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg", "valueCode": "cqi" } ], "snapshot": { "element": [ { "constraint": [ { "key": "dom-2", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "xpath": "not(parent::f:contained and f:contained)", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "error", "expression": "contained.contained.empty()" }, { "key": "dom-3", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource", "xpath": "not(exists(for $id in f:contained/*/f:id/@value return $contained[not(parent::*/descendant::f:reference/@value=concat('#', $contained/*/id/@value) or descendant::f:reference[@value='#'])]))", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "error", "expression": "contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().as(canonical) | %resource.descendants().as(uri) | %resource.descendants().as(url))) or descendants().where(reference = '#').exists() or descendants().where(as(canonical) = '#').exists() or descendants().where(as(canonical) = '#').exists()).not()).trace('unmatched', id).empty()" }, { "key": "dom-4", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "error", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()" }, { "key": "dom-5", "human": "If a resource is contained in another resource, it SHALL NOT have a security label", "xpath": "not(exists(f:contained/*/f:meta/f:security))", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "error", "expression": "contained.meta.security.empty()" }, { "key": "dom-6", "human": "A resource should have narrative for robust management", "xpath": "exists(f:text/h:div)", "source": "http://hl7.org/fhir/StructureDefinition/DomainResource", "severity": "warning", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice", "valueBoolean": true }, { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bestpractice-explanation", "valueMarkdown": "When a resource has no narrative, only systems that fully understand the data can display the resource to a human safely. Including a human readable representation in the resource makes for a much more robust eco-system and cheaper handling of resources by intermediary systems. Some ecosystems restrict distribution of resources to only those systems that do fully understand the resources, and as a consequence implementers may believe that the narrative is superfluous. However experience shows that such eco-systems often open up to new participants over time." } ], "expression": "text.`div`.exists()" }, { "key": "dnr-1", "human": "to indicate what device was not requested, either at least one coding in the code or a notDoneValueSet extension shall be provided", "xpath": "exists(f:extension)", "severity": "error", "expression": "code.extension('http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet').exists() xor code.coding.exists()" } ], "path": "DeviceRequest", "min": 0, "definition": "Represents a request for a patient to employ a medical device. The device may be an implantable device, or an external assistive device, such as a walker.", "isModifier": false, "short": "Medical device request", "mapping": [ { "map": "Entity. Role, or Act", "identity": "rim" }, { "map": "Request", "identity": "workflow" }, { "map": "ORC", "identity": "v2" }, { "map": "Act[moodCode<=INT]", "identity": "rim" } ], "mustSupport": false, "max": "*", "id": "DeviceRequest", "base": { "max": "*", "min": 0, "path": "DeviceRequest" }, "isSummary": false }, { "path": "DeviceRequest.id", "min": 0, "definition": "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.", "isModifier": false, "short": "Logical id of this artifact", "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "id" } ] } ], "max": "1", "id": "DeviceRequest.id", "comment": "The only time that a resource does not have an id is when it is being submitted to the server using a create operation.", "base": { "max": "1", "min": 0, "path": "Resource.id" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.meta", "min": 0, "definition": "The metadata about the resource. This is content that is maintained by the infrastructure. Changes to the content might not always be associated with version changes to the resource.", "isModifier": false, "short": "Metadata about the resource", "type": [ { "code": "Meta" } ], "max": "1", "id": "DeviceRequest.meta", "base": { "max": "1", "min": 0, "path": "Resource.meta" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.implicitRules", "min": 0, "definition": "A reference to a set of rules that were followed when the resource was constructed, and which must be understood when processing the content. Often, this is a reference to an implementation guide that defines the special rules along with other profiles etc.", "isModifier": true, "short": "A set of rules under which this content was created", "type": [ { "code": "uri" } ], "max": "1", "id": "DeviceRequest.implicitRules", "comment": "Asserting this rule set restricts the content to be only understood by a limited set of trading partners. This inherently limits the usefulness of the data in the long term. However, the existing health eco-system is highly fractured, and not yet ready to define, collect, and exchange data in a generally computable sense. Wherever possible, implementers and/or specification writers should avoid using this element. Often, when used, the URL is a reference to an implementation guide that defines these special rules as part of it's narrative along with other profiles, value sets, etc.", "base": { "max": "1", "min": 0, "path": "Resource.implicitRules" }, "isModifierReason": "This element is labeled as a modifier because the implicit rules may provide additional knowledge about the resource that modifies it's meaning or interpretation", "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.language", "min": 0, "definition": "The base language in which the resource is written.", "isModifier": false, "short": "Language of the resource content", "type": [ { "code": "code" } ], "binding": { "strength": "preferred", "valueSet": "http://hl7.org/fhir/ValueSet/languages", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueCanonical": "http://hl7.org/fhir/ValueSet/all-languages" }, { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "Language" } ], "description": "A human language." }, "max": "1", "id": "DeviceRequest.language", "comment": "Language is provided to support indexing and accessibility (typically, services such as text to speech use the language tag). The html language tag in the narrative applies to the narrative. The language tag on the resource may be used to specify the language of other presentations generated from the data in the resource. Not all the content has to be in the base language. The Resource.language should not be assumed to apply to the narrative automatically. If a language is specified, it should it also be specified on the div element in the html (see rules in HTML5 for information about the relationship between xml:lang and the html lang attribute).", "base": { "max": "1", "min": 0, "path": "Resource.language" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.text", "min": 0, "definition": "A human-readable narrative that contains a summary of the resource and can be used to represent the content of the resource to a human. The narrative need not encode all the structured data, but is required to contain sufficient detail to make it \"clinically safe\" for a human to just read the narrative. Resource definitions may define what content should be represented in the narrative to ensure clinical safety.", "isModifier": false, "short": "Text summary of the resource, for human interpretation", "mapping": [ { "map": "Act.text?", "identity": "rim" } ], "type": [ { "code": "Narrative" } ], "alias": [ "narrative", "html", "xhtml", "display" ], "max": "1", "id": "DeviceRequest.text", "comment": "Contained resources do not have narrative. Resources that are not contained SHOULD have a narrative. In some cases, a resource may only have text with little or no additional discrete data (as long as all minOccurs=1 elements are satisfied). This may be necessary for data from legacy systems where information is captured as a \"text blob\" or where text is additionally entered raw or narrated and encoded information is added later.", "base": { "max": "1", "min": 0, "path": "DomainResource.text" }, "isSummary": false }, { "path": "DeviceRequest.contained", "min": 0, "definition": "These resources do not have an independent existence apart from the resource that contains them - they cannot be identified independently, and nor can they have their own independent transaction scope.", "isModifier": false, "short": "Contained, inline Resources", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Resource" } ], "alias": [ "inline resources", "anonymous resources", "contained resources" ], "max": "*", "id": "DeviceRequest.contained", "comment": "This should never be done when the content can be identified properly, as once identification is lost, it is extremely difficult (and context dependent) to restore it again. Contained resources may have profiles and tags In their meta elements, but SHALL NOT have security labels.", "base": { "max": "*", "min": 0, "path": "DomainResource.contained" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "DeviceRequest.extension", "min": 1, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "*", "id": "DeviceRequest.extension", "base": { "max": "*", "min": 0, "path": "DomainResource.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "DeviceRequest.extension", "min": 1, "definition": "Indicates the reason the event was not performed.", "isModifier": false, "short": "(QI-Core) Extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-doNotPerformReason" ] } ], "sliceName": "doNotPerformReason", "extension": [ { "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement", "valueBoolean": true } ], "max": "1", "id": "DeviceRequest.extension:doNotPerformReason", "condition": [ "ele-1" ], "base": { "max": "*", "min": 0, "path": "DomainResource.extension" } }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "DeviceRequest.modifierExtension", "min": 1, "definition": "An Extension", "isModifier": true, "short": "Extension", "slicing": { "rules": "open", "ordered": false, "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "*", "id": "DeviceRequest.modifierExtension", "base": { "max": "*", "min": 0, "path": "DomainResource.modifierExtension" }, "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them", "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "DeviceRequest.modifierExtension", "min": 1, "definition": "An Extension", "isModifier": true, "short": "(QI-Core) Extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform" ] } ], "sliceName": "doNotPerform", "extension": [ { "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement", "valueBoolean": true } ], "max": "1", "id": "DeviceRequest.modifierExtension:doNotPerform", "condition": [ "ele-1" ], "base": { "max": "*", "min": 0, "path": "DomainResource.modifierExtension" }, "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" }, { "path": "DeviceRequest.modifierExtension.id", "min": 0, "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "isModifier": false, "short": "Unique id for inter-element referencing", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "DeviceRequest.modifierExtension:doNotPerform.id", "base": { "max": "1", "min": 0, "path": "Element.id" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "DeviceRequest.modifierExtension.extension", "min": 0, "definition": "An Extension", "isModifier": false, "short": "Extension", "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "max": "0", "id": "DeviceRequest.modifierExtension:doNotPerform.extension", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "path": "DeviceRequest.modifierExtension.url", "min": 1, "definition": "Source of the definition for the extension code - a logical name or a URL.", "isModifier": false, "short": "identifies the meaning of the extension", "fixedUri": "http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "uri" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "DeviceRequest.modifierExtension:doNotPerform.url", "comment": "The definition may point directly to a computable or human-readable definition of the extensibility codes, or it may be a logical URI as declared in some other specification. The definition SHALL be a URI for the Structure Definition defining the extension.", "base": { "max": "1", "min": 1, "path": "Extension.url" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.modifierExtension.value[x]", "min": 1, "definition": "Value of extension - must be one of a constrained set of the data types (see [Extensibility](http://hl7.org/fhir/R4/extensibility.html) for a list).", "isModifier": false, "short": "(QI-Core) Value of extension", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "boolean" } ], "extension": [ { "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement", "valueBoolean": true } ], "max": "1", "id": "DeviceRequest.modifierExtension:doNotPerform.value[x]", "base": { "max": "1", "min": 0, "path": "Extension.value[x]" }, "fixedBoolean": true, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.identifier", "min": 0, "definition": "Identifiers assigned to this order by the orderer or by the receiver.", "isModifier": false, "short": "External Request identifier", "mapping": [ { "map": "Request.identifier", "identity": "workflow" }, { "map": "FiveWs.identifier", "identity": "w5" }, { "map": "ORC.2, ORC.3", "identity": "v2" }, { "map": ".identifier", "identity": "rim" }, { "map": "ClinicalStatement.identifier", "identity": "quick" } ], "type": [ { "code": "Identifier" } ], "max": "*", "id": "DeviceRequest.identifier", "base": { "max": "*", "min": 0, "path": "DeviceRequest.identifier" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.instantiatesCanonical", "min": 0, "definition": "The URL pointing to a FHIR-defined protocol, guideline, orderset or other definition that is adhered to in whole or in part by this DeviceRequest.", "isModifier": false, "short": "Instantiates FHIR protocol or definition", "mapping": [ { "map": "Request.instantiatesCanonical", "identity": "workflow" }, { "map": "Varies by domain", "identity": "v2" }, { "map": ".outboundRelationship[typeCode=DEFN].target", "identity": "rim" } ], "type": [ { "code": "canonical", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/ActivityDefinition", "http://hl7.org/fhir/StructureDefinition/PlanDefinition" ] } ], "max": "*", "id": "DeviceRequest.instantiatesCanonical", "comment": "Note: This is a business identifier, not a resource identifier (see [discussion](http://hl7.org/fhir/R4/resource.html#identifiers)). It is best practice for the identifier to only appear on a single resource instance, however business practices may occasionally dictate that multiple resource instances with the same identifier can exist - possibly even with different resource types. For example, multiple Patient and a Person resource instance might share the same social insurance number.", "base": { "max": "*", "min": 0, "path": "DeviceRequest.instantiatesCanonical" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.instantiatesUri", "min": 0, "definition": "The URL pointing to an externally maintained protocol, guideline, orderset or other definition that is adhered to in whole or in part by this DeviceRequest.", "isModifier": false, "short": "Instantiates external protocol or definition", "mapping": [ { "map": "Request.instantiatesUri", "identity": "workflow" }, { "map": "Varies by domain", "identity": "v2" }, { "map": ".outboundRelationship[typeCode=DEFN].target", "identity": "rim" } ], "type": [ { "code": "uri" } ], "max": "*", "id": "DeviceRequest.instantiatesUri", "comment": "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.", "base": { "max": "*", "min": 0, "path": "DeviceRequest.instantiatesUri" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.basedOn", "min": 0, "definition": "Plan/proposal/order fulfilled by this request.", "isModifier": false, "short": "What request fulfills", "mapping": [ { "map": "Request.basedOn", "identity": "workflow" }, { "map": "ORC.8 (plus others)", "identity": "v2" }, { "map": ".outboundRelationship[typeCode=FLFS].target", "identity": "rim" }, { "map": "Proposal.prnReason.reason", "identity": "quick" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ] } ], "max": "*", "id": "DeviceRequest.basedOn", "base": { "max": "*", "min": 0, "path": "DeviceRequest.basedOn" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.priorRequest", "min": 0, "definition": "The request takes the place of the referenced completed or terminated request(s).", "isModifier": false, "short": "What request replaces", "mapping": [ { "map": "Request.replaces", "identity": "workflow" }, { "map": "Handled by message location of ORC (ORC.1=RO or RU)", "identity": "v2" }, { "map": ".outboundRelationship[typeCode=RPLC].target", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ] } ], "max": "*", "id": "DeviceRequest.priorRequest", "base": { "max": "*", "min": 0, "path": "DeviceRequest.priorRequest" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.groupIdentifier", "min": 0, "definition": "Composite request this is part of.", "isModifier": false, "short": "Identifier of composite request", "mapping": [ { "map": "Request.groupIdentifier", "identity": "workflow" }, { "map": "ORC.4", "identity": "v2" }, { "map": ".inboundRelationship(typeCode=COMP].source[moodCode=INT].identifier", "identity": "rim" } ], "type": [ { "code": "Identifier" } ], "max": "1", "id": "DeviceRequest.groupIdentifier", "base": { "max": "1", "min": 0, "path": "DeviceRequest.groupIdentifier" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.status", "min": 0, "definition": "The status of the request.", "isModifier": true, "short": "(QI-Core) draft | active | on-hold | revoked | completed | entered-in-error | unknown", "mapping": [ { "map": "Request.status", "identity": "workflow" }, { "map": "FiveWs.status", "identity": "w5" }, { "map": "ORC.5", "identity": "v2" }, { "map": ".status", "identity": "rim" }, { "map": "Action.currentStatus", "identity": "quick" } ], "type": [ { "code": "code" } ], "extension": [ { "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement", "valueBoolean": true } ], "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/request-status|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "DeviceRequestStatus" } ], "description": "Codes representing the status of the request." }, "max": "1", "id": "DeviceRequest.status", "comment": "This element is labeled as a modifier because the status contains the codes cancelled and entered-in-error that mark the request as not currently valid.", "base": { "max": "1", "min": 0, "path": "DeviceRequest.status" }, "isModifierReason": "This element is labeled as a modifier because it is a status element that contains status entered-in-error which means that the resource should not be treated as valid", "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.intent", "min": 1, "definition": "Whether the request is a proposal, plan, an original order or a reflex order.", "isModifier": true, "short": "(QI-Core) proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option", "mapping": [ { "map": "Request.intent", "identity": "workflow" }, { "map": "FiveWs.class", "identity": "w5" }, { "map": "N/A", "identity": "v2" }, { "map": ".moodCode (nuances beyond PRP/PLAN/RQO would need to be elsewhere)", "identity": "rim" } ], "type": [ { "code": "code" } ], "extension": [ { "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement", "valueBoolean": true } ], "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/request-intent|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "RequestIntent" } ], "description": "The kind of diagnostic request." }, "max": "1", "id": "DeviceRequest.intent", "base": { "max": "1", "min": 1, "path": "DeviceRequest.intent" }, "isModifierReason": "This element changes the interpretation of all descriptive attributes. For example \"the time the request is recommended to occur\" vs. \"the time the request is authorized to occur\" or \"who is recommended to perform the request\" vs. \"who is authorized to perform the request", "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.priority", "min": 0, "definition": "Indicates how quickly the {{title}} should be addressed with respect to other requests.", "isModifier": false, "short": "routine | urgent | asap | stat", "mapping": [ { "map": "Request.priority", "identity": "workflow" }, { "map": "FiveWs.grade", "identity": "w5" }, { "map": "TQ1.9", "identity": "v2" }, { "map": ".priorityCode", "identity": "rim" } ], "type": [ { "code": "code" } ], "meaningWhenMissing": "If missing, normal priority", "binding": { "strength": "required", "valueSet": "http://hl7.org/fhir/ValueSet/request-priority|4.0.1", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "RequestPriority" } ], "description": "Identifies the level of importance to be assigned to actioning the request." }, "max": "1", "id": "DeviceRequest.priority", "base": { "max": "1", "min": 0, "path": "DeviceRequest.priority" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.code[x]", "min": 1, "definition": "The details of the device to be used.", "isModifier": false, "short": "(QI-Core) Device requested", "mapping": [ { "map": "Request.code", "identity": "workflow" }, { "map": "FiveWs.what[x]", "identity": "w5" }, { "map": "Varies by domain", "identity": "v2" }, { "map": ".code", "identity": "rim" }, { "map": "DeviceUse.device", "identity": "quick" } ], "type": [ { "code": "CodeableConcept" } ], "extension": [ { "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement", "valueBoolean": true } ], "binding": { "strength": "preferred", "valueSet": "http://hl7.org/fhir/ValueSet/device-kind" }, "max": "1", "id": "DeviceRequest.code[x]", "condition": [ "dnr-1" ], "base": { "max": "1", "min": 1, "path": "DeviceRequest.code[x]" }, "isSummary": true }, { "path": "DeviceRequest.code[x].id", "min": 0, "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "isModifier": false, "short": "Unique id for inter-element referencing", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "DeviceRequest.code[x].id", "base": { "max": "1", "min": 0, "path": "Element.id" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "DeviceRequest.code[x].extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "isModifier": false, "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" } ], "slicing": { "rules": "open", "description": "Extensions are always sliced by (at least) url", "discriminator": [ { "path": "url", "type": "value" } ] }, "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "DeviceRequest.code[x].extension", "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "DeviceRequest.code[x].extension", "requirements": "Must be able to indicate the value set from which the expected event would be drawn, had it occurred.", "min": 0, "definition": "Specifies the value set that characterizes the events or activities that did not occur or were not performed.", "isModifier": false, "short": "(QI-Core) What was not done", "mapping": [ { "map": "CWE.", "identity": "v2" }, { "map": "CD.valueSet/CD.valueSetVersion", "identity": "rim" } ], "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet" ] } ], "sliceName": "doNotPerformValueSet", "extension": [ { "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement", "valueBoolean": true } ], "max": "1", "id": "DeviceRequest.code[x].extension:doNotPerformValueSet", "condition": [ "dnr-1" ], "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.code[x].coding", "requirements": "Allows for alternative encodings within a code system, and translations to other code systems.", "min": 0, "definition": "A reference to a code defined by a terminology system.", "isModifier": false, "short": "Code defined by a terminology system", "mapping": [ { "map": "C*E.1-8, C*E.10-22", "identity": "v2" }, { "map": "union(., ./translation)", "identity": "rim" }, { "map": "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding", "identity": "orim" } ], "type": [ { "code": "Coding" } ], "max": "*", "id": "DeviceRequest.code[x].coding", "comment": "Codes may be defined very casually in enumerations, or code lists, up to very formal definitions such as SNOMED CT - see the HL7 v3 Core Principles for more information. Ordering of codings is undefined and SHALL NOT be used to infer meaning. Generally, at most only one of the coding values will be labeled as UserSelected = true.", "base": { "max": "*", "min": 0, "path": "CodeableConcept.coding" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.code[x].text", "requirements": "The codes from the terminologies do not always capture the correct meaning with all the nuances of the human using them, or sometimes there is no appropriate code at all. In these cases, the text is used to capture the full meaning of the source.", "min": 0, "definition": "A human language representation of the concept as seen/selected/uttered by the user who entered the data and/or which represents the intended meaning of the user.", "isModifier": false, "short": "Plain text representation of the concept", "mapping": [ { "map": "C*E.9. But note many systems use C*E.2 for this", "identity": "v2" }, { "map": "./originalText[mediaType/code=\"text/plain\"]/data", "identity": "rim" }, { "map": "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText", "identity": "orim" } ], "type": [ { "code": "string" } ], "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable", "valueBoolean": true } ], "max": "1", "id": "DeviceRequest.code[x].text", "comment": "Very often the text is the same as a displayName of one of the codings.", "base": { "max": "1", "min": 0, "path": "CodeableConcept.text" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.parameter", "min": 0, "definition": "Specific parameters for the ordered item. For example, the prism value for lenses.", "isModifier": false, "short": "Device details", "mapping": [ { "map": "FiveWs.what[x]", "identity": "w5" }, { "map": "Varies by domain", "identity": "v2" }, { "map": ".code", "identity": "rim" }, { "map": "DeviceUse.device", "identity": "quick" } ], "type": [ { "code": "BackboneElement" } ], "max": "*", "id": "DeviceRequest.parameter", "base": { "max": "*", "min": 0, "path": "DeviceRequest.parameter" }, "isSummary": false }, { "path": "DeviceRequest.parameter.id", "min": 0, "definition": "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.", "isModifier": false, "short": "Unique id for inter-element referencing", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "http://hl7.org/fhirpath/System.String", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type", "valueUrl": "string" } ] } ], "representation": [ "xmlAttr" ], "max": "1", "id": "DeviceRequest.parameter.id", "base": { "max": "1", "min": 0, "path": "Element.id" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "DeviceRequest.parameter.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "isModifier": false, "short": "Additional content defined by implementations", "mapping": [ { "map": "n/a", "identity": "rim" } ], "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "DeviceRequest.parameter.extension", "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "base": { "max": "*", "min": 0, "path": "Element.extension" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" }, { "key": "ext-1", "human": "Must have either extensions or value[x], not both", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])", "source": "http://hl7.org/fhir/StructureDefinition/Extension", "severity": "error", "expression": "extension.exists() != value.exists()" } ], "path": "DeviceRequest.parameter.modifierExtension", "requirements": "Modifier extensions allow for extensions that *cannot* be safely ignored to be clearly distinguished from the vast majority of extensions which can be safely ignored. This promotes interoperability by eliminating the need for implementers to prohibit the presence of extensions. For further information, see the [definition of modifier extensions](http://hl7.org/fhir/R4/extensibility.html#modifierExtension).", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the element and that modifies the understanding of the element in which it is contained and/or the understanding of the containing element's descendants. Usually modifier elements provide negation or qualification. To make the use of extensions safe and manageable, there is a strict set of governance applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension. Applications processing a resource are required to check for modifier extensions.\n\nModifier extensions SHALL NOT change the meaning of any elements on Resource or DomainResource (including cannot change the meaning of modifierExtension itself).", "isModifier": true, "short": "Extensions that cannot be ignored even if unrecognized", "mapping": [ { "map": "N/A", "identity": "rim" } ], "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content", "modifiers" ], "max": "*", "id": "DeviceRequest.parameter.modifierExtension", "comment": "There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions. The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone.", "base": { "max": "*", "min": 0, "path": "BackboneElement.modifierExtension" }, "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them", "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.parameter.code", "min": 0, "definition": "A code or string that identifies the device detail being asserted.", "isModifier": false, "short": "Device detail", "mapping": [ { "map": "FiveWs.what[x]", "identity": "w5" }, { "map": "Varies by domain", "identity": "v2" }, { "map": ".code", "identity": "rim" }, { "map": "DeviceUse.device", "identity": "quick" } ], "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "ParameterCode" } ], "description": "A code that identifies the device detail." }, "max": "1", "id": "DeviceRequest.parameter.code", "base": { "max": "1", "min": 0, "path": "DeviceRequest.parameter.code" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.parameter.value[x]", "min": 0, "definition": "The value of the device detail.", "isModifier": false, "short": "Value of detail", "mapping": [ { "map": "FiveWs.what[x]", "identity": "w5" }, { "map": "Varies by domain", "identity": "v2" }, { "map": ".code", "identity": "rim" }, { "map": "DeviceUse.device", "identity": "quick" } ], "type": [ { "code": "CodeableConcept" }, { "code": "Quantity" }, { "code": "Range" }, { "code": "boolean" } ], "max": "1", "id": "DeviceRequest.parameter.value[x]", "comment": "Range means device should have a value that falls somewhere within the specified range.", "base": { "max": "1", "min": 0, "path": "DeviceRequest.parameter.value[x]" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.subject", "min": 1, "definition": "The patient who will use the device.", "isModifier": false, "short": "(QI-Core) Focus of request", "mapping": [ { "map": "Request.subject", "identity": "workflow" }, { "map": "FiveWs.subject[x]", "identity": "w5" }, { "map": "Accompanying PID segment", "identity": "v2" }, { "map": ".participation[typeCode=SBJ].role", "identity": "rim" }, { "map": "ClinicalStatement.subject", "identity": "quick" }, { "map": "FiveWs.subject", "identity": "w5" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient" ] } ], "extension": [ { "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement", "valueBoolean": true } ], "max": "1", "id": "DeviceRequest.subject", "base": { "max": "1", "min": 1, "path": "DeviceRequest.subject" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.encounter", "min": 0, "definition": "An encounter that provides additional context in which this request is made.", "isModifier": false, "short": "Encounter motivating request", "mapping": [ { "map": "Request.encounter", "identity": "workflow" }, { "map": "FiveWs.context", "identity": "w5" }, { "map": "Accompanying PV1", "identity": "v2" }, { "map": ".inboundRelationship(typeCode=COMP].source[classCode<=PCPR, moodCode=EVN]", "identity": "rim" }, { "map": "ClinicalStatement.encounter", "identity": "quick" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Encounter" ] } ], "max": "1", "id": "DeviceRequest.encounter", "base": { "max": "1", "min": 0, "path": "DeviceRequest.encounter" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.occurrence[x]", "min": 0, "definition": "The timing schedule for the use of the device. The Schedule data type allows many different expressions, for example. \"Every 8 hours\"; \"Three times a day\"; \"1/2 an hour before breakfast for 10 days from 23-Dec 2011:\"; \"15 Oct 2013, 17 Oct 2013 and 1 Nov 2013\".", "isModifier": false, "short": "Desired time or schedule for use", "mapping": [ { "map": "Request.occurrence[x]", "identity": "workflow" }, { "map": "FiveWs.planned", "identity": "w5" }, { "map": "Accompanying TQ1/TQ2 segments", "identity": "v2" }, { "map": ".effectiveTime", "identity": "rim" }, { "map": "DeviceUse.applicationSchedule", "identity": "quick" } ], "type": [ { "code": "dateTime" }, { "code": "Period" }, { "code": "Timing" } ], "max": "1", "id": "DeviceRequest.occurrence[x]", "base": { "max": "1", "min": 0, "path": "DeviceRequest.occurrence[x]" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.authoredOn", "min": 1, "definition": "When the request transitioned to being actionable.", "isModifier": false, "short": "(QI-Core) When recorded", "mapping": [ { "map": "Request.authoredOn", "identity": "workflow" }, { "map": "FiveWs.recorded", "identity": "w5" }, { "map": "ORC.9", "identity": "v2" }, { "map": ".participation[typeCode=AUT].time", "identity": "rim" }, { "map": "ClinicalStatement.statementDateTime", "identity": "quick" } ], "type": [ { "code": "dateTime" } ], "extension": [ { "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement", "valueBoolean": true } ], "max": "1", "id": "DeviceRequest.authoredOn", "base": { "max": "1", "min": 0, "path": "DeviceRequest.authoredOn" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.requester", "min": 0, "definition": "The individual who initiated the request and has responsibility for its activation.", "isModifier": false, "short": "Who/what is requesting diagnostics", "mapping": [ { "map": "Request.requester", "identity": "workflow" }, { "map": "FiveWs.author", "identity": "w5" }, { "map": "ORC.12", "identity": "v2" }, { "map": ".participation[typeCode=AUT].role", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole", "http://hl7.org/fhir/StructureDefinition/Organization" ] } ], "max": "1", "id": "DeviceRequest.requester", "base": { "max": "1", "min": 0, "path": "DeviceRequest.requester" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.performerType", "min": 0, "definition": "Desired type of performer for doing the diagnostic testing.", "isModifier": false, "short": "Filler role", "mapping": [ { "map": "Request.performerType", "identity": "workflow" }, { "map": "FiveWs.actor", "identity": "w5" }, { "map": "PRT", "identity": "v2" }, { "map": ".participation[typeCode=PRF].role[scoper.determinerCode=KIND].code", "identity": "rim" } ], "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "valueSet": "http://hl7.org/fhir/ValueSet/participant-role", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "DeviceRequestParticipantRole" } ], "description": "Indicates specific responsibility of an individual within the care team, such as \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc." }, "max": "1", "id": "DeviceRequest.performerType", "base": { "max": "1", "min": 0, "path": "DeviceRequest.performerType" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.performer", "min": 0, "definition": "The desired performer for doing the diagnostic testing.", "isModifier": false, "short": "Requested Filler", "mapping": [ { "map": "Request.performer", "identity": "workflow" }, { "map": "FiveWs.actor", "identity": "w5" }, { "map": "PRT", "identity": "v2" }, { "map": ".participation[typeCode=PRF].role[scoper.determinerCode=INSTANCE]", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Practitioner", "http://hl7.org/fhir/StructureDefinition/PractitionerRole", "http://hl7.org/fhir/StructureDefinition/Organization", "http://hl7.org/fhir/StructureDefinition/CareTeam", "http://hl7.org/fhir/StructureDefinition/HealthcareService", "http://hl7.org/fhir/StructureDefinition/Patient", "http://hl7.org/fhir/StructureDefinition/Device", "http://hl7.org/fhir/StructureDefinition/RelatedPerson" ] } ], "max": "1", "id": "DeviceRequest.performer", "base": { "max": "1", "min": 0, "path": "DeviceRequest.performer" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.reasonCode", "min": 0, "definition": "Reason or justification for the use of this device.", "isModifier": false, "short": "Coded Reason for request", "mapping": [ { "map": "Request.reasonCode", "identity": "workflow" }, { "map": "FiveWs.why[x]", "identity": "w5" }, { "map": "ORC.16", "identity": "v2" }, { "map": ".reasonCode", "identity": "rim" }, { "map": "Action.indication.reason", "identity": "quick" } ], "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "valueSet": "http://hl7.org/fhir/ValueSet/condition-code", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName", "valueString": "DeviceRequestReason" } ], "description": "Diagnosis or problem codes justifying the reason for requesting the device." }, "max": "*", "id": "DeviceRequest.reasonCode", "base": { "max": "*", "min": 0, "path": "DeviceRequest.reasonCode" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.reasonReference", "min": 0, "definition": "Reason or justification for the use of this device.", "isModifier": false, "short": "Linked Reason for request", "mapping": [ { "map": "Request.reasonReference", "identity": "workflow" }, { "map": "FiveWs.why[x]", "identity": "w5" }, { "map": "ORC.16", "identity": "v2" }, { "map": ".outboundRelationship[typeCode=RSON].target", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Condition", "http://hl7.org/fhir/StructureDefinition/Observation", "http://hl7.org/fhir/StructureDefinition/DiagnosticReport", "http://hl7.org/fhir/StructureDefinition/DocumentReference" ] } ], "max": "*", "id": "DeviceRequest.reasonReference", "base": { "max": "*", "min": 0, "path": "DeviceRequest.reasonReference" }, "isSummary": true }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.insurance", "min": 0, "definition": "Insurance plans, coverage extensions, pre-authorizations and/or pre-determinations that may be required for delivering the requested service.", "isModifier": false, "short": "Associated insurance coverage", "mapping": [ { "map": "Request.insurance", "identity": "workflow" }, { "map": "IN1/IN2", "identity": "v2" }, { "map": ".outboundRelationship[typeCode=COVBY].target", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Coverage", "http://hl7.org/fhir/StructureDefinition/ClaimResponse" ] } ], "max": "*", "id": "DeviceRequest.insurance", "base": { "max": "*", "min": 0, "path": "DeviceRequest.insurance" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.supportingInfo", "requirements": "Knowing where the device is targeted is important for tracking if multiple sites are possible.", "min": 0, "definition": "Additional clinical information about the patient that may influence the request fulfilment. For example, this may include where on the subject's body the device will be used (i.e. the target site).", "isModifier": false, "short": "Additional clinical information", "mapping": [ { "map": "Request.supportingInfo", "identity": "workflow" }, { "map": "Accompanying segments", "identity": "v2" }, { "map": ".outboundRelationship[typeCode=PERT].target", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Resource" ] } ], "max": "*", "id": "DeviceRequest.supportingInfo", "base": { "max": "*", "min": 0, "path": "DeviceRequest.supportingInfo" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.note", "min": 0, "definition": "Details about this request that were not represented at all or sufficiently in one of the attributes provided in a class. These may include for example a comment, an instruction, or a note associated with the statement.", "isModifier": false, "short": "Notes or comments", "mapping": [ { "map": "Request.note", "identity": "workflow" }, { "map": "NTE", "identity": "v2" }, { "map": ".inboundRelationship(typeCode=SUBJ].source[classCode=ANNGEN, moodCode=EVN].value[xsi:type=ST]", "identity": "rim" }, { "map": "ClinicalStatement.additionalText", "identity": "quick" } ], "type": [ { "code": "Annotation" } ], "max": "*", "id": "DeviceRequest.note", "base": { "max": "*", "min": 0, "path": "DeviceRequest.note" }, "isSummary": false }, { "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "http://hl7.org/fhir/StructureDefinition/Element", "severity": "error", "expression": "hasValue() or (children().count() > id.count())" } ], "path": "DeviceRequest.relevantHistory", "min": 0, "definition": "Key events in the history of the request.", "isModifier": false, "short": "Request provenance", "mapping": [ { "map": "Request.relevantHistory", "identity": "workflow" }, { "map": "N/A", "identity": "v2" }, { "map": ".inboundRelationship(typeCode=SUBJ].source[classCode=CACT, moodCode=EVN]", "identity": "rim" } ], "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/StructureDefinition/Provenance" ] } ], "max": "*", "id": "DeviceRequest.relevantHistory", "comment": "This might not include provenances for all versions of the request - only those deemed \"relevant\" or important.\rThis SHALL NOT include the Provenance associated with this current version of the resource. (If that provenance is deemed to be a \"relevant\" change, it will need to be added as part of a later update. Until then, it can be queried directly as the Provenance that points to this version using _revinclude\rAll Provenances should have some historical version of this Request as their subject.", "base": { "max": "*", "min": 0, "path": "DeviceRequest.relevantHistory" }, "isSummary": false } ] }, "status": "active", "id": "ee52d1e3-f4ff-40eb-a982-abe93d1aac75", "kind": "resource", "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-devicenotrequested", "version": "6.0.0", "differential": { "element": [ { "id": "DeviceRequest", "path": "DeviceRequest", "constraint": [ { "key": "dnr-1", "human": "to indicate what device was not requested, either at least one coding in the code or a notDoneValueSet extension shall be provided", "xpath": "exists(f:extension)", "severity": "error", "expression": "code.extension('http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet').exists() xor code.coding.exists()" } ], "mustSupport": false }, { "id": "DeviceRequest.extension:doNotPerformReason", "max": "1", "min": 1, "path": "DeviceRequest.extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-doNotPerformReason" ] } ], "short": "(QI-Core) Extension", "extension": [ { "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement", "valueBoolean": true } ], "sliceName": "doNotPerformReason" }, { "path": "DeviceRequest.modifierExtension", "min": 1, "isModifier": true, "short": "(QI-Core) Extension", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/5.0/StructureDefinition/extension-DeviceRequest.doNotPerform" ] } ], "sliceName": "doNotPerform", "extension": [ { "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement", "valueBoolean": true } ], "max": "1", "id": "DeviceRequest.modifierExtension:doNotPerform", "isModifierReason": "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them" }, { "id": "DeviceRequest.modifierExtension:doNotPerform.value[x]", "max": "1", "min": 1, "path": "DeviceRequest.modifierExtension.value[x]", "type": [ { "code": "boolean" } ], "short": "(QI-Core) Value of extension", "extension": [ { "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement", "valueBoolean": true } ], "fixedBoolean": true }, { "id": "DeviceRequest.status", "path": "DeviceRequest.status", "short": "(QI-Core) draft | active | on-hold | revoked | completed | entered-in-error | unknown", "extension": [ { "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement", "valueBoolean": true } ] }, { "id": "DeviceRequest.intent", "path": "DeviceRequest.intent", "short": "(QI-Core) proposal | plan | directive | order | original-order | reflex-order | filler-order | instance-order | option", "extension": [ { "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement", "valueBoolean": true } ] }, { "path": "DeviceRequest.code[x]", "min": 1, "short": "(QI-Core) Device requested", "type": [ { "code": "CodeableConcept" } ], "extension": [ { "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement", "valueBoolean": true } ], "binding": { "strength": "preferred", "valueSet": "http://hl7.org/fhir/ValueSet/device-kind" }, "max": "1", "id": "DeviceRequest.code[x]", "condition": [ "dnr-1" ] }, { "path": "DeviceRequest.code[x].extension", "requirements": "Must be able to indicate the value set from which the expected event would be drawn, had it occurred.", "min": 0, "definition": "Specifies the value set that characterizes the events or activities that did not occur or were not performed.", "short": "(QI-Core) What was not done", "type": [ { "code": "Extension", "profile": [ "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-notDoneValueSet" ] } ], "sliceName": "doNotPerformValueSet", "extension": [ { "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement", "valueBoolean": true } ], "max": "1", "id": "DeviceRequest.code[x].extension:doNotPerformValueSet", "condition": [ "dnr-1" ] }, { "id": "DeviceRequest.subject", "path": "DeviceRequest.subject", "type": [ { "code": "Reference", "targetProfile": [ "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient" ] } ], "short": "(QI-Core) Focus of request", "extension": [ { "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement", "valueBoolean": true } ] }, { "id": "DeviceRequest.authoredOn", "max": "1", "min": 1, "path": "DeviceRequest.authoredOn", "short": "(QI-Core) When recorded", "extension": [ { "url": "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement", "valueBoolean": true } ] } ] }, "contact": [ { "name": "Clinical Quality Information WG", "telecom": [ { "value": "http://www.hl7.org/Special/committees/cqi", "system": "url" } ] } ], "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DeviceRequest" }