QI-Core Implementation Guide
7.0.2 - STU 7

QI-Core Implementation Guide, published by HL7 International / Clinical Quality Information. This guide is not an authorized publication; it is the continuous build for version 7.0.2 built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/fhir-qi-core/ and changes regularly. See the Directory of published versions

## Resource Profile: QICoreProcedureNotDone - JSON Profile

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

JSON representation of the qicore-procedurenotdone resource profile.

Raw json | Download

    {
      "resourceType" : "StructureDefinition",
      "id" : "qicore-procedurenotdone",
      "text" : {
        "status" : "extensions",
        "div" : "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: StructureDefinition qicore-procedurenotdone</b></p><a name=\"qicore-procedurenotdone\"> </a><a name=\"hcqicore-procedurenotdone\"> </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_resource.png\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Resource\" class=\"hierarchy\"/> <a href=\"StructureDefinition-qicore-procedurenotdone-definitions.html#Procedure\">Procedure</a><a name=\"Procedure\"> </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-qicore-procedure.html\">QICoreProcedure</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\">An action that is being or was performed on a patient</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_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\"/> Slices for extension<a name=\"Procedure.extension\"> </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\"/><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\">Content/Rules for all slices</td></tr>\r\n<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-qicore-procedurenotdone-definitions.html#Procedure.extension:recorded\" title=\"Slice recorded\">extension:recorded</a><a name=\"Procedure.extension.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\">0..1</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\">?gen-e1? [CanonicalType[http://hl7.org/fhir/5.0/StructureDefinition/extension-Procedure.recorded]]</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\">(QI) When the procedure was first captured in the subject's record<br/><span style=\"font-weight:bold\">URL: </span>http://hl7.org/fhir/5.0/StructureDefinition/extension-Procedure.recorded</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_bck10.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_primitive.png\" alt=\".\" style=\"background-color: #F7F7F7; background-color: inherit\" title=\"Primitive Data Type\" class=\"hierarchy\"/> <a href=\"StructureDefinition-qicore-procedurenotdone-definitions.html#Procedure.status\">status</a><a name=\"Procedure.status\"> </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\">1..1</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=\"http://hl7.org/fhir/R4/datatypes.html#code\">code</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\">(QI) not-done<br/><span style=\"font-weight:bold\">Fixed Value: </span><span style=\"color: darkgreen\">not-done</span></td></tr>\r\n<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_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_element.gif\" alt=\".\" style=\"background-color: white; background-color: inherit\" title=\"Element\" class=\"hierarchy\"/> <a href=\"StructureDefinition-qicore-procedurenotdone-definitions.html#Procedure.statusReason\">statusReason</a><a name=\"Procedure.statusReason\"> </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\">1..1</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 style=\"opacity: 0.5; opacity: 0.5\" href=\"http://hl7.org/fhir/R4/datatypes.html#CodeableConcept\">CodeableConcept</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\">(QI) Reason for the current status<br class=\"binding\"/><span style=\"font-weight:bold\" title=\"null\" class=\"binding\">Binding: </span><a href=\"ValueSet-qicore-negation-reason.html\" title=\"http://hl7.org/fhir/us/qicore/ValueSet/qicore-negation-reason\" class=\"binding\">QICore Negation Reason Codes</a><span title=\"null\" class=\"binding\"> (</span><a href=\"http://hl7.org/fhir/R4/terminologies.html#extensible\" title=\"To be conformant, the concept in this element SHALL be from the specified value set if any of the codes within the value set can apply to the concept being communicated.  If the value set does not cover the concept (based on human review), alternate codings (or, data type allowing, text) may be included instead.\" class=\"binding\">extensible</a><span title=\"null\" class=\"binding\">)</span><span title=\"null\" class=\"binding\">: </span><span title=\"null\" class=\"binding\">The reason the procedure was not done</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/StructureDefinition/cqf-modelInfo-primaryCodePath",
          "valueString" : "code"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-modelInfo-isIncluded",
          "valueBoolean" : true
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-modelInfo-isRetrievable",
          "valueBoolean" : true
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/cqf-modelInfo-label",
          "valueString" : "ProcedureNotDone"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
          "valueCode" : "cqi"
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
          "valueInteger" : 4,
          "_valueInteger" : {
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
                "valueCanonical" : "http://hl7.org/fhir/us/qicore/ImplementationGuide/us-qicore"
              }
            ]
          }
        },
        {
          "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
          "valueCode" : "trial-use",
          "_valueCode" : {
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-conformance-derivedFrom",
                "valueCanonical" : "http://hl7.org/fhir/us/qicore/ImplementationGuide/us-qicore"
              }
            ]
          }
        }
      ],
      "url" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedurenotdone",
      "version" : "7.0.2",
      "name" : "QICoreProcedureNotDone",
      "title" : "QICore Procedure Not Done",
      "status" : "active",
      "experimental" : false,
      "date" : "2018-08-22",
      "publisher" : "HL7 International / Clinical Quality Information",
      "contact" : [
        {
          "name" : "Clinical Quality Information WG",
          "telecom" : [
            {
              "system" : "url",
              "value" : "http://www.hl7.org/Special/committees/cqi"
            }
          ]
        }
      ],
      "description" : "Negative profile of Procedure for decision support/quality metrics. Indicates that a procedure was not done for a reason.",
      "jurisdiction" : [
        {
          "coding" : [
            {
              "system" : "urn:iso:std:iso:3166",
              "code" : "US"
            }
          ]
        }
      ],
      "fhirVersion" : "4.0.1",
      "mapping" : [
        {
          "identity" : "workflow",
          "uri" : "http://hl7.org/fhir/workflow",
          "name" : "Workflow Pattern"
        },
        {
          "identity" : "rim",
          "uri" : "http://hl7.org/v3",
          "name" : "RIM Mapping"
        },
        {
          "identity" : "w5",
          "uri" : "http://hl7.org/fhir/fivews",
          "name" : "FiveWs Pattern Mapping"
        },
        {
          "identity" : "v2",
          "uri" : "http://hl7.org/v2",
          "name" : "HL7 v2 Mapping"
        }
      ],
      "kind" : "resource",
      "abstract" : false,
      "type" : "Procedure",
      "baseDefinition" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure",
      "derivation" : "constraint",
      "snapshot" : {
        "extension" : [
          {
            "url" : "http://hl7.org/fhir/tools/StructureDefinition/snapshot-base-version",
            "valueString" : "7.0.2"
          }
        ],
        "element" : [
          {
            "id" : "Procedure",
            "path" : "Procedure",
            "short" : "An action that is being or was performed on a patient",
            "definition" : "An action that is or was performed on or for a patient. This can be a physical intervention like an operation, or less invasive like long term services, counseling, or hypnotherapy.",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Procedure",
              "min" : 0,
              "max" : "*"
            },
            "constraint" : [
              {
                "key" : "dom-2",
                "severity" : "error",
                "human" : "If the resource is contained in another resource, it SHALL NOT contain nested Resources",
                "expression" : "contained.contained.empty()",
                "xpath" : "not(parent::f:contained and f:contained)",
                "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key" : "dom-3",
                "severity" : "error",
                "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",
                "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()",
                "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"
              },
              {
                "key" : "dom-4",
                "severity" : "error",
                "human" : "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated",
                "expression" : "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()",
                "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"
              },
              {
                "key" : "dom-5",
                "severity" : "error",
                "human" : "If a resource is contained in another resource, it SHALL NOT have a security label",
                "expression" : "contained.meta.security.empty()",
                "xpath" : "not(exists(f:contained/*/f:meta/f:security))",
                "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "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."
                  }
                ],
                "key" : "dom-6",
                "severity" : "warning",
                "human" : "A resource should have narrative for robust management",
                "expression" : "text.`div`.exists()",
                "xpath" : "exists(f:text/h:div)",
                "source" : "http://hl7.org/fhir/StructureDefinition/DomainResource"
              },
              {
                "key" : "us-core-7",
                "severity" : "error",
                "human" : "Performed SHALL be present if the status is 'completed' or 'in-progress'",
                "expression" : "(status='completed' or status='in-progress') implies performed.exists()",
                "source" : "http://hl7.org/fhir/us/core/StructureDefinition/us-core-procedure"
              },
              {
                "key" : "prc-1",
                "severity" : "error",
                "human" : "to indicate what procedure, either at least one coding in the code or a codeOptions extension shall be provided",
                "expression" : "code.extension('http://hl7.org/fhir/StructureDefinition/codeOptions').exists() xor code.coding.exists()",
                "source" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-procedure"
              }
            ],
            "mustSupport" : false,
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "Entity. Role, or Act"
              },
              {
                "identity" : "workflow",
                "map" : "Event"
              },
              {
                "identity" : "rim",
                "map" : "Procedure[moodCode=EVN]"
              },
              {
                "identity" : "argonaut-dq-dstu2",
                "map" : "Procedure"
              }
            ]
          },
          {
            "id" : "Procedure.id",
            "path" : "Procedure.id",
            "short" : "Logical id of this artifact",
            "definition" : "The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.",
            "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.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Resource.id",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "extension" : [
                  {
                    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl" : "id"
                  }
                ],
                "code" : "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier" : false,
            "isSummary" : true
          },
          {
            "id" : "Procedure.meta",
            "path" : "Procedure.meta",
            "short" : "Metadata about the resource",
            "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.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Resource.meta",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "Meta"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true
          },
          {
            "id" : "Procedure.implicitRules",
            "path" : "Procedure.implicitRules",
            "short" : "A set of rules under which this content was created",
            "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.",
            "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.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Resource.implicitRules",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "uri"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : true,
            "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
          },
          {
            "id" : "Procedure.language",
            "path" : "Procedure.language",
            "short" : "Language of the resource content",
            "definition" : "The base language in which the resource is written.",
            "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).",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Resource.language",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "code"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "binding" : {
              "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"
                }
              ],
              "strength" : "preferred",
              "description" : "A human language.",
              "valueSet" : "http://hl7.org/fhir/ValueSet/languages"
            }
          },
          {
            "id" : "Procedure.text",
            "path" : "Procedure.text",
            "short" : "Text summary of the resource, for human interpretation",
            "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.",
            "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.",
            "alias" : [
              "narrative",
              "html",
              "xhtml",
              "display"
            ],
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "DomainResource.text",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "Narrative"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "Act.text?"
              }
            ]
          },
          {
            "id" : "Procedure.contained",
            "path" : "Procedure.contained",
            "short" : "Contained, inline Resources",
            "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.",
            "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.",
            "alias" : [
              "inline resources",
              "anonymous resources",
              "contained resources"
            ],
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "DomainResource.contained",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Resource"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "N/A"
              }
            ]
          },
          {
            "id" : "Procedure.extension",
            "path" : "Procedure.extension",
            "slicing" : {
              "discriminator" : [
                {
                  "type" : "value",
                  "path" : "url"
                }
              ],
              "ordered" : false,
              "rules" : "open"
            },
            "short" : "Extension",
            "definition" : "An Extension",
            "min" : 1,
            "max" : "*",
            "base" : {
              "path" : "DomainResource.extension",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Extension"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key" : "ext-1",
                "severity" : "error",
                "human" : "Must have either extensions or value[x], not both",
                "expression" : "extension.exists() != value.exists()",
                "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier" : false,
            "isSummary" : false
          },
          {
            "id" : "Procedure.extension:recorded",
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement",
                "valueBoolean" : true
              },
              {
                "url" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement",
                "valueBoolean" : true
              }
            ],
            "path" : "Procedure.extension",
            "sliceName" : "recorded",
            "short" : "(QI) When the procedure was first captured in the subject's record",
            "definition" : "Optional Extension Element - found in all resources.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "DomainResource.extension",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Extension",
                "profile" : [
                  🔗 "http://hl7.org/fhir/5.0/StructureDefinition/extension-Procedure.recorded"
                ]
              }
            ],
            "condition" : [
              "ele-1"
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key" : "ext-1",
                "severity" : "error",
                "human" : "Must have either extensions or value[x], not both",
                "expression" : "extension.exists() != value.exists()",
                "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])",
                "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              },
              {
                "identity" : "rim",
                "map" : "N/A"
              }
            ]
          },
          {
            "id" : "Procedure.modifierExtension",
            "path" : "Procedure.modifierExtension",
            "short" : "Extensions that cannot be ignored",
            "definition" : "May be used to represent additional information that is not part of the basic definition of the resource and that modifies the understanding of the element that contains it 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 is allowed to 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).",
            "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.",
            "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).",
            "alias" : [
              "extensions",
              "user content"
            ],
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "DomainResource.modifierExtension",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Extension"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key" : "ext-1",
                "severity" : "error",
                "human" : "Must have either extensions or value[x], not both",
                "expression" : "extension.exists() != value.exists()",
                "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier" : true,
            "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the resource that contains them",
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "N/A"
              }
            ]
          },
          {
            "id" : "Procedure.identifier",
            "path" : "Procedure.identifier",
            "short" : "External Identifiers for this procedure",
            "definition" : "Business identifiers assigned to this procedure by the performer or other systems which remain constant as the resource is updated and is propagated from server to server.",
            "comment" : "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 Person resource instances might share the same social insurance number.",
            "requirements" : "Allows identification of the procedure as it is known by various participating systems and in a way that remains consistent across servers.",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Procedure.identifier",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Identifier"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "workflow",
                "map" : "Event.identifier"
              },
              {
                "identity" : "w5",
                "map" : "FiveWs.identifier"
              },
              {
                "identity" : "v2",
                "map" : "Some combination of ORC-2 / ORC-3 / OBR-2 / OBR-3 / IPC-1 / IPC-2 / IPC-3 / IPC-4"
              },
              {
                "identity" : "rim",
                "map" : ".id"
              }
            ]
          },
          {
            "id" : "Procedure.instantiatesCanonical",
            "path" : "Procedure.instantiatesCanonical",
            "short" : "Instantiates FHIR protocol or definition",
            "definition" : "The URL pointing to a FHIR-defined protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure.",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Procedure.instantiatesCanonical",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "canonical",
                "targetProfile" : [
                  🔗 "http://hl7.org/fhir/StructureDefinition/PlanDefinition"🔗 ,
                  "http://hl7.org/fhir/StructureDefinition/ActivityDefinition"🔗 ,
                  "http://hl7.org/fhir/StructureDefinition/Measure"🔗 ,
                  "http://hl7.org/fhir/StructureDefinition/OperationDefinition"🔗 ,
                  "http://hl7.org/fhir/StructureDefinition/Questionnaire"
                ]
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "workflow",
                "map" : "Event.instantiatesCanonical"
              },
              {
                "identity" : "rim",
                "map" : ".outboundRelationship[typeCode=DEFN].target"
              }
            ]
          },
          {
            "id" : "Procedure.instantiatesUri",
            "path" : "Procedure.instantiatesUri",
            "short" : "Instantiates external protocol or definition",
            "definition" : "The URL pointing to an externally maintained protocol, guideline, order set or other definition that is adhered to in whole or in part by this Procedure.",
            "comment" : "This might be an HTML page, PDF, etc. or could just be a non-resolvable URI identifier.",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Procedure.instantiatesUri",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "uri"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "workflow",
                "map" : "Event.instantiatesUri"
              },
              {
                "identity" : "rim",
                "map" : ".outboundRelationship[typeCode=DEFN].target"
              }
            ]
          },
          {
            "id" : "Procedure.basedOn",
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement",
                "valueBoolean" : true
              },
              {
                "url" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement",
                "valueBoolean" : true
              }
            ],
            "path" : "Procedure.basedOn",
            "short" : "(QI) A request for this procedure",
            "definition" : "A reference to a resource that contains details of the request for this procedure.",
            "alias" : [
              "fulfills"
            ],
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Procedure.basedOn",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Reference",
                "targetProfile" : [
                  🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-careplan"🔗 ,
                  "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-servicerequest"
                ]
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : false,
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "workflow",
                "map" : "Event.basedOn"
              },
              {
                "identity" : "rim",
                "map" : ".outboundRelationship[typeCode=FLFS].target[classCode=(various e.g. PROC, OBS, PCPR, ACT,  moodCode=RQO].code"
              }
            ]
          },
          {
            "id" : "Procedure.partOf",
            "path" : "Procedure.partOf",
            "short" : "Part of referenced event",
            "definition" : "A larger event of which this particular procedure is a component or step.",
            "comment" : "The MedicationAdministration resource has a partOf reference to Procedure, but this is not a circular reference.   For example, the anesthesia MedicationAdministration is part of the surgical Procedure (MedicationAdministration.partOf = Procedure).  For example, the procedure to insert the IV port for an IV medication administration is part of the medication administration (Procedure.partOf = MedicationAdministration).",
            "alias" : [
              "container"
            ],
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Procedure.partOf",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Reference",
                "targetProfile" : [
                  🔗 "http://hl7.org/fhir/StructureDefinition/Procedure"🔗 ,
                  "http://hl7.org/fhir/StructureDefinition/Observation"🔗 ,
                  "http://hl7.org/fhir/StructureDefinition/MedicationAdministration"
                ]
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "workflow",
                "map" : "Event.partOf"
              },
              {
                "identity" : "rim",
                "map" : ".inboundRelationship[typeCode=COMP].source[classCode=SBADM or PROC or OBS, moodCode=EVN]"
              }
            ]
          },
          {
            "id" : "Procedure.status",
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement",
                "valueBoolean" : true
              },
              {
                "url" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement",
                "valueBoolean" : true
              }
            ],
            "path" : "Procedure.status",
            "short" : "(QI) not-done",
            "definition" : "A code specifying the state of the procedure. Generally, this will be the in-progress or completed state.",
            "comment" : "The \"unknown\" code is not to be used to convey other statuses.  The \"unknown\" code should be used when one of the statuses applies, but the authoring system doesn't know the current state of the procedure.\n\nThis element is labeled as a modifier because the status contains codes that mark the resource as not currently valid.",
            "min" : 1,
            "max" : "1",
            "base" : {
              "path" : "Procedure.status",
              "min" : 1,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "code"
              }
            ],
            "fixedCode" : "not-done",
            "condition" : [
              "us-core-7"
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : true,
            "isModifierReason" : "This element is labelled 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,
            "binding" : {
              "strength" : "required",
              "valueSet" : "http://hl7.org/fhir/ValueSet/event-status"
            },
            "mapping" : [
              {
                "identity" : "workflow",
                "map" : "Event.status"
              },
              {
                "identity" : "w5",
                "map" : "FiveWs.status"
              },
              {
                "identity" : "rim",
                "map" : "statusCode"
              },
              {
                "identity" : "argonaut-dq-dstu2",
                "map" : "Procedure.status"
              }
            ]
          },
          {
            "id" : "Procedure.statusReason",
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement",
                "valueBoolean" : true
              }
            ],
            "path" : "Procedure.statusReason",
            "short" : "(QI) Reason for the current status",
            "definition" : "Captures the reason for the current state of the procedure.",
            "comment" : "This is generally only used for \"exception\" statuses such as \"not-done\", \"suspended\" or \"aborted\". The reason for performing the event at all is captured in reasonCode, not here.",
            "alias" : [
              "Suspended Reason",
              "Cancelled Reason"
            ],
            "min" : 1,
            "max" : "1",
            "base" : {
              "path" : "Procedure.statusReason",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "CodeableConcept"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "binding" : {
              "strength" : "extensible",
              "description" : "The reason the procedure was not done",
              "valueSet" : "http://hl7.org/fhir/us/qicore/ValueSet/qicore-negation-reason"
            },
            "mapping" : [
              {
                "identity" : "workflow",
                "map" : "Event.statusReason"
              },
              {
                "identity" : "rim",
                "map" : ".reason.Observation.value"
              }
            ]
          },
          {
            "id" : "Procedure.category",
            "path" : "Procedure.category",
            "short" : "Classification of the procedure",
            "definition" : "A code that classifies the procedure for searching, sorting and display purposes (e.g. \"Surgical Procedure\").",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Procedure.category",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "CodeableConcept"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "binding" : {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString" : "ProcedureCategory"
                }
              ],
              "strength" : "example",
              "description" : "A code that classifies a procedure for searching, sorting and display purposes.",
              "valueSet" : "http://hl7.org/fhir/ValueSet/procedure-category"
            },
            "mapping" : [
              {
                "identity" : "w5",
                "map" : "FiveWs.class"
              },
              {
                "identity" : "rim",
                "map" : ".outboundRelationship[typeCode=\"COMP].target[classCode=\"LIST\", moodCode=\"EVN\"].code"
              }
            ]
          },
          {
            "id" : "Procedure.code",
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement",
                "valueBoolean" : true
              }
            ],
            "path" : "Procedure.code",
            "short" : "(QI) What procedure",
            "definition" : "The specific procedure that is performed. Use text if the exact nature of the procedure cannot be coded (e.g. \"Laparoscopic Appendectomy\").",
            "requirements" : "0..1 to account for primarily narrative only resources.",
            "alias" : [
              "type"
            ],
            "min" : 1,
            "max" : "1",
            "base" : {
              "path" : "Procedure.code",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "CodeableConcept"
              }
            ],
            "condition" : [
              "prc-1"
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "isSummary" : true,
            "binding" : {
              "extension" : [
                {
                  "extension" : [
                    {
                      "url" : "purpose",
                      "valueCode" : "current"
                    },
                    {
                      "url" : "valueSet",
                      "valueCanonical" : "http://hl7.org/fhir/us/core/ValueSet/us-core-procedure-code"
                    },
                    {
                      "url" : "documentation",
                      "valueMarkdown" : "US Core uses the current additional binding from FHIR R5 for this coded element for more flexibility when exchanging legacy and text-only data."
                    }
                  ],
                  "url" : "http://hl7.org/fhir/tools/StructureDefinition/additional-binding"
                }
              ],
              "strength" : "preferred",
              "description" : "Codes describing the type of  Procedure",
              "valueSet" : "http://hl7.org/fhir/us/core/ValueSet/us-core-procedure-code"
            },
            "mapping" : [
              {
                "identity" : "workflow",
                "map" : "Event.code"
              },
              {
                "identity" : "w5",
                "map" : "FiveWs.what[x]"
              },
              {
                "identity" : "v2",
                "map" : "OBR-44/OBR-45"
              },
              {
                "identity" : "rim",
                "map" : ".code"
              },
              {
                "identity" : "argonaut-dq-dstu2",
                "map" : "Procedure.code"
              }
            ]
          },
          {
            "id" : "Procedure.code.id",
            "path" : "Procedure.code.id",
            "representation" : [
              "xmlAttr"
            ],
            "short" : "Unique id for inter-element referencing",
            "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Element.id",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "extension" : [
                  {
                    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl" : "string"
                  }
                ],
                "code" : "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              }
            ]
          },
          {
            "id" : "Procedure.code.extension",
            "path" : "Procedure.code.extension",
            "slicing" : {
              "discriminator" : [
                {
                  "type" : "value",
                  "path" : "url"
                }
              ],
              "description" : "Extensions are always sliced by (at least) url",
              "rules" : "open"
            },
            "short" : "Additional content defined by implementations",
            "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.",
            "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.",
            "alias" : [
              "extensions",
              "user content"
            ],
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Element.extension",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Extension"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key" : "ext-1",
                "severity" : "error",
                "human" : "Must have either extensions or value[x], not both",
                "expression" : "extension.exists() != value.exists()",
                "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              }
            ]
          },
          {
            "id" : "Procedure.code.extension:codeOptions",
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement",
                "valueBoolean" : true
              }
            ],
            "path" : "Procedure.code.extension",
            "sliceName" : "codeOptions",
            "short" : "(QI) Url of a value set of candidate procedures",
            "definition" : "A logical reference (e.g. a reference to ValueSet.url) to a value set/version that identifies a set of possible coded values representing the procedure.",
            "comment" : "This extension SHALL NOT be used when an appropriate higher level concept code exists. When this extension is used on an element with a required binding, the set of possible coded values in the referenced value set SHALL be present in the bound value set. When used with an extensible binding, the set of possible coded values in the referenced value set SHALL be present in the bound value set unless none of the codes in the bound value set apply to the concept being communicated (based on human review). When this extension appears on a CodeableConcept, the CodeableConcept SHALL have no codings, and the text of the CodeableConcept SHALL include the title of the referenced value set.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Element.extension",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Extension",
                "profile" : [
                  🔗 "http://hl7.org/fhir/StructureDefinition/codeOptions|7.0.2"
                ]
              }
            ],
            "condition" : [
              "prc-1"
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key" : "ext-1",
                "severity" : "error",
                "human" : "Must have either extensions or value[x], not both",
                "expression" : "extension.exists() != value.exists()",
                "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "v2",
                "map" : "CWE."
              },
              {
                "identity" : "rim",
                "map" : "CD.valueSet/CD.valueSetVersion"
              }
            ]
          },
          {
            "id" : "Procedure.code.coding",
            "path" : "Procedure.code.coding",
            "short" : "Code defined by a terminology system",
            "definition" : "A reference to a code defined by a terminology system.",
            "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.",
            "requirements" : "Allows for alternative encodings within a code system, and translations to other code systems.",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "CodeableConcept.coding",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Coding"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "v2",
                "map" : "C*E.1-8, C*E.10-22"
              },
              {
                "identity" : "rim",
                "map" : "union(., ./translation)"
              },
              {
                "identity" : "orim",
                "map" : "fhir:CodeableConcept.coding rdfs:subPropertyOf dt:CD.coding"
              }
            ]
          },
          {
            "id" : "Procedure.code.text",
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
                "valueBoolean" : true
              }
            ],
            "path" : "Procedure.code.text",
            "short" : "Plain text representation of the concept",
            "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.",
            "comment" : "Very often the text is the same as a displayName of one of the codings.",
            "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,
            "max" : "1",
            "base" : {
              "path" : "CodeableConcept.text",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "string"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "v2",
                "map" : "C*E.9. But note many systems use C*E.2 for this"
              },
              {
                "identity" : "rim",
                "map" : "./originalText[mediaType/code=\"text/plain\"]/data"
              },
              {
                "identity" : "orim",
                "map" : "fhir:CodeableConcept.text rdfs:subPropertyOf dt:CD.originalText"
              }
            ]
          },
          {
            "id" : "Procedure.subject",
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement",
                "valueBoolean" : true
              }
            ],
            "path" : "Procedure.subject",
            "short" : "(QI) Who the procedure was performed on",
            "definition" : "The person, animal or group on which the procedure was performed.",
            "alias" : [
              "patient"
            ],
            "min" : 1,
            "max" : "1",
            "base" : {
              "path" : "Procedure.subject",
              "min" : 1,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "Reference",
                "targetProfile" : [
                  🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"
                ]
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "workflow",
                "map" : "Event.subject"
              },
              {
                "identity" : "w5",
                "map" : "FiveWs.subject[x]"
              },
              {
                "identity" : "v2",
                "map" : "PID-3"
              },
              {
                "identity" : "rim",
                "map" : ".participation[typeCode=SBJ].role"
              },
              {
                "identity" : "w5",
                "map" : "FiveWs.subject"
              },
              {
                "identity" : "argonaut-dq-dstu2",
                "map" : "Procedure.subject"
              }
            ]
          },
          {
            "id" : "Procedure.encounter",
            "path" : "Procedure.encounter",
            "short" : "Encounter associated with the procedure",
            "definition" : "The Encounter during which this Procedure was created or performed or to which the creation of this record is tightly associated.",
            "comment" : "This will typically be the encounter the event occurred within, but some activities may be initiated prior to or after the official completion of an encounter but still be tied to the context of the encounter.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Procedure.encounter",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "Reference",
                "targetProfile" : [
                  🔗 "http://hl7.org/fhir/us/core/StructureDefinition/us-core-encounter"
                ]
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "workflow",
                "map" : "Event.context"
              },
              {
                "identity" : "w5",
                "map" : "FiveWs.context"
              },
              {
                "identity" : "v2",
                "map" : "PV1-19"
              },
              {
                "identity" : "rim",
                "map" : ".inboundRelationship[typeCode=COMP].source[classCode=ENC, moodCode=EVN]"
              }
            ]
          },
          {
            "id" : "Procedure.performed[x]",
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement",
                "valueBoolean" : true
              }
            ],
            "path" : "Procedure.performed[x]",
            "short" : "(QI) When the procedure was performed",
            "definition" : "Estimated or actual date, date-time, period, or age when the procedure was performed.  Allows a period to support complex procedures that span more than one date, and also allows for the length of the procedure to be captured.",
            "comment" : "Age is generally used when the patient reports an age at which the procedure was performed. Range is generally used when the patient reports an age range when the procedure was performed, such as sometime between 20-25 years old.  dateTime supports a range of precision due to some procedures being reported as past procedures that might not have millisecond precision while other procedures performed and documented during the encounter might have more precise UTC timestamps with timezone.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Procedure.performed[x]",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "extension" : [
                  {
                    "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support",
                    "valueBoolean" : true
                  }
                ],
                "code" : "dateTime"
              },
              {
                "code" : "Period"
              },
              {
                "code" : "string"
              },
              {
                "code" : "Age"
              },
              {
                "code" : "Range"
              }
            ],
            "condition" : [
              "us-core-7"
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : true,
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "workflow",
                "map" : "Event.occurrence[x]"
              },
              {
                "identity" : "w5",
                "map" : "FiveWs.done[x]"
              },
              {
                "identity" : "v2",
                "map" : "OBR-7"
              },
              {
                "identity" : "rim",
                "map" : ".effectiveTime"
              },
              {
                "identity" : "argonaut-dq-dstu2",
                "map" : "Procedure.performed[x]"
              }
            ]
          },
          {
            "id" : "Procedure.recorder",
            "path" : "Procedure.recorder",
            "short" : "Who recorded the procedure",
            "definition" : "Individual who recorded the record and takes responsibility for its content.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Procedure.recorder",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "Reference",
                "targetProfile" : [
                  🔗 "http://hl7.org/fhir/StructureDefinition/Patient"🔗 ,
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"🔗 ,
                  "http://hl7.org/fhir/StructureDefinition/Practitioner"🔗 ,
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "w5",
                "map" : "FiveWs.author"
              },
              {
                "identity" : "rim",
                "map" : ".participation[typeCode=AUT].role"
              }
            ]
          },
          {
            "id" : "Procedure.asserter",
            "path" : "Procedure.asserter",
            "short" : "Person who asserts this procedure",
            "definition" : "Individual who is making the procedure statement.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Procedure.asserter",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "Reference",
                "targetProfile" : [
                  🔗 "http://hl7.org/fhir/StructureDefinition/Patient"🔗 ,
                  "http://hl7.org/fhir/StructureDefinition/RelatedPerson"🔗 ,
                  "http://hl7.org/fhir/StructureDefinition/Practitioner"🔗 ,
                  "http://hl7.org/fhir/StructureDefinition/PractitionerRole"
                ]
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "w5",
                "map" : "FiveWs.source"
              },
              {
                "identity" : "rim",
                "map" : ".participation[typeCode=INF].role"
              }
            ]
          },
          {
            "id" : "Procedure.performer",
            "path" : "Procedure.performer",
            "short" : "The people who performed the procedure",
            "definition" : "Limited to \"real\" people rather than equipment.",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Procedure.performer",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "BackboneElement"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "workflow",
                "map" : "Event.performer"
              },
              {
                "identity" : "rim",
                "map" : ".participation[typeCode=PRF]"
              }
            ]
          },
          {
            "id" : "Procedure.performer.id",
            "path" : "Procedure.performer.id",
            "representation" : [
              "xmlAttr"
            ],
            "short" : "Unique id for inter-element referencing",
            "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Element.id",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "extension" : [
                  {
                    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl" : "string"
                  }
                ],
                "code" : "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              }
            ]
          },
          {
            "id" : "Procedure.performer.extension",
            "path" : "Procedure.performer.extension",
            "short" : "Additional content defined by implementations",
            "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.",
            "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.",
            "alias" : [
              "extensions",
              "user content"
            ],
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Element.extension",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Extension"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key" : "ext-1",
                "severity" : "error",
                "human" : "Must have either extensions or value[x], not both",
                "expression" : "extension.exists() != value.exists()",
                "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              }
            ]
          },
          {
            "id" : "Procedure.performer.modifierExtension",
            "path" : "Procedure.performer.modifierExtension",
            "short" : "Extensions that cannot be ignored even if unrecognized",
            "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).",
            "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.",
            "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).",
            "alias" : [
              "extensions",
              "user content",
              "modifiers"
            ],
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "BackboneElement.modifierExtension",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Extension"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key" : "ext-1",
                "severity" : "error",
                "human" : "Must have either extensions or value[x], not both",
                "expression" : "extension.exists() != value.exists()",
                "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier" : true,
            "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "N/A"
              }
            ]
          },
          {
            "id" : "Procedure.performer.function",
            "path" : "Procedure.performer.function",
            "short" : "Type of performance",
            "definition" : "Distinguishes the type of involvement of the performer in the procedure. For example, surgeon, anaesthetist, endoscopist.",
            "requirements" : "Allows disambiguation of the types of involvement of different performers.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Procedure.performer.function",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "CodeableConcept"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "binding" : {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString" : "ProcedurePerformerRole"
                }
              ],
              "strength" : "example",
              "description" : "A code that identifies the role of a performer of the procedure.",
              "valueSet" : "http://hl7.org/fhir/ValueSet/performer-role"
            },
            "mapping" : [
              {
                "identity" : "workflow",
                "map" : "Event.performer.function"
              },
              {
                "identity" : "v2",
                "map" : "Some combination of STF-18 / PRA-3 / PRT-4 / ROL-3 / ORC-12 / OBR-16 / PV1-7 / PV1-8 / PV1-9 / PV1-17 / OBX-25"
              },
              {
                "identity" : "rim",
                "map" : ".functionCode"
              }
            ]
          },
          {
            "id" : "Procedure.performer.actor",
            "path" : "Procedure.performer.actor",
            "short" : "The reference to the practitioner",
            "definition" : "The practitioner who was involved in the procedure.",
            "requirements" : "A reference to Device supports use cases, such as pacemakers.",
            "min" : 1,
            "max" : "1",
            "base" : {
              "path" : "Procedure.performer.actor",
              "min" : 1,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "Reference",
                "targetProfile" : [
                  🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-practitioner"🔗 ,
                  "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-organization"🔗 ,
                  "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-patient"🔗 ,
                  "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-relatedperson"
                ]
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "mustSupport" : false,
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "workflow",
                "map" : "Event.performer.actor"
              },
              {
                "identity" : "w5",
                "map" : "FiveWs.actor"
              },
              {
                "identity" : "v2",
                "map" : "ORC-19/PRT-5"
              },
              {
                "identity" : "rim",
                "map" : ".role"
              }
            ]
          },
          {
            "id" : "Procedure.performer.onBehalfOf",
            "path" : "Procedure.performer.onBehalfOf",
            "short" : "Organization the device or practitioner was acting for",
            "definition" : "The organization the device or practitioner was acting on behalf of.",
            "requirements" : "Practitioners and Devices can be associated with multiple organizations.  This element indicates which organization they were acting on behalf of when performing the action.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Procedure.performer.onBehalfOf",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "Reference",
                "targetProfile" : [
                  🔗 "http://hl7.org/fhir/StructureDefinition/Organization"
                ]
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : ".scoper"
              }
            ]
          },
          {
            "id" : "Procedure.location",
            "path" : "Procedure.location",
            "short" : "Where the procedure happened",
            "definition" : "The location where the procedure actually happened.  E.g. a newborn at home, a tracheostomy at a restaurant.",
            "requirements" : "Ties a procedure to where the records are likely kept.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Procedure.location",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "Reference",
                "targetProfile" : [
                  🔗 "http://hl7.org/fhir/StructureDefinition/Location"
                ]
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "w5",
                "map" : "FiveWs.where[x]"
              },
              {
                "identity" : "rim",
                "map" : ".participation[typeCode=LOC].role[classCode=SDLOC]"
              }
            ]
          },
          {
            "id" : "Procedure.reasonCode",
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement",
                "valueBoolean" : true
              },
              {
                "url" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement",
                "valueBoolean" : true
              }
            ],
            "path" : "Procedure.reasonCode",
            "short" : "(QI) Coded reason procedure performed",
            "definition" : "The coded reason why the procedure was performed. This may be a coded entity of some type, or may simply be present as text.",
            "comment" : "Use Procedure.reasonCode when a code sufficiently describes the reason.  Use Procedure.reasonReference when referencing a resource, which allows more information to be conveyed, such as onset date. Procedure.reasonCode and Procedure.reasonReference are not meant to be duplicative.  For a single reason, either Procedure.reasonCode or Procedure.reasonReference can be used.  Procedure.reasonCode may be a summary code, or Procedure.reasonReference may be used to reference a very precise definition of the reason using Condition | Observation | Procedure | DiagnosticReport | DocumentReference.  Both Procedure.reasonCode and Procedure.reasonReference can be used if they are describing different reasons for the procedure.",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Procedure.reasonCode",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "CodeableConcept"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "binding" : {
              "strength" : "extensible",
              "valueSet" : "http://hl7.org/fhir/us/core/ValueSet/us-core-condition-code"
            },
            "mapping" : [
              {
                "identity" : "workflow",
                "map" : "Event.reasonCode"
              },
              {
                "identity" : "w5",
                "map" : "FiveWs.why[x]"
              },
              {
                "identity" : "rim",
                "map" : ".reasonCode"
              }
            ]
          },
          {
            "id" : "Procedure.reasonReference",
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/us/core/StructureDefinition/uscdi-requirement",
                "valueBoolean" : true
              },
              {
                "url" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement",
                "valueBoolean" : true
              }
            ],
            "path" : "Procedure.reasonReference",
            "short" : "(QI) The justification that the procedure was performed",
            "definition" : "The justification of why the procedure was performed.",
            "comment" : "It is possible for a procedure to be a reason (such as C-Section) for another procedure (such as an epidural). Other examples include endoscopy for dilatation and biopsy (a combination of diagnostic and therapeutic use). \nUse Procedure.reasonCode when a code sufficiently describes the reason.  Use Procedure.reasonReference when referencing a resource, which allows more information to be conveyed, such as onset date. Procedure.reasonCode and Procedure.reasonReference are not meant to be duplicative.  For a single reason, either Procedure.reasonCode or Procedure.reasonReference can be used.  Procedure.reasonCode may be a summary code, or Procedure.reasonReference may be used to reference a very precise definition of the reason using Condition | Observation | Procedure | DiagnosticReport | DocumentReference.  Both Procedure.reasonCode and Procedure.reasonReference can be used if they are describing different reasons for the procedure.",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Procedure.reasonReference",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Reference",
                "targetProfile" : [
                  🔗 "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-encounter-diagnosis"🔗 ,
                  "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-condition-problems-health-concerns"🔗 ,
                  "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-diagnosticreport-note"🔗 ,
                  "http://hl7.org/fhir/us/core/StructureDefinition/us-core-documentreference"
                ]
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "workflow",
                "map" : "Event.reasonReference"
              },
              {
                "identity" : "w5",
                "map" : "FiveWs.why[x]"
              },
              {
                "identity" : "rim",
                "map" : ".reasonCode"
              }
            ]
          },
          {
            "id" : "Procedure.bodySite",
            "path" : "Procedure.bodySite",
            "short" : "Target body sites",
            "definition" : "Detailed and structured anatomical location information. Multiple locations are allowed - e.g. multiple punch biopsies of a lesion.",
            "comment" : "If the use case requires attributes from the BodySite resource (e.g. to identify and track separately) then use the standard extension [procedure-targetbodystructure](http://hl7.org/fhir/R4/extension-procedure-targetbodystructure.html).",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Procedure.bodySite",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "CodeableConcept"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "binding" : {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString" : "BodySite"
                }
              ],
              "strength" : "example",
              "description" : "Codes describing anatomical locations. May include laterality.",
              "valueSet" : "http://hl7.org/fhir/ValueSet/body-site"
            },
            "mapping" : [
              {
                "identity" : "v2",
                "map" : "OBX-20"
              },
              {
                "identity" : "rim",
                "map" : ".targetSiteCode"
              }
            ]
          },
          {
            "id" : "Procedure.outcome",
            "path" : "Procedure.outcome",
            "short" : "The result of procedure",
            "definition" : "The outcome of the procedure - did it resolve the reasons for the procedure being performed?",
            "comment" : "If outcome contains narrative text only, it can be captured using the CodeableConcept.text.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Procedure.outcome",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "CodeableConcept"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : true,
            "binding" : {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString" : "ProcedureOutcome"
                }
              ],
              "strength" : "example",
              "description" : "An outcome of a procedure - whether it was resolved or otherwise.",
              "valueSet" : "http://hl7.org/fhir/ValueSet/procedure-outcome"
            },
            "mapping" : [
              {
                "identity" : "rim",
                "map" : ".outboundRelationship[typeCode=OUT].target.text"
              }
            ]
          },
          {
            "id" : "Procedure.report",
            "path" : "Procedure.report",
            "short" : "Any report resulting from the procedure",
            "definition" : "This could be a histology result, pathology report, surgical report, etc.",
            "comment" : "There could potentially be multiple reports - e.g. if this was a procedure which took multiple biopsies resulting in a number of anatomical pathology reports.",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Procedure.report",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Reference",
                "targetProfile" : [
                  🔗 "http://hl7.org/fhir/StructureDefinition/DiagnosticReport"🔗 ,
                  "http://hl7.org/fhir/StructureDefinition/DocumentReference"🔗 ,
                  "http://hl7.org/fhir/StructureDefinition/Composition"
                ]
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN]"
              }
            ]
          },
          {
            "id" : "Procedure.complication",
            "path" : "Procedure.complication",
            "short" : "Complication following the procedure",
            "definition" : "Any complications that occurred during the procedure, or in the immediate post-performance period. These are generally tracked separately from the notes, which will typically describe the procedure itself rather than any 'post procedure' issues.",
            "comment" : "If complications are only expressed by the narrative text, they can be captured using the CodeableConcept.text.",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Procedure.complication",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "CodeableConcept"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "binding" : {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString" : "ProcedureComplication"
                }
              ],
              "strength" : "example",
              "description" : "Codes describing complications that resulted from a procedure.",
              "valueSet" : "http://hl7.org/fhir/ValueSet/condition-code"
            },
            "mapping" : [
              {
                "identity" : "rim",
                "map" : ".outboundRelationship[typeCode=OUTC].target[classCode=OBS, code=\"complication\", moodCode=EVN].value"
              }
            ]
          },
          {
            "id" : "Procedure.complicationDetail",
            "path" : "Procedure.complicationDetail",
            "short" : "A condition that is a result of the procedure",
            "definition" : "Any complications that occurred during the procedure, or in the immediate post-performance period.",
            "requirements" : "This is used to document a condition that is a result of the procedure, not the condition that was the reason for the procedure.",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Procedure.complicationDetail",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Reference",
                "targetProfile" : [
                  🔗 "http://hl7.org/fhir/StructureDefinition/Condition"
                ]
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : ".outboundRelationship[typeCode=OUTC].target[classCode=OBS, code=\"complication\", moodCode=EVN].value"
              }
            ]
          },
          {
            "id" : "Procedure.followUp",
            "path" : "Procedure.followUp",
            "short" : "Instructions for follow up",
            "definition" : "If the procedure required specific follow up - e.g. removal of sutures. The follow up may be represented as a simple note or could potentially be more complex, in which case the CarePlan resource can be used.",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Procedure.followUp",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "CodeableConcept"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "binding" : {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString" : "ProcedureFollowUp"
                }
              ],
              "strength" : "example",
              "description" : "Specific follow up required for a procedure e.g. removal of sutures.",
              "valueSet" : "http://hl7.org/fhir/ValueSet/procedure-followup"
            },
            "mapping" : [
              {
                "identity" : "rim",
                "map" : ".outboundRelationship[typeCode=COMP].target[classCode=ACT, moodCode=INT].code"
              }
            ]
          },
          {
            "id" : "Procedure.note",
            "path" : "Procedure.note",
            "short" : "Additional information about the procedure",
            "definition" : "Any other notes and comments about the procedure.",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Procedure.note",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Annotation"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "workflow",
                "map" : "Event.note"
              },
              {
                "identity" : "v2",
                "map" : "NTE"
              },
              {
                "identity" : "rim",
                "map" : ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"annotation\"].value"
              }
            ]
          },
          {
            "id" : "Procedure.focalDevice",
            "path" : "Procedure.focalDevice",
            "short" : "Manipulated, implanted, or removed device",
            "definition" : "A device that is implanted, removed or otherwise manipulated (calibration, battery replacement, fitting a prosthesis, attaching a wound-vac, etc.) as a focal portion of the Procedure.",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Procedure.focalDevice",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "BackboneElement"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : ".participation[typeCode=DEV].role[classCode=MANU]"
              }
            ]
          },
          {
            "id" : "Procedure.focalDevice.id",
            "path" : "Procedure.focalDevice.id",
            "representation" : [
              "xmlAttr"
            ],
            "short" : "Unique id for inter-element referencing",
            "definition" : "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Element.id",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "extension" : [
                  {
                    "url" : "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type",
                    "valueUrl" : "string"
                  }
                ],
                "code" : "http://hl7.org/fhirpath/System.String"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              }
            ]
          },
          {
            "id" : "Procedure.focalDevice.extension",
            "path" : "Procedure.focalDevice.extension",
            "short" : "Additional content defined by implementations",
            "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.",
            "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.",
            "alias" : [
              "extensions",
              "user content"
            ],
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Element.extension",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Extension"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key" : "ext-1",
                "severity" : "error",
                "human" : "Must have either extensions or value[x], not both",
                "expression" : "extension.exists() != value.exists()",
                "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "n/a"
              }
            ]
          },
          {
            "id" : "Procedure.focalDevice.modifierExtension",
            "path" : "Procedure.focalDevice.modifierExtension",
            "short" : "Extensions that cannot be ignored even if unrecognized",
            "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).",
            "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.",
            "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).",
            "alias" : [
              "extensions",
              "user content",
              "modifiers"
            ],
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "BackboneElement.modifierExtension",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Extension"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              },
              {
                "key" : "ext-1",
                "severity" : "error",
                "human" : "Must have either extensions or value[x], not both",
                "expression" : "extension.exists() != value.exists()",
                "xpath" : "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])",
                "source" : "http://hl7.org/fhir/StructureDefinition/Extension"
              }
            ],
            "isModifier" : true,
            "isModifierReason" : "Modifier extensions are expected to modify the meaning or interpretation of the element that contains them",
            "isSummary" : true,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "N/A"
              }
            ]
          },
          {
            "id" : "Procedure.focalDevice.action",
            "path" : "Procedure.focalDevice.action",
            "short" : "Kind of change to device",
            "definition" : "The kind of change that happened to the device during the procedure.",
            "min" : 0,
            "max" : "1",
            "base" : {
              "path" : "Procedure.focalDevice.action",
              "min" : 0,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "CodeableConcept"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "binding" : {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString" : "DeviceActionKind"
                }
              ],
              "strength" : "preferred",
              "description" : "A kind of change that happened to the device during the procedure.",
              "valueSet" : "http://hl7.org/fhir/ValueSet/device-action"
            },
            "mapping" : [
              {
                "identity" : "rim",
                "map" : ".inboundRelationship[typeCode=SUBJ].source[classCode=OBS, moodCode=EVN, code=\"procedure device action\"].value=:procedure device action codes"
              }
            ]
          },
          {
            "id" : "Procedure.focalDevice.manipulated",
            "path" : "Procedure.focalDevice.manipulated",
            "short" : "Device that was changed",
            "definition" : "The device that was manipulated (changed) during the procedure.",
            "min" : 1,
            "max" : "1",
            "base" : {
              "path" : "Procedure.focalDevice.manipulated",
              "min" : 1,
              "max" : "1"
            },
            "type" : [
              {
                "code" : "Reference",
                "targetProfile" : [
                  🔗 "http://hl7.org/fhir/StructureDefinition/Device"
                ]
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : ".participation[typeCode=DEV].role[classCode=SDLOC]"
              }
            ]
          },
          {
            "id" : "Procedure.usedReference",
            "path" : "Procedure.usedReference",
            "short" : "Items used during procedure",
            "definition" : "Identifies medications, devices and any other substance used as part of the procedure.",
            "comment" : "For devices actually implanted or removed, use Procedure.device.",
            "requirements" : "Used for tracking contamination, etc.",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Procedure.usedReference",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "Reference",
                "targetProfile" : [
                  🔗 "http://hl7.org/fhir/StructureDefinition/Device"🔗 ,
                  "http://hl7.org/fhir/StructureDefinition/Medication"🔗 ,
                  "http://hl7.org/fhir/StructureDefinition/Substance"
                ]
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "mapping" : [
              {
                "identity" : "rim",
                "map" : ".participation[typeCode=DEV].role[classCode=MANU] or\n.participation[typeCode=CSM].role[classCode=ADMM] (for Medication or Substance)"
              }
            ]
          },
          {
            "id" : "Procedure.usedCode",
            "path" : "Procedure.usedCode",
            "short" : "Coded items used during the procedure",
            "definition" : "Identifies coded items that were used as part of the procedure.",
            "comment" : "For devices actually implanted or removed, use Procedure.device.",
            "min" : 0,
            "max" : "*",
            "base" : {
              "path" : "Procedure.usedCode",
              "min" : 0,
              "max" : "*"
            },
            "type" : [
              {
                "code" : "CodeableConcept"
              }
            ],
            "constraint" : [
              {
                "key" : "ele-1",
                "severity" : "error",
                "human" : "All FHIR elements must have a @value or children",
                "expression" : "hasValue() or (children().count() > id.count())",
                "xpath" : "@value|f:*|h:div",
                "source" : "http://hl7.org/fhir/StructureDefinition/Element"
              }
            ],
            "isModifier" : false,
            "isSummary" : false,
            "binding" : {
              "extension" : [
                {
                  "url" : "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
                  "valueString" : "ProcedureUsed"
                }
              ],
              "strength" : "example",
              "description" : "Codes describing items used during a procedure.",
              "valueSet" : "http://hl7.org/fhir/ValueSet/device-kind"
            },
            "mapping" : [
              {
                "identity" : "rim",
                "map" : "participation[typeCode=Dev].role[classCode=MANU]"
              }
            ]
          }
        ]
      },
      "differential" : {
        "element" : [
          {
            "id" : "Procedure",
            "path" : "Procedure",
            "mustSupport" : false
          },
          {
            "id" : "Procedure.extension:recorded",
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement",
                "valueBoolean" : true
              }
            ],
            "path" : "Procedure.extension",
            "sliceName" : "recorded",
            "short" : "(QI) When the procedure was first captured in the subject's record",
            "min" : 0,
            "max" : "1",
            "type" : [
              {
                "code" : "Extension",
                "profile" : [
                  🔗 "http://hl7.org/fhir/5.0/StructureDefinition/extension-Procedure.recorded"
                ]
              }
            ]
          },
          {
            "id" : "Procedure.status",
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement",
                "valueBoolean" : true
              }
            ],
            "path" : "Procedure.status",
            "short" : "(QI) not-done",
            "min" : 1,
            "max" : "1",
            "type" : [
              {
                "code" : "code"
              }
            ],
            "fixedCode" : "not-done"
          },
          {
            "id" : "Procedure.statusReason",
            "extension" : [
              {
                "url" : "http://hl7.org/fhir/us/qicore/StructureDefinition/qicore-keyelement",
                "valueBoolean" : true
              }
            ],
            "path" : "Procedure.statusReason",
            "short" : "(QI) Reason for the current status",
            "min" : 1,
            "max" : "1",
            "binding" : {
              "strength" : "extensible",
              "description" : "The reason the procedure was not done",
              "valueSet" : "http://hl7.org/fhir/us/qicore/ValueSet/qicore-negation-reason"
            }
          }
        ]
      }
    }